/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #0f172a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 跳过导航链接（可访问性） ===== */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1e3a8a;
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 0;
}

/* ===== 导航栏 ===== */
.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1e4a8b;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 70%;
}

/* ===== 下拉菜单（桌面） ===== */
.dropdown {
  position: relative;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 14rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1rem;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 50;
  padding: 0.5rem;
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: #1e293b;
  border-radius: 0.5rem;
  transition: background 0.15s;
  font-weight: 500;
  text-decoration: none;
}

.dropdown-item:hover {
  background: #eef2ff;
  color: #1e40af;
}

/* ===== 移动端抽屉菜单 ===== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: white;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.drawer-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  transition: background 0.2s;
  cursor: pointer;
}

.drawer-close:hover {
  background: #e2e8f0;
}

.drawer-nav {
  padding: 1rem 0;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid #f8fafc;
}

.drawer-nav-item:hover {
  background: #f8fafc;
}

.drawer-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: #1e293b;
  background: none;
  border: none;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
}

.drawer-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fafafa;
}

.drawer-submenu.active {
  max-height: 300px;
}

.drawer-submenu a {
  display: block;
  padding: 0.8rem 1.5rem 0.8rem 3rem;
  font-size: 0.9rem;
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.drawer-submenu a:hover {
  background: #f1f5f9;
}

.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid #f1f5f9;
  margin-top: 0.5rem;
}

.drawer-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e40af;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1rem;
}

/* ===== 通用按钮样式 ===== */
.btn-primary {
  background: #1e40af;
  color: white;
  padding: 14px 36px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s;
  box-shadow: 0 8px 20px -6px rgba(30, 64, 175, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 14px 25px -8px rgba(30, 64, 175, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  padding: 14px 36px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: #1e40af;
  color: #1e40af;
  background: #f8fafc;
}

/* ===== 通用节目标签 ===== */
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #eef2ff;
  color: #1e40af;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* ===== 页头/页脚挂载位占位，避免注入后整页跳动 ===== */
#global-header {
  min-height: 4rem;
}

@media (min-width: 768px) {
  #global-header {
    min-height: 5rem;
  }
}

/* ===== 当前页高亮 ===== */
.nav-link.is-active {
  color: #1d4ed8;
}

.nav-link.is-active::after {
  width: 70%;
}

.dropdown button.is-active {
  color: #1d4ed8;
  position: relative;
}

.dropdown button.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 70%;
  height: 2px;
  transform: translateX(-50%);
  background: #1e4a8b;
  border-radius: 2px;
}

.dropdown-item.is-active {
  background: #eef2ff;
  color: #1e40af;
}

.drawer-nav-item.is-active,
.drawer-submenu a.is-active {
  color: #1d4ed8;
  background: #eff6ff;
}

/* ===== 键盘焦点可见，鼠标点击不显示 ===== */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 尊重「减少动态效果」系统设置 ===== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .brand-scroll {
    animation: none !important;
  }
}

/* ===== 图片不撑破容器 ===== */
img {
  max-width: 100%;
}

/* ===== 打印时隐藏导航与浮动客服 ===== */
@media print {

  header,
  .floating-cs-wrapper,
  cta-consult-form,
  #global-header {
    display: none !important;
  }
}