:root {
  color: #1d2932;
  background: #f6f4ef;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f6f4ef;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #ffffff;
  background: #1d2932;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.utility-bar {
  color: #e8eef0;
  background: #1d3544;
}

.utility-inner,
.navigation-row,
.hero-layout,
.metrics-grid,
.split-layout,
.section-heading,
.consultation-inner,
.footer-grid,
.footer-bottom {
  display: flex;
  align-items: center;
}

.utility-inner {
  min-height: 42px;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.utility-inner p {
  margin: 0;
}

.utility-links {
  display: flex;
  gap: 24px;
}

.utility-links a:hover,
.footer-bottom a:hover {
  color: #f0c14b;
}

.site-header {
  position: relative;
  z-index: 10;
  background: #ffffff;
}

.navigation-row {
  min-height: 94px;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.wordmark-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #1d3544;
  background: #f0c14b;
  font-size: 13px;
}

.wordmark-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
}

.primary-nav a {
  display: grid;
  min-width: 72px;
  place-items: center;
  padding: 0 14px;
  color: #1d2932;
  font-size: 14px;
  font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a.is-current {
  color: #1d3544;
  box-shadow: inset 0 4px 0 #f0c14b;
  background: #f3f5f3;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid #d7dcda;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #1d3544;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(740px, calc(100svh - 44px));
  overflow: hidden;
  color: #ffffff;
  background: #1d3544;
}

.hero-media,
.hero-slide,
.hero-tint {
  position: absolute;
  inset: 0;
}

.hero-media {
  overflow: hidden;
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 420ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-tint {
  background: rgba(17, 35, 46, 0.62);
}

.hero-layout {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 110px 0 130px;
}

.hero-copy {
  width: min(670px, 100%);
}

.section-kicker {
  margin: 0 0 16px;
  color: #ce9f2d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-kicker {
  color: #f0c14b;
}

h1,
h2,
h3,
p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* 受控内容可能被租户替换为较长文本，所有非图片 Slot 都必须维持可收缩和换行。 */
[data-xhq-slot]:not(img) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* textarea Slot 在渲染后保留文本换行，不让地址和说明被 HTML 空白规则压缩。 */
p[data-xhq-slot],
li[data-xhq-slot] {
  white-space: pre-line;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: inherit;
}

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: 58px;
  line-height: 1.12;
}

.hero-summary {
  max-width: 560px;
  margin: 0;
  color: #eef3f2;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  color: #1d2932;
  background: #f0c14b;
}

.button-primary:hover {
  background: #f8d46f;
}

.button-outline {
  color: #1d3544;
  border-color: #1d3544;
}

.button-outline:hover {
  color: #ffffff;
  background: #1d3544;
}

.text-action {
  display: inline-flex;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 700;
}

.text-action::after,
.service-card a::after {
  content: " ->";
}

.hero-status {
  display: grid;
  width: 145px;
  min-height: 145px;
  align-content: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 43, 56, 0.72);
}

.hero-status span {
  color: #f0c14b;
  font-size: 25px;
  font-weight: 800;
}

.hero-status p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.hero-controls {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-control {
  width: 42px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: #ffffff;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.hero-control:hover,
.hero-control.is-active {
  border-color: #f0c14b;
  color: #1d2932;
  background: #f0c14b;
}

.metrics-band {
  color: #f3f5f3;
  background: #263f4e;
}

.metrics-grid {
  min-height: 128px;
  justify-content: space-between;
  gap: 22px;
}

.metrics-grid div {
  display: grid;
  gap: 4px;
}

.metrics-grid strong {
  color: #f0c14b;
  font-size: 30px;
  line-height: 1;
}

.metrics-grid span {
  color: #cfdbd9;
  font-size: 14px;
}

.section-space {
  padding: 110px 0;
}

.split-layout {
  align-items: stretch;
  gap: clamp(40px, 7vw, 110px);
}

.about-visual {
  position: relative;
  flex: 0 1 455px;
  min-width: 0;
}

.about-visual > img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
}

.about-card {
  position: absolute;
  right: -32px;
  bottom: 32px;
  display: grid;
  gap: 5px;
  min-width: 172px;
  padding: 20px;
  color: #ffffff;
  background: #1d3544;
}

.about-card span {
  color: #f0c14b;
  font-size: 13px;
  font-weight: 700;
}

.about-card strong {
  font-size: 20px;
}

.about-copy {
  align-self: center;
  flex: 1 1 440px;
  min-width: 0;
}

.about-copy h2,
.section-heading h2,
.consultation-inner h2 {
  margin-bottom: 20px;
  color: #1d2932;
  font-size: 39px;
  line-height: 1.2;
}

.about-copy > p:not(.section-kicker) {
  margin: 0;
  color: #52626a;
  font-size: 16px;
  line-height: 1.85;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 25px;
  color: #33454d;
  font-size: 15px;
}

.check-list li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  background: #f0c14b;
}

