/* ========== Site ambient background ========== */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(13, 148, 136, 0.1), transparent 60%),
    radial-gradient(780px 480px at 92% 8%, rgba(2, 132, 199, 0.08), transparent 55%),
    radial-gradient(700px 500px at 70% 100%, rgba(13, 148, 136, 0.05), transparent 50%),
    linear-gradient(180deg, #fbfcfe 0%, var(--surface) 42%, #f2f6fa 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(251, 252, 254, 0.82);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(7, 19, 31, 0.035);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, #1e3a55, #0d9488);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  box-shadow: 0 6px 16px rgba(11, 31, 51, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink-900);
  background: rgba(11, 31, 51, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-switch {
  position: relative;
}

.company-switch select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  max-width: 220px;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.7)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d4f6f' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-800);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.7);
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-900);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink-900);
}

.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}

/* ========== Shared sections / contact ========== */
.section {
  padding: 112px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(236, 242, 247, 0.72));
}

.section-head-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px 48px;
  align-items: end;
  max-width: none;
  margin-bottom: 52px;
}

.section-head-row .section-lead {
  margin: 0;
  max-width: 520px;
  justify-self: end;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: var(--tracking-tight);
  color: var(--text-secondary);
}

.section-head-row h2 {
  margin-top: 12px;
}

.contact-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(36px, 5vw, 52px);
  background:
    radial-gradient(520px 240px at 92% 0%, rgba(13, 148, 136, 0.12), transparent 55%),
    linear-gradient(145deg, #f7fbfc 0%, #eef5f8 48%, #e8f4f1 100%);
  color: var(--ink-900);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 600;
  letter-spacing: var(--tracking-cn);
  line-height: 1.35;
  max-width: 560px;
  color: var(--ink-950);
}

.contact-band p {
  margin-top: 12px;
  max-width: 520px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: var(--tracking-tight);
}

.contact-band p strong {
  color: var(--ink-800);
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.contact-phone {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 4px;
}

.contact-phone span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-phone strong {
  font-family: var(--font-latin);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  color: var(--ink-900);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.nav-email {
  display: none;
}

@media (min-width: 1100px) {
  .nav-email {
    display: inline-flex;
  }
}

.contact-band .btn-ghost {
  color: var(--ink-900);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.72);
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
}

.contact-mail {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-800);
  word-break: break-all;
}

.contact-mail:hover {
  color: var(--accent-strong);
}

@media (max-width: 860px) {
  .section-head-row {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
  }

  .section-head-row .section-lead {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }
}

/* ========== Footer ========== */
.site-footer {
  margin-top: 24px;
  padding: 64px 0 36px;
  background: linear-gradient(180deg, transparent, rgba(11, 31, 51, 0.028));
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .brand-mark {
  margin-bottom: 16px;
}

.footer-brand h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: var(--tracking-cn);
  line-height: 1.45;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 340px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: var(--tracking-tight);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer-col h4 {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--accent-strong);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-item .label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-contact-item strong,
.footer-contact-item a {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-800);
}

.footer-contact-item a:hover {
  color: var(--accent-strong);
}

.footer-contact-item .addr {
  margin: 0;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 12px 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.footer-beian a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-beian a:hover {
  color: var(--ink-800);
}

.footer-police {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-police img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========== Mobile nav ========== */
@media (max-width: 920px) {
  .nav-links,
  .company-switch {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .company-switch {
    display: flex;
  }

  .site-header.is-open {
    background: rgba(251, 252, 254, 0.97);
    backdrop-filter: var(--header-blur);
  }

  .site-header.is-open .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 0 18px;
  }

  .site-header.is-open .nav-links {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 12px;
  }

  .site-header.is-open .company-switch {
    order: 4;
    width: 100%;
  }

  .site-header.is-open .company-switch select {
    width: 100%;
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
