/* xzjq 主题公共样式：统一头部导航与页脚（各子页共用）
   类名以 components/header.html、footer.html 为准：
   .topline / header / .nav / .brand / .brand-logo / .nav-links / .nav-contact / .nav-dropdown / .nav-submenu / .crumb / footer / .footer-inner */

:root {
  --ink: #102343;
  --blue: #176de0;
  --teal: #00aaa9;
  --muted: #63748d;
  --line: #dce7f4;
  --paper: #f4f8ff;
}

* { box-sizing: border-box; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

/* ============ 顶部 ============ */
.topline {
  height: 5px;
  background: linear-gradient(90deg, #00c5b8 0%, #1268dc 53%, #3821bf 88%, #ffd33f 88%);
}

header {
  height: 82px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(16, 31, 59, 0.1);
  background: rgba(255, 255, 255, 0.96);
  position: relative;
  z-index: 50;
  box-shadow: 0 8px 28px rgba(18, 48, 93, 0.055);
}

.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.04em; }
.brand-logo {
  display: block;
  width: 205px;
  height: 62px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  color: #475968;
  font-size: 13px;
  white-space: nowrap;
}
.nav-links a { position: relative; padding: 9px 0; transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }
/* 当前页选中效果：青色文字 + 底部渐变条（悬停同样式） */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transition: right 0.22s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--teal); font-weight: 600; }

.nav-contact { color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 0.03em; }
.nav-contact span { color: var(--teal); margin-right: 9px; }

/* AI算法下拉子菜单 */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-submenu {
  display: none;
  position: absolute;
  z-index: 60;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  min-width: 148px;
  padding: 7px;
  border: 1px solid #dce7f4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(20, 50, 90, 0.16);
}
.nav-submenu a {
  display: block;
  padding: 11px 14px;
  border-radius: 6px;
  color: #203a60;
  font-size: 13px;
  white-space: nowrap;
}
.nav-submenu a:hover,
.nav-submenu a:focus-visible { background: #eff6ff; color: #176de0; }
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu { display: block; }

/* 面包屑 */
.crumb { padding: 17px 0; color: #8291a6; font-size: 13px; }
.crumb a { color: var(--blue); }

/* ============ 页脚 ============ */
footer { padding: 25px 0; background: #11294d; color: #dce8fa; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.footer-inner strong { color: #eaf0eb; font-size: 14px; }
.footer-inner span { opacity: 0.75; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .wrap { width: min(100% - 40px, 1200px); }
  .nav-links { gap: 12px; font-size: 12px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  header { height: 68px; }
  .nav-links { display: none; }
  .nav-contact { font-size: 11px; }
  .brand-logo { width: 175px; height: 54px; }
  .footer-inner { flex-direction: column; line-height: 2; text-align: center; }
}

