.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: 86px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(77, 63, 163, .1);
  transition: height .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  height: 74px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 36px rgba(47, 36, 111, .12);
  backdrop-filter: saturate(160%) blur(16px);
}
.header-inner {
  width: min(1800px, calc(100% - 72px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand,
.yj-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  font-weight: 800;
  letter-spacing: 0;
}
.brand-logo-image {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.brand-logo-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.48);
}
.footer-logo .brand-logo-image {
  width: 68px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
}
.brand strong { display: block; font-size: 20px; letter-spacing: 0; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.main-nav,
.yj-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.nav-item > a {
  display: flex;
  align-items: center;
  height: 100%;
  color: #1f2430;
  font-size: 16px;
  white-space: nowrap;
}
.nav-underline {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-item:hover > a,
.nav-item.active > a { color: var(--primary); }
.nav-item:hover .nav-underline,
.nav-item.active .nav-underline { transform: scaleX(1); }
.dropdown {
  position: absolute;
  top: 86px;
  left: 50%;
  min-width: 210px;
  padding: 12px 0;
  background: rgba(255,255,255,.97);
  border-top: 3px solid var(--primary);
  box-shadow: 0 20px 60px rgba(31,36,48,.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .22s ease, transform .22s ease;
}
.site-header.is-scrolled .dropdown { top: 74px; }
.dropdown a {
  display: block;
  padding: 12px 24px;
  color: #3f4654;
  font-size: 14px;
  transition: color .2s ease, background .2s ease, padding .2s ease;
}
.dropdown a:hover {
  color: var(--primary);
  background: #f2f6ff;
  padding-left: 30px;
}
.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.header-actions,
.yj-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-deep);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}
.phone span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef2ff;
}
.search-button,
.nav-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(77,63,163,.16);
  border-radius: 50%;
  color: var(--primary-deep);
  background: #fff;
  cursor: pointer;
}
.nav-toggle { display: none; }
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  background: rgba(31, 36, 48, .62);
  backdrop-filter: blur(8px);
}
.search-modal.is-open { display: grid; }
.search-modal form {
  display: flex;
  width: min(680px, calc(100% - 40px));
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.22);
}
.search-modal input {
  flex: 1;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
  padding: 0 18px;
}
.search-modal form button {
  min-width: 110px;
  border: 0;
  border-radius: 0 8px 8px 0;
  color: #fff;
  background: var(--primary);
}
.search-close {
  position: absolute;
  top: 46px;
  right: 52px;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.search-close::before,
.search-close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  width: 28px;
  height: 2px;
  background: #fff;
}
.search-close::before { transform: rotate(45deg); }
.search-close::after { transform: rotate(-45deg); }

.site-footer {
  padding: 0;
  background: #222636;
  color: #fff;
}
.footer-top,
.footer-content,
.footer-bottom {
  width: min(1600px, calc(100% - 72px));
  margin: 0 auto;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 46px 0 34px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.footer-nav a { color: rgba(255,255,255,.82); }
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr .8fr 1fr;
  gap: 70px;
  padding: 46px 0 54px;
}
.footer-section h4 {
  margin: 0;
  color: rgba(255,255,255,.42);
  font-size: 13px;
  letter-spacing: 1px;
}
.footer-section h5 {
  margin: 8px 0 16px;
  font-size: 22px;
}
.footer-section hr {
  width: 42px;
  height: 3px;
  margin: 0 0 22px;
  border: 0;
  background: var(--primary);
}
.footer-section p {
  margin: 0 0 12px;
  color: rgba(255,255,255,.74);
  line-height: 1.8;
}
.qr-placeholder {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin-bottom: 12px;
  border: 8px solid #fff;
  color: var(--primary-deep);
  background: linear-gradient(135deg, #eef9ff, #fff);
  text-align: center;
  font-weight: 900;
}
.footer-message form { display: grid; gap: 12px; }
.footer-message textarea,
.footer-message input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
  color: #fff;
  background: rgba(255,255,255,.08);
  padding: 13px 14px;
}
.footer-message textarea { min-height: 96px; resize: vertical; }
.footer-message button {
  width: 150px;
  border: 0;
  padding: 13px 18px;
  color: #fff;
  background: var(--primary);
}
.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.56);
  font-size: 13px;
}
.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover { color: #fff; }

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: 240px 1fr auto; width: min(100% - 36px, 1800px); }
  .nav-item { padding: 0 8px; }
  .nav-item > a { font-size: 14px; }
}
@media (max-width: 980px) {
  .site-header, .site-header.is-scrolled { height: 72px; }
  .header-inner { grid-template-columns: auto auto; }
  .nav-toggle { display: grid; }
  .phone { display: none; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    height: auto;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 24px 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(31,36,48,.14);
  }
  .main-nav.is-open { display: block; }
  .nav-item { display: block; padding: 0; }
  .nav-item > a { height: auto; padding: 15px 0; }
  .nav-underline { display: none; }
  .dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 10px 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .dropdown a { padding: 9px 0; }
  .footer-top,
  .footer-content,
  .footer-bottom { width: min(100% - 32px, 1600px); }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 8px; }
}
@media (max-width: 560px) {
  .brand-mark { width: 44px; height: 44px; }
  .brand-logo-image { width: 48px; height: 48px; }
  .footer-logo .brand-logo-image { width: 62px; height: 56px; }
  .brand strong { font-size: 17px; }
  .brand small { display: none; }
  .search-button { display: none; }
}
