/* ============================================================
   SCD 西迪自动化 — layout.css  页头 / 导航 / 页脚 / 内页 banner
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h); z-index: 1000;
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-transparent { background: transparent; }
.site-header.is-solid { background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); box-shadow: 0 2px 20px rgba(10, 37, 64, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; max-width: 300px; object-fit: contain; transition: filter .35s; }
.site-header.is-transparent .brand img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 10px 16px; font-weight: 600; font-size: 15.5px; border-radius: 8px;
  color: var(--ink); transition: color .25s;
}
.site-header.is-transparent .nav a { color: rgba(255, 255, 255, .92); }
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a:hover, .nav a.active { color: var(--blue-600); }
.site-header.is-transparent .nav a:hover, .site-header.is-transparent .nav a.active { color: #fff; }

.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: .3s var(--ease); }
.site-header.is-transparent .nav-toggle span { background: #fff; }

/* ---------- 内页 Banner ---------- */
.page-banner {
  margin-top: 0; min-height: 340px; display: flex; align-items: center;
  background: var(--grad-deep); position: relative; overflow: hidden; color: #fff;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: url("../img/hero-bg.svg") center/cover no-repeat; opacity: .35; mix-blend-mode: screen;
}
.page-banner .container { position: relative; z-index: 2; padding-top: var(--header-h); }
.page-banner h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -1px; }
.page-banner .crumb { margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: 15px; }
.page-banner .crumb a:hover { color: #fff; }
.page-banner .lead { margin-top: 18px; max-width: 640px; color: rgba(255, 255, 255, .85); font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255, 255, 255, .72); padding: 72px 0 28px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 40px; max-width: 280px; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; font-weight: 700; }
.site-footer li { margin-bottom: 11px; font-size: 14.5px; }
.site-footer a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .ic { color: var(--blue-400); flex-shrink: 0; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .5);
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); right: 0; width: min(78vw, 320px);
    height: calc(100vh - var(--header-h)); background: rgba(255, 255, 255, .98); backdrop-filter: blur(14px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 18px;
    transform: translateX(110%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: var(--ink) !important; padding: 15px 14px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-cta { margin: 14px 0 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
