/*
 * Shared public-site shell.
 * Keep page-specific content styles in their existing files; this file owns only
 * the global header, footer, navigation and cross-page reading rhythm.
 */
:root {
  --site-ink: #142d43;
  --site-ink-deep: #102a3d;
  --site-blue: #16577d;
  --site-gold: #b78942;
  --site-cream: #f4f1e9;
  --site-paper: #fffdf8;
  --site-line: #d8d0bf;
  --site-muted: #64777d;
  --site-shadow: 0 10px 30px rgba(16, 42, 61, 0.1);
}

body.site-shell {
  color: var(--site-ink);
  background: var(--site-cream);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

body.site-shell .site-return-bar,
body.site-shell ._utility_t3ymp_1,
body.site-shell ._mobileDock_t3ymp_1 {
  display: none !important;
}

.site-header,
.site-footer {
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--site-line);
  background: rgba(244, 241, 233, 0.96);
  box-shadow: 0 1px 0 rgba(16, 42, 61, 0.02);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(1440px, 100%);
  height: 76px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--site-ink);
  text-decoration: none;
}

.site-brand__mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background: var(--site-ink);
  -webkit-mask: url("../images/longc-logo-mask.png") left center / auto 100% no-repeat;
  mask: url("../images/longc-logo-mask.png") left center / auto 100% no-repeat;
}

