/* 首页：首屏业务入口、实景轮播、标准化比较与七项核心优势。 */
body[data-page='home'] {
  --home-blue: #087ddd;
  --home-ink: #103b5e;
  --home-gutter: var(--chrome-gutter, 40px);
}
body[data-page='home'] .site-header {
  box-shadow: 0 4px 24px #17456406;
}
.home-first-screen {
  height: auto;
  min-height: max(752px, calc(100svh - 82px));
  display: flex;
  flex-direction: column;
}
.home-hero {
  display: flex;
  flex: 1;
  min-height: 390px;
  background: linear-gradient(105deg, #fffefa 0%, #f8fbfd 43%, #edf4f8 100%);
  overflow: hidden;
}
.home-hero-layout {
  flex: 1;
  height: auto;
  display: grid;
  grid-template-columns:
    calc(var(--home-gutter) + clamp(576px, calc((100vw - 80px) * 0.46), 612px) + 30px)
    minmax(0, 1fr);
}
.home-copy {
  padding: 48px 30px 48px var(--home-gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  min-width: 0;
  container-type: inline-size;
}
.home-copy .eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-bottom: 27px;
  white-space: nowrap;
}
.home-copy h1 {
  font-size: clamp(36px, 3.05vw, 56px);
  font-weight: 750;
  line-height: 1.48;
  letter-spacing: -0.045em;
  margin: 0 0 23px;
  white-space: nowrap;
  color: #183b4e;
}
.home-copy h1 span {
  color: var(--blue);
  background: linear-gradient(110deg, #1164a4, #008de2);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-slogan {
  width: max-content;
  max-width: 100%;
}
.home-copy .home-main-title {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 1em;
  row-gap: 8px;
  width: max-content;
  font-size: min(36px, calc(100cqw / 17));
  line-height: 1.52;
  letter-spacing: 0;
  white-space: normal;
  margin: 0 0 23px;
}
.home-copy .home-main-title .home-title-line,
.home-copy .home-main-title .home-title-prefix,
.home-copy .home-main-title .home-title-model {
  display: block;
  width: max-content;
  color: #183b4e;
  background: none;
  -webkit-text-fill-color: currentColor;
  white-space: nowrap;
}
.home-copy .home-main-title .home-title-intro {
  display: contents;
}
.home-copy .home-main-title .home-title-prefix {
  grid-column: 1;
  grid-row: 1;
}
.home-copy .home-main-title .home-title-model {
  grid-column: 2;
  grid-row: 1;
}
.home-copy .home-main-title .home-title-promise {
  grid-column: 2;
  grid-row: 2;
  margin-left: 0;
}
.home-copy .home-main-title .home-title-emphasis {
  color: var(--blue);
  background: linear-gradient(110deg, #1164a4, #008de2);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-title-prefix,
.home-title-model,
.home-title-promise,
.home-lead > span {
  overflow: hidden;
}
.home-title-prefix > b,
.home-title-model > b,
.home-title-promise > b,
.home-lead > span > b {
  display: block;
  font: inherit;
  font-weight: inherit;
  transform: translateY(115%);
  animation: home-line-rise 0.82s cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}
.home-title-model > b {
  animation-delay: 0.1s;
}
.home-title-promise > b {
  animation-delay: 0.2s;
}
.home-lead > span > b {
  animation-delay: 0.3s;
}
@keyframes home-line-rise {
  to {
    transform: translateY(0);
  }
}
@media (max-width: 980px) {
  .home-copy .home-main-title {
    font-size: min(30px, calc(100cqw / 17));
  }
}
@media (max-width: 640px) {
  .home-copy .home-main-title {
    font-size: min(30px, calc(100cqw / 17));
    row-gap: 7px;
    margin-bottom: 16px;
  }
}
.home-lead {
  color: #6a8293;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin: 0 0 32px;
  text-align: right;
}
.home-copy .button {
  min-height: 46px;
  padding: 11px 23px;
  border-radius: 5px;
}
.home-copy .button-primary {
  background: linear-gradient(120deg, #1468a7, #0785cf);
  border-color: transparent;
  box-shadow: 0 8px 20px #076aa71a;
}
.home-showcase {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}
.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}
.home-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.photo-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(90deg, transparent 0%, #00000014 7%, #0000007a 15%, #000 28%);
}
.photo-slide:first-child > img {
  object-position: 54% top;
}
.business-section {
  flex: 0 0 auto;
  padding: 24px var(--home-gutter) 28px;
  background: linear-gradient(180deg, #f7fbfe, #fff);
}
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}
.business-card {
  --business-title-size: clamp(18px, 1.45vw, 24px);
  min-width: 0;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px 18px;
  border: 1px solid #dbe8f1;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff 45%, #f0f7fc);
  box-shadow: 0 6px 20px #17456408;
  text-align: center;
  transition:
    transform 0.3s ease,
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.business-card:before {
  content: '';
  position: absolute;
  z-index: 2;
  top: -30%;
  left: -70%;
  width: 38%;
  height: 160%;
  background: linear-gradient(90deg, transparent, #ffffff8f, transparent);
  transform: skewX(-18deg);
  transition: left 0.58s cubic-bezier(0.2, 0.72, 0.2, 1);
  pointer-events: none;
}
.business-card:hover:before,
.business-card:focus-visible:before {
  left: 132%;
}
.business-card:hover,
.business-card:focus-visible {
  transform: translateY(-8px);
  background: linear-gradient(145deg, #fff, #eaf6fe);
  border-color: #a5cfe9;
  box-shadow: 0 18px 35px #17456420;
}
.business-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 30px;
  margin-bottom: 16px;
  font-size: var(--business-title-size);
  line-height: 1.35;
}
.business-card small {
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  font-variant-numeric: tabular-nums;
  color: var(--home-blue);
}
.business-card h2 {
  font-size: inherit;
  font-weight: 700;
  margin: 0;
  color: #173d59;
  white-space: nowrap;
}
/* 统一实际画面尺寸，按横向素材取景，避免 contain 产生不同高度的空白。 */
.business-card > img {
  position: static;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  flex: none;
  object-fit: cover;
  object-position: center;
  margin: 0 0 16px;
  border-radius: 6px;
  background: #eef6fc;
  opacity: 1;
  transition: transform 0.42s cubic-bezier(0.2, 0.72, 0.2, 1);
}
.business-card:hover > img,
.business-card:focus-visible > img {
  transform: scale(1.025);
}
.business-card:nth-child(3) > img {
  object-position: 50% 48%;
}
.business-card:nth-child(4) > img {
  object-position: 50% 35%;
}
.business-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #48789a;
  margin: 0;
  min-height: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.home-metrics-section {
  padding: 32px 0 34px;
  background: linear-gradient(180deg, #fff, #f3f9fd);
  border-bottom: 1px solid #e4eff6;
}
.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  width: calc(100% - var(--home-gutter) - var(--home-gutter));
  max-width: none;
}
.home-metrics > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 90px;
  min-width: 0;
  position: relative;
  text-align: center;
}
.home-metrics > div + div:before {
  content: '';
  height: 58px;
  width: 1px;
  background: linear-gradient(180deg, transparent, #cfdfea 25%, #cfdfea 75%, transparent);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.home-metrics strong {
  display: block;
  font-size: 44px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1.12;
  background: linear-gradient(120deg, #1465b9, #078bd4 85%);
  background-clip: text;
  -webkit-background-clip: text;
  color: #087ddd;
  -webkit-text-fill-color: transparent;
}
.home-metrics span {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.035em;
  color: #59788e;
}
.standard-section {
  background: linear-gradient(135deg, #eaf5ff, #f5faff);
  padding: 96px 0 84px;
}
.home-section-heading {
  text-align: center;
  margin-bottom: 38px;
}
.home-section-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: #6695b7;
  margin-bottom: 12px;
}
.home-section-heading h2 {
  font-size: 30px;
  font-weight: 750;
  color: var(--home-ink);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.section-subtitle {
  font-size: 13px;
  color: #39739f;
  margin: 0;
  letter-spacing: 0.035em;
}
.advantage-section {
  padding: 90px 0 82px;
  background: #fff;
}
.advantage-section > .container {
  width: min(1400px, calc(100% - 80px));
}
.advantage-section .home-section-heading {
  margin-bottom: 46px;
}
.home-advantages {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  position: relative;
  background: linear-gradient(180deg, #f7f9fb, #e9f0f5 50%, #f7f9fb);
  isolation: isolate;
}
.advantage-card {
  grid-row: 1;
  aspect-ratio: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 9px;
  position: relative;
  color: #fff;
  background: linear-gradient(145deg, #59b5ed, #329ee4);
  transition:
    box-shadow 0.25s,
    filter 0.25s;
  z-index: 1;
}
.advantage-card:nth-child(1) {
  grid-column: 1;
}
.advantage-card:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
}
.advantage-card:nth-child(3) {
  grid-column: 3;
}
.advantage-card:nth-child(4) {
  grid-column: 4;
  grid-row: 2;
}
.advantage-card:nth-child(5) {
  grid-column: 5;
}
.advantage-card:nth-child(6) {
  grid-column: 6;
  grid-row: 2;
}
.advantage-card:nth-child(7) {
  grid-column: 7;
}
.advantage-card:nth-child(even) {
  background: linear-gradient(145deg, #2895df, #1682d0);
}
.advantage-card:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 32px #116bb32e;
  z-index: 2;
}
.advantage-card svg {
  width: 29px;
  height: 29px;
  margin: 0 0 15px;
}
.advantage-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  margin: 0 0 3px;
}
.advantage-card p {
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
  margin: 0;
  color: #f3fbff;
}
body[data-page='home'] .search-field:focus-within {
  border-color: #78b9e6;
  box-shadow: 0 0 0 3px #087ddd09;
}
body[data-page='home'] .search-result {
  border-radius: 5px;
  padding-left: 8px;
  padding-right: 8px;
  transition: background 0.2s;
}
body[data-page='home'] .search-result:hover {
  background: #f2f8fc;
}
@media (min-width: 1600px) {
  .home-hero-layout {
    grid-template-columns: calc(var(--home-gutter) + 612px + 45px) minmax(0, 1fr);
  }
  .home-copy {
    padding-right: 45px;
  }
}
@media (max-width: 1180px) {
  .home-hero-layout {
    grid-template-columns: 52% 48%;
  }
  .home-copy {
    padding-left: 28px;
    padding-right: 15px;
  }
  .home-copy h1 {
    font-size: 34px;
  }
  .home-copy .eyebrow {
    font-size: 9px;
  }
  .home-copy .button {
    padding: 10px 17px;
    font-size: 13px;
  }
  .advantage-section > .container {
    width: calc(100% - 48px);
  }
  .advantage-card h3 {
    font-size: 11px;
  }
  .advantage-card p {
    font-size: 10px;
  }
  .advantage-card svg {
    width: 25px;
    height: 25px;
    margin-bottom: 10px;
  }
}
@media (min-width: 641px) and (max-width: 980px) {
  .home-hero {
    display: flex;
  }
  .home-hero-layout {
    flex: 1;
    height: auto;
  }
}
@media (max-width: 980px) {
  .home-first-screen {
    height: auto;
    min-height: calc(100svh - 72px);
  }
  .home-hero {
    min-height: 420px;
  }
  .home-hero-layout {
    min-height: 420px;
  }
  .home-copy {
    padding: 42px 24px;
  }
  .home-copy h1 {
    font-size: 30px;
  }
  .home-copy .eyebrow {
    white-space: normal;
  }
  .home-lead {
    font-size: 13px;
  }
  .home-copy .actions {
    gap: 8px;
  }
  .home-copy .button {
    font-size: 12px;
    padding: 10px 12px;
    min-height: 42px;
  }
  .standard-section {
    padding: 72px 0 64px;
  }
  .home-section-heading h2 {
    font-size: 27px;
  }
  .advantage-section {
    padding: 70px 0;
  }
  .home-advantages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 12px;
    background: none;
  }
  .advantage-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1.15;
    border-radius: 6px;
  }
  .advantage-card h3 {
    font-size: 13px;
  }
  .advantage-card p {
    font-size: 11px;
  }
  .advantage-card svg {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
  }
  .advantage-card:last-child {
    grid-column: 3/5;
    aspect-ratio: auto;
  }
}
@media (max-width: 640px) {
  .home-hero {
    min-height: 0;
  }
  .home-hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-copy {
    padding: 34px 24px 28px;
  }
  .home-copy .eyebrow {
    font-size: 9px;
    margin-bottom: 14px;
  }
  .home-copy h1 {
    font-size: 34px;
    margin-bottom: 16px;
    line-height: 1.45;
  }
  .home-lead {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .home-copy .button {
    font-size: 13px;
    min-height: 43px;
    padding: 10px 17px;
  }
  .home-showcase {
    height: 300px;
  }
  .photo-slide > img {
    mask-image: none;
    object-position: center;
  }
  .photo-slide:first-child > img {
    object-position: center;
  }
  .standard-section {
    padding: 55px 0 48px;
  }
  .home-section-heading {
    margin-bottom: 26px;
  }
  .home-section-heading h2 {
    font-size: 23px;
    margin-bottom: 10px;
  }
  .home-section-heading .eyebrow {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .section-subtitle {
    font-size: 12px;
  }
  .advantage-section {
    padding: 54px 0 48px;
  }
  .advantage-section > .container {
    width: calc(100% - 36px);
  }
  .advantage-section .home-section-heading {
    margin-bottom: 28px;
  }
  .home-advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .advantage-card:nth-child(n) {
    aspect-ratio: 1.2;
    padding: 20px 12px;
    border-radius: 5px;
  }
  .advantage-card:last-child {
    grid-column: 1/-1;
    aspect-ratio: auto;
    min-height: 130px;
  }
  .advantage-card h3 {
    font-size: 13px;
  }
  .advantage-card p {
    font-size: 11px;
  }
  .advantage-card svg {
    width: 27px;
    height: 27px;
    margin-bottom: 12px;
  }
}
@media (max-width: 360px) {
  .home-copy h1 {
    font-size: 30px;
  }
  .home-copy {
    padding-left: 20px;
    padding-right: 20px;
  }
  .home-section-heading h2 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-title-prefix > b,
  .home-title-model > b,
  .home-title-promise > b,
  .home-lead > span > b {
    animation: none;
    transform: none;
  }
  .home-slide,
  .business-card,
  .business-card:before,
  .business-card > img,
  .business-card p,
  .advantage-card {
    transition: none;
  }
  .business-card:hover,
  .business-card:focus-visible {
    transform: none;
  }
}

/* 数字在上，说明在下；与首页上下模块保持轻盈的留白。 */
@media (max-width: 1180px) {
  .home-metrics strong {
    font-size: 40px;
  }
  .home-metrics span {
    font-size: 15px;
  }
}
@media (max-width: 980px) {
  .home-metrics-section {
    padding: 28px 0 30px;
  }
  .home-metrics strong {
    font-size: 36px;
  }
  .home-metrics span {
    font-size: 14px;
  }
  .home-metrics > div {
    min-height: 84px;
    gap: 9px;
  }
}
@media (max-width: 640px) {
  .home-metrics-section {
    padding: 27px 0;
  }
  .home-metrics {
    width: calc(100% - 36px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }
  .home-metrics > div {
    min-height: 83px;
    gap: 8px;
  }
  .home-metrics strong {
    font-size: 36px;
  }
  .home-metrics span {
    font-size: 14px;
    letter-spacing: 0.02em;
  }
  .home-metrics > div + div:before {
    height: 52px;
  }
  .home-metrics > div:nth-child(3):before {
    display: none;
  }
  .home-metrics:after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dbe7ef 20%, #dbe7ef 80%, transparent);
  }
}
@media (max-width: 360px) {
  .home-metrics strong {
    font-size: 34px;
  }
  .home-metrics span {
    font-size: 13px;
  }
}

/* 四个业务入口始终按标题、图片、说明的阅读顺序排列。 */
@media (min-width: 1600px) {
  .home-first-screen {
    min-height: max(772px, calc(100svh - 82px));
  }
  .business-card {
    min-height: 330px;
  }
}
@media (max-width: 1180px) {
  .business-grid {
    gap: 16px;
  }
}
@media (max-width: 980px) {
  .home-hero-layout {
    grid-template-columns: 52% 48%;
  }
  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .business-card {
    --business-title-size: 20px;
    min-height: 310px;
    padding: 22px;
  }
}
@media (max-width: 640px) {
  .home-hero-layout {
    grid-template-columns: 1fr;
  }
  .business-section {
    padding-top: 20px;
    padding-bottom: 24px;
  }
  .business-grid {
    gap: 12px;
  }
  .business-card {
    --business-title-size: 16px;
    min-height: 220px;
    padding: 18px 12px;
    border-radius: 8px;
  }
  .business-heading {
    gap: 8px;
    min-height: 24px;
    margin-bottom: 12px;
  }
  .business-card > img {
    margin-bottom: 12px;
  }
  .business-card p {
    font-size: 11px;
    min-height: 3.2em;
  }
}
@media (max-width: 360px) {
  .business-card {
    --business-title-size: 14px;
    min-height: 204px;
    padding: 16px 9px;
  }
  .business-heading {
    gap: 6px;
  }
}

/* 首页统一使用导航栏边界，去掉各区块额外的收窄边距。 */
body[data-page='home'] .home-copy {
  padding-left: var(--home-gutter);
}
body[data-page='home'] .home-lead {
  margin-bottom: 0;
}
body[data-page='home'] .home-metrics {
  width: calc(100% - var(--home-gutter) - var(--home-gutter));
  max-width: none;
}

/* 首页入口卡片：跟随光斑与蓝色流动描边。 */
@property --business-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes business-border-flow {
  to {
    --business-angle: 360deg;
  }
}
.business-card {
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
}
.business-card::before {
  inset: -1px;
  width: auto;
  height: auto;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--business-angle),
    transparent 0deg,
    transparent 185deg,
    #1283cd20 215deg,
    #1283cd9c 248deg,
    #24b7f0 273deg,
    #83d8ff 291deg,
    #1283cd 320deg,
    #1283cd33 346deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transform: none;
  opacity: 0;
  animation: business-border-flow 2.8s linear infinite paused;
  transition: opacity 0.2s ease;
  filter: drop-shadow(0 0 6px #1283cd80);
  z-index: 3;
}
.business-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    240px circle at var(--mx) var(--my),
    #1283cd38 0%,
    #1283cd20 24%,
    #1283cd0c 46%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}
.business-card > .business-heading,
.business-card > img,
.business-card > p {
  position: relative;
  z-index: 1;
}
.business-card:hover::before,
.business-card:focus-visible::before {
  left: -1px;
  opacity: 1;
  animation-play-state: running;
}
.business-card:hover::after,
.business-card:focus-visible::after {
  opacity: 1;
}
.business-card:hover,
.business-card:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #fff 45%, #f0f7fc);
  box-shadow: 0 11px 28px #17456418;
}
.business-card:hover > img,
.business-card:focus-visible > img {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .business-card::before {
    animation: none;
  }
  .business-card:hover,
  .business-card:focus-visible {
    transform: none;
  }
}
