/* ========== 统一顶部导航栏（居中布局 + 悬停下划线） ========== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: rgba(2, 33, 69, 0.45) transparent;
}
html::-webkit-scrollbar {
  width: 4px;
  height: 0;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background: rgba(2, 33, 69, 0.4);
  border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 33, 69, 0.7);
}

/* 二级页蓝色首图与「团队介绍」同高。 */
@media (min-width: 769px) {
  .hero:not(.home-hero) > .hero-inner,
  .library-hero > .hero-inner,
  .resource-hero > .hero-inner {
    box-sizing: border-box;
    min-height: 355px !important;
    height: 355px;
    align-items: center;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: min(1200px, 92%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero:not(.home-hero) > .shell.hero-inner {
    display: flex !important;
    align-items: flex-start !important;
    padding-top: 78px !important;
  }
  .hero:not(.home-hero) > .hero-inner:not(.shell) > div:first-child,
  .hero:not(.home-hero) .hero-copy,
  .library-hero .hero-copy,
  .resource-hero .hero-copy {
    align-self: start;
    padding-top: 78px;
  }
  .hero:not(.home-hero) h1,
  .library-hero h1,
  .resource-hero h1 {
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.4px !important;
    margin: 0 0 12px !important;
    color: #fff !important;
  }
  .hero:not(.home-hero) .hero-copy > p,
  .hero:not(.home-hero) .hero-description,
  .library-hero .hero-copy > p,
  .library-hero .hero-description,
  .resource-hero .hero-copy > p,
  .hero:not(.home-hero) > .hero-inner > div:first-child > p {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    margin: 0 !important;
    color: rgba(236, 246, 252, 0.9) !important;
  }
  .hero-actions {
    margin-top: 22px !important;
  }
}

/* 全站标题层级。页面自己的字号不能把某一级标题单独放大或缩小。 */
@media (min-width: 769px) {
  h1 {
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }
  .home-hero > .hero-inner {
    box-sizing: border-box;
    min-height: 560px !important;
    height: auto !important;
    align-items: center !important;
    padding-top: 64px !important;
    padding-bottom: 64px !important;
    overflow: visible;
  }
  .home-hero h1 {
    font-size: 56px !important;
    font-weight: 800 !important;
    line-height: 1.16 !important;
    letter-spacing: -0.6px !important;
    margin: 0 0 18px !important;
  }
  .home-hero .hero-inner > div:first-child > p,
  .home-hero .hero-copy > p {
    font-size: 18px !important;
    line-height: 1.8 !important;
  }
  h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
  }
  h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
  }
  h4 {
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.5 !important;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }
  .home-hero h1 {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }
  .home-hero > .hero-inner {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
  }
  h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
  }
  h4 {
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.5 !important;
  }
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #fff;
  border-bottom: 1px solid #E6ECF1;
}
.site-navbar .bar {
  width: min(1200px, 92%);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* 各页模板会写 .brand / img / nav a。这里用更高优先级把共享导航锁死，
   新页面沿用这些类名时也不会把菜单挤偏。 */
.site-navbar .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  flex-shrink: 0;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  letter-spacing: normal;
}
.site-navbar .brand img {
  display: block;
  height: 36px;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  object-fit: contain;
}
.site-navbar .brand-fallback {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #022145;
}
.site-navbar .brand.brand-fallback > .brand-fallback {
  display: flex;
}
.site-navbar .brand-fallback .brand-symbol {
  width: 36px;
  height: 36px;
  background: #022145;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.site-navbar nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 32px;
  font-size: 16px;
}
.site-navbar nav a {
  color: #334451;
  text-decoration: none;
  margin: 0;
  padding: 8px 0 20px;
  position: relative;
  min-width: 0;
  max-width: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  transition: color 0.2s;
}
.site-navbar nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #022145;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.site-navbar nav a:hover {
  color: #022145;
}
.site-navbar nav a:hover::after,
.site-navbar nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-navbar nav a[aria-current="page"] {
  color: #022145;
  font-weight: 600;
}

.site-navbar .nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.site-navbar .nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F5F8FA;
  border-radius: 20px;
  padding: 8px 16px;
  width: 260px;
}
.site-navbar .nav-search svg {
  width: 16px;
  height: 16px;
  color: #7B8E9D;
  flex-shrink: 0;
}
.site-navbar .nav-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  padding: 2px 0;
}
.site-navbar .nav-search input::placeholder {
  color: #9AABBC;
}

