/* ============================================================
   宁波伊诺面板有限公司 官网样式
   主色：工业蓝  #0e4d92   强调：#e8552f
   ============================================================ */
:root {
  --blue: #0e4d92;
  --blue-dark: #082f5c;
  --blue-light: #eaf1f9;
  --accent: #e8552f;
  --text: #2b2f36;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(14, 77, 146, .10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 47, 92, .92);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, #1a6fc4, #0e4d92);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,.35);
}
.brand-name { line-height: 1.25; }
.brand-name .cn { font-size: 17px; font-weight: 600; display: block; }
.brand-name .en { font-size: 10.5px; opacity: .75; letter-spacing: .5px; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.85); font-size: 15px;
  padding: 8px 14px; border-radius: 6px; transition: all .25s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 8px; width: 24px; height: 2px;
  background: #fff; transition: all .3s;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- 首屏 ---------- */
.hero {
  min-height: 88vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(8, 32, 62, .93) 0%, rgba(10, 45, 88, .82) 45%, rgba(10, 45, 88, .55) 100%),
    url("../img/hero-bg.jpg") center 38% / cover no-repeat;
  color: #fff;
  padding: 140px 0 100px;
}
.hero-content { max-width: 760px; }
.hero-tag {
  display: inline-block; font-size: 14px; letter-spacing: 2px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  padding: 5px 18px; margin-bottom: 26px; color: rgba(255,255,255,.92);
}
.hero h1 { font-size: 46px; font-weight: 700; line-height: 1.3; letter-spacing: 1px; }
.hero h1 .hl { color: #ffb469; }
.hero-sub {
  margin-top: 20px; font-size: 18px; color: rgba(255,255,255,.85);
  font-weight: 300; letter-spacing: .5px;
}
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 34px; border-radius: 8px;
  font-size: 16px; transition: all .25s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d14518; transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-stats {
  margin-top: 64px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 700px;
}
.stat .num { font-size: 30px; font-weight: 700; color: #ffb469; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 14px; font-weight: 400; margin-left: 2px; }
.stat .label { font-size: 13.5px; color: rgba(255,255,255,.78); margin-top: 2px; }

/* ---------- 通用区块 ---------- */
section.block { padding: 96px 0; }
section.block.gray { background: var(--bg-gray); }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .en {
  font-size: 13px; letter-spacing: 3px; color: var(--accent);
  text-transform: uppercase; font-weight: 600;
}
.sec-head h2 { font-size: 34px; color: var(--blue-dark); margin-top: 8px; letter-spacing: 1px; }
.sec-head .bar { width: 52px; height: 4px; background: var(--accent); margin: 18px auto 0; border-radius: 2px; }

/* ---------- 公司简介 ---------- */
.about-grid { max-width: 900px; margin: 0 auto; }
.about-text p { margin-bottom: 18px; text-align: justify; color: #3a3f47; font-size: 16.5px; }
.about-text .motto {
  border-left: 4px solid var(--accent); background: var(--blue-light);
  padding: 16px 20px; border-radius: 0 8px 8px 0;
  color: var(--blue-dark); font-weight: 600; font-size: 16.5px;
}

/* ---------- 合作案例 ---------- */
.brand-wall {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 56px;
}
.brand-chip {
  background: #fff; border: 1px solid #e3e9f1; border-radius: 8px;
  padding: 18px 8px; text-align: center;
  font-size: 16px; font-weight: 600; color: var(--blue-dark);
  transition: all .25s; letter-spacing: 1px;
}
.brand-chip small { display: block; font-size: 11px; color: var(--text-light); font-weight: 400; letter-spacing: .3px; margin-top: 2px; }
.brand-chip:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.case-note { text-align: center; color: var(--text-light); font-size: 14.5px; margin-top: -34px; margin-bottom: 40px; }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case-item {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07); transition: all .3s;
}
.case-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
/* 产品图完整显示：方形格子 + contain，不裁剪（圆形产品保持完整） */
.case-item .ph { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.case-item .ph img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 组织架构 ---------- */
.org-wrap { overflow-x: auto; padding-bottom: 8px; }
.org-svg { min-width: 980px; margin: 0 auto; display: block; }

/* ---------- 设备展示 ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.equip-item {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07); transition: all .3s;
}
.equip-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.equip-item .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.equip-item .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.equip-item:hover .ph img { transform: scale(1.04); }
.equip-item .cap { padding: 14px 16px; text-align: center; }
.equip-item .cap b { display: block; font-size: 16px; color: var(--blue-dark); }
.equip-item .cap span { font-size: 13px; color: var(--text-light); }
.equip-item:last-child:nth-child(3n+1) { grid-column: 2; }  /* 10张图时末行单卡居中 */
.equip-more { margin-top: 36px; text-align: center; color: var(--text-light); font-size: 14.5px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07); text-align: center; transition: all .3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .ico {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.contact-card h3 { font-size: 16px; color: var(--blue-dark); margin-bottom: 6px; }
.contact-card p { font-size: 15px; color: #3a3f47; word-break: break-all; }
.contact-card p a, .contact-card p * { font-size: inherit; color: inherit; text-decoration: none; }  /* 防号码被自动识别为链接后字号变色 */
a.contact-card { display: block; color: inherit; }
.map-tip { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--blue); border-bottom: 1px dashed rgba(14,77,146,.4); padding-bottom: 1px; }
.contact-strip {
  margin-top: 40px; background: var(--blue-dark); color: #fff;
  border-radius: var(--radius); padding: 26px 34px;
  display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center;
  font-size: 15px; align-items: center;
}
.contact-strip b { color: #ffb469; margin-right: 6px; font-weight: 600; }

/* ---------- 页脚 ---------- */
footer {
  background: #071e3a; color: rgba(255,255,255,.65);
  padding: 40px 0 30px; font-size: 14px; text-align: center;
}
footer .f-name { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
footer .f-links { margin: 14px 0; }
footer .f-links a { color: rgba(255,255,255,.65); margin: 0 12px; }
footer .f-links a:hover { color: #fff; }
footer .beian { margin-top: 12px; font-size: 13px; }
footer .beian a { color: rgba(255,255,255,.65); }
footer .beian a:hover { color: #fff; }

/* ---------- 渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 34px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  section.block { padding: 72px 0; }
  .sec-head h2 { font-size: 27px; }
}
@media (max-width: 700px) {
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(8, 47, 92, .98); flex-direction: column;
    padding: 12px 20px 20px; gap: 4px;
    transform: translateY(-130%); transition: transform .3s;
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
  .hero { min-height: 78vh; padding: 120px 0 70px; }
  .hero h1 { font-size: 27px; }
  .hero-sub { font-size: 15.5px; }
  .stat .num { font-size: 24px; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .equip-grid { grid-template-columns: 1fr; }
}
