/* ============================================================
   网站1 头部精简样式：大图压题 + 滑动导航（对标网站2）
   仅作用于顶部辅助栏 / 导航 / Hero大图 / 抽屉菜单，
   不设置 body 等全局规则，不影响网站1原有主体内容样式
   ============================================================ */
:root {
  --nav-blue: #1A4F8B;
  --nav-blue-dark: #103A66;
  --nav-blue-light: #2E6DB5;
  --radius: 6px;
  --header-height: 64px;
  --header-total: 100px; /* 顶部辅助栏36px + 导航栏64px */
}

/* 顶部辅助链接 */
.top-bar {
  background-color: transparent;
  color: #fff;
  font-size: 0.8125rem;
  position: relative;
  z-index: 1001;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 36px;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.top-bar a {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}
.top-bar a:hover { color: #fff; text-decoration: underline; }

/* 主导航：初始全透明压在大图上，滚动后渐变蓝底 + 毛玻璃 */
.site-header {
  background: transparent;
  color: #fff;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(26, 79, 139, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(10, 42, 90, 0.30);
}
.site-header:not(.scrolled) .brand-text h1,
.site-header:not(.scrolled) .brand-text span {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text h1 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}
.brand-text span {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.9375rem;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.42); }
.menu-btn-icon { font-size: 1.1rem; line-height: 1; }

/* 横向导航（桌面端 >=1025px 显示；手机/平板隐藏，改用抽屉） */
.main-nav { display: none; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  position: relative;
  display: block;
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  white-space: nowrap;
  text-decoration: none;
}
.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: #fff; background-color: rgba(255, 255, 255, 0.12); }
.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after { transform: scaleX(1); }
.nav-menu .arrow { font-size: 0.72rem; margin-left: 2px; color: rgba(255, 255, 255, 0.7); }

/* 二级下拉：悬停展开 */
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  background: var(--nav-blue-dark);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 24px rgba(10, 42, 90, 0.30);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1100;
}
.nav-menu > li.has-sub:hover .nav-sub,
.nav-menu > li.has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub li { list-style: none; }
.nav-sub a {
  display: block;
  padding: 9px 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-sub a:hover { background: var(--nav-blue-light); color: #fff; }
@media (min-width: 1025px) {
  .main-nav { display: block; margin-left: auto; }
  .menu-btn { display: none; }
}

/* 遮罩层 */
.nav-mask {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 51, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 1200;
}
.nav-mask.open { opacity: 1; visibility: visible; }

/* 右侧滑出抽屉 */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 88vw;
  background: linear-gradient(165deg, var(--nav-blue) 0%, var(--nav-blue-dark) 65%);
  color: #fff;
  z-index: 1300;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.30);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.drawer-title { font-size: 1.125rem; font-weight: 700; letter-spacing: 1px; }
.drawer-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.drawer-close:hover { color: #fff; }

.drawer-search { display: flex; gap: 8px; padding: 16px 24px; }
.drawer-search input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  outline: none;
  font-size: 0.875rem;
}
.drawer-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.drawer-search button {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.drawer-search button:hover { background: rgba(255, 255, 255, 0.30); }

.drawer-menu { list-style: none; padding: 8px 16px 24px; margin: 0; }
.drawer-menu > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 15px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.drawer-menu > li > a:hover,
.drawer-menu > li.active > a { background: rgba(255, 255, 255, 0.10); color: #fff; }
.drawer-menu .arrow { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); transition: transform 0.3s ease; }
.drawer-menu .has-sub.open > a .arrow { transform: rotate(180deg); }

.drawer-sub { display: none; list-style: none; padding: 6px 0 6px 18px; margin: 0; }
.drawer-sub a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  padding: 10px 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.drawer-sub a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-left-color: #fff; }

/* Hero 大图压题：铺满整个首屏（100% 视口），cover 不变形 */
.hero {
  position: relative;
  height: calc(100vh + var(--header-total));
  margin-top: calc(-1 * var(--header-total));
  overflow: hidden;
  background: var(--nav-blue-dark);
  z-index: 0;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
/* 顶部轻微遮罩，统一明暗，保证白色文字可读 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 42, 90, 0.18), rgba(10, 42, 90, 0.38));
  pointer-events: none;
}
/* 轮播指示圆点 */
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
.hero-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.hero-dots .dot.active { background: #fff; transform: scale(1.25); }

/* 响应式 */
@media (max-width: 768px) {
  :root { --header-height: 56px; --header-total: 56px; }
  .top-bar { display: none; }
  .drawer { width: 100%; max-width: 100%; }
  .brand-text h1 { font-size: 1.125rem; }
  .brand-text span { font-size: 0.625rem; }
  .hero { height: calc(100vh + 56px); margin-top: -56px; }
}
@media (max-width: 359px) {
  .brand-text h1 { font-size: 0.9375rem; letter-spacing: 1px; }
  .brand-text span { display: none; }
  .menu-btn { padding: 6px 12px; font-size: 0.8125rem; }
}

/* ============================================================
   服务卡片区块（对标网站2：车辆通行申请等四个服务）
   ============================================================ */
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 {
  font-size: 1.75rem;
  color: #1A4F8B;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding: 0 16px;
}
.section-title h2::before,
.section-title h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1A4F8B);
}
.section-title h2::before { right: 100%; }
.section-title h2::after { left: 100%; background: linear-gradient(90deg, #1A4F8B, transparent); }
.section-title p {
  color: #5A6B80;
  font-size: 0.875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

.services-section { padding: 48px 0 60px; background: #F4F7FB; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16, 42, 74, 0.08);
  padding: 28px 22px 22px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid #1A4F8B;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 6px 16px rgba(16, 42, 74, 0.14); }
.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(26, 79, 139, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A4F8B;
}
.service-icon svg { width: 32px; height: 32px; stroke-width: 1.8; }
.service-card h3 { font-size: 1.125rem; color: #2D3748; margin-bottom: 8px; }
.service-card p.desc { font-size: 0.8125rem; color: #5A6B80; min-height: 38px; margin-bottom: 12px; line-height: 1.5; }
.service-phones { font-size: 0.75rem; color: #5A6B80; line-height: 1.8; margin-bottom: 16px; text-align: left; padding-left: 8px; }
.btn-detail {
  display: inline-block;
  padding: 7px 20px;
  background-color: #1A4F8B;
  color: #fff;
  border-radius: 20px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn-detail:hover { background-color: #2E6DB5; }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-section { padding: 32px 0 40px; }
}