.site-navbar .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.site-navbar .hamburger span {
  width: 24px;
  height: 2px;
  background: #334451;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .site-navbar nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #E6ECF1;
    flex-direction: column;
    padding: 16px 5%;
    gap: 16px;
  }
  .site-navbar nav.open {
    display: flex;
  }
  .site-navbar nav a {
    padding: 8px 0;
  }
  .site-navbar nav a::after {
    display: none;
  }
  .site-navbar .hamburger {
    display: flex;
  }
  .site-navbar .bar {
    gap: 10px;
  }
  .site-navbar .nav-actions {
    margin-left: auto;
    gap: 8px;
  }
  .site-navbar .nav-search {
    width: 132px;
    padding: 6px 10px;
  }
  .site-navbar .hamburger {
    display: flex;
    flex-shrink: 0;
  }
}

/* 各页原来的页脚。统一页脚插入后再删掉，这里先藏住，避免闪一下。 */
footer:not(.site-footer) {
  display: none !important;
}

.site-footer {
  padding: 64px 0 26px;
  background: #022145;
  color: #8FA6BC;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
.site-footer .inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 30px;
}
.site-footer .col { min-width: 0; }
.site-footer h3 { margin: 0; }
.site-footer .toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #fff;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-footer .chevron { display: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a {
  display: inline-block;
  padding: 5px 0;
  font-size: 13px;
  color: #8FA6BC;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.site-footer a:hover { color: #8FB4D6; padding-left: 4px; }
