/* =============================================
   德职通官网 · 共享样式
   v2.0 · 多页面版
   ============================================= */

/* ——— CSS 变量 ——— */
:root {
  --navy:   #0d1f3c;
  --navy2:  #1a3a6b;
  --gold:   #c9a84c;
  --gold2:  #e8c96a;
  --red:    #b22222;
  --white:  #ffffff;
  --gray50: #f8fafc;
  --gray100:#f1f5f9;
  --gray200:#e2e8f0;
  --gray400:#94a3b8;
  --gray600:#475569;
  --gray800:#1e293b;
  --font:   'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --serif:  'Noto Serif SC', 'SimSun', serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.12);
  --nav-h:  72px;
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--gray800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ——— Utilities ——— */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header.light .section-title,
.section-header.light .section-desc { color: var(--white); }
.section-header.light .section-eyebrow { color: var(--gold2); }
.section-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-family: var(--serif); font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 16px; }
.section-desc { font-size: 1.05rem; color: var(--gray600); max-width: 640px; margin: 0 auto; }
.sub-title { font-size: 1.3rem; font-family: var(--serif); font-weight: 700; color: var(--navy); margin-bottom: 36px; }
.sub-title.light { color: var(--white); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 8px; font-size: .95rem;
  font-weight: 600; cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8870a);
  color: var(--navy);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy2); transform: translateY(-2px); }
.btn-full { width: 100%; }

/* ——— NAVBAR ——— */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(13,31,60,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,.2);
  transition: background var(--transition);
}
.navbar.scrolled {
  background: rgba(13,31,60,.98);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  font-family: var(--serif);
}
.nav-logo-sub {
  font-size: .65rem;
  color: var(--gold);
  letter-spacing: .08em;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links li a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--white); background: rgba(201,168,76,.18); }
.nav-links li a.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  padding: 8px 20px;
}
.nav-links li a.nav-cta:hover {
  background: var(--gold2);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ——— FOOTER ——— */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .footer-logo img {
  height: 40px;
  width: auto;
}
.footer-logo-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--serif);
}
.footer-brand p { font-size: .9rem; line-height: 1.8; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.fl-col h5 { color: var(--white); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.fl-col ul li { margin-bottom: 10px; font-size: .88rem; }
.fl-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
}
.beian-items { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.beian-link { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.55); transition: var(--transition); }
.beian-link:hover { color: var(--gold); }
.beian-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ——— SCROLL REVEAL ——— */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* --- Section background layers (must sit behind content) --- */
.page-hero-bg,
.section-bg-layer { z-index: -1; }

/* ——— RESPONSIVE ——— */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13,31,60,.98);
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(201,168,76,.2);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { border-radius: 8px; padding: 12px 16px; font-size: 1rem; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
}
