/* ============================================================
   CSS RESET & VARIABLES — 全站公共
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1A3A6B;
  --navy2:   #0D2550;
  --navy3:   #0A1E40;
  --navy4:   #071833;
  --blue:    #29A9E1;
  --blue2:   #1B8DC0;
  --blue3:   #67C8EF;
  --orange:  #F47920;
  --orange2: #D4651A;
  --orange3: #FFB366;
  --white:   #FFFFFF;
  --offwhite:#F5F7FA;
  --gray:    #F0F2F5;
  --text:    #1A2236;
  --muted:   #6B7A90;
  --border:  rgba(26,58,107,0.10);
  --shadow:  0 8px 40px rgba(26,58,107,0.13);
  --radius:  14px;
  --nav-h:   72px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
  color: var(--text); background: #fff; overflow-x: hidden;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ============================================================
   NAVIGATION — 全站统一导航栏
============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(4%, 32px);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: all 0.4s;
}
#navbar.scrolled { box-shadow: 0 4px 28px rgba(26,58,107,0.11); }
#navbar.on-banner { background: transparent; border-bottom-color: transparent; }
#navbar.on-banner.scrolled { background: rgba(255,255,255,0.97); border-bottom-color: var(--border); }

.nav-logo { display: flex; align-items: center; height: 100%; margin-left: 12%; }
.nav-logo img { height: 44px; width: auto; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 8px; margin-right: 8%; }
.nav-links a {
  padding: 8px 18px; border-radius: 6px;
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: all 0.2s; white-space: nowrap;
}
#navbar.on-banner .nav-links a { color: rgba(255,255,255,0.85); }
#navbar.on-banner .nav-links a:hover,
#navbar.on-banner .nav-links a.active { color: #fff; background: rgba(255,255,255,0.12); font-weight: 600; }
#navbar.on-banner.scrolled .nav-links a { color: var(--text); }
#navbar.on-banner.scrolled .nav-links a:hover,
#navbar.on-banner.scrolled .nav-links a.active { color: var(--navy); background: var(--gray); }
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active { color: var(--navy); background: var(--gray); font-weight: 600; }

.nav-links a.nav-cta {
  background: var(--orange); color: #fff !important;
  border-radius: 24px; padding: 9px 22px; font-weight: 600;
  box-shadow: 0 3px 12px rgba(244,121,32,0.35);
  transition: all 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--orange2); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(244,121,32,0.45); }

.nav-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.3s; }
#navbar.on-banner .nav-hamburger span { background: #fff; }

.nav-mobile-drawer {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: white; z-index: 8999;
  flex-direction: column; padding: 16px 4% 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.nav-mobile-drawer.open { display: flex; }
.nav-mobile-drawer a { padding: 12px 16px; font-size: 16px; font-weight: 500; border-radius: 8px; color: var(--text); }
.nav-mobile-drawer a:hover { background: var(--gray); }
.nav-mobile-drawer a.nav-cta { background: var(--orange); color: white !important; text-align: center; margin-top: 8px; border-radius: 10px; }

/* ============================================================
   FOOTER — 全站统一页脚
============================================================ */
footer { background: var(--navy3); }
.footer-main {
  max-width: 1240px; margin: 0 auto;
  padding: 48px 4% 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 38px; opacity: 0.95; border-radius: 4px; }
.footer-logo-name { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 0.03em; }
.footer-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-nav a { padding: 6px 14px; font-size: 14px; color: rgba(255,255,255,0.6); border-radius: 6px; transition: all 0.2s; }
.footer-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.footer-bottom {
  max-width: 1240px; margin: 0 auto;
  padding: 28px 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-bottom-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.footer-copy { font-size: 14px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.footer-slogan { font-size: 14px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.footer-slogan em { font-style: normal; color: rgba(244,121,32,0.7); }

/* ---- 备案信息（单独一行，居中展示） ---- */
.footer-beian-inline {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 8px 24px;
}
.footer-beian-inline a {
  font-size: 14px; color: rgba(255,255,255,0.32);
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.footer-beian-inline a:hover { color: rgba(255,255,255,0.55); }
.footer-beian-sep { font-size: 14px; color: rgba(255,255,255,0.15); margin: 0 2px; }

.footer-simple { padding: 32px 5% 16px; text-align: center; }
.footer-simple .footer-copy { font-size: 14px; color: rgba(255,255,255,0.35); }
.footer-simple .footer-beian-inline {
  margin-top: 8px; justify-content: center;
}

@media (max-width: 768px) {
  .footer-bottom-top {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .footer-beian-sep { display: none; }
}

/* ============================================================
   ANIMATION — 全站通用动画
============================================================ */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   RESPONSIVE — 全站导航响应式
============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

/* ============================================================
   BREADCRUMB — 面包屑导航 (SEO)
============================================================ */
.breadcrumb {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 40px; font-size: 13px;
  background: #FAFBFD;
  border-bottom: 1px solid rgba(26,58,107,0.06);
}
.breadcrumb ol {
  list-style: none; display: flex; gap: 8px; align-items: center;
  margin: 0; padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumb li::after { content: '/'; color: #CBD5E1; }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a { color: var(--blue2); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { font-weight: 600; color: var(--navy); }
@media (max-width: 768px) {
  .breadcrumb { padding: 12px 24px; }
}