.site-footer .stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.site-footer .contact { display: flex; flex-direction: column; gap: 14px; }
.site-footer .qr-row { display: flex; gap: 12px; }
.site-footer .qr {
  width: 82px;
  height: 82px;
  padding: 4px;
  background: #fff;
  border-radius: 2px;
}
.site-footer .qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-footer .contact-note { font-size: 12px; color: #5C7A99; }
.site-footer .footer-simple {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.1fr) auto;
  align-items: start;
  gap: 36px 48px;
}
.site-footer .footer-brand p {
  max-width: 240px;
  margin: 14px 0 0;
  color: #8FA6BC;
  font-size: 13px;
  line-height: 1.8;
}
.site-footer .footer-brand img { height: 36px; width: auto; }
.site-footer .footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  padding-top: 6px;
}
.site-footer .footer-nav a {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: #E7EEF4;
}
.site-footer .footer-nav a:hover { padding-left: 0; color: #8FB4D6; }
.site-footer .contact-title {
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.site-footer .qr span {
  display: block;
  margin-top: 6px;
  color: #8FA6BC;
  font-size: 12px;
  text-align: center;
}
.site-footer .footer-mail {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  color: #D5E4EE;
  font-size: 13px;
}
.site-footer .footer-mail:hover { padding-left: 0; color: #8FB4D6; }
.site-footer .bottom { display: none !important; }
@media (max-width: 768px) {
  .site-footer .footer-simple { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 1100px) {
  .site-footer .inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-footer { padding: 36px 0 22px; }
  .site-footer .inner,
  .site-footer .stack { display: block; }
  .site-footer .col { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-footer .inner > .col:last-child,
  .site-footer .col:last-child { border-bottom: 0; }
  .site-footer .toggle { margin: 0; padding: 16px 0; }
  .site-footer .chevron {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #8FA6BC;
    border-bottom: 1.5px solid #8FA6BC;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
  }
  .site-footer .col.is-open .chevron { transform: rotate(45deg); }
  .site-footer .collapse {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
  }
  .site-footer .col.is-open .collapse {
    max-height: 900px;
    opacity: 1;
    padding-bottom: 16px;
  }
}

/* 参考 cmcroanoke：海军蓝、白底、标题偏轻、字距略开、行距宽松 */
body {
  line-height: 1.75;
  letter-spacing: 0.01em;
}
.site-navbar nav a {
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
}
@media (min-width: 769px) {
  h1 {
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    line-height: 1.35 !important;
  }
  .home-hero h1 {
    font-size: 52px !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.3 !important;
  }
  h2 {
    font-size: 25px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.06em !important;
    color: #022145;
  }
  h3 {
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    letter-spacing: 0.03em !important;
  }
  p {
    line-height: 1.85;
    letter-spacing: 0.02em;
  }
}
@media (max-width: 768px) {
  h2 {
    font-size: 22px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.45 !important;
  }
  p { line-height: 1.8; }
}

/* 各页底部同一块：栏目介绍、团队入口、联系方式和版权说明 */
.home-team{
  display:grid !important;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,420px);
  background:#022145 !important;
  color:#fff !important;
  overflow:hidden;
}
.home-team-main{
  display:flex;
  align-items:center;
  min-width:0;
  padding:48px 40px 48px max(32px,calc((100vw - 1200px) / 2));
}
.home-team-copy h2{
  margin:0 0 12px !important;
  color:#fff !important;
}
.home-team-copy p{
  margin:0;
  max-width:460px;
  color:rgba(255,255,255,.82) !important;
  font-size:15px;
  line-height:1.85;
}
.home-team-link{
  display:inline-flex;
  margin-top:18px;
  padding:10px 18px;
  border:1px solid rgba(255,255,255,.75);
  border-radius:4px;
  background:transparent !important;
  color:#fff !important;
  font-weight:700;
  text-decoration:none;
}
.home-team-link:hover{background:rgba(255,255,255,.12) !important}
.home-team-side{
  padding:48px 28px 48px 32px;
  background:transparent !important;
  color:#D5E2EC;
}
.home-team-side h2{
  margin:0 0 16px !important;
  color:#fff !important;
  font-size:22px !important;
}
.home-team-qrs{display:flex;gap:16px}
.home-team-qrs figure{margin:0}
.home-team-qrs img{
  width:84px !important;
  height:84px !important;
  object-fit:cover;
  background:#fff;
  border-radius:4px;
}
.home-team-qrs figcaption{
  margin-top:6px;
  font-size:12px;
  text-align:center;
  color:rgba(255,255,255,.78) !important;
}
.home-team-mail{
  display:inline-block;
  margin-top:16px;
  color:rgba(255,255,255,.78) !important;
  font-size:14px;
  text-decoration:none;
}
.home-team-copyline{
  margin:16px 0 0;
  font-size:12.5px;
  line-height:1.7;
  color:rgba(255,255,255,.78) !important;
}
.home-team-copyline a{
  color:rgba(255,255,255,.78) !important;
  font-size:12.5px;
  font-weight:400;
  text-decoration:underline;
  text-underline-offset:3px;
}
.home-team-copyline a:hover{color:#fff !important}
@media (max-width: 768px) {
  .home-team{grid-template-columns:1fr}
  .home-team-main,.home-team-side{padding:32px 6%}
  .home-team-side{padding-bottom:36px}
}

/* 顶部导航：白底、海军蓝字；搜索框用较小圆角 */
.site-navbar {
  background: #fff;
  border-bottom: 1px solid #E6ECF1;
}
.site-navbar nav a,
.site-navbar nav a:hover,
.site-navbar nav a[aria-current="page"] {
  color: #022145 !important;
}
.site-navbar nav a::after {
  background: #022145;
}
.site-navbar .hamburger span {
  background: #022145;
}
.site-navbar .nav-search {
  border-radius: 4px;
  background: #F5F8FA;
}
@media (max-width: 768px) {
  .site-navbar nav {
    background: #fff;
    border-bottom: 1px solid #E6ECF1;
  }
}

/* 各页同一条固定导航。跳转时这条栏留在原位，不跟着页面闪。 */
@view-transition { navigation: none; }
body { padding-top: 64px !important; }
.site-navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  view-transition-name: site-nav;
}
::view-transition-group(site-nav) {
  animation: none;
}
::view-transition-old(site-nav),
::view-transition-new(site-nav) {
  animation: none;
}


/* 只采用改版稿的字体和字号 */
html, body, button, input, textarea, select {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif !important;
}
body { font-size: 16px !important; }
.home-hero h1,
.hero h1,
.resource-hero h1,
.library-hero h1 {
  font-size: 46px !important;
}
.home-hero .hero-kicker,
.hero .hero-kicker {
  font-size: 13px !important;
}
.hero p,
.home-hero p {
  font-size: 17px !important;
}
.section-title {
  font-size: 30px !important;
}
.section-desc { font-size: 14.5px !important; }
.site-navbar nav a { font-size: 15px !important; }
.nav-search input { font-size: 14px !important; }
.btn { font-size: 14.5px !important; }
.btn-link { font-size: 14px !important; }
.path-body h3 { font-size: 22px !important; }
.path-body p,
.path-cta { font-size: 13.5px !important; }
.path-num {
  font-family: Georgia, serif !important;
  font-size: 34px !important;
}
h3.learn-feature-title { font-size: 23px !important; }
.learn-feature-quote { font-size: 13px !important; }
.learn-tile-title { font-size: 14px !important; }
.learn-tile-desc { font-size: 11px !important; }
.tab { font-size: 14px !important; }
.res-title { font-size: 17px !important; }
.res-author { font-size: 12px !important; }
.book-title { font-size: 14px !important; }
.book-author { font-size: 11px !important; }
.gcard-title { font-size: 14px !important; }
.gcard-sub { font-size: 11.5px !important; }
.pcard h3 { font-size: 20px !important; }
.pcard p { font-size: 13.5px !important; }
.tool h4 { font-size: 15px !important; }
.tool p { font-size: 12.5px !important; }
.quote p { font-size: 15px !important; }
.quote-icon {
  font-family: Georgia, serif !important;
  font-size: 32px !important;
}
.home-team-copy p { font-size: 15px !important; }
.home-team-side h2 { font-size: 22px !important; }
.home-team-mail { font-size: 14px !important; }
@media (max-width: 768px) {
  .home-hero h1,
  .hero h1,
  .resource-hero h1,
  .library-hero h1 { font-size: 33px !important; }
  .section-title { font-size: 25px !important; }
  .section-desc { font-size: 13px !important; }
  .hero p,
  .home-hero p { font-size: 15px !important; }
  .res-title { font-size: 15px !important; }
  .gcard-title { font-size: 13px !important; }
  .tab { font-size: 12px !important; }
  .quote p { font-size: 14px !important; }
  h3.learn-feature-title { font-size: 18px !important; }
}
@media (max-width: 480px) {
  .home-hero h1,
  .hero h1,
  .resource-hero h1,
  .library-hero h1 { font-size: 27px !important; }
  .section-title { font-size: 24px !important; }
}


.resource-hero .hero-copy h1,
.library-hero .hero-copy h1,
.hero .hero-copy h1,
.home-hero .hero-copy h1 {
  font-size: 46px !important;
}
.section-heading h2,
h2.section-heading {
  font-size: 30px !important;
}
@media (max-width: 768px) {
  .resource-hero .hero-copy h1,
  .library-hero .hero-copy h1,
  .hero .hero-copy h1,
  .home-hero .hero-copy h1 { font-size: 33px !important; }
  .section-heading h2,
  h2.section-heading { font-size: 25px !important; }
}
@media (max-width: 480px) {
  .resource-hero .hero-copy h1,
  .library-hero .hero-copy h1,
  .hero .hero-copy h1 { font-size: 27px !important; }
  .section-heading h2,
  h2.section-heading { font-size: 24px !important; }
}


body .resource-hero .hero-copy h1,
body .library-hero .hero-copy h1,
body .hero .hero-copy h1,
body .home-hero .hero-copy h1,
body .home-hero h1,
body .hero h1 {
  font-size: 46px !important;
}
body .section-heading h2,
body h2.section-heading,
body .section-title,
body h2.section-title {
  font-size: 30px !important;
}
@media (max-width: 768px) {
  body .resource-hero .hero-copy h1,
  body .library-hero .hero-copy h1,
  body .hero .hero-copy h1,
  body .home-hero h1,
  body .hero h1 { font-size: 33px !important; }
  body .section-heading h2,
  body .section-title { font-size: 25px !important; }
}
@media (max-width: 480px) {
  body .resource-hero .hero-copy h1,
  body .hero .hero-copy h1,
  body .home-hero h1,
  body .hero h1 { font-size: 27px !important; }
  body .section-heading h2,
  body .section-title { font-size: 24px !important; }
}


body .resource-content .section-heading h2 {
  font-size: 30px !important;
}
@media (max-width: 768px) {
  body .resource-content .section-heading h2 { font-size: 25px !important; }
}
@media (max-width: 480px) {
  body .resource-content .section-heading h2 { font-size: 24px !important; }
}

/* 手机版：搜索框不要盖住右侧菜单 */
.site-navbar .nav-search {
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.site-navbar .nav-search input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 768px) {
  .site-navbar .bar {
    width: min(1200px, calc(100% - 28px));
  }
  .site-navbar .nav-actions {
    min-width: 0;
    margin-left: auto;
    gap: 10px;
  }
  .site-navbar .nav-search {
    width: auto;
    flex: 0 1 148px;
    max-width: calc(100vw - 132px);
  }
  .site-navbar .hamburger {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .site-navbar .nav-search {
    width: 132px;
    flex: 0 0 132px;
    max-width: 132px;
  }
  .site-navbar .nav-search input {
    flex: 1 1 auto;
    width: 1px;
    min-width: 0;
  }
}

/* 鼠标经过封面时不再位移，避免晃动 */
.gcard:hover,
.gcard:hover .gcard-media img,
.section--tools .gcard:hover .gcard-media img,
.section--library .library-book:hover,
.section--library .book:hover,
.section--library .book:hover .book-cover img,
.book:hover,
.book:hover .book-cover,
.book:hover .book-cover img,
.res:hover,
.res:hover .res-cover img,
.learn-feature:hover,
.learn-tile:hover,
.learn-feature:hover .learn-feature-media img,
.learn-tile:hover .learn-tile-media img,
.path:hover,
.path:hover .path-bg,
.resource-link:hover .cover-frame,
.resource-link:hover .cover-frame img,
.featured-link:hover .featured-cover > img,
.book-card:hover .book-cover,
.book-card:hover .book-cover img,
.pp-video-card:hover,
.qr:hover,
.pilot-card:hover {
  transform: none !important;
}

/* 全站标题与正文字号：一套字体，标题有层次但不忽大忽小 */
body, button, input, textarea, select {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif !important;
}
body h1 {
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.3px;
}
body h2,
body .section-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.2px;
}
body h3 {
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}
.hero p,
.hero-copy p,
.resource-hero .hero-copy p,
.daily-copy p,
.card p,
.video-info p {
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}
.gcard-title,
.book-info h3,
.card h3,
.video-info h3,
.article-info h3,
.path h3 {
  font-size: 16px !important;
  font-weight: 650 !important;
}
.gcard-sub,
.resource-author,
.book-info .author,
.path p,
.path-cta,
.home-team-qrs figcaption,
.home-team-copyline,
.home-team-copyline a,
.category-chip,
.category-nav-label {
  font-size: 13px !important;
}
.resources-grid .resource-title {
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}
.featured-meta strong { font-size: 13px !important; }
.featured-meta span,
.featured-overlay,
.featured-overlay p,
.featured-overlay span,
.featured-overlay b { font-size: 12px !important; }
.home-team h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}
.perfree-article-content,
.perfree-article-content *,
.article-title {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif !important;
}
@media (max-width: 768px) {
  body h1 { font-size: 28px !important; }
  body h2,
  body .section-title { font-size: 22px !important; }
}

/* 顶栏必须一直可见，不被页面里的旧样式盖掉 */
.site-navbar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 5000 !important;
  background: #fff !important;
}
body { padding-top: 64px !important; }

.back-to-top{position:fixed;right:22px;bottom:22px;z-index:90;width:46px;height:46px;display:grid;place-items:center;background:#022145;color:#fff;border:0;border-radius:50%;box-shadow:0 6px 20px rgba(2,33,69,.35);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .3s ease,visibility .3s ease,transform .3s ease,background .2s ease;cursor:pointer;padding:0}
.back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover{background:#163A66}
.back-to-top svg{display:block}
@media(max-width:640px){.back-to-top{right:14px;bottom:14px;width:42px;height:42px}}

/* nav-search-fluid: 搜索框不显示浅灰提示，宽度适中 */
.site-navbar .nav-search input::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}
.site-navbar .nav-search {
  width: 200px;
  max-width: 200px;
  min-width: 0;
  flex: 0 0 200px;
  box-sizing: border-box;
}
.site-navbar .nav-actions {
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
}
@media (max-width: 1100px) {
  .site-navbar .nav-search {
    width: 168px;
    max-width: 168px;
    flex: 0 0 168px;
  }
}
@media (max-width: 768px) {
  .site-navbar .nav-actions {
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
  }
  .site-navbar .nav-search {
    width: 140px;
    max-width: 140px;
    min-width: 0;
    flex: 0 0 140px;
  }
}

/* search sits immediately left of 团队介绍 */
.site-navbar nav {
  flex: 0 1 auto;
}
.site-navbar .bar > .nav-search {
  margin-left: auto;
}
@media (max-width: 768px) {
  .site-navbar .bar > .nav-search {
    margin-left: auto;
    width: auto;
    flex: 0 1 148px;
    max-width: calc(100vw - 132px);
  }
}
.site-navbar nav a.nav-strong{font-weight:800;}

/* nav-right-cluster: logo stays left; search and menu sit on the right edge */
@media (min-width: 769px) {
  .site-navbar .bar {
    width: calc(100% - 64px);
    max-width: none;
    margin-left: 32px;
    margin-right: 32px;
  }
  .site-navbar nav {
    flex: 0 0 auto;
    margin-left: 0;
    justify-content: flex-end;
  }
  .site-navbar .nav-actions {
    margin-left: 0;
  }
  .site-navbar .bar > .nav-search {
    margin-left: auto;
  }
  .site-navbar nav a.nav-strong {
    font-weight: 800 !important;
  }
}

/* nav-order: 道 | 研经工具 | 窄搜索 | 团队介绍…使用指南 */
.site-navbar .nav-tool{
  color:#022145 !important;
  font-size:15px !important;
  font-weight:800 !important;
  letter-spacing:0.08em;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
  flex:0 0 auto;
}
@media (min-width: 769px){
  .site-navbar .nav-tool{ margin-left:auto; }
  .site-navbar .bar > .nav-search{
    margin-left:10px !important;
    width:120px !important;
    max-width:120px !important;
    flex:0 0 120px !important;
    padding:6px 10px;
  }
}
@media (max-width: 768px){
  .site-navbar .nav-tool{ margin-left:auto; }
  .site-navbar .bar > .nav-search{
    margin-left:8px !important;
    width:84px !important;
    max-width:84px !important;
    flex:0 0 84px !important;
    padding:6px 8px;
  }
  .site-navbar .nav-actions{ margin-left:0 !important; }
}

/* mobile-icon-search: phone shows only the magnifier; menu holds the top links */
.site-navbar .nav-search-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:#7B8E9D;
  cursor:pointer;
  flex:0 0 auto;
  box-shadow:none;
  line-height:1;
}
.site-navbar .nav-search-icon svg{display:block;width:16px;height:16px}
.site-navbar nav a.nav-tool-menu{display:none}
@media (max-width: 768px){
  .site-navbar .bar > .nav-tool{display:none !important}
  .site-navbar nav a.nav-tool-menu{
    display:block !important;
    font-size:15px !important;
    font-weight:800 !important;
    letter-spacing:0.08em;
  }
  .site-navbar .bar > .nav-search{
    margin-left:auto !important;
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    max-width:36px !important;
    flex:0 0 36px !important;
    padding:0 !important;
    gap:0 !important;
    background:transparent !important;
    border-radius:0 !important;
    justify-content:center;
    overflow:visible !important;
  }
  .site-navbar .bar > .nav-search input{display:none !important}
  .site-navbar .nav-search-icon,
  .site-navbar .nav-search-icon svg{width:22px !important;height:22px !important;color:#022145}
  .site-navbar .nav-actions{margin-left:2px !important;flex:0 0 auto !important}
}

/* tool-bold-narrow-search */
.site-navbar .nav-tool,
.site-navbar nav a.nav-tool-menu{
  font-family:"Microsoft YaHei","PingFang SC","Noto Sans SC","Source Han Sans SC",sans-serif !important;
  font-weight:900 !important;
  font-synthesis:weight;
  text-shadow:0.45px 0 0 currentColor;
}
@media (min-width: 769px){
  .site-navbar .bar > .nav-search{
    width:4.4em !important;
    min-width:0 !important;
    max-width:4.4em !important;
    flex:0 0 4.4em !important;
    font-size:15px !important;
    padding:4px 6px !important;
    gap:4px !important;
    box-sizing:border-box;
  }
  .site-navbar .bar > .nav-search .nav-search-icon,
  .site-navbar .bar > .nav-search .nav-search-icon svg{
    width:14px !important;
    height:14px !important;
    flex:0 0 14px;
  }
}

/* tool-side: desktop far right; phone left of a usable search */
.site-navbar .nav-tool,
.site-navbar nav a.nav-tool-menu{
  font-family:inherit !important;
  font-weight:700 !important;
  font-synthesis:weight;
  text-shadow:none !important;
}
@media (min-width: 769px){
  .site-navbar .bar > .nav-search{ order:2; margin-left:auto !important; }
  .site-navbar .bar > nav{ order:3; }
  .site-navbar .bar > .nav-tool{
    order:4;
    margin-left:16px !important;
    font-size:15px !important;
  }
  .site-navbar .nav-actions{ order:5; }
}
@media (max-width: 768px){
  .site-navbar .bar > .nav-tool{
    display:inline-flex !important;
    order:2;
    align-items:center;
    margin-left:auto !important;
    font-size:15px !important;
    font-weight:700 !important;
    letter-spacing:0.08em;
    color:#022145 !important;
  }
  .site-navbar nav a.nav-tool-menu{ display:none !important; }
  .site-navbar .bar > .nav-search{
    order:3;
    display:flex !important;
    align-items:center;
    margin-left:8px !important;
    width:108px !important;
    min-width:108px !important;
    max-width:108px !important;
    height:34px !important;
    flex:0 0 108px !important;
    padding:4px 8px !important;
    gap:4px !important;
    background:#F5F8FA !important;
    border-radius:999px !important;
    box-sizing:border-box;
    overflow:hidden !important;
  }
  .site-navbar .bar > .nav-search input{
    display:block !important;
    flex:1 1 auto !important;
    width:1px !important;
    min-width:0 !important;
    height:22px !important;
    font-size:16px !important;
    padding:0 !important;
  }
  .site-navbar .bar > .nav-search .nav-search-icon,
  .site-navbar .bar > .nav-search .nav-search-icon svg{
    width:16px !important;
    height:16px !important;
    flex:0 0 16px;
  }
  .site-navbar .nav-actions{ order:4; margin-left:4px !important; }
}

/* nav-calm: one type size, tool only a little bolder, more room */
.site-navbar nav a,
.site-navbar .nav-tool,
.site-navbar nav a.nav-tool-menu{
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:400 !important;
  letter-spacing:normal !important;
  line-height:1.2 !important;
  font-synthesis:none;
  text-shadow:none !important;
}
.site-navbar .nav-tool,
.site-navbar nav a.nav-tool-menu{
  font-weight:600 !important;
  color:#022145 !important;
}
@media (min-width: 769px){
  .site-navbar .bar{ gap:20px; }
  .site-navbar nav{ gap:24px; }
  .site-navbar .nav-tool{
    padding:8px 0 20px;
    display:inline-flex;
    align-items:center;
  }
  .site-navbar .bar > .nav-search{
    width:168px !important;
    min-width:168px !important;
    max-width:168px !important;
    flex:0 0 168px !important;
    padding:6px 12px !important;
    gap:8px !important;
    font-size:14px !important;
  }
  .site-navbar .bar > .nav-search .nav-search-icon,
  .site-navbar .bar > .nav-search .nav-search-icon svg{
    width:15px !important;
    height:15px !important;
    flex:0 0 15px;
  }
}
@media (max-width: 768px){
  .site-navbar .bar > .nav-tool{
    font-size:14px !important;
    font-weight:600 !important;
    letter-spacing:normal !important;
    padding:0 !important;
    line-height:1.2 !important;
  }
  .site-navbar nav a{
    font-size:14px !important;
    letter-spacing:normal !important;
    font-weight:400 !important;
  }
}

/* nav-calm-size: tool matches the menu exactly, only weight 600 */
@media (min-width: 769px){
  .site-navbar .bar > .nav-tool{
    font-size:14px !important;
    font-weight:600 !important;
    letter-spacing:normal !important;
    line-height:1.2 !important;
    font-family:inherit !important;
    text-shadow:none !important;
  }
}

/* mobile-bar-fit: keep logo, tool, search and menu inside the screen */
@media (max-width: 768px){
  .site-navbar{
    width:100% !important;
    max-width:100% !important;
    left:0 !important;
    right:0 !important;
    box-sizing:border-box;
    padding-top:env(safe-area-inset-top, 0px);
    padding-left:env(safe-area-inset-left, 0px);
    padding-right:env(safe-area-inset-right, 0px);
  }
  body{ padding-top:calc(56px + env(safe-area-inset-top, 0px)) !important; }
  .site-navbar .bar{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    min-height:56px;
    padding:0 12px !important;
    box-sizing:border-box !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
    overflow:visible !important;
  }
  .site-navbar .brand{
    flex:0 0 auto !important;
    width:auto !important;
    max-width:40px !important;
  }
  .site-navbar .brand img{
    width:32px !important;
    height:32px !important;
    max-width:32px !important;
  }
  .site-navbar .bar > .nav-tool{
    flex:0 0 auto !important;
    margin-left:auto !important;
    white-space:nowrap !important;
    overflow:visible !important;
    max-width:none !important;
  }
  .site-navbar .bar > .nav-search{
    order:3;
    flex:1 1 0 !important;
    width:auto !important;
    min-width:0 !important;
    max-width:132px !important;
    height:32px !important;
    padding:0 8px !important;
    overflow:hidden !important;
  }
  .site-navbar .nav-actions{
    order:4;
    flex:0 0 auto !important;
    margin-left:0 !important;
    min-width:36px !important;
  }
  .site-navbar .hamburger{ flex-shrink:0 !important; }
}

/* 二级页顶栏第一次绘制就用最终高度，避免点击导航后脚本再改高度造成晃动 */
@media (min-width: 769px) {
  .library-hero,
  .guide-hero,
  .resource-hero,
  .hero:not(.home-hero) {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    overflow: hidden !important;
    transition: none !important;
  }
  .library-hero > .hero-inner,
  .guide-hero > .hero-content,
  .guide-hero > .shell.hero-content,
  .resource-hero > .hero-inner,
  .hero:not(.home-hero) > .hero-inner,
  .hero:not(.home-hero) > .shell.hero-inner {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    padding: 78px 0 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
    transition: none !important;
  }
  .library-hero h1,
  .guide-hero h1,
  .resource-hero h1,
  .hero:not(.home-hero) h1 {
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.4px !important;
    margin: 0 0 12px !important;
  }
}

/* secondary-hero-unify-static */
@media (min-width:769px){body .site-secondary-hero{height:280px!important;min-height:280px!important;max-height:280px!important}body .site-secondary-hero>.hero-inner,body .site-secondary-hero>.hero-content{width:min(1200px,92%)!important;height:280px!important;min-height:280px!important;max-height:280px!important;margin-left:auto!important;margin-right:auto!important;padding:78px 0 0!important;display:flex!important;align-items:flex-start!important}body .cl-artical-content .hero,body .perfree-content .hero{height:auto!important;min-height:0!important;max-height:none!important}body .cl-artical-content .hero>.hero-inner,body .perfree-content .hero>.hero-inner{height:auto!important;min-height:0!important;max-height:none!important;width:auto!important;padding:0!important;display:block!important}body .cl-artical-content .hero h1,body .cl-artical-content .hero h2,body .perfree-content .hero h1,body .perfree-content .hero h2{color:#022145!important}body .site-secondary-hero h1{font-size:34px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:-.4px!important;margin:0 0 12px!important;color:#fff!important}body .site-secondary-hero .hero-description,body .site-secondary-hero .hero-lead,body .site-secondary-hero .hero-intro,body .site-secondary-hero .hero-copy>p,body .guide-hero .hero-content p{max-width:760px!important;margin:0!important;font-size:16px!important;line-height:1.7!important;color:rgba(235,246,252,.88)!important}body .site-secondary-hero .hero-actions,body .guide-hero .hero-actions{display:flex!important;gap:12px!important;flex-wrap:wrap!important;margin-top:18px!important}body .site-secondary-hero .hero-primary,body .guide-hero .btn-primary{display:inline-flex!important;align-items:center!important;min-height:44px!important;padding:10px 18px!important;border-radius:6px!important;background:#f7f4ec!important;color:#14324f!important;border:1px solid transparent!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important}body .site-secondary-hero .hero-secondary,body .guide-hero .btn-outline{display:inline-flex!important;align-items:center!important;min-height:44px!important;padding:10px 18px!important;border-radius:6px!important;background:transparent!important;color:#e7eef4!important;border:1px solid #8aa0b4!important;font-size:14px!important;font-weight:600!important;text-decoration:none!important}body .library-hero .hero-books{display:none!important}body .guide-hero .eyebrow{display:none!important}}

/* secondary-hero-match-guide */
@media (min-width: 769px) {
  html body .library-hero,
  html body .guide-hero,
  html body .resource-hero,
  html body .hero:not(.home-hero) {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    overflow: hidden !important;
  }
  html body .library-hero > .hero-inner,
  html body .guide-hero > .hero-content,
  html body .guide-hero > .shell.hero-content,
  html body .resource-hero > .hero-inner,
  html body .hero:not(.home-hero) > .hero-inner,
  html body .hero:not(.home-hero) > .shell.hero-inner,
  html body .site-secondary-hero > .hero-inner,
  html body .site-secondary-hero > .hero-content {
    width: min(1200px, 92%) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 72px 0 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 48px !important;
    box-sizing: border-box !important;
  }
  html body .hero:not(.home-hero) .hero-copy,
  html body .library-hero .hero-copy,
  html body .resource-hero .hero-copy,
  html body .guide-hero .hero-copy,
  html body .site-secondary-hero .hero-copy {
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 720px !important;
  }
  html body .library-hero h1,
  html body .guide-hero h1,
  html body .resource-hero h1,
  html body .hero:not(.home-hero) h1,
  html body .site-secondary-hero h1,
  html body .hero-copy h1,
  html body #hero-title {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    font-stretch: normal !important;
    line-height: 1.25 !important;
    letter-spacing: -0.4px !important;
    text-align: left !important;
    transform: none !important;
    margin: 0 0 10px !important;
    color: #fff !important;
  }
  html body .hero-lead,
  html body .hero-description,
  html body .hero-intro,
  html body .library-hero .hero-copy > p,
  html body .resource-hero .hero-copy > p,
  html body .hero:not(.home-hero) .hero-copy > p,
  html body .site-secondary-hero .hero-copy > p,
  html body .guide-hero .hero-content p {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    font-stretch: normal !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-align-last: auto !important;
    text-justify: auto !important;
    transform: none !important;
    white-space: normal !important;
    max-width: 640px !important;
    margin: 0 !important;
    color: rgba(235, 246, 252, 0.88) !important;
  }
  html body .hero-verse {
    flex: 0 0 380px !important;
    width: 380px !important;
    max-width: 380px !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    align-self: flex-start !important;
  }
  html body .hero-verse blockquote {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-stretch: normal !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    margin: 0 !important;
    color: #fff !important;
  }
  html body .hero-verse cite {
    margin-top: 8px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
  }
}

/* secondary-hero-match-guide-2 */
@media (min-width: 769px) {
  html body .library-hero .hero-copy h1,
  html body .resource-hero .hero-copy h1,
  html body .guide-hero .hero-content h1,
  html body .hero.site-secondary-hero .hero-copy h1,
  html body .site-secondary-hero.library-hero .hero-copy h1 {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.4px !important;
    margin: 0 0 10px !important;
    color: #fff !important;
  }
  html body .library-hero .hero-copy > p,
  html body .site-secondary-hero .hero-copy > p.hero-lead,
  html body .site-secondary-hero .hero-copy > p.hero-description,
  html body .site-secondary-hero .hero-copy > p.hero-intro {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-align-last: auto !important;
    color: rgba(235, 246, 252, 0.88) !important;
    margin: 0 !important;
  }
}
