/* 鑫宏宇官网 - 纯静态样式（配色与原 Vite 版一致） */
:root {
  --font: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --bg: #f4fafe;
  --text: #161c20;
  --text-variant: #43474e;
  --primary: #002446;
  --primary-container: #1a3a5f;
  --tertiary-container: #790001;
  --on-tertiary-container: #ff7b69;
  --surface: #ffffff;
  --surface-low: #eff4f8;
  --surface-high: #e3e9ed;
  --surface-variant: #dde3e7;
  --outline: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

img { display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- 顶部导航 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.navbar-inner {
  max-width: 80rem;
  margin: 0 auto;
  height: 5rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 0.5rem; }
.nav-btn {
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  color: var(--slate-600);
  transition: all 0.2s;
}
.nav-btn:hover { background: #f1f5f9; color: var(--primary); }
.nav-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 36, 70, 0.3);
}
.btn-consult {
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: 0.25rem;
  font-weight: 700;
  transition: transform 0.1s, background 0.2s;
}
.btn-consult:hover { background: var(--primary-container); }
.btn-consult:active { transform: scale(0.95); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.4;
}
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0, 36, 70, 0.92), rgba(26, 58, 95, 0.6));
}
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.hero-content h1 {
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  border-left: 4px solid var(--on-tertiary-container);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--surface-high); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-container); }
.btn-gray { background: var(--surface-high); color: var(--primary); }
.btn-gray:hover { background: var(--surface-variant); }

/* ---------- 主内容 ---------- */
.main-offset {
  position: relative;
  z-index: 20;
  margin-top: -3rem;
  padding-bottom: 4rem;
}

/* 筛选栏 */
.filter-bar {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px -10px rgba(0, 36, 70, 0.25);
  margin-bottom: 3rem;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: end;
}
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}
.select-wrap, .input-wrap { position: relative; }
.filter-bar select,
.filter-bar input {
  width: 100%;
  background: var(--surface-low);
  border: none;
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  appearance: none;
  outline: none;
}
.filter-bar select:focus,
.filter-bar input:focus { box-shadow: 0 0 0 2px var(--primary); }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 0.9rem; top: 50%;
  width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--slate-400);
  border-bottom: 2px solid var(--slate-400);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.btn-search { height: 3rem; padding: 0 1rem; }

/* ---------- 区块 ---------- */
.section { margin-bottom: 5rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.title-bar { height: 4px; width: 6rem; background: var(--tertiary-container); }
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 700;
  transition: gap 0.2s;
}
.more-link:hover { gap: 0.75rem; }

/* ---------- 产品卡片 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  position: relative;
  background: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}
.card-pic {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-variant);
  overflow: hidden;
}
.card-pic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .card-pic img { transform: scale(1.1); }
.card-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.7rem;
  border-radius: 0.5rem;
}
.card-body { padding: 1.25rem 1.25rem 3.5rem; flex: 1; }
.card-brand-label { font-size: 0.75rem; color: var(--slate-400); }
.card-brand {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tertiary-container);
  background: rgba(121, 0, 1, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  margin: 0.2rem 0 0.5rem;
}
.card-model {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  min-height: 2.8em;
}
.card-foot {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.8rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  background: var(--surface);
}
.card-foot span { color: var(--primary); font-weight: 700; font-size: 0.85rem; }
.product-card:hover .card-foot span { color: var(--primary-container); }

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface-low);
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  max-width: 32rem;
  margin: 0 auto;
}
.empty-state[hidden] { display: none; }
.empty-icon {
  width: 4rem; height: 4rem;
  background: rgba(0, 36, 70, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.empty-state h3 { font-size: 1.35rem; color: var(--primary); margin-bottom: 0.75rem; }
.empty-state p { color: var(--slate-600); margin-bottom: 1.25rem; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- 品牌传承 ---------- */
.about-card {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 3rem;
  border-radius: 0.75rem;
  max-width: 56rem;
  margin: 0 auto;
}
.about-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-tertiary-container);
}
.about-card h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin: 0.75rem 0 1.25rem;
}
.about-text p {
  color: #d3d9de;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
.about-stats {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-num {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
}
.stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--on-tertiary-container);
}

/* ---------- 卓越制造 ---------- */
.center-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2.5rem;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}
.showcase-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s;
}
.showcase-item:hover img { transform: scale(1.05); }
.showcase-item figcaption {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: rgba(0, 36, 70, 0.4);
  color: #fff;
  font-weight: 700;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #f1f5f9;
  margin-top: auto;
}
.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
}
.footer-left { max-width: 30rem; }
.footer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.footer-left > p {
  color: var(--slate-500);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.8rem;
}
.contact-phone { color: var(--primary); font-weight: 600; }
.link-btn {
  color: var(--slate-500);
  font-size: 0.8rem;
}
.link-btn:hover { color: var(--slate-600); text-decoration: underline; }
.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--slate-500);
  font-size: 0.8rem;
}
.footer-copy a { border-bottom: 1px dashed var(--slate-400); }
.footer-copy a:hover { color: var(--primary); border-color: var(--primary); }
.divider { display: none; }

/* ---------- 微信弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal[hidden] { display: none; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: min(24rem, calc(100vw - 2rem));
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
.modal-box h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.modal-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  font-size: 1.5rem;
  color: var(--slate-400);
  line-height: 1;
}
.modal-close:hover { color: var(--primary); }
.qr-box {
  aspect-ratio: 1;
  background: #f8fafc;
  border: 4px solid #f8fafc;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.qr-box img { width: 100%; height: 100%; object-fit: cover; }
.modal-box p { font-size: 0.85rem; color: var(--slate-600); margin-bottom: 1rem; }
.phone-box {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 1rem;
}
.phone-box a {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.05em;
}

/* ---------- 移动端悬浮电话 ---------- */
.float-call {
  display: none;
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 50;
  width: 3.5rem; height: 3.5rem;
  background: var(--on-tertiary-container);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.25);
}

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .hero { height: 921px; }
  .navbar-inner { padding: 0 2rem; }
  .divider { display: inline; }
  .footer-inner { text-align: left; }
  .footer-contacts { justify-content: flex-start; }
  .footer-copy { flex-direction: row; }
}
@media (max-width: 1023px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-item figcaption { opacity: 1; }
}
@media (max-width: 767px) {
  .hero { height: 600px; }
  .nav-links { display: none; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-bar { padding: 1.25rem; }
  .main-offset { margin-top: -2rem; }
  .about-card { padding: 2rem 1.5rem; }
  .float-call { display: flex; }
  .empty-actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 479px) {
  .product-grid { grid-template-columns: 1fr; }
}
