/* 某某公司 · 白底青蓝科技风（参考企业官网布局） */
:root {
  --ink: #0a2a5c;
  --ink-soft: #5a6f8a;
  --cyan: #00bcd4;
  --cyan-deep: #00a5bb;
  --line: #e6eef5;
  --bg: #ffffff;
  --bg-soft: #f5f9fc;
  --white: #ffffff;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max: 1200px;
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body.xh-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan-deep); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; vertical-align: middle; }

.xh-wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Header：白底固定 */
.xh-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.xh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.xh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.xh-brand img {
  height: 56px;
  width: auto;
  display: block;
}

.xh-nav {
  display: flex;
  align-items: center;
  gap: 4px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.xh-nav > li {
  position: relative;
}

.xh-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.xh-nav a:hover,
.xh-nav .is-active > a {
  color: var(--cyan-deep);
}

.xh-nav > li > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.xh-nav > li.is-active > a::after,
.xh-nav > li > a:hover::after { transform: scaleX(1); }

.xh-nav__caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
}

.xh-nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 50;
  min-width: 148px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(10, 42, 92, 0.08);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.xh-nav > li.has-sub:hover > .xh-nav__sub,
.xh-nav > li.has-sub:focus-within > .xh-nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.xh-nav__sub a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.xh-nav__sub a::after { display: none; }

.xh-nav__sub li.is-active > a,
.xh-nav__sub a:hover {
  color: var(--cyan-deep);
  background: var(--bg-soft);
}

.xh-nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 0; padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.xh-nav-toggle__bar {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
}

.xh-nav-panel { display: none; }

/* Hero：轮播高度适中，非满屏 */
.xh-hero {
  position: relative;
  margin-top: var(--header-h);
  height: 420px;
  max-height: 48vh;
  min-height: 320px;
  background: linear-gradient(120deg, #f7fbfe 0%, #eaf5fb 55%, #e3f2fa 100%);
  overflow: hidden;
}

.xh-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.xh-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}

.xh-hero__slide.is-on {
  opacity: 1;
}

.xh-hero__slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.xh-hero__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(247, 251, 254, 0.94) 0%, rgba(247, 251, 254, 0.78) 36%, rgba(247, 251, 254, 0.2) 66%, transparent 100%);
  pointer-events: none;
}

.xh-hero__body {
  position: relative;
  z-index: 5;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 48px 0 64px;
  display: flex;
  align-items: center;
  height: 100%;
}

.xh-hero__copy {
  max-width: 480px;
  position: relative;
  z-index: 6;
  opacity: 1;
}

.xh-hero__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.xh-hero__sub {
  margin: 0 0 28px;
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.xh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.xh-btn:hover { transform: translateY(-1px); }

.xh-btn--ghost {
  background: var(--white);
  border-color: #b8e7f0;
  color: var(--ink);
}

.xh-btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-deep);
  background: var(--white);
}

.xh-btn--primary {
  background: var(--cyan);
  color: var(--white);
  border-color: var(--cyan);
}

.xh-btn--primary:hover {
  background: var(--cyan-deep);
  color: var(--white);
}

.xh-btn--ink {
  background: var(--ink);
  color: var(--white);
}

.xh-btn--ink:hover { background: #133a72; color: var(--white); }

.xh-hero__controls {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  pointer-events: auto;
}

.xh-hero__controls[hidden] {
  display: none !important;
}

.xh-hero__arrow {
  width: 36px;
  height: 36px;
  border: 1px solid #c5d8e6;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.xh-hero__arrow:hover {
  border-color: var(--cyan);
  color: var(--cyan-deep);
  background: var(--white);
}

.xh-hero__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.xh-hero__dots button {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #c5d8e6;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.xh-hero__dots button.is-on {
  width: 24px;
  border-radius: 5px;
  background: var(--cyan);
}

/* Sections */
.xh-section {
  padding: 72px 0;
  background: var(--bg);
}

.xh-section--soft { background: var(--bg-soft); }

.xh-section__head {
  margin-bottom: 36px;
}

.xh-section__head h2 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.xh-section__head h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: var(--cyan);
  border-radius: 1px;
  flex-shrink: 0;
}

.xh-section__head p {
  margin: 0 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.xh-section__head--center {
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.xh-section__head--center h2 { justify-content: center; }
.xh-section__head--center p { margin-left: 0; }

.xh-section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.xh-section__head--row .xh-link {
  flex-shrink: 0;
  margin-bottom: 4px;
}

.xh-link {
  color: var(--cyan-deep);
  font-size: 0.92rem;
  font-weight: 500;
}

.xh-link:hover { color: var(--ink); }

/* 关于我们 */
.xh-about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px 64px;
  align-items: center;
}

.xh-about__text {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.9;
}

.xh-about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 28px;
}