.services-section {
  background: #e9eee9;
}

.section-heading {
  align-items: end;
  justify-content: space-between;
  gap: 46px;
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 570px;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 370px;
  margin: 0;
  color: #58676c;
  font-size: 15px;
  line-height: 1.75;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #d4ded8;
}

.service-card {
  min-height: 286px;
  padding: 28px;
  background: #f8faf7;
}

.service-card-dark {
  color: #ffffff;
  background: #1d3544;
}

.service-index {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 42px;
  color: #1d3544;
  background: #f0c14b;
  font-size: 12px;
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 13px;
  font-size: 21px;
}

.service-card p {
  min-height: 66px;
  margin: 0 0 24px;
  color: #607077;
  font-size: 14px;
  line-height: 1.7;
}

.service-card-dark p {
  color: #d8e2e0;
}

.service-card a {
  color: #1d3544;
  font-size: 14px;
  font-weight: 800;
}

.service-card-dark a {
  color: #f0c14b;
}

.projects-section {
  color: #f4f6f3;
  background: #1d2932;
}

.section-heading-light h2 {
  color: #ffffff;
}

.section-heading-light > p {
  color: #cbd5d4;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #304651;
}

.project-card-featured {
  min-height: 500px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px;
  background: rgba(20, 43, 56, 0.88);
}

.project-copy span {
  color: #f0c14b;
  font-size: 12px;
  font-weight: 800;
}

.project-copy h3 {
  margin: 8px 0 0;
  font-size: 20px;
}

/* 图标内容由平台目录按 data-xhq-icon-value 注入，模板只负责尺寸与配色。 */
.service-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  color: #ce9f2d;
}

.service-icon .xhq-template-icon-svg {
  width: 100%;
  height: 100%;
}

/* 文章卡片由公开 Runtime 克隆，布局不依赖文章数量或前端接口请求。 */
.articles-section {
  background: #f4f6f3;
}

.article-runtime-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.article-runtime-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(21, 40, 52, 0.09);
}

.article-runtime-card > img {
  width: 100%;
  min-height: 330px;
  height: 100%;
  object-fit: cover;
}

.article-runtime-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: clamp(30px, 5vw, 68px);
}

.article-runtime-copy time,
.article-detail-date {
  color: #6a777b;
  font-size: 13px;
  font-weight: 700;
}

.article-runtime-copy h3 {
  max-width: 100%;
  margin: 0;
  color: #1d2932;
  font-size: 30px;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

.article-runtime-copy p {
  max-width: 590px;
  margin: 0;
  color: #58676c;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.article-detail-page {
  min-height: 100vh;
  background: #f4f6f3;
}

.article-detail-header,
.article-detail-shell {
  width: min(100% - 48px, 920px);
  margin: 0 auto;
}

.article-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.article-detail-shell {
  padding: 66px 0 100px;
}

.article-detail-shell h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  color: #1d2932;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.article-detail-summary {
  max-width: 720px;
  margin: 0 0 16px;
  color: #58676c;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.article-detail-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  margin: 34px 0 42px;
  object-fit: cover;
}

