/* 官网字号唯一入口：只统一字号，不改变布局、颜色、字重或动画。 */
:root {
  --site-text-hero: 44px;
  --site-text-title: 28px;
  --site-text-subtitle: 20px;
  --site-text-body: 16px;
  --site-text-caption: 14px;
  --site-text-label: 12px;
  --site-text-button: 15px;
  --site-desktop-title-size: var(--site-text-hero) !important;
  --site-desktop-section-title-size: var(--site-text-title) !important;
  --site-desktop-card-title-size: var(--site-text-subtitle) !important;
  --site-desktop-small-title-size: var(--site-text-subtitle) !important;
  --site-desktop-body-size: var(--site-text-body) !important;
  --site-desktop-body-strong-size: var(--site-text-body) !important;
  --site-desktop-small-size: var(--site-text-caption) !important;
  --site-desktop-label-size: var(--site-text-label) !important;
  --site-desktop-button-size: var(--site-text-button) !important;
}

body[data-static-page][data-static-page] {
  font-size: var(--site-text-body) !important;
}

body[data-static-page][data-static-page] :is(p, li, td, th, label, input, textarea, select, .ss-font-17, .ss-font-16, .site-copy-type-body, .site-copy-type-body-emphasis, .form-title__sub, .program-product-intro, .registration-card-intro, .index-feature-card__desc, .contact-value-card__text) {
  font-size: var(--site-text-body) !important;
}

body[data-static-page][data-static-page] :is(h1, .site-title, .site-copy-type-hero-title) {
  font-size: var(--site-text-hero) !important;
}

body[data-static-page][data-static-page] :is(h2, .site-section-title, .site-copy-type-title, .ss-font-34:not(span):not(.price-num), .form-title__main, .contact-section-title) {
  font-size: var(--site-text-title) !important;
}

body[data-static-page][data-static-page] :is(h3, h4, h5, h6, .ss-font-22, .site-copy-type-subtitle, .content__stat-title, .index-feature-card__title) {
  font-size: var(--site-text-subtitle) !important;
}

body[data-static-page][data-static-page] :is(small, .site-caption, .ss-font-15, .ss-font-14, .ss-font-13, .site-copy-type-caption, .form__agree-row, .form__agreement-link) {
  font-size: var(--site-text-caption) !important;
}

body[data-static-page][data-static-page] :is(.ss-font-12, .site-copy-type-label) {
  font-size: var(--site-text-label) !important;
}

body[data-static-page][data-static-page] :is(button, .site-button, .site-copy-type-button, .button, .site-ai-action, .ruzhu-btn, .home-conversion__button) {
  font-size: var(--site-text-button) !important;
}

/* 标题及正文中的内嵌文字继承所属层级；图标、统计数值不参与统一。 */
body[data-static-page][data-static-page] :is(h1, h2, h3, h4, h5, h6, p, .site-section-title, .form-title__main, .ss-font-34:not(span):not(.price-num), .ss-font-22):not(.contact-stat__value) > :is(span, strong, b, em):not([class*="icon"]):not(.price-num):not(.ss-font-34):not(.banner-p) {
  font-size: inherit !important;
}

/* 轮播仍沿用首页已确认的独立字号和姿态。 */
/* 页脚标语保留现有标题字号；申请页标语按最新指令复用轮播字号。 */
@media (min-width: 1025px) {
  body[data-static-page][data-static-page] .site-footer-service__title {
    font-size: var(--site-text-title) !important;
  }
  /* BOSS reference: use the same28px/700 title face as the honors heading. */
  body[data-static-page][data-static-page] [data-shared-footer-banner] [data-shared-footer-banner-inner] [data-shared-footer-banner-copy] [data-shared-footer-banner-title] {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }
}

body[data-static-page="reg"][data-static-page="reg"] .content__stat-title,
body[data-static-page][data-static-page] .layout-banner .banner-img .banner-p {
  font-size: 62px !important;
}

/* 官网共享页脚服务系统：字号、颜色与右侧“关注我们 / 飞书号”使用同一套变量。 */
body[data-static-page][data-static-page] .site-footer-main__services {
  flex: 0 1 auto;
  text-align: left;
}

body[data-static-page][data-static-page] .site-footer-services {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

body[data-static-page][data-static-page] .site-footer-services__link {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--site-font-family);
  font-size: var(--site-text-body) !important;
  line-height: 1.5;
  text-decoration: none;
}

body[data-static-page][data-static-page] .site-footer-services__link:hover,
body[data-static-page][data-static-page] .site-footer-services__link:focus-visible {
  color: #d71c20;
  text-decoration: none;
}

/* BOSS 2026-10-20: use the existing footer title face, without a second style. */
body[data-static-page][data-static-page] .site-footer-main__heading {
  font-family: var(--site-font-family);
  font-size: var(--site-text-body) !important;
  font-weight: var(--site-weight-heading);
}

@media (min-width: 1025px) {
  /* Keep the outer columns fixed. Split the existing free space 3:1 instead
     of 1:1: the services-to-follow gap becomes exactly half its old size. */
  body[data-static-page][data-static-page] [data-shared-footer-content]:has([data-shared-footer-services]) {
    display: grid;
    grid-template-columns: max-content minmax(72px, 3fr) max-content minmax(24px, 1fr) max-content;
    column-gap: 0;
  }
  body[data-static-page][data-static-page] [data-shared-footer-left] { grid-column: 1; }
  body[data-static-page][data-static-page] [data-shared-footer-services] { grid-column: 3; }
  body[data-static-page][data-static-page] [data-shared-footer-right] { grid-column: 5; }

  /* Latest BOSS reference supersedes the previous gray banner. */
  body[data-static-page][data-static-page] [data-shared-footer-banner] {
    background-image: url("../images/sbanner4.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* Same as the unchanged home numbers; units and labels remain untouched. */
  body[data-static-page="contact"][data-static-page="contact"] #app :is(.contact-stat__value, .contact-rd__metric-value) > strong {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
    font-size: 34px !important;
    font-weight: 760 !important;
    line-height: 1;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  :root { --site-text-hero: 36px; }
  body[data-static-page="reg"][data-static-page="reg"] .content__stat-title,
  body[data-static-page][data-static-page] .layout-banner .banner-img .banner-p {
    font-size: 44px !important;
  }
}

@media (max-width: 767px) {
  :root { --site-text-hero: 30px; --site-text-title: 24px; }
  body[data-static-page="reg"][data-static-page="reg"] .content__stat-title,
  body[data-static-page][data-static-page] .layout-banner .banner-img .banner-p {
    font-size: 34px !important;
  }
}
/* BOSS: application slogan reuses the carousel type and two-line layout. */
body[data-static-page="reg"][data-static-page="reg"] .content__stat-title {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (min-width: 1025px) {
  /* Seven characters at the carousel scale must stay on each requested line. */
  body[data-static-page="reg"] .content__stat {
    width: 468px;
    flex-shrink: 0;
  }
}
