:root {
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #1e264f;
  background: #fff;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4%;
  min-height: 83px;
  background: var(--navigation-glass-background);
  -webkit-backdrop-filter: blur(var(--navigation-glass-blur));
  backdrop-filter: blur(var(--navigation-glass-blur));
  color: #fff;
  z-index: 2;
}

.home header { position: fixed; inset: 0 0 auto; background: var(--navigation-glass-background); }
.brand img { display: block; width: 202px; max-height: 60px; object-fit: contain; }
.brand--en { display: flex; align-items: center; gap: var(--brand-mark-gap); flex-shrink: 0; }
.brand-mark { position: relative; display: block; width: var(--brand-mark-size); height: var(--brand-mark-size); overflow: hidden; flex: none; }
/* 原图圆形标志边界为 (51,89)–(579,617)，仅显示这部分，不改写品牌图片。 */
.brand--en .brand-mark img { position: absolute; width: calc(100% * 2269 / 528); height: auto; max-height: none; left: calc(-100% * 51 / 528); top: calc(-100% * 89 / 528); }

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 40px);
  font-weight: 700;
  font-size: 18px;
}

nav a { position: relative; }
nav a:hover, nav a:focus-visible { color: #f5ad3b; text-decoration: none; }
nav a[aria-current] { color: #f5ad3b; }
nav a[aria-current]::after, nav a:hover::after, nav a:focus-visible::after {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  top: calc(100% + 3px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.home-slides {
  height: calc(100svh - 60px);
  overflow-y: auto;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
}
.home-slides.is-scrolling { scroll-snap-type: none; }

.hero {
  display: flex;
  align-items: center;
  min-height: 100%;
  scroll-snap-align: start;
  background: #dce9f1 url('./media/about.jpg') center / cover no-repeat;
}

.intro { position: relative; background: #222e47; }
.intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.practice { background-image: url('./media/practice.jpg'); }
.contact { background-image: url('./media/contact.jpg'); }
.contact { overflow: hidden; background-position: 0% 50%; font-family: var(--contact-font-family); color: var(--contact-ink); }
.contact-stage { width: 93.6%; }
.contact-content { max-width: var(--contact-content-width); margin: auto; }
.hero .contact-title { margin: 0; padding: var(--contact-text-inset); font-size: var(--contact-heading-size); line-height: var(--contact-heading-line-height); }
.contact-title img { width: var(--contact-arrow-size); height: var(--contact-arrow-size); vertical-align: baseline; }
.contact a:hover, .contact a:focus-visible { text-decoration: none; }
.contact-rule { padding-left: .8333%; margin-block: .4167%; }
.contact-rule hr { margin: 0; border: 0; border-bottom: var(--contact-rule-width) solid var(--contact-rule-color); }
.contact-details { margin: 0; padding: calc(var(--contact-text-inset) + 1.1%) var(--contact-text-inset) var(--contact-text-inset); font-size: var(--contact-body-size); line-height: var(--contact-body-line-height); font-style: normal; }
.contact-details p { margin: 0 var(--contact-text-inset) 0 0; }
.contact-details p + p::before { content: "-"; display: block; }
/* 每个模块按自身宽度从右侧进入；移出后移除状态，以便再次进入时重播。 */
@media (max-width: 767px) {
  .hero.contact { display: none; }
}
.hero-content { width: 52.3%; margin-left: 20.9%; padding-top: 12px; }

.hero h1, .hero h2 {
  font-size: clamp(32px, 2.85vw, 60px);
  line-height: 1.45;
  margin: 0 0 18px;
}

.hero-arrow {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: .55em;
}

.metrics {

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 17px 0;
  text-align: center;
}
.metrics > div + div { border-left: 1px solid #fff8; }
.metrics strong, .metrics b { display: block; }
.metrics strong { color: #f4ac3b; font-size: clamp(23px, 2.2vw, 46px); }
.metrics sup { font-size: .43em; color: #20284d; margin-left: .25em; }
.metrics b { font-size: clamp(15px, 1.3vw, 25px); }
.hero ul { font-size: 14px; line-height: 2; padding-left: 30px; }
.home #about .about-link { text-decoration: none; }
.home .hero-content h2 a:is(:hover, :focus-visible) { text-decoration: none; }
.home .practice p a:is(:hover, :focus-visible) { text-decoration: none; }

.slide-nav {
  position: fixed;
  inset: calc(50% - 84px) auto auto 3%;
  display: grid;
  justify-items: center;
  gap: 13px;
}
.slide-nav a {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #1e264f;
  transform: scale(.6);
}
.slide-nav a[aria-current] { background: #f5ad3b; transform: none; }
.slide-nav a:focus-visible { outline: 3px solid #fff; }

.scroll-next {
  position: fixed;
  right: 2.5%;
  bottom: 88px;
  background: transparent;
  color: #1e264f;
  border: none;
  border-radius: 18px;
  padding: 8px;
  cursor: pointer;
}
.scroll-next span {
  display: block;
  width: 20px;
  height: 36px;
  border: 2px solid;
  border-radius: 12px;
  margin: 0 auto 6px;
}
.scroll-next:hover, .scroll-next:focus-visible { color: #f6ab3b; }

.home footer, .about-page footer {
  min-height: 60px;
  background: #1e2652;
  color: #b6bcc5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.footer-notice { text-align: right; }

.office-links {
  position: relative;
  flex: none;
  font-family: "Microsoft YaHei", sans-serif;
}

.office-links summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 131px;
  min-height: 40px;
  line-height: 40px;
  padding: 0 15px;
  list-style: none;
  border: 0;
  border-radius: 5px;
  background: rgb(30 38 82 / 74%);
  color: #d8d8d8;
  cursor: pointer;
}

.office-links[open] summary { box-shadow: inset 0 0 0 1px #5cacfe; }
.office-links summary:hover { color: #ffc000; font-weight: bold; }
.office-links summary::-webkit-details-marker { display: none; }

.office-links summary::before {
  /* The original menu icon has three bullets and three horizontal strokes. */
  content: "";
  width: 24px;
  height: 14px;
  background:
    repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 5px) left / 3px 12px no-repeat,
    repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 5px) right / 18px 12px no-repeat;
}

.office-links ul {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 100%;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  border-radius: 5px;
  background: #fff;
  color: #1e2652;
  box-shadow: 0 0 12px 2px rgb(0 0 0 / 8%);
}

.office-links a {
  display: block;
  padding: 0 20px;
  font-size: 14px;
  font-weight: bold;
  line-height: 30px;
  white-space: nowrap;
}

.office-links a:is(:hover, :focus-visible) {
  background: rgb(30 38 82 / 74%);
  color: #ffc000;
  text-decoration: none;
}

.wrap { width: min(100% - 40px, 1100px); margin: 45px auto; flex: 1; }
.wrap h1 { line-height: 1.25; }
.wrap p, .wrap address { white-space: pre-line; }

@media (max-width: 767px) {
  header, .home header {
    position: relative;
    flex-wrap: wrap;
    padding: 14px 5%;
    background: #303b5b;
  }
  nav { justify-content: flex-start; font-size: 15px; }
  .home-slides { height: auto; overflow: visible; scroll-snap-type: none; }
  .hero { min-height: 540px; background-position: 65% center; }
  .hero-content { width: 90%; margin: auto; padding: 20px; background: #edf5fbd9; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .slide-nav, .scroll-next { display: none; }
  .home footer, .about-page footer { flex-wrap: wrap; }
  .footer-notice { text-align: start; }
}



/* CMS 富文本中的媒体保持在正文容器内，不改变图片固有比例。 */
.about-page .article-body { overflow-wrap: anywhere; }
.about-page .article-body :is(img, video, iframe, table) { max-width: 100%; }
.about-page .article-body :is(img, video) { height: auto; }
.about-page .article-body { overflow-x: auto; }

.home-rule { height: var(--contact-rule-width); background: var(--contact-rule-color); }
@media (min-width: 768px) {
  /* The source's 93.6% stage contains centered 1000px modules, including their insets. */
  .home .hero-content {
    width: var(--home-content-width);
    max-width: 93.6%;
    margin-left: max(0px, calc((93.6% - var(--home-content-width)) / 2));
    padding: 0;
    font-family: var(--home-font);
  }
  .home .hero-content :is(h1, h2) {
    margin: 0;
    padding: var(--home-inset);
    font-size: var(--home-heading-size);
    line-height: var(--home-heading-line);
  }
  .home .hero-arrow { display: inline-block; width: var(--contact-arrow-size); height: var(--contact-arrow-size); vertical-align: baseline; background: transparent; }
  .home-rule {
    height: auto;
    padding: var(--home-rule-width) 0 var(--home-rule-width) var(--home-inset);
    background: transparent;
  }
  .home-rule::after { content: ''; display: block; height: var(--home-rule-width); background: var(--home-rule-color); }
  .home-rule--lower { padding-top: var(--home-metric-top); }
  .practice .home-rule { padding: .4167% 0 .4167% .8333%; }
  .home .metrics { padding: var(--home-metric-top) 0 0; font-family: var(--home-metric-font); }
  .home .metrics > div { min-height: var(--home-metric-height); }
  .home .metrics strong { font-size: var(--home-metric-number); line-height: var(--home-metric-number); }
  .home .metrics sup { line-height: 0; }
  .home .metrics b { margin-top: var(--home-metric-label-gap); font-size: var(--home-metric-label); line-height: var(--home-metric-label-line); }
  .home .hero-content ul { margin: 0; padding: var(--home-inset) var(--home-inset) var(--home-inset) calc(var(--home-inset) * 4); font-size: var(--home-body-size); line-height: var(--home-highlight-line); }
  .home .practice p { margin: 0; padding: var(--home-inset); padding-right: calc(var(--home-inset) * 2); font-size: var(--home-body-size); line-height: var(--home-highlight-line); }
}
