/* ==========================================================
   ZANPRI 赞普锐集团官网样式
   简洁大气的制造业企业风格 · 深蓝主色
   ========================================================== */

:root {
  --primary: #0b2e59;        /* 主色 深藏蓝 */
  --primary-2: #123c73;      /* 主色亮一档 */
  --accent: #e8762c;         /* 强调色 橙 */
  --accent-dark: #cf6219;
  --bg-light: #f5f7fa;       /* 浅灰蓝背景 */
  --text-main: #1f2a3c;
  --text-sub: #5b6675;
  --text-light: #9aa5b5;
  --white: #ffffff;
  --line: #e3e8ef;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 46, 89, 0.08);
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  line-height: 1.7;
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(11, 46, 89, 0.10); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 38px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; color: var(--primary); letter-spacing: 2px; }
.brand-text small { font-size: 10px; color: var(--text-light); letter-spacing: 2px; }

.main-nav { display: flex; gap: 26px; }
.main-nav a {
  font-size: 15px;
  color: var(--text-sub);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }

.lang-switch { display: flex; align-items: center; gap: 5px; margin-left: 10px; flex-shrink: 0; }
.lang-btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  padding: 4px 5px;
  border-radius: 4px;
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--primary); }
.lang-btn.is-active { color: var(--accent); font-weight: 700; }
.lang-sep { color: var(--text-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--primary); transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 150px;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #0b2e59;
  transform: scale(1.05);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 46, 89, 0.94), rgba(9, 32, 62, 0.78));
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner { position: relative; z-index: 2; max-width: 800px; }

.hero-tag {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 3px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 30px;
  margin-bottom: 28px;
}
.hero-title { font-size: 58px; font-weight: 700; line-height: 1.25; margin-bottom: 24px; }
.hero-title .accent { color: var(--accent); }
.hero-desc { font-size: 17px; color: rgba(255,255,255,0.88); max-width: 640px; margin-bottom: 40px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,118,44,0.35); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  transform: translateX(-50%);
}
.hero-scroll::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDown 1.6s infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 6px; }
  60% { opacity: 0.4; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- 统计条 ---------- */
.stats { background: var(--primary); color: var(--white); padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-value { font-size: 40px; font-weight: 700; }
.stat-value small { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.7); }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 6px; }

/* ---------- 通用板块 ---------- */
.section { padding: 90px 0; }
.section-gray { background: var(--bg-light); }
.section-dark {
  background: linear-gradient(160deg, var(--primary), #0a2446);
  color: var(--white);
}

.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.section-title { font-size: 34px; color: var(--primary); margin-bottom: 12px; }
.section-sub { color: var(--text-sub); font-size: 15px; }

.section-head.light .section-title { color: var(--white); }
.section-head.light .section-sub { color: rgba(255,255,255,0.7); }

/* ---------- 集团简介 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.about-text p { margin-bottom: 16px; color: var(--text-sub); font-size: 15px; }
.about-points { margin-top: 20px; }
.about-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 15px;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.about-base { display: flex; flex-direction: column; gap: 18px; }
.base-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 26px;
  box-shadow: var(--shadow);
}
.base-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--white);
  background: var(--primary);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.base-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.base-card p { font-size: 14px; color: var(--text-sub); }

/* ---------- 核心优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.adv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.adv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.adv-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.adv-card h3 { font-size: 19px; color: var(--primary); margin-bottom: 10px; }
.adv-card p { font-size: 14px; color: var(--text-sub); }

/* ---------- 特点卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 118, 44, 0.12);
  color: var(--accent);
  font-size: 19px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; color: var(--primary); margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--text-sub); }

/* ---------- 产品与服务 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prod-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prod-figure { padding: 16px; background: var(--white); }
.prod-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}
.prod-card h3 { font-size: 18px; color: var(--primary); padding: 16px 22px 6px; }
.prod-card p { font-size: 14px; color: var(--text-sub); padding: 0 22px 24px; }

/* ---------- 制造流程 ---------- */
.process { text-align: center; }
.process-title { font-size: 24px; color: var(--primary); margin-bottom: 36px; }
.process-steps { display: flex; justify-content: space-between; gap: 16px; }
.step { flex: 1; position: relative; }
.step::after {
  content: "";
  position: absolute;
  top: 26px; left: 60%;
  width: 80%;
  border-top: 2px dashed #c8d2e0;
}
.step:last-child::after { display: none; }
.step-num {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step-name { font-size: 14px; color: var(--text-main); font-weight: 500; }

/* ---------- 业务模式 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.biz-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.biz-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.biz-num {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
}
.biz-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 10px; }
.biz-card p { font-size: 13.5px; color: var(--text-sub); }

/* ---------- 制造能力 ---------- */
.cap-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow); }
.cap-image img { width: 100%; max-height: 380px; object-fit: cover; }

.equip-table-wrap { overflow-x: auto; border-radius: var(--radius); }
.equip-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.04);
  font-size: 14px;
  min-width: 760px;
}
.equip-table th, .equip-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}
.equip-table thead th {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 1px;
}
.equip-table tr.eq-group td {
  background: rgba(232, 118, 44, 0.14);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
}
.equip-table tbody tr:hover td { background: rgba(255,255,255,0.05); }
.equip-note { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.45); text-align: right; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 46, 89, 0.08);
  color: var(--primary);
  border-radius: 10px;
  font-size: 17px;
}
.contact-label { font-size: 12px; color: var(--text-light); }
.contact-value { font-size: 15px; color: var(--text-main); font-weight: 500; }
.contact-img { width: 100%; border-radius: var(--radius); margin-top: 10px; object-fit: cover; max-height: 220px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; color: var(--text-main); margin-bottom: 6px; font-weight: 500; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  transition: border-color 0.2s;
  background: var(--bg-light);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.form-note { margin-top: 12px; font-size: 12px; color: var(--text-light); text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer { background: #081e3a; color: rgba(255,255,255,0.8); padding: 50px 0 30px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer-logo { width: 200px; margin: 0 auto; }
.footer-brand strong { font-size: 24px; letter-spacing: 3px; color: var(--white); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.footer-nav { display: flex; gap: 26px; font-size: 14px; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 14px; }
}

@media (max-width: 960px) {
  .hero-title { font-size: 42px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { flex-wrap: wrap; }
  .step { flex: 1 1 30%; margin-bottom: 20px; }
  .step::after { display: none; }

  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 20px 28px 28px;
    gap: 18px;
    box-shadow: 0 12px 30px rgba(11,46,89,0.12);
    transform: translateY(-140%);
    transition: transform 0.3s;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { transform: translateY(0); }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .hero { padding: 160px 0 120px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  .card-grid, .prod-grid, .about-base, .biz-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 32px; }
  .contact-form { padding: 24px 18px; }
  .brand-text small { display: none; }
}

/* ================= 打印样式（导出 PDF / 客户版） ================= */
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* 隐藏网页交互元素 */
  .site-header,
  .lang-switch,
  .nav-toggle,
  .hero-scroll,
  .contact-form,
  .form-row { display: none !important; }

  body { padding: 0; margin: 0; }

  /* Hero 作为封面，避免超高 */
  .hero { padding: 90px 0 70px; }

  /* 各栏目尽量保持在同一页，不裁切 */
  .section, .stats, .site-footer { break-inside: avoid; page-break-inside: avoid; }
  .card-grid, .adv-grid, .prod-grid, .about-grid, .biz-grid { break-inside: avoid; }

  /* 设备表允许跨页，但表头重复 */
  .equip-table thead { display: table-header-group; }
  .equip-table tr { break-inside: avoid; page-break-inside: avoid; }
}