.article-detail-content {
  color: #33434a;
  font-size: 17px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.article-detail-content > :first-child {
  margin-top: 0;
}

.consultation-band {
  background: #f0c14b;
}

.consultation-inner {
  min-height: 208px;
  justify-content: space-between;
  gap: 34px;
}

.consultation-inner p {
  margin: 0 0 6px;
  color: #4d401a;
  font-size: 14px;
  font-weight: 700;
}

.consultation-inner h2 {
  margin: 0;
}

.consultation-inner .button-primary {
  color: #ffffff;
  background: #1d3544;
}

.consultation-inner .button-primary:hover {
  background: #263f4e;
}

.site-footer {
  color: #d7e1de;
  background: #172a36;
}

.footer-grid {
  align-items: start;
  gap: 62px;
  padding: 88px 0 64px;
}

.footer-intro {
  flex: 1.2 1 330px;
  min-width: 0;
}

.footer-brand {
  color: #f0c14b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.footer-intro h2 {
  max-width: 410px;
  margin: 16px 0;
  color: #ffffff;
  font-size: 31px;
  line-height: 1.25;
}

.footer-intro p,
.contact-details p {
  margin: 0;
  color: #c5d1ce;
  font-size: 14px;
  line-height: 1.75;
}

.contact-details {
  display: grid;
  flex: 0.75 1 240px;
  gap: 8px;
}

.contact-details .detail-label {
  margin-top: 5px;
  color: #f0c14b;
  font-size: 12px;
  font-weight: 800;
}

.contact-details a {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 14px;
}

.inquiry-form {
  display: grid;
  flex: 1 1 300px;
  gap: 13px;
}

.inquiry-form label {
  display: grid;
  gap: 6px;
  color: #dbe4e1;
  font-size: 13px;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid #4e6169;
  border-radius: 0;
  padding: 11px 12px;
  color: #ffffff;
  background: #223945;
  outline: none;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: #f0c14b;
}

.inquiry-form button {
  width: fit-content;
  min-height: 44px;
  border: 0;
  padding: 10px 18px;
  color: #1d2932;
  background: #f0c14b;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.inquiry-form button:hover {
  background: #f8d46f;
}

.footer-bottom {
  min-height: 68px;
  justify-content: space-between;
  border-top: 1px solid #40545b;
  color: #9eb0ae;
  font-size: 13px;
}

/* The platform runtime makes this visible only after site.social is enabled. */
.site-social-links:not(.xhq-social-runtime) {
  display: none;
}

.site-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #53676d;
  border-radius: 6px;
  padding: 6px;
  color: #ffffff;
  background: #1d3544;
  box-shadow: 0 6px 18px rgba(12, 28, 37, 0.26);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.site-social-link:hover {
  border-color: #f0c14b;
  background: #263f4e;
  transform: translateY(-1px);
}

.site-social-link:focus-visible {
  outline: 3px solid #f0c14b;
  outline-offset: 2px;
}

.site-social-icon {
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
}

.site-social-name {
  min-width: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .hero-status {
    display: none;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-featured {
    grid-column: span 2;
  }

  .article-runtime-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-runtime-card > img {
    min-height: 300px;
    max-height: 420px;
  }

  .footer-grid {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .page-shell,
  .hero-layout {
    width: min(100% - 36px, 1180px);
  }

  .utility-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 11px 0;
  }

  .utility-links {
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  .navigation-row {
    min-height: 74px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    align-self: auto;
    flex-direction: column;
    padding: 8px;
    border: 1px solid #d7dcda;
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(21, 40, 52, 0.15);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    min-height: 44px;
    justify-content: start;
  }

  .primary-nav a:hover,
  .primary-nav a.is-current {
    box-shadow: inset 3px 0 0 #f0c14b;
  }

  .hero {
    min-height: min(690px, calc(100svh - 30px));
  }

  .hero-layout {
    padding: 86px 0 112px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
    padding: 30px 0;
  }

  .section-space {
    padding: 74px 0;
  }

  .split-layout,
  .section-heading,
  .consultation-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-visual,
  .about-copy {
    flex-basis: auto;
    width: 100%;
  }

  .about-visual > img {
    min-height: 360px;
  }

  .about-card {
    right: 18px;
    bottom: 18px;
  }

  .about-copy h2,
  .section-heading h2,
  .consultation-inner h2 {
    font-size: 31px;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 32px;
  }

  .section-heading > p {
    max-width: 540px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-featured {
    grid-column: auto;
    min-height: 340px;
  }

  .article-runtime-copy {
    padding: 30px 24px 34px;
  }

  .article-runtime-copy h3 {
    font-size: 25px;
  }

  .article-detail-header,
  .article-detail-shell {
    width: min(100% - 36px, 920px);
  }

  .article-detail-header {
    min-height: 74px;
  }

  .article-detail-shell {
    padding: 44px 0 70px;
  }

  .article-detail-summary,
  .article-detail-content {
    font-size: 16px;
  }

  .article-detail-cover {
    margin: 28px 0 32px;
  }

  .consultation-inner {
    min-height: 0;
    padding: 58px 0;
  }

  .footer-grid {
    gap: 42px;
    padding: 66px 0 50px;
  }
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 17px;
  }

  .wordmark-mark {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: 35px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-index {
    margin-bottom: 26px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 15px 0;
  }
}
