@charset "utf-8";
/* ============================================================
   登科教育 官网 全局样式表
   作者：WorkBuddy  |  主色：#1a3a6c（品牌深蓝） 辅色：#c8a45c（金）
   说明：本文件是全站视觉基底，改颜色只需改下面 :root 里的变量
   ============================================================ */

/* ---------- 1. 设计变量（想统一换色改这里就行） ---------- */
:root {
  --brand: #1a3a6c;          /* 品牌主色 · 深蓝 */
  --brand-deep: #12294d;     /* 更深一档，用于渐变/页脚 */
  --brand-light: #2f5a9c;    /* 浅一档，用于悬停 */
  --brand-soft: #eef3fa;     /* 极浅蓝，用于区块底色 */

  --gold: #c8a45c;           /* 金色点缀 */
  --gold-deep: #a8853c;
  --gold-soft: #faf5e9;

  --red: #d93f3f;            /* 喜报 / 强调 */
  --green: #2e9e6b;

  --bg: #f5f7fa;             /* 页面底色 */
  --card: #ffffff;
  --text: #1f2a3c;           /* 正文 */
  --text-sub: #5a6a80;       /* 次要文字 */
  --text-light: #8a97a8;     /* 最浅文字 */
  --line: #e3e8ef;           /* 分割线 */

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(26, 58, 108, .06);
  --shadow: 0 6px 24px rgba(26, 58, 108, .08);
  --shadow-lg: 0 16px 48px rgba(26, 58, 108, .14);

  --max: 1180px;             /* 内容最大宽度 */
  --nav-h: 70px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 保证 hidden 属性始终生效（防止被组件的 display 样式覆盖） */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .22s; }
img { max-width: 100%; display: block; border: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
button { cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; color: var(--text); }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

::selection { background: var(--brand); color: #fff; }

/* 滚动条美化（桌面端） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef1f6; }
::-webkit-scrollbar-thumb { background: #c3ccda; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-light); }

/* ---------- 3. 布局工具 ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.section { padding: 76px 0; }
.section--soft { background: var(--brand-soft); }
.section--white { background: #fff; }
.section--dark {
  background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 100%);
  color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }

/* 区块标题 */
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 2px; font-weight: 600;
  color: var(--gold-deep); text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-head h2 { position: relative; display: inline-block; padding-bottom: 16px; }
.sec-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 46px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.sec-head p {
  max-width: 620px; margin: 14px auto 0;
  color: var(--text-sub); font-size: 15px;
}
.section--dark .sec-head p { color: rgba(255, 255, 255, .78); }
.section--dark .sec-head .eyebrow { color: var(--gold); }

/* 栅格 */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px;
  font-size: 15px; font-weight: 600;
  border-radius: 999px;
  transition: all .25s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(26, 58, 108, .26);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26, 58, 108, .34); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(200, 164, 92, .34);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200, 164, 92, .44); }

.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, .55); color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.btn--outline { border: 1.5px solid var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 36px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ---------- 5. 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }

.nav__inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 19px;
  box-shadow: 0 5px 14px rgba(26, 58, 108, .3);
  flex-shrink: 0;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-size: 18px; font-weight: 800; letter-spacing: .5px; color: var(--brand); }
.logo__slogan { font-size: 11px; color: var(--text-light); letter-spacing: 1.2px; }
.logo--light .logo__name { color: #fff; }
.logo--light .logo__slogan { color: rgba(255, 255, 255, .62); }

/* 菜单 */
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 9px 15px;
  font-size: 15px; font-weight: 500; color: var(--text-sub);
  border-radius: 8px;
}
.nav__link:hover { color: var(--brand); background: var(--brand-soft); }
.nav__link.is-active { color: var(--brand); font-weight: 700; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 18px; height: 2.5px; border-radius: 2px; background: var(--gold);
}

.nav__right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav__phone { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--brand); }
.nav__phone svg { flex-shrink: 0; }

/* 汉堡按钮 */
.nav__toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__toggle span {
  display: block; width: 21px; height: 2px; background: var(--brand);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. 页脚 ---------- */
.footer { background: var(--brand-deep); color: rgba(255, 255, 255, .72); padding: 58px 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.footer__list li { margin-bottom: 11px; font-size: 14px; }
.footer__list a:hover { color: var(--gold); }
.footer__desc { font-size: 14px; line-height: 1.9; margin: 16px 0 20px; }
.footer__contact li { display: flex; gap: 10px; margin-bottom: 13px; font-size: 14px; }
.footer__contact b { color: #fff; font-weight: 600; }
.footer__qr {
  width: 104px; height: 104px; border-radius: 10px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 12px; text-align: center; padding: 8px;
  font-weight: 600; line-height: 1.5;
}
.footer__bottom {
  padding: 20px 0; font-size: 13px; color: rgba(255, 255, 255, .5);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer__bottom a:hover { color: var(--gold); }

/* ---------- 7. 通用卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.tag {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.7;
}
.tag--brand { background: var(--brand-soft); color: var(--brand); }
.tag--gold { background: var(--gold-soft); color: var(--gold-deep); }
.tag--red { background: #fdecec; color: var(--red); }
.tag--green { background: #e9f7f0; color: var(--green); }
.tag--gray { background: #f0f2f6; color: var(--text-sub); }

/* 页面头（内页统一） */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 56px;
  background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 62%, var(--brand-light) 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 24%, rgba(200, 164, 92, .18) 0, transparent 42%),
    radial-gradient(circle at 88% 76%, rgba(255, 255, 255, .1) 0, transparent 40%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 32px; color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 0 auto; }
.page-hero .crumb { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.page-hero .crumb a:hover { color: var(--gold); }

/* ---------- 8. 滚动入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 9. 悬浮咨询条（移动端底部） ---------- */
.float-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: none; background: #fff; padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(26, 58, 108, .13);
  gap: 10px; border-top: 1px solid var(--line);
}
.float-bar .btn { flex: 1; height: 44px; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--brand);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s; border: 1px solid var(--line);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: #fff; }

/* ---------- 10. 响应式断点 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 62px; }
  .section { padding: 56px 0; }
  h1 { font-size: 25px; }
  h2 { font-size: 21px; }
  .sec-head { margin-bottom: 32px; }

  /* 移动端菜单改为抽屉 */
  .nav__toggle { display: flex; }
  .nav__phone { display: none; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 10px 16px 20px;
    box-shadow: 0 14px 30px rgba(26, 58, 108, .14);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .28s; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    border-bottom: 1px solid var(--line);
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { color: var(--brand); }
  .nav__menu .btn { margin-top: 16px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { padding: calc(var(--nav-h) + 38px) 0 40px; }
  .page-hero h1 { font-size: 24px; }

  .float-bar { display: flex; }
  body { padding-bottom: 68px; }
  .to-top { bottom: 82px; right: 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 22px 18px; }
  .btn { padding: 0 20px; }
  .logo__name { font-size: 16px; }
  .logo__slogan { font-size: 10px; }
}

/* ---------- 11. 打印 ---------- */
@media print {
  .nav, .float-bar, .to-top, .footer { display: none !important; }
}