.xh-about__panel {
  position: relative;
  padding: 36px 32px 28px;
  background:
    linear-gradient(145deg, rgba(0, 188, 212, 0.08), transparent 42%),
    var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(10, 42, 92, 0.06);
}

.xh-about__panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
}

.xh-stat {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.xh-stat:first-child { padding-top: 0; }

.xh-stat strong {
  display: block;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.xh-stat span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.xh-about__panel-tip {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* 产品服务 */
.xh-services {
  counter-reset: xh-svc;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.xh-service {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 26px 24px;
  color: inherit;
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.xh-service:hover {
  color: inherit;
  background: var(--white);
  border-color: rgba(0, 188, 212, 0.35);
  transform: translateY(-4px);
}

.xh-service__no {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.xh-service__no::before {
  counter-increment: xh-svc;
  content: counter(xh-svc, decimal-leading-zero);
}

.xh-service h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.xh-service p {
  flex: 1;
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.75;
}

.xh-service__more {
  color: var(--cyan-deep);
  font-size: 0.88rem;
  font-weight: 500;
}

.xh-service:hover .xh-service__more { color: var(--ink); }

/* 优势 */
.xh-adv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 32px;
}

.xh-adv__item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.xh-adv__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.xh-adv__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, var(--cyan), transparent 70%),
    var(--white);
  border: 1px solid rgba(0, 188, 212, 0.35);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.xh-adv__icon--2 { clip-path: none; border-radius: 50%; }
.xh-adv__icon--3 { clip-path: none; border-radius: 8px; transform: rotate(45deg); }
.xh-adv__icon--4 {
  clip-path: none;
  border-radius: 4px;
  background:
    linear-gradient(180deg, var(--cyan) 0 4px, transparent 4px 12px, var(--cyan) 12px 16px, transparent 16px 24px, var(--cyan) 24px 28px),
    var(--white);
}

/* 资讯 */
.xh-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.xh-news-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  color: inherit;
  background: var(--bg-soft);
  border-top: 3px solid var(--cyan);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.xh-news-card:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(10, 42, 92, 0.08);
}

.xh-news-card time {
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.xh-news-card strong {
  display: block;
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.xh-news-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.xh-news-card span {
  color: var(--cyan-deep);
  font-size: 0.88rem;
  font-weight: 500;
}

.xh-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.xh-news-list li { border-bottom: 1px solid var(--line); }

.xh-news-list a {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  color: var(--ink);
}

.xh-news-list a:hover { color: var(--cyan-deep); }
.xh-news-list time { color: var(--ink-soft); font-size: 0.85rem; }
.xh-news-list strong { font-weight: 500; font-size: 1rem; }
.xh-news-list span { color: var(--ink-soft); font-size: 0.85rem; }

.xh-section__more { margin-top: 28px; }

.xh-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}

.xh-contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.xh-contact__info h2 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 700;
}

.xh-contact__info h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: var(--cyan);
}

.xh-contact__info > p {
  margin: 0 0 24px 16px;
  color: var(--ink-soft);
}

.xh-contact__rows {
  margin: 0 0 0 16px;
  display: grid;
  gap: 14px;
}

.xh-contact__rows dt {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cyan-deep);
}

.xh-contact__rows dd {
  margin: 2px 0 0;
  font-size: 1.02rem;
  color: var(--ink);
}

.xh-form {
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.xh-form .xh-field { margin-bottom: 16px; }
.xh-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.xh-form input,
.xh-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.xh-form input:focus,
.xh-form textarea:focus { border-color: var(--cyan); }

.xh-form textarea { min-height: 110px; resize: vertical; }

.xh-footer {
  margin-top: auto;
  padding: 56px 0 0;
  background: #071f45;
  color: rgba(255, 255, 255, 0.7);
}

.xh-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 0.9fr;
  gap: 36px 40px;
  padding-bottom: 40px;
}

.xh-footer__brand {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.xh-footer__intro {
  margin: 14px 0 0;
  max-width: 28em;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.8;
}

.xh-footer__title {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
}

.xh-footer__nav,
.xh-footer__contact,
.xh-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xh-footer__nav li + li,
.xh-footer__contact li + li { margin-top: 10px; }

.xh-footer__nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.xh-footer__nav a:hover { color: var(--white); }

.xh-footer__contact li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.55;
}

.xh-footer__contact span {
  color: rgba(255, 255, 255, 0.45);
}

.xh-footer__contact strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.xh-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xh-footer__copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.xh-footer__copy p { margin: 0; }

.xh-footer__top-link {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.xh-footer__top-link:hover { color: var(--cyan); }

/* Inner */
.xh-page-banner {
  position: relative;
  margin-top: var(--header-h);
  height: 200px;
  overflow: hidden;
  background: #0a2a5c;
}

.xh-page-banner__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.xh-page-banner__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 31, 69, 0.35), rgba(7, 31, 69, 0.12) 55%, transparent);
  pointer-events: none;
}

