/* ==========================================================================
   base.css · 全站基础层
   版式、导航、按钮、卡片、页脚 —— 首页与各成果页共用
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.6px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, picture, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(15, 159, 143, .2); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 布局 ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 74px 0; }
.section.tight { padding: 54px 0; }
.section.alt { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.section-head .lead { max-width: 760px; }

.section-head h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -1px;
}

.section-head p {
  margin-top: 12px;
  max-width: 700px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.section-head .aside {
  flex: none;
  padding-bottom: 6px;
  font-size: 11.5px;
  color: var(--faint);
  text-align: right;
}

/* ---------- 通用元件 ---------- */

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--teal);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: var(--teal-wash);
  color: var(--teal-deep);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .3px;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .75;
}

.pill.solid { background: var(--navy); color: #cfe9ef; }
.pill.muted { background: #eef2f7; color: #7c8a9c; }
.pill.warm { background: var(--amber-wash); color: #9a6a09; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.card-hover {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: #d5e3ef;
  box-shadow: 0 22px 48px rgba(11, 49, 91, .12);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 159, 143, .28);
}
.btn-primary:hover { background: #12b3a1; box-shadow: 0 16px 32px rgba(15, 159, 143, .34); }

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 26px rgba(11, 49, 91, .25);
}
.btn-navy:hover { background: #12456f; }

.btn-light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(4, 20, 38, .22);
}
.btn-light:hover { background: #eef7f9; }

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #eaf4f8;
  border-color: rgba(255, 255, 255, .32);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }

.btn-line {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-line:hover { border-color: #b9d4e4; box-shadow: var(--shadow-sm); }

.btn-sm { height: 40px; padding: 0 17px; font-size: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--teal-deep);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 顶部导航 ---------- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(226, 232, 240, .95);
}

.topnav.scrolled { box-shadow: 0 8px 26px rgba(15, 23, 42, .06); }

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  color: var(--navy);
  white-space: nowrap;
}

.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--navy), #1a5a8f);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -.3px;
  box-shadow: 0 8px 18px rgba(11, 49, 91, .2);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 14px; letter-spacing: -.2px; }
.brand-text small { font-size: 9.5px; font-weight: 700; letter-spacing: 1.1px; color: var(--faint); text-transform: uppercase; }

.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  font-size: 12.5px;
  color: #56657a;
}

.navlinks > a,
.navlinks > .has-menu > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.navlinks a:hover { color: var(--navy); background: #f1f6fa; }
.navlinks a.active { color: var(--navy); font-weight: 800; background: #edf6f7; }
.navlinks a.active::after {
  content: "";
  width: 5px; height: 5px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--teal);
}

.navlinks .caret { width: 10px; height: 10px; opacity: .55; transition: transform .25s var(--ease); }

.has-menu { position: relative; }
.has-menu:hover .caret,
.has-menu:focus-within .caret { transform: rotate(180deg); }

.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 292px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 24px 52px rgba(11, 49, 91, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}

.has-menu:hover .menu,
.has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); }

.menu a {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: var(--r-sm);
  transition: background .18s var(--ease);
}

.menu-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: var(--r-sm);
  opacity: .52;
  cursor: default;
}

.menu a:hover { background: #f4f8fb; }
.menu .no {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 9px;
  background: var(--teal-wash);
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 900;
}
.menu b { display: block; font-size: 12.5px; color: #253449; font-weight: 800; }
.menu small { display: block; font-size: 10.5px; color: var(--faint); }
.menu .menu-foot {
  margin-top: 6px;
  padding: 9px 10px 3px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--faint);
}

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-note { font-size: 10.5px; color: var(--faint); white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.6px;
  margin: 4px auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}

/* ---------- 移动端抽屉 ---------- */

.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 55;
  padding: 18px var(--gutter) 40px;
  background: rgba(244, 247, 251, .98);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.drawer.open { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer .d-label {
  margin: 18px 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: var(--faint);
  text-transform: uppercase;
}
.drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #26364b;
}
.drawer a small { font-size: 10.5px; font-weight: 600; color: var(--faint); }
.drawer .drawer-cta { margin-top: 16px; }
.drawer .drawer-cta a { justify-content: center; background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- 页脚 ---------- */

.footer {
  margin-top: 20px;
  padding: 56px 0 30px;
  background: var(--navy-deep);
  color: #a9bdd0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer .brand { color: #fff; }
.footer .mark { background: rgba(255, 255, 255, .12); box-shadow: none; }
.footer h4 {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7fd7d0;
  margin-bottom: 14px;
}
.footer p { font-size: 12px; line-height: 1.85; color: #94aabd; max-width: 420px; }
.footer li { margin-bottom: 9px; }
.footer li a { font-size: 12px; color: #b7c9d9; transition: color .2s; }
.footer li a:hover { color: #fff; }
.footer li span { font-size: 12px; color: #8fa5b9; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 10.5px;
  color: #7c93a8;
}
.footer-bottom b { color: #b7c9d9; font-weight: 700; }

/* ---------- 动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 无障碍 ---------- */

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .navlinks { display: none; }
  .nav-note { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav { gap: 14px; }
  .section { padding: 58px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head .aside { text-align: left; padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .brand-text b { font-size: 13px; }
  .brand-text small { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .btn { height: 46px; padding: 0 18px; font-size: 12.5px; }
}

/* ============================ 站内公告 ============================ */

.notice {
  background: linear-gradient(92deg, #0b315b 0%, #12456b 58%, #0d5f66 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.notice-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(143, 227, 218, .16);
  border: 1px solid rgba(143, 227, 218, .32);
  color: #9ff0e5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.notice-body {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  margin: 0;
}
.notice-title { font-size: 11.5px; font-weight: 800; color: #fff; }
.notice-text { font-size: 11.5px; color: #c9e0ec; line-height: 1.5; }

.notice-link {
  margin-left: auto;
  flex: none;
  font-size: 10.5px;
  font-weight: 800;
  color: #9ff0e5;
  border-bottom: 1px solid rgba(159, 240, 229, .5);
  white-space: nowrap;
}
.notice-link:hover { border-color: #9ff0e5; }

.notice-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a8c8d9;
  cursor: pointer;
  transition: background .16s, color .16s;
}
.notice-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.notice-close svg { width: 12px; height: 12px; }

@media (max-width: 680px) {
  .notice-body { flex-direction: column; gap: 2px; }
  .notice-link { display: none; }
}