.site-brand__wordmark {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.site-brand__wordmark strong {
  color: var(--site-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: 0.04em;
}

.site-brand__wordmark small {
  color: var(--site-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 10px;
  letter-spacing: 0.06em;
}

.site-header__nav {
  width: clamp(540px, 46vw, 650px);
  margin-left: auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 0.9fr 1.35fr 1fr;
  align-items: center;
  gap: 0;
}

.site-nav-item {
  position: relative;
  min-width: 0;
}

.site-nav-item__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: stretch;
}

.site-nav-item__main > a {
  position: relative;
  padding: 27px 0 25px;
  text-align: center;
  color: var(--site-ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-item__main > a::after {
  position: absolute;
  right: 8px;
  bottom: 17px;
  left: 8px;
  height: 2px;
  content: "";
  background: var(--site-gold);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav-item__main > a:hover,
.site-nav-item__main > a[aria-current="page"] {
  color: var(--site-blue);
}

.site-nav-item__main > a:hover::after,
.site-nav-item__main > a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav-item__main > button {
  width: 24px;
  height: 76px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  color: var(--site-muted);
  background: transparent;
  cursor: pointer;
}

.site-nav-item__main > button span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  display: block;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.site-nav-item__main > button:hover,
.site-nav-item__main > button:focus-visible {
  color: var(--site-blue);
}

.site-nav-item.is-dropdown-open .site-nav-item__main > button span {
  transform: translateY(2px) rotate(225deg);
}

.site-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 10;
  width: 238px;
  padding: 10px;
  border: 1px solid rgba(20, 45, 67, 0.12);
  border-radius: 0 0 12px 12px;
  display: grid;
  gap: 2px;
  visibility: hidden;
  background: rgba(255, 253, 248, 0.99);
  box-shadow: 0 18px 38px rgba(16, 42, 61, 0.14);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.site-nav-item:nth-last-child(-n + 2) .site-nav-dropdown {
  right: 0;
  left: auto;
  transform: translate(0, 8px);
}

.site-nav-dropdown a {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--site-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
}

.site-nav-dropdown a:hover,
.site-nav-dropdown a:focus-visible {
  color: var(--site-blue);
  background: #f1ede3;
}

@media (min-width: 1001px) {
  .site-nav-item:hover .site-nav-item__main > button span {
    transform: translateY(2px) rotate(225deg);
  }

  .site-nav-item:hover .site-nav-dropdown,
  .site-nav-item.is-dropdown-open .site-nav-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .site-nav-item:nth-last-child(-n + 2):hover .site-nav-dropdown,
  .site-nav-item:nth-last-child(-n + 2).is-dropdown-open .site-nav-dropdown {
    transform: translate(0, 0);
  }
}

.site-header__cta {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--site-blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(22, 87, 125, 0.16);
}

.site-header__cta:hover {
  color: #fff;
  background: var(--site-ink-deep);
}

/* Lock the public header typography against legacy page-level link resets.
   Some older page styles use `font: inherit` on every anchor and button. */
body.site-shell .site-header a,
body.site-shell .site-header button {
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-style: normal;
  letter-spacing: normal;
}

body.site-shell .site-nav-item__main > a {
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

body.site-shell .site-nav-dropdown a {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

body.site-shell .site-header__cta {
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

/* The contact page keeps its legacy content layout, while this block makes the
   appointment result read like part of the shared site rather than a popup. */
body.site-shell .appointment-result {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(22, 87, 125, 0.22);
  border-radius: 10px;
  background: var(--site-paper);
  box-shadow: var(--site-shadow);
}

body.site-shell .appointment-result[hidden] {
  display: none;
}

body.site-shell .appointment-result h4 {
  margin: 0 0 8px;
  color: var(--site-ink);
  font-size: 18px;
}

body.site-shell .appointment-result p {
  margin: 0;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.7;
}

body.site-shell .appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

body.site-shell .appointment-actions .btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
}

body.site-shell .appointment-email,
body.site-shell .appointment-copy {
  border: 1px solid var(--site-blue);
  color: var(--site-blue);
  background: transparent;
}

body.site-shell .appointment-copy:hover,
body.site-shell .appointment-email:hover {
  color: #fff;
  background: var(--site-blue);
}

body.site-shell .appointment-hint {
  font-size: 13px;
}

.site-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(20, 45, 67, 0.18);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.site-menu-toggle span {
  width: 17px;
  height: 2px;
  margin: 3px auto;
  display: block;
  background: var(--site-ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.is-menu-open .site-menu-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header.is-menu-open .site-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .site-menu-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.site-footer {
  color: #d7e4e6;
  background: var(--site-ink-deep);
}

.site-footer__main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 64px 48px 42px;
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(130px, 0.72fr));
  gap: 42px;
}

.site-footer .site-brand {
  align-items: flex-start;
  color: #fff;
}

.site-footer .site-brand__mark {
  background: var(--site-cream);
}

.site-footer .site-brand__wordmark strong {
  color: #fff;
}

.site-footer .site-brand__wordmark small {
  color: #a9c0c5;
}

.site-footer__intro {
  margin: 20px 0 0;
  max-width: 340px;
  color: #afc4c8;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer__contact {
  margin-top: 22px;
  display: grid;
  gap: 7px;
}

.site-footer__contact a {
  width: max-content;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.site-footer__contact a:hover,
.site-footer__links a:hover,
.site-footer__legal a:hover {
  color: #e1bb78;
}

.site-footer__column h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.site-footer__links a {
  color: #b5c7ca;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.site-footer__legal {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px 48px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: #91aaaf;
  font-size: 12px;
  line-height: 1.7;
}

.site-footer__legal a {
  color: #b9cacc;
  text-decoration: none;
}

/* The previous fixed navigation needed much larger top padding. */
body.site-shell:not(.guide-static) .page-header {
  padding: 78px 0 58px;
  background: linear-gradient(128deg, var(--site-ink-deep), #1b5477);
}

body.site-shell:not(.guide-static) .page-header h1 {
  font-size: clamp(34px, 3.4vw, 48px);
}

body.site-shell:not(.guide-static) .page-header .breadcrumb {
  font-size: 15px;
}

body.site-shell:not(.guide-static) .article-content,
body.site-shell:not(.guide-static) .news-content,
body.site-shell:not(.guide-static) .seo-landing {
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .site-header__inner {
    padding: 0 28px;
    gap: 20px;
  }

  .site-nav-item__main > a {
    font-size: 14px;
  }

  body.site-shell .site-nav-item__main > a {
    font-size: 14px;
  }

  .site-footer__main {
    padding-right: 28px;
    padding-left: 28px;
    grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(110px, 0.7fr));
    gap: 28px;
  }

  .site-footer__legal {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 1000px) {
  .site-header__inner {
    height: 68px;
    min-height: 68px;
  }

  .site-header__nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    width: auto;
    padding: 12px 28px 22px;
    border-bottom: 1px solid var(--site-line);
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    background: var(--site-cream);
    box-shadow: var(--site-shadow);
  }

  .site-header.is-menu-open .site-header__nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-nav-item {
    border-bottom: 1px solid rgba(20, 45, 67, 0.1);
  }

  .site-nav-item__main {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .site-nav-item__main > a {
    padding: 13px 8px;
    font-size: 16px;
    text-align: left;
  }

  body.site-shell .site-nav-item__main > a {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
  }

  .site-nav-item__main > a::after {
    display: none;
  }

  .site-nav-item__main > button {
    width: 48px;
    height: auto;
    min-height: 50px;
  }

  .site-nav-dropdown,
  .site-nav-item:nth-last-child(-n + 2) .site-nav-dropdown {
    position: static;
    width: auto;
    padding: 2px 8px 10px;
    border: 0;
    border-top: 1px solid rgba(20, 45, 67, 0.08);
    border-radius: 0;
    display: none;
    visibility: visible;
    background: rgba(255, 253, 248, 0.58);
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav-item.is-dropdown-open .site-nav-dropdown {
    display: grid;
  }

  .site-nav-dropdown a {
    padding: 9px 16px;
    font-size: 14px;
  }

  body.site-shell .site-nav-dropdown a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
  }

  .site-header__cta {
    margin-left: auto;
    padding: 10px 15px;
    font-size: 14px;
  }

  body.site-shell .site-header__cta {
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
  }

  .site-menu-toggle {
    display: block;
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    height: 64px;
    min-height: 64px;
    padding: 0 16px;
    gap: 11px;
  }

  .site-brand {
    gap: 8px;
  }

  .site-brand__mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .site-brand__wordmark strong {
    font-size: 16px;
  }

  .site-brand__wordmark small {
    font-size: 8px;
  }

  .site-header__cta {
    display: none;
  }

  .site-menu-toggle {
    margin-left: auto;
  }

  .site-header__nav {
    padding: 10px 16px 18px;
  }

  .site-header.is-menu-open .site-header__nav {
    grid-template-columns: 1fr;
  }

  .site-nav-item__main > a {
    padding: 12px 8px;
    font-size: 15px;
  }

  body.site-shell .site-nav-item__main > a {
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
  }

  .site-footer__main {
    padding: 50px 20px 32px;
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .site-footer__intro {
    margin-top: 16px;
    font-size: 13px;
  }

  .site-footer__contact a {
    font-size: 15px;
  }

  .site-footer__column h2 {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .site-footer__links {
    gap: 8px;
  }

  .site-footer__links a {
    font-size: 13px;
  }

  .site-footer__legal {
    padding: 18px 20px 24px;
    display: grid;
    gap: 6px;
    font-size: 11px;
  }

  body.site-shell:not(.guide-static) .page-header {
    padding: 54px 0 45px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-item__main > a::after,
  .site-nav-item__main > button span,
  .site-nav-dropdown,
  .site-menu-toggle span {
    transition: none;
  }
}