.xh-page { padding: 36px 0 64px; }
.xh-crumb {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.xh-crumb a { color: var(--ink-soft); }
.xh-crumb a:hover { color: var(--cyan-deep); }

.xh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
}

.xh-page-title {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 700;
}

.xh-page-title::before {
  content: "";
  width: 4px;
  height: 1em;
  background: var(--cyan);
  flex-shrink: 0;
}

.xh-cover-head { margin-bottom: 36px; }

.xh-cover-head .xh-page-title { margin-bottom: 12px; }

.xh-cover-head__desc {
  margin: 0 0 0 16px;
  max-width: 46em;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}

.xh-cover-block {
  margin-bottom: 40px;
  padding-bottom: 8px;
}

.xh-cover-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.xh-cover-block__head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.xh-cover-block__head h2::before {
  content: "";
  width: 3px;
  height: 1em;
  background: var(--cyan);
  flex-shrink: 0;
}

.xh-cover-list .xh-article-item:first-child {
  border-top: 0;
}

.xh-cover-page {
  padding: 20px 0 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

.xh-cover-page .xh-btn { margin-top: 12px; }

.xh-article-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.xh-article-item:first-child { border-top: 1px solid var(--line); }

.xh-article-item--noimg {
  grid-template-columns: 1fr;
}

.xh-article-item__thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.xh-article-item__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.xh-article-item:hover .xh-article-item__thumb img { transform: scale(1.04); }

.xh-article-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.xh-article-item h3 a { color: var(--ink); }
.xh-article-item h3 a:hover { color: var(--cyan-deep); }
.xh-article-item p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.92rem; }
.xh-article-item__meta { font-size: 0.82rem; color: var(--ink-soft); }

.xh-side h3 {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.xh-side h3::before {
  content: "";
  width: 3px; height: 1em;
  background: var(--cyan);
}

.xh-side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 32px;
}

.xh-side-nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.xh-side-nav a.is-on,
.xh-side-nav a:hover { color: var(--cyan-deep); }

.xh-detail-meta {
  margin: -8px 0 24px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.xh-detail-meta span + span::before {
  content: "·";
  margin: 0 8px;
  opacity: 0.45;
}

.xh-prose { font-size: 1.02rem; line-height: 1.9; color: var(--ink); }
.xh-prose p { margin: 0 0 1.15em; }

.xh-pager-nav {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.xh-pager-nav a { color: var(--ink); }

.xh-pagination { margin-top: 28px; }
.xh-pagination ul,
.xh-pagination .pagination {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}

.xh-pagination a,
.xh-pagination span,
.xh-pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
}

.xh-pagination strong,
.xh-pagination .active a {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
}

.xh-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.xh-reveal.is-in { opacity: 1; transform: none; }

@keyframes xh-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.xh-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0.96);
  max-width: min(90vw, 360px);
  padding: 14px 22px;
  background: rgba(7, 31, 69, 0.92);
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(7, 31, 69, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.xh-toast.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.xh-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 42, 92, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s, border-color 0.2s;
}

.xh-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.xh-top:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
}

.xh-top__arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}

@media (max-width: 960px) {
  .xh-about,
  .xh-services,
  .xh-adv,
  .xh-news-grid,
  .xh-grid-2,
  .xh-contact,
  .xh-layout,
  .xh-news-list a,
  .xh-article-item { grid-template-columns: 1fr; }
  .xh-services,
  .xh-adv,
  .xh-news-grid { grid-template-columns: 1fr 1fr; }
  .xh-section__head--row { flex-direction: column; align-items: flex-start; }
  .xh-news-list span { display: none; }
  .xh-cover-block__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .xh-article-item__thumb { max-width: 200px; }
  .xh-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .xh-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .xh-hero__fade {
    background: linear-gradient(180deg, rgba(247, 251, 254, 0.88) 0%, rgba(247, 251, 254, 0.55) 50%, rgba(247, 251, 254, 0.2) 100%);
  }
  .xh-hero__slide-bg { background-position: center; }
}

@media (max-width: 768px) {
  .xh-nav { display: none; }
  .xh-nav-toggle { display: inline-flex; }
  .xh-nav-panel {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 99;
    padding: 12px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .xh-nav-panel.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .xh-nav-panel a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .xh-nav-panel__item.has-sub > a {
    font-weight: 600;
  }
  .xh-nav-panel__sub {
    padding: 0 0 8px 14px;
  }
  .xh-nav-panel__sub a {
    padding: 8px 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    border-bottom: 0;
  }
  .xh-hero {
    height: 300px;
    max-height: none;
    min-height: 260px;
  }
  .xh-page-banner { height: 140px; }
  .xh-hero__body { padding: 36px 0 48px; }
  .xh-section { padding: 52px 0; }
  .xh-services,
  .xh-adv,
  .xh-news-grid { grid-template-columns: 1fr; }
  .xh-about__panel { padding: 28px 22px; }
  .xh-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
