/* =============================================================
   山东建邦商贸有限公司 · 工程供应链科技风
   配色：深海蓝 (#1E3A5F) + 科技蓝 (#3B82F6) + 建筑橙 (#F97316)
   组件：价格面板、产品矩阵、流程时间轴、数据墙
   ============================================================= */
:root {
  --bg: #0f172a;
  --bg-strong: #0b1220;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --card: #111827;
  --text-strong: #f9fafb;
  --text-soft: rgba(249, 250, 251, 0.8);
  --brand: #1e3a5f;
  --brand-2: #3b82f6;
  --accent: #f97316;
  --accent-soft: #fbbf24;
  --border: rgba(255, 255, 255, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-strong: 0 24px 70px rgba(0, 10, 30, 0.45);
  --shadow-soft: 0 12px 36px rgba(0, 10, 30, 0.25);
  --max-width: 1280px;
}

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

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-strong);
  background: radial-gradient(120% 120% at 20% 20%, rgba(59, 130, 246, 0.25), transparent 40%),
              radial-gradient(120% 120% at 80% 0%, rgba(249, 115, 22, 0.17), transparent 35%),
              linear-gradient(140deg, #0b162a, #102542);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; border-radius: var(--radius-sm); display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; }
p { line-height: 1.6; }

/* ---------------- 全局导航 ---------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(9, 14, 24, 0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  letter-spacing: 0.08em;
}
.navbar-title {
  font-size: 18px;
  font-weight: 700;
}
.navbar-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.18em;
}

.navbar-menu { display: flex; gap: 18px; align-items: center; }
.navbar-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.25s, color 0.25s;
}
.navbar-item.active, .navbar-item:hover {
  background: var(--surface-strong);
  color: var(--accent-soft);
}

.nav-actions { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; cursor: pointer; background: var(--surface); border-radius: 10px; padding: 8px 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-strong);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn.accent { background: linear-gradient(135deg, var(--accent), #fb923c); color: #0f172a; border: none; }
.btn.subtle { background: transparent; }

/* ---------------- 首屏 Hero ---------------- */
.hero {
  padding: 120px 6vw 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 36px;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-soft);
  letter-spacing: 0.16em;
  font-size: 12px;
}
.hero-title { font-size: clamp(42px, 5vw, 64px); margin: 14px 0 12px; }
.hero-sub { font-size: 18px; color: var(--text-soft); margin-bottom: 22px; }
.hero-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 24px; }
.hero-meta .stat {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.hero-visual { position: relative; }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-strong);
  z-index: 0;
}
.hero-visual img { position: relative; z-index: 1; width: 100%; box-shadow: var(--shadow-strong); }

/* ---------------- 板块分隔 ---------------- */
.section {
  padding: 70px 6vw;
}
.section-head {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title { font-size: clamp(32px, 4vw, 46px); }
.section-desc { color: var(--text-soft); max-width: 720px; }

/* ---------------- 实时报价面板 ---------------- */
.price-board {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.price-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.price-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  display: grid;
  gap: 6px;
}
.price-item .name { font-weight: 700; }
.price-item .value { font-size: 20px; }
.price-item .trend.up { color: #34d399; }
.price-item .trend.down { color: #f87171; }
.price-item .trend.flat { color: #fbbf24; }

/* ---------------- 产品矩阵 / 网格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.card strong { color: var(--accent-soft); }
.pill { display: inline-flex; padding: 6px 10px; border-radius: 10px; background: var(--surface); font-size: 13px; }
.list {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
}

/* ---------------- 对比 + 流程 ---------------- */
.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.step {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px dashed var(--border);
}

/* ---------------- 数据墙 ---------------- */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.data-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
}
.data-value { font-size: 32px; font-weight: 700; }
.data-label { color: var(--text-soft); }

/* ---------------- 案例 / 画廊 ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--border); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 14px;
}

/* ---------------- CTA Banner ---------------- */
.cta {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.2), rgba(249, 115, 22, 0.2));
  border: 1px solid var(--surface-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------- 页面模板（子页） ---------------- */
.page-shell { min-height: 100vh; padding: 120px 6vw 60px; color: var(--text-strong); }
.page-head {
  max-width: var(--max-width);
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.page-head h1 { font-size: clamp(36px, 5vw, 60px); }
.breadcrumb { letter-spacing: 0.18em; font-size: 12px; color: var(--text-soft); text-transform: uppercase; }
.page-scroller { display: flex; overflow-x: auto; gap: 20px; padding-bottom: 16px; scroll-snap-type: x mandatory; }
.page-panel {
  min-width: min(92vw, 1000px);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}
.panel-label { font-size: 13px; letter-spacing: 0.12em; color: var(--accent-soft); }
.panel-title-sm { font-size: 26px; margin: 8px 0 12px; }
.panel-text { color: var(--text-soft); margin-bottom: 12px; }
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.page-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border);
}
.tag-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--surface); font-size: 12px; letter-spacing: 0.08em; }
.list-dense { display: flex; flex-direction: column; gap: 8px; color: var(--text-soft); }
.timeline { display: grid; gap: 12px; margin-top: 14px; }
.timeline-item { border-left: 2px solid var(--surface-strong); padding-left: 12px; }
.timeline-year { font-size: 14px; letter-spacing: 0.12em; color: var(--accent-soft); }
.highlight-figure { font-size: 46px; font-weight: 800; margin-bottom: 6px; }
.table { width: 100%; border-spacing: 0; margin-top: 12px; }
.table th, .table td { border-bottom: 1px solid var(--surface-strong); padding: 10px 0; text-align: left; }
.contact-card { padding: 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 6px; }
.map-panel { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }

/* ---------------- 工具条 ---------------- */
.price-ticker {
  width: 100%;
  overflow: hidden;
  background: var(--bg-strong);
  border-top: 1px solid var(--border);
}
.ticker-content { display: flex; gap: 32px; padding: 14px 0; animation: ticker 22s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ticker-label { color: var(--accent-soft); letter-spacing: 0.1em; }
.ticker-value { font-weight: 700; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.site-footer {
  padding: 28px 6vw;
  background: var(--bg-strong);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .navbar-menu, .nav-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .navbar-menu.active, .nav-actions.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; right: 5vw;
    background: var(--bg-strong);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
  }
  .price-board { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 16px; }
  .hero { padding: 100px 16px 60px; }
  .grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .page-shell { padding: 110px 16px 40px; }
  .page-panel { min-width: 88vw; }
}
