/* ============ 基础变量与重置 ============ */
:root{
  --navy:#0d2f52;
  --blue:#1657a0;
  --blue-l:#3b8ed6;
  --gold:#e3a63f;
  --bg:#f5f8fc;
  --line:#e3eaf3;
  --text:#1f2d3d;
  --muted:#5d7189;
  --header-h:68px;
  --radius:14px;
  --shadow:0 12px 32px rgba(13,47,82,.09);
}
*,*::before,*::after{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--header-h) + 8px);
  -webkit-text-size-adjust:100%;
}
body{
  margin:0;
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.75;
  font-size:16px;
  overflow-x:hidden;
}
h1,h2,h3,h4,p,figure{margin:0}
a{color:inherit}
img{max-width:100%;display:block}
button{font-family:inherit}

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 22px;
}

/* ============ 通用标题 ============ */
.section{padding:92px 0}
.section--alt{background:var(--bg)}
.section-head{max-width:720px;margin:0 auto 52px;text-align:center}
.eyebrow{
  font-size:12px;font-weight:800;letter-spacing:.22em;
  color:var(--gold);text-transform:uppercase;margin-bottom:10px;
}
.section-head h2{
  font-size:clamp(24px,3.2vw,34px);
  color:var(--navy);letter-spacing:.02em;margin-bottom:14px;line-height:1.35;
}
.section-head p{color:var(--muted);font-size:15px}

/* ============ 按钮 ============ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 30px;border-radius:999px;font-size:15px;font-weight:700;
  text-decoration:none;border:1.5px solid transparent;cursor:pointer;
  transition:transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn-primary{background:var(--gold);color:#3d2600}
.btn-primary:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(227,166,63,.42)}
.btn-ghost{border-color:rgba(255,255,255,.55);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.14);transform:translateY(-3px)}
.btn-outline{border-color:var(--blue);color:var(--blue);background:#fff}
.btn-outline:hover{background:var(--blue);color:#fff;transform:translateY(-3px)}

/* ============ 顶部导航 ============ */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:box-shadow .3s, border-color .3s;
}
.site-header.scrolled{box-shadow:0 8px 24px rgba(13,47,82,.08);border-color:var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:var(--header-h)}

.logo{display:flex;align-items:center;gap:12px;text-decoration:none}
.logo-mark{
  width:42px;height:42px;flex:0 0 42px;border-radius:12px;
  background:linear-gradient(135deg,var(--blue),var(--blue-l));
  color:#fff;display:grid;place-items:center;
  font-size:19px;font-weight:800;
  box-shadow:0 6px 16px rgba(22,87,160,.32);
}
.logo-text strong{display:block;font-size:17px;color:var(--navy);letter-spacing:.06em;line-height:1.3}
.logo-text em{
  display:block;font-style:normal;font-size:9px;letter-spacing:.13em;
  color:var(--muted);line-height:1.4;
}

.site-nav{display:flex;align-items:center;gap:4px}
.nav-link{
  position:relative;padding:8px 13px;border-radius:9px;
  font-size:15px;font-weight:500;color:#33475d;text-decoration:none;
  transition:color .2s, background .2s;
}
.nav-link:hover{color:var(--blue);background:rgba(22,87,160,.07)}
.nav-link.active{color:var(--blue);font-weight:800}
.nav-link.active::after{
  content:"";position:absolute;left:13px;right:13px;bottom:1px;
  height:2px;border-radius:2px;background:var(--gold);
}

.nav-toggle{
  display:none;width:44px;height:44px;padding:0;border:0;background:transparent;
  border-radius:10px;cursor:pointer;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;
  transition:background .2s;
}
.nav-toggle:hover{background:rgba(22,87,160,.08)}
.nav-toggle span{
  width:22px;height:2px;border-radius:2px;background:var(--navy);
  transition:transform .3s, opacity .3s;
}
.nav-toggle.active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.active span:nth-child(2){opacity:0}
.nav-toggle.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ============ 页脚 ============ */
.site-footer{
  background:linear-gradient(180deg,#0b2745,#081d33);
  color:rgba(255,255,255,.72);padding:0px 0 0;
}
.footer-grid{
  display:grid;grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;padding-bottom:46px;
}
.site-footer .logo-text strong{color:#fff}
.site-footer .logo-text em{color:rgba(255,255,255,.45)}
.footer-brand p{
  font-size:14px;line-height:1.85;
  margin-top:18px;max-width:340px;color:rgba(255,255,255,.6);
}
.footer-col h4{
  color:#fff;font-size:15.5px;letter-spacing:.06em;
  margin-bottom:16px;position:relative;padding-bottom:10px;
}
.footer-col h4::after{
  content:"";position:absolute;left:0;bottom:0;
  width:28px;height:2px;background:var(--gold);border-radius:2px;
}
.footer-col a,.footer-col p{
  display:block;font-size:14px;color:rgba(255,255,255,.66);
  text-decoration:none;margin-bottom:10px;transition:color .2s, transform .2s;
}
.footer-col a:hover{color:var(--gold);transform:translateX(3px)}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);
  padding:20px 0;font-size:13px;text-align:center;
  color:rgba(255,255,255,.48);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px){
  .about-grid,.admission-grid,.contact-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr;gap:34px}
  .footer-brand{grid-column:1 / -1}
}
@media (max-width: 860px){
  :root{--header-h:62px}
  .nav-toggle{display:flex}
  .site-nav{
    position:fixed;top:var(--header-h);left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;
    padding:0 20px;max-height:0;overflow:hidden;
    background:#0b2b48;
    box-shadow:0 16px 30px rgba(0,0,0,.28);
    transition:max-height .38s ease, padding .38s ease;
  }
  .site-nav.open{max-height:72vh;overflow-y:auto;padding:10px 20px 20px}
  .nav-link{
    color:rgba(255,255,255,.86);padding:15px 4px;
    border-bottom:1px solid rgba(255,255,255,.09);border-radius:0;
  }
  .nav-link:hover,.nav-link.active{background:transparent;color:var(--gold)}
  .nav-link.active::after{display:none}
  .section{padding:64px 0}
  .section-head{margin-bottom:38px}
  .hero-inner{padding:56px 0 64px}
  .gallery{grid-template-columns:repeat(2,1fr);grid-auto-rows:142px}
  .g-item:nth-child(1){grid-column:span 2;grid-row:span 1}
  .g-item:nth-child(4){grid-column:span 2}
}
@media (max-width: 560px){
  body{font-size:15px}
  .logo-text em{display:none}
  .logo-text strong{font-size:15.5px}
  .hero-stats{gap:22px 30px}
  .hero-btns .btn{flex:1 1 100%}
  .news-card{flex-direction:column;gap:14px}
  .news-date{flex-direction:row;gap:6px;width:76px;height:34px}
  .news-date b{font-size:16px}
  .footer-grid{grid-template-columns:1fr}
  .contact-form{padding:24px 20px}
  .back-top{right:14px;bottom:16px;width:44px;height:44px}
}