:root {
  --site-ink: #163229;
  --site-muted: #60766d;
  --site-cream: #f8fafc;
  --site-paper: #ffffff;
  --site-green: #10b981;
  --site-green-deep: #072a1a;
  --site-green-mid: #0b4226;
  --site-green-brand: #059669;
  --site-green-highlight: #34d399;
  --site-green-mint: #d1fae5;
  --site-gold: #34d399;
  --site-rust: #059669;
  --site-line: rgba(15, 23, 42, 0.12);
  --site-shadow: 0 18px 52px rgba(7, 42, 26, 0.14);
  --site-max: 1200px;
}

html,
body {
  background: var(--site-cream) !important;
  color: var(--site-ink);
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-header {
  height: 76px;
  border-bottom-color: rgba(167, 243, 208, 0.28);
  background: linear-gradient(135deg, #072a1a 0%, #0b4226 100%);
  box-shadow: 0 8px 28px rgba(7, 42, 26, 0.22);
}

.site-header__inner {
  width: min(calc(100% - 64px), var(--site-max));
}

.site-brand {
  gap: 10px;
}

.site-brand img {
  width: 142px;
  height: 44px;
}

.site-brand span {
  gap: 3px;
}

.site-brand strong {
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.site-brand small {
  color: rgba(167, 243, 208, 0.82);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-nav {
  gap: 30px;
}

.site-nav a,
.site-header__cta {
  font-size: 13px;
}

.site-header__cta {
  border-color: rgba(167, 243, 208, 0.48);
  background: rgba(52, 211, 153, 0.1);
}

body.is-website-home {
  background: #fff !important;
}

.website-home {
  --site-cream: #fff;
  --site-paper: #fff;
  --home-blend: #072a1a;
}

.web-hero {
  min-height: 660px;
  background: var(--home-blend);
}

.web-hero__inner {
  width: min(calc(100% - 80px), var(--site-max));
  min-height: 660px;
  padding-top: 182px;
  padding-bottom: 96px;
}

.web-hero__image {
  opacity: 0.86;
  background-position: center 28%;
  filter: saturate(0.78);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), #000 22%, #000 48%, rgba(0, 0, 0, 0.65) 74%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), #000 22%, #000 48%, rgba(0, 0, 0, 0.65) 74%, transparent 100%);
}

.web-hero::after {
  background:
    linear-gradient(90deg, rgba(7, 42, 26, 0.72), rgba(7, 42, 26, 0.3) 58%, rgba(7, 42, 26, 0.4)),
    linear-gradient(180deg, rgba(11, 66, 38, 0.34), rgba(7, 42, 26, 0.16) 36%, rgba(7, 42, 26, 0.64) 78%, var(--home-blend));
}

.web-hero::before {
  height: 48%;
  background: linear-gradient(180deg, rgba(7, 42, 26, 0), rgba(7, 42, 26, 0.38) 50%, var(--home-blend));
}

.web-hero h1,
.web-statement__copy h2,
.web-section-head h2,
.web-session__copy h2,
.web-closing h2 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.web-hero h1 {
  max-width: 560px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 600;
}

.web-lead {
  max-width: 460px;
  margin-top: 26px !important;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.8;
}

.web-actions {
  gap: 22px;
  margin-top: 32px;
}

.web-button {
  min-width: 166px;
  border-radius: 1px;
  background: var(--site-gold);
  color: var(--site-ink);
  font-weight: 650;
}

.web-button--light {
  min-width: 0;
  border-bottom-color: rgba(167, 243, 208, 0.8);
  background: transparent;
  color: #fff;
}

.web-metrics {
  bottom: 34px;
  gap: 0;
  width: min(100%, 560px);
}

.web-metrics div {
  min-width: 132px;
  padding-right: 28px;
}

.web-metrics div + div {
  padding-left: 28px;
  border-left: 1px solid rgba(167, 243, 208, 0.32);
}

.web-metrics strong {
  color: #fff;
  font-size: 28px;
}

.web-metrics span {
  color: rgba(255, 255, 255, 0.68);
}

.web-statement {
  min-height: 660px;
  padding-top: 126px;
  padding-bottom: 78px;
  background: var(--home-blend);
}

.web-statement::after {
  background:
    linear-gradient(180deg, var(--home-blend) 0%, rgba(7, 42, 26, 0.8) 10%, rgba(7, 42, 26, 0) 34%),
    linear-gradient(180deg, rgba(11, 66, 38, 0.7), rgba(11, 66, 38, 0.2) 34%, rgba(7, 42, 26, 0.72)),
    linear-gradient(90deg, rgba(7, 42, 26, 0.82), rgba(7, 42, 26, 0.22) 70%);
}

.web-statement__copy h2,
.web-session__copy h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.16;
}

.web-statement__copy p {
  max-width: 430px;
  margin-top: 28px;
  padding-top: 18px;
  border-top-color: rgba(52, 211, 153, 0.5);
  font-size: 15px;
}

.web-index,
.web-eyebrow {
  color: var(--site-gold);
}

.web-courses {
  padding-top: 104px;
  padding-bottom: 112px;
  background: var(--site-cream);
}

.web-section-head {
  align-items: flex-end;
}

.web-section-head h2 {
  font-size: clamp(34px, 3.7vw, 48px);
}

.web-note {
  max-width: 320px;
  color: var(--site-muted);
  font-size: 14px;
}

.web-course-grid {
  margin-top: 36px;
}

.web-course-track {
  gap: 16px;
}

.web-course-tile {
  height: 440px;
  flex-basis: clamp(280px, calc((min(100vw - 80px, var(--site-max)) - 32px) / 3), 390px);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(20, 32, 27, 0.12);
}

.web-course-tile::after {
  background: linear-gradient(180deg, rgba(9, 28, 23, 0.04), rgba(9, 28, 23, 0.78));
}

.web-course-tile b {
  color: rgba(255, 255, 255, 0.9);
}

.web-course-tile strong {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 23px;
}

.web-session {
  min-height: 530px;
  border-radius: 4px;
  box-shadow: none;
}

.web-session::after {
  background:
    linear-gradient(90deg, rgba(7, 43, 33, 0.9), rgba(7, 43, 33, 0.5) 42%, rgba(7, 43, 33, 0.16)),
    linear-gradient(180deg, rgba(7, 43, 33, 0.08), rgba(7, 43, 33, 0.68));
}

.web-session__copy {
  min-height: 530px;
  padding: 62px 54px;
}

.web-session__image span {
  top: 22px;
  left: 22px;
  background: rgba(11, 59, 46, 0.78);
  color: rgba(255, 255, 255, 0.86);
}

.web-date {
  color: #fff;
  font-size: 26px;
}

.web-faculty {
  padding-top: 112px;
  padding-bottom: 118px;
  background: var(--site-paper);
}

.web-faculty__grid {
  gap: 24px;
  margin-top: 34px;
}

.web-faculty__grid article {
  background: var(--site-cream);
  border-radius: 4px;
}

.web-faculty__grid img {
  height: 420px;
  filter: saturate(0.88) contrast(1.02);
}

.web-faculty__grid strong,
.web-faculty__grid span {
  margin-left: 22px;
}

.web-faculty__grid strong {
  margin-top: 16px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
}

.web-faculty__grid span {
  margin-bottom: 20px;
}

.web-closing {
  padding-top: 84px;
  padding-bottom: 38px;
  background: var(--site-green-deep);
}

.web-closing h2 {
  font-size: clamp(34px, 4vw, 50px);
}

.web-closing__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
}

.web-closing__actions .web-button {
  min-width: 154px;
}

.web-closing__actions .web-link {
  margin-top: 0;
}

.web-closing__footer {
  margin-top: 64px;
  border-top-color: rgba(52, 211, 153, 0.45);
}

.web-closing__footer strong {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
}

/* Continuous character bouncing makes long Chinese copy feel noisy. */
.web-text-char,
.web-course-title-char,
.site-bounce-char {
  display: inline;
  animation: none !important;
  transform: none !important;
}

@media (max-width: 799px) {
  #app {
    padding-top: 64px;
  }

  .site-header {
    height: 64px;
  }

  .site-header__inner {
    width: calc(100% - 32px);
  }

  .site-brand img {
    width: 126px;
    height: 40px;
  }

  .site-brand strong {
    gap: 6px;
    font-size: 13px;
  }

  .site-brand small {
    font-size: 10px;
  }

  .site-menu-button {
    width: 40px;
    height: 40px;
    border-color: rgba(167, 243, 208, 0.46);
  }

  .site-mobile-menu {
    top: 64px;
    background: var(--site-paper);
  }

  .web-hero,
  .web-hero__inner {
    min-height: 600px;
  }

  .web-hero__inner {
    width: calc(100% - 32px);
    padding-top: 198px;
    padding-bottom: 92px;
  }

  .web-hero__image {
    background-position: 58% 26%;
  }

  .web-hero h1 {
    max-width: 330px;
    font-size: 39px;
    line-height: 1.12;
  }

  .web-lead {
    max-width: 330px;
    margin-top: 20px !important;
    font-size: 14px;
    line-height: 1.75;
  }

  .web-actions {
    gap: 14px;
    margin-top: 26px;
  }

  .web-button {
    min-height: 44px;
    padding: 12px 16px;
  }

  .web-metrics {
    bottom: 22px;
    gap: 0;
    width: 100%;
  }

  .web-metrics div {
    min-width: 0;
    flex: 1;
    padding-right: 12px;
  }

  .web-metrics div + div {
    padding-left: 12px;
  }

  .web-metrics strong {
    font-size: 22px;
  }

  .web-metrics span {
    font-size: 9px;
  }

  .web-statement {
    min-height: 610px;
    padding: 120px 16px 52px;
  }

  .web-statement__copy h2,
  .web-session__copy h2,
  .web-section-head h2,
  .web-closing h2 {
    font-size: 31px;
    line-height: 1.22;
  }

  .web-statement__copy p {
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.8;
  }

  .web-courses {
    padding-top: 72px;
    padding-bottom: 78px;
  }

  .web-section-head {
    display: block;
  }

  .web-section-head .web-link {
    margin-top: 18px;
  }

  .web-course-head__actions {
    justify-content: space-between;
    margin-top: 22px;
  }

  .web-course-grid {
    margin-top: 24px;
    margin-right: -16px;
    padding-right: 16px;
  }

  .web-course-track {
    gap: 12px;
  }

  .web-course-tile {
    height: 360px;
    flex-basis: calc(100vw - 72px);
  }

  .web-course-tile strong {
    font-size: 20px;
  }

  .web-session {
    min-height: 540px;
    width: calc(100% - 32px);
  }

  .web-session__copy {
    width: 100%;
    min-height: 540px;
    padding: 44px 24px 32px;
  }

  .web-session__copy > p:not(.web-eyebrow) {
    max-width: 300px;
    margin-top: 18px;
    font-size: 13px;
  }

  .web-date {
    padding-top: 28px;
    font-size: 24px;
  }

  .web-faculty {
    padding-top: 76px;
    padding-bottom: 82px;
  }

  .web-faculty__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 26px;
  }

  .web-faculty__grid img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .web-closing {
    padding: 68px 20px 32px;
  }

  .web-closing__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }

  .web-closing__actions .web-button {
    justify-content: center;
    width: 100%;
  }

  .web-closing__actions .web-link {
    justify-content: center;
  }

  .web-closing__footer {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared inner-page treatment */
.course-ui2,
.training-page,
.profile-ui2 {
  background: var(--site-cream) !important;
  color: var(--site-ink) !important;
}

.course-hero,
.training-page .training-head,
.profile-ocean {
  background: var(--site-green-deep) !important;
}

.course-hero__aurora,
.training-page .training-head__aurora,
.profile-ocean__aurora {
  opacity: 0.35;
}

.course-hero__eyebrow,
.training-page .training-head__en,
.profile-brand uni-text:last-child {
  color: var(--site-gold) !important;
}

.course-search {
  border-color: rgba(52, 211, 153, 0.54) !important;
  border-radius: 3px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.course-tabs {
  background: rgba(244, 241, 234, 0.94) !important;
  border-bottom-color: var(--site-line) !important;
}

.course-tabs uni-text.active,
.training-page .filters uni-text.active {
  background: var(--site-green-deep) !important;
  box-shadow: none !important;
}

.course-feature,
.course-editorial__list .item,
.course-path,
.training-page .session,
.next-action,
.service-main,
.service-mid,
.rules {
  border-radius: 4px !important;
  box-shadow: 0 12px 32px rgba(20, 32, 27, 0.1) !important;
}

.course-feature {
  box-shadow: 0 18px 42px rgba(20, 32, 27, 0.16) !important;
}

.course-editorial__list .item {
  border: 1px solid var(--site-line) !important;
  background: var(--site-paper) !important;
}

.course-editorial__list .item__tags uni-text {
  background: rgba(40, 99, 76, 0.1) !important;
  color: var(--site-green) !important;
}

.course-editorial__list .item__meta {
  color: var(--site-rust) !important;
}

.course-path {
  border: 1px solid rgba(52, 211, 153, 0.48) !important;
  background: var(--site-green-deep) !important;
}

.training-page .filters {
  background: transparent !important;
}

.training-page .session {
  overflow: hidden;
  border-color: var(--site-line) !important;
  background: var(--site-paper) !important;
}

.training-page .session__visual {
  border-bottom-color: rgba(52, 211, 153, 0.38) !important;
  background: var(--site-green-deep) !important;
}

.training-page .session__facts {
  color: var(--site-rust) !important;
}

.training-page .session__actions uni-button {
  border-color: rgba(52, 211, 153, 0.62) !important;
  border-radius: 2px !important;
  background: #d1fae5 !important;
  color: var(--site-green-deep) !important;
}

.profile-ocean {
  color: #fff !important;
}

.member-glass {
  border-color: rgba(52, 211, 153, 0.46) !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 18px 42px rgba(5, 38, 29, 0.22) !important;
}

.member-avatar {
  border-radius: 3px !important;
}

.next-action {
  border-color: rgba(52, 211, 153, 0.44) !important;
  background: var(--site-paper) !important;
}

.next-action uni-button,
.service-main {
  background: var(--site-green-deep) !important;
}

.service-mid {
  border-color: var(--site-line) !important;
  background: var(--site-paper) !important;
}

.service-mid--dark {
  background: var(--site-green) !important;
}

.advisor-strip {
  border-color: var(--site-line) !important;
}

.rules {
  border-color: var(--site-line) !important;
  background: var(--site-paper) !important;
}

/* Service terms follow the website's green palette. */
.legal-page {
  color: var(--site-ink) !important;
  background: #fff !important;
}
.legal-page .legal-hero {
  background: linear-gradient(135deg, #072a1a, #0b4226) !important;
}
.legal-page .legal-hero__kicker { color: #34d399 !important; }
.legal-page .legal-hero__copy { color: #bfd7ca !important; }
.legal-page .legal-tabs__inner {
  align-items: center;
  background: #072a1a !important;
  border-color: rgba(167, 243, 208, .22) !important;
  box-shadow: 0 .5rem 1.125rem rgba(7, 42, 26, .12) !important;
}
.legal-page .legal-tab {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  line-height: 1 !important;
  background: rgba(167, 243, 208, .08) !important;
  border-color: rgba(167, 243, 208, .24) !important;
  color: #bfd7ca !important;
}
.legal-page .legal-tab.active {
  background: #d1fae5 !important;
  color: #072a1a !important;
  box-shadow: 0 .375rem .9375rem rgba(16, 185, 129, .12) !important;
}
.legal-page .legal-content { background: #fff !important; }
.legal-page .document-head,
.legal-page .document-body {
  background: #fff !important;
  border-color: #dce9df !important;
  box-shadow: 0 .5rem 1.5rem rgba(7, 42, 26, .06) !important;
}
.legal-page .document-head__title,
.legal-page .legal-section__title { color: #163229 !important; }
.legal-page .document-head__summary,
.legal-page .legal-section__paragraph,
.legal-page .legal-section__bullet,
.legal-page .release-warning { color: #526b5e !important; }
.legal-page .document-head__meta,
.legal-page .legal-section { border-color: #dce9df !important; }
.legal-page .document-head__meta,
.legal-page .legal-footer { color: #6a8174 !important; }
.legal-page .legal-section__dot {
  background: #10b981 !important;
  box-shadow: none !important;
}
.legal-page .legal-section__notice {
  background: #e9f6ee !important;
  color: #526b5e !important;
}
.legal-page .legal-section__notice uni-text:first-child,
.legal-page .legal-footer uni-text:first-child { color: #059669 !important; }

.legal-page .legal-brand-logo {
  width: 300px;
  max-width: 86%;
  height: 110px;
  margin: 0 auto;
  position: relative;
  background: none;
}
.legal-brand-logo__piece {
  position: absolute;
  inset: 0;
  background: #163229;
  -webkit-mask: url('/static/images/hedian-logo-transparent.png') center / contain no-repeat;
  mask: url('/static/images/hedian-logo-transparent.png') center / contain no-repeat;
  transform-origin: center;
}
.legal-brand-logo__piece:nth-child(1) { clip-path: inset(0 83% 0 0); --logo-delay: 0s; }
.legal-brand-logo__piece:nth-child(2) { clip-path: inset(0 66% 0 17%); --logo-delay: .12s; }
.legal-brand-logo__piece:nth-child(3) { clip-path: inset(0 47% 0 34%); --logo-delay: .24s; }
.legal-brand-logo__piece:nth-child(4) { clip-path: inset(0 40% 0 53%); --logo-delay: .36s; }
.legal-brand-logo__piece:nth-child(5) { clip-path: inset(0 22% 0 60%); --logo-delay: .48s; }
.legal-brand-logo__piece:nth-child(6) { clip-path: inset(0 6% 0 78%); --logo-delay: .60s; }
.legal-brand-logo__piece:nth-child(7) { clip-path: inset(0 0 0 94%); --logo-delay: .72s; }
:is(.legal-brand-logo, .site-brand-logo).is-animated .legal-brand-logo__piece {
  animation: hedian-logo-assemble 7s cubic-bezier(.22,.7,.25,1) var(--logo-delay) infinite both;
}
@keyframes hedian-logo-assemble {
  0% { opacity: 0; transform: translateY(10px); }
  12% { opacity: 1; transform: translateY(-2px); }
  18%, 82% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  :is(.legal-brand-logo, .site-brand-logo).is-animated .legal-brand-logo__piece { animation: none; }
}
@media (max-width: 799px) {
  .legal-page {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-text-size-adjust: 100%;
  }
  .legal-page .legal-hero { padding: 36px 20px 28px; }
  .legal-page .legal-hero__title { font-size: 28px; line-height: 1.35; }
  .legal-page .legal-hero__copy { font-size: 14px; line-height: 1.75; }
  .legal-page .legal-tabs__inner { gap: 8px; padding: 10px 16px; box-sizing: border-box; }
  .legal-page .legal-tab { min-width: 0; flex-shrink: 0; height: 42px; padding: 0 14px; font-size: 14px; }
  .legal-page .legal-content { padding: 20px 16px 0; }
  .legal-page .document-head,
  .legal-page .document-body { padding: 24px 20px; border-radius: 20px; box-sizing: border-box; }
  .legal-page .document-head__title { font-size: 23px; line-height: 1.45; font-weight: 650; }
  .legal-page .document-head__summary { margin-top: 14px; font-size: 15px; line-height: 1.85; }
  .legal-page .document-body { margin-top: 16px; }
  .legal-page .legal-section { padding: 24px 0; }
  .legal-page .legal-section:first-child { padding-top: 0; }
  .legal-page .legal-section:last-child { padding-bottom: 0; }
  .legal-page .legal-section__title { font-size: 18px; line-height: 1.6; font-weight: 650; margin-bottom: 14px; }
  .legal-page .legal-section__paragraph,
  .legal-page .legal-section__bullet { font-size: 16px; line-height: 1.9; letter-spacing: 0; text-align: left; overflow-wrap: anywhere; word-break: normal; margin-top: 16px; }
  .legal-page .legal-section__notice { font-size: 14px; line-height: 1.8; padding: 16px; }
  .legal-page .legal-footer { padding: 30px 0 24px; }
}
@media (max-width: 360px) {
  .legal-page .legal-content { padding-right: 12px; padding-left: 12px; }
  .legal-page .document-head,
  .legal-page .document-body { padding-right: 16px; padding-left: 16px; }
  .legal-page .legal-tab { padding: 0 12px; font-size: 13px; }
}

.site-brand-logo { position: relative; width: 142px; height: 44px; flex: none; }
.site-brand-logo .legal-brand-logo__piece { background: #fff; }
@media (max-width: 799px) { .site-brand-logo { width: 126px; height: 40px; } }
