/* ============================================================
   hhlsq.com — global.css 全站共享样式
   研学极简高级：藏蓝 + 浅灰 + 纯白，少量古金点缀
   技术栈：纯 CSS3，禁止内联样式，禁止框架
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root{
  --navy-900:#12263F;
  --navy-800:#162F4E;
  --navy-700:#1E3A5F;
  --navy-600:#274C7A;
  --navy-500:#33608F;
  --blue-soft:#E8EEF5;
  --gray-50:#FBFCFD;
  --gray-100:#F3F5F7;
  --gray-200:#E7EBF0;
  --gray-300:#D6DDE5;
  --gray-400:#B7C1CC;
  --gray-500:#8C98A7;
  --gray-600:#5E6B7A;
  --gray-700:#3B4857;
  --gray-900:#1E2833;
  --ink:#22303F;
  --gold:#B08D4A;
  --gold-soft:#E9DEC8;
  --white:#FFFFFF;

  --font-sans:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Source Han Sans SC","Noto Sans SC",Arial,sans-serif;
  --font-serif:"Songti SC","STSong","SimSun","Noto Serif CJK SC",Georgia,serif;

  --sp-1:8px;  --sp-2:16px; --sp-3:24px; --sp-4:32px;
  --sp-5:48px; --sp-6:64px; --sp-7:96px;

  --radius-sm:6px; --radius-md:12px; --radius-lg:22px; --radius-pill:999px;

  --shadow-sm:0 2px 14px rgba(18,38,63,.06);
  --shadow-md:0 12px 32px rgba(18,38,63,.12);
  --shadow-lg:0 24px 56px rgba(18,38,63,.18);

  --container:1200px;
  --header-h:72px;
  --topbar-h:38px;
}

/* ---------- 2. Reset 与基础 ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  font-family:var(--font-sans);
  font-size:16px; line-height:1.75; color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  padding-top:calc(var(--topbar-h) + var(--header-h));
  overflow-x:hidden;
}
img{ display:block; max-width:100%; height:auto; }
a{ color:var(--navy-600); text-decoration:none; transition:color .25s ease; }
a:hover{ color:var(--navy-800); }
ul,ol{ list-style:none; }
h1,h2,h3,h4{ font-weight:600; line-height:1.32; color:var(--navy-900); }
button{ font-family:inherit; cursor:pointer; background:none; border:none; }
input,textarea,select{ font-family:inherit; font-size:inherit; }
::selection{ background:var(--navy-700); color:#fff; }

/* ---------- 3. 容器与区块 ---------- */
.container{ width:100%; max-width:var(--container); margin:0 auto; padding-left:24px; padding-right:24px; }
.section{ padding:clamp(60px,7vw,92px) 0; position:relative; }
.section--gray{ background:var(--gray-100); }
.section--navy{ background:var(--navy-900); color:#E8EEF5; }
.section--navy .sec-title{ color:#fff; }
.section--navy .sec-sub{ color:rgba(232,238,245,.72); }

/* ---------- 4. 分区标题 ---------- */
.sec-head{ text-align:center; max-width:760px; margin:0 auto var(--sp-6); }
.sec-head--left{ text-align:left; margin-left:0; margin-right:0; }
.sec-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:13px; letter-spacing:.22em; color:var(--gold);
  text-transform:uppercase; margin-bottom:14px;
}
.sec-eyebrow::before,.sec-eyebrow::after{ content:""; width:26px; height:1px; background:var(--gold); opacity:.55; }
.sec-head--left .sec-eyebrow::before{ display:none; }
.sec-title{ font-size:clamp(24px,3.2vw,36px); margin-bottom:16px; }
.sec-sub{ color:var(--gray-600); font-size:15.5px; }

/* ---------- 5. 按钮 ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 26px; border-radius:var(--radius-pill);
  font-size:15px; font-weight:600; line-height:1.2;
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:all .28s ease;
}
.btn--primary{ background:var(--navy-700); color:#fff; box-shadow:var(--shadow-sm); }
.btn--primary:hover{ background:var(--navy-800); color:#fff; transform:translateY(-3px); box-shadow:var(--shadow-md); }
.btn--ghost{ border-color:var(--navy-500); color:var(--navy-700); background:transparent; }
.btn--ghost:hover{ background:var(--navy-700); color:#fff; transform:translateY(-3px); }
.btn--light{ background:#fff; color:var(--navy-700); box-shadow:var(--shadow-sm); }
.btn--light:hover{ background:var(--blue-soft); color:var(--navy-800); transform:translateY(-3px); }
.btn--gold{ border-color:var(--gold); color:var(--gold); background:transparent; }
.btn--gold:hover{ background:var(--gold); color:#fff; transform:translateY(-3px); }
.btn-lg{ padding:15px 34px; font-size:16px; }
.btn-block{ display:block; width:100%; }

/* ---------- 6. 标签 ---------- */
.tag{
  display:inline-flex; align-items:center;
  padding:4px 12px; border-radius:var(--radius-pill);
  font-size:12.5px; color:var(--navy-600);
  background:var(--blue-soft); border:1px solid var(--gray-300);
}
.tag--navy{ background:var(--navy-700); color:#fff; border-color:var(--navy-700); }
.tag--gold{ background:var(--gold-soft); color:var(--gold); border-color:transparent; }
.tag--gray{ background:var(--gray-100); color:var(--gray-600); }

/* ---------- 7. 卡片 ---------- */
.card{
  background:#fff; border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm); padding:var(--sp-4);
  transition:transform .3s ease, box-shadow .3s ease;
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.card--navy{ background:var(--navy-900); color:#E8EEF5; }
.card--navy h3,.card--navy h4{ color:#fff; }
.card--navy .card-eyebrow{ color:var(--gold); }
.card-eyebrow{ font-size:12.5px; letter-spacing:.18em; color:var(--gold); display:block; margin-bottom:8px; }
.card-title{ font-size:19px; margin-bottom:10px; }
.card-text{ color:var(--gray-600); font-size:14.5px; line-height:1.75; }

/* 悬浮错位卡基础 */
.float-card{ position:relative; z-index:1; }

/* ---------- 8. 统计数字 ---------- */
.stat-num{ font-size:clamp(30px,3.6vw,44px); font-weight:700; color:var(--navy-700); line-height:1.1; }
.stat-num em{ font-style:normal; color:var(--gold); }
.stat-note{ color:var(--gray-500); font-size:13.5px; margin-top:6px; }

/* ---------- 9. 面包屑 ---------- */
.crumb{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  font-size:13.5px; color:var(--gray-500); padding-top:20px;
}
.crumb a{ color:var(--gray-500); }
.crumb a:hover{ color:var(--navy-700); }
.crumb-current{ color:var(--navy-700); font-weight:600; }

/* ---------- 10. 表单 ---------- */
.form-card{
  background:#fff; border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md); padding:clamp(24px,3vw,40px);
}
.form-field{ margin-bottom:18px; }
.form-label{ display:block; font-size:14px; font-weight:600; color:var(--navy-900); margin-bottom:8px; }
.form-input,.form-textarea{
  width:100%; padding:12px 14px; border:1px solid var(--gray-300);
  border-radius:var(--radius-md); background:var(--gray-50);
  color:var(--ink); outline:none; transition:border-color .25s ease, box-shadow .25s ease;
}
.form-input:focus,.form-textarea:focus{ border-color:var(--navy-500); box-shadow:0 0 0 3px rgba(51,96,143,.12); }
.form-textarea{ min-height:120px; resize:vertical; }
.form-error{ display:none; color:#A94442; font-size:12.5px; margin-top:6px; }
.form-field.is-invalid .form-error{ display:block; }
.form-field.is-invalid .form-input{ border-color:#A94442; }

/* ---------- 11. 顶部信息条 ---------- */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:1002;
  height:var(--topbar-h); background:var(--navy-900); color:rgba(255,255,255,.88);
  transition:transform .32s ease;
}
.topbar.is-hidden{ transform:translateY(-100%); }
.topbar__inner{ height:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.topbar__note{ font-size:12.5px; letter-spacing:.04em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar__links{ display:flex; align-items:center; gap:22px; font-size:12.5px; white-space:nowrap; }
.topbar__link{ color:rgba(255,255,255,.88); }
.topbar__link:hover{ color:var(--gold); }

/* ---------- 12. 站点导航 ---------- */
.site-header{
  position:fixed; top:var(--topbar-h); left:0; right:0; z-index:1001;
  background:rgba(255,255,255,.86); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(18,38,63,.06);
  transition:top .32s ease, background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled{ background:#fff; box-shadow:0 8px 28px rgba(18,38,63,.09); }
body.is-scrolled .topbar{ transform:translateY(-100%); }
body.is-scrolled .site-header{ top:0; }
.header__inner{ display:flex; align-items:center; gap:28px; height:var(--header-h); }

.logo{ display:inline-flex; align-items:center; gap:10px; flex-shrink:0; }
.logo__img{ width:42px; height:42px; border-radius:10px; object-fit:cover; }
.logo__text{ font-size:21px; font-weight:700; color:var(--navy-900); letter-spacing:-.02em; }
.logo__text em{ font-style:normal; color:var(--gold); }

.site-nav{ flex:1; }
.nav-list{ display:flex; align-items:center; justify-content:flex-end; gap:2px; }
.nav-item{ position:relative; }
.nav-link{
  display:inline-flex; align-items:center; gap:5px;
  padding:10px 10px; font-size:14.5px; font-weight:500; color:var(--navy-900);
  border-radius:var(--radius-pill); position:relative; white-space:nowrap;
}
.nav-link:hover{ color:var(--navy-600); background:var(--gray-100); }
.nav-link.is-active{ color:var(--navy-700); font-weight:700; }
.nav-link.is-active::after{
  content:""; position:absolute; left:14px; right:14px; bottom:4px;
  height:2px; border-radius:2px; background:var(--gold);
}
.nav-item--drop > .nav-link::after{
  content:""; width:6px; height:6px; border-right:1.6px solid var(--gray-500);
  border-bottom:1.6px solid var(--gray-500); transform:rotate(45deg) translateY(-2px);
  transition:transform .25s ease;
}
.nav-item--drop:hover > .nav-link::after{ transform:rotate(225deg) translateY(-1px); }

.drop-menu{
  position:absolute; top:calc(100% + 10px); left:50%; transform:translateX(-50%) translateY(8px);
  min-width:218px; background:#fff; border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg); border:1px solid var(--gray-200);
  padding:10px; opacity:0; visibility:hidden; transition:all .25s ease; z-index:1200;
}
.nav-item--drop:hover .drop-menu{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.drop-menu__link{
  display:block; padding:9px 14px; border-radius:var(--radius-sm);
  font-size:14px; color:var(--gray-700); white-space:nowrap;
}
.drop-menu__link:hover{ background:var(--gray-100); color:var(--navy-700); }

.header__cta{ flex-shrink:0; padding:11px 22px; font-size:14.5px; }

/* 汉堡按钮 */
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:44px; height:44px; padding:10px; border-radius:var(--radius-sm);
}
.nav-toggle__bar{ display:block; height:2px; border-radius:2px; background:var(--navy-900); transition:all .3s ease; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2){ opacity:0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- 13. 页脚 ---------- */
.site-footer{ background:var(--navy-900); color:rgba(232,238,245,.78); }
.footer__grid{
  display:grid; grid-template-columns:2.1fr 1fr 1fr 1.2fr 1.2fr;
  gap:40px; padding:clamp(52px,6vw,80px) 0 48px;
}
.logo--footer .logo__text{ color:#fff; }
.footer__desc{ font-size:14px; line-height:1.9; margin:16px 0 20px; max-width:320px; color:rgba(232,238,245,.7); }
.footer__contact{ display:flex; flex-direction:column; gap:8px; font-size:14px; }
.footer__contact-item{ color:rgba(232,238,245,.85); }
.footer__contact-item:hover{ color:var(--gold); }
.footer__title{
  font-size:15px; font-weight:600; color:#fff; margin-bottom:18px; letter-spacing:.06em;
  display:flex; align-items:center; gap:10px;
}
.footer__title::after{ content:""; width:20px; height:1px; background:var(--gold); opacity:.7; }
.footer__links li{ margin-bottom:10px; }
.footer__links a{ font-size:13.5px; color:rgba(232,238,245,.72); transition:color .25s ease, padding-left .25s ease; }
.footer__links a:hover{ color:#fff; padding-left:4px; }
.footer__bottom{ border-top:1px solid rgba(232,238,245,.12); background:rgba(10,22,38,.5); }
.footer__bottom-inner{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  flex-wrap:wrap; padding:20px 24px; font-size:13px; color:rgba(232,238,245,.55);
}
.footer__policy a{ color:rgba(232,238,245,.6); margin:0 4px; }
.footer__policy a:hover{ color:var(--gold); }
.footer__dot{ opacity:.5; margin:0 2px; }
.footer__beian{ color:rgba(232,238,245,.5); }

/* ---------- 14. 悬浮联系栏 ---------- */
.float-bar{
  position:fixed; right:20px; bottom:110px; z-index:1200;
  display:flex; flex-direction:column; gap:10px;
}
.float-bar__item{
  width:46px; height:46px; border-radius:50%;
  background:var(--navy-700); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md); position:relative;
  transition:transform .25s ease, background .25s ease;
}
.float-bar__item:hover{ background:var(--navy-800); transform:translateY(-3px); }
.float-bar__item svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.float-bar__tip{
  position:absolute; right:calc(100% + 12px); top:50%; transform:translateY(-50%) translateX(6px);
  background:var(--navy-900); color:#fff; font-size:12.5px; padding:6px 12px;
  border-radius:var(--radius-sm); white-space:nowrap; opacity:0; visibility:hidden;
  transition:all .25s ease; box-shadow:var(--shadow-md);
}
.float-bar__tip::after{
  content:""; position:absolute; left:100%; top:50%; transform:translateY(-50%);
  border:5px solid transparent; border-left-color:var(--navy-900);
}
.float-bar__wechat:hover .float-bar__tip{ opacity:1; visibility:visible; transform:translateY(-50%) translateX(0); }
.float-bar__top{ opacity:0; visibility:hidden; transform:translateY(10px); }
.float-bar__top.is-show{ opacity:1; visibility:visible; transform:none; }
.float-bar__top:hover{ transform:translateY(-3px); }

/* ---------- 15. 滚动渐入 ---------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s ease; will-change:opacity,transform; }
.reveal.is-in{ opacity:1; transform:none; }
.reveal-d1{ transition-delay:.1s; } .reveal-d2{ transition-delay:.2s; } .reveal-d3{ transition-delay:.3s; }

/* ---------- 16. 图标与装饰 ---------- */
.icon-inline{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1360px){
  .nav-toggle{ display:flex; }
  .site-nav{
    position:fixed; top:0; right:0; bottom:0; width:min(78vw,340px);
    background:#fff; box-shadow:var(--shadow-lg);
    transform:translateX(102%); transition:transform .35s ease;
    padding:calc(var(--topbar-h) + var(--header-h) + 12px) 22px 40px;
    overflow-y:auto; z-index:1100;
  }
  .site-nav.is-open{ transform:translateX(0); }
  .nav-list{ flex-direction:column; align-items:stretch; gap:4px; }
  .nav-link{ width:100%; padding:12px 14px; }
  .drop-menu{
    position:static; transform:none; opacity:1; visibility:visible;
    box-shadow:none; border:none; border-left:2px solid var(--gray-200);
    margin-left:16px; padding:6px 0 6px 12px; max-height:0; overflow:hidden;
    transition:max-height .3s ease; min-width:0;
  }
  .nav-item--drop.is-open .drop-menu{ max-height:600px; }
  .nav-item--drop:hover .drop-menu{ transform:none; }
  .header__cta{ display:none; }
  .footer__grid{ grid-template-columns:1fr 1fr; gap:32px; }
}
@media (max-width: 992px){
  .topbar__note{ display:none; }
  .footer__grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px){
  body{ font-size:15px; }
  .footer__grid{ grid-template-columns:1fr; gap:28px; }
  .topbar__links{ gap:12px; font-size:12px; }
  .float-bar{ right:14px; bottom:90px; }
  .float-bar__item{ width:42px; height:42px; }
  .crumb{ font-size:12.5px; }
}
