/* 首页 — 对标 Figma home */

/* ---------- 首屏 ---------- */
.hero-stack-section {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #0a0e14;
  /* 与主标题字号同步，供「约四字」缩进（4em）随断点缩放 */
  --hero-title-px: 48px;
  /* 占满首屏可视区域（扣除固定顶栏高度） */
  height: calc(100vh - var(--header-height, 72px));
  height: calc(100svh - var(--header-height, 72px));
  min-height: 280px;
}

.hero-stack-carousel {
  --hero-stack-n: 3;
  --hero-stack-index: 0;
  width: 100%;
  height: 100%;
}

.hero-stack-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-stack-viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.hero-stack-viewport:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.hero-stack-track {
  display: flex;
  height: 100%;
  width: calc(var(--hero-stack-n, 3) * 100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform: translateX(calc((-100% / var(--hero-stack-n, 3)) * var(--hero-stack-index, 0)));
}

.hero-stack-slide {
  position: relative;
  flex: 0 0 calc(100% / var(--hero-stack-n, 3));
  min-width: 0;
  height: 100%;
}

.hero-stack-slide .hero-stack-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.hero-stack-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: min(100rem, 92%);
  /* font-size 与主标题一致，便于 padding-left 使用 4em ≈ 四字宽 */
  font-size: var(--hero-title-px);
  padding-top: clamp(20px, 4.5vw, 56px);
  padding-right: clamp(16px, 4vw, 72px);
  padding-bottom: clamp(56px, 12vh, 100px);
  padding-left: calc(clamp(16px, 4vw, 72px) + 4em);
  pointer-events: none;
}

.hero-stack-title {
  margin: 0 0 16px;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  letter-spacing: 0.02em;
  font-family:"Microsoft YaHei New", "Microsoft Yahei", "微软雅黑", "Hiragino Sans GB", "冬青黑体", "Arial", "Helvetica", "SimHei", "黑体", "STXihei", "华文细黑", sans-serif;
  text-shadow:
  0 1px 2px rgba(0, 0, 0, 0.35),
  0 4px 28px rgba(0, 0, 0, 0.45);
}

.hero-stack-sub {
  margin: 0;
  font-family:"Microsoft YaHei New", "Microsoft Yahei", "微软雅黑", "Hiragino Sans GB", "冬青黑体", "Arial", "Helvetica", "SimHei", "黑体", "STXihei", "华文细黑", sans-serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 2px 20px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1920px) {
  .hero-stack-section {
    --hero-title-px: 64px;
  }
}

@media (max-width: 780px) {
  .hero-stack-section {
    --hero-title-px: 26px;
  }

  .hero-stack-title {
    margin-bottom: 12px;
  }
}

.hero-stack-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hero-stack-nav--prev {
  left: max(12px, env(safe-area-inset-left, 0px));
}

.hero-stack-nav--next {
  right: max(12px, env(safe-area-inset-right, 0px));
}

.hero-stack-nav:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.hero-stack-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-stack-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-stack-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.hero-stack-dots .hero-stack-dot {
  pointer-events: auto;
}

/* 扁平横条分页（非激活半透明、当前页纯白） */
.hero-stack-dot {
  box-sizing: content-box;
  width: 42px;
  height: 3px;
  padding: 16px 0px;
  border: none;
  border-radius: 1px;
  background-color: rgba(255, 255, 255, 0.45);
  background-clip: content-box;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hero-stack-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.hero-stack-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-stack-dot.is-active {
  background-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hero-stack-track {
    transition: none;
  }

  .hero-stack-dot {
    transition: none;
  }
}

/* ---------- 主营业务 ---------- */
.section-products-home {
  padding: 64px 0 80px;
  background: #f2f3f5;
}

.products-home-panel {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  /* padding: var(--spacing-3xl) var(--spacing-2xl) var(--spacing-3xl); */
}

.products-home-head {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.products-home-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.92);
  margin-bottom: var(--spacing-md);
}

.products-home-desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #6f7686;
  max-width: 900px;
  margin: 0 auto;
}

.products-home-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  border-bottom: 2px solid #e5e6eb;
  margin-bottom: var(--spacing-xl);
}

.products-home-tab {
  flex: 1 1 0;
  min-width: 120px;
  padding: 16px 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: rgba(0, 0, 0, 0.92);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.products-home-tab:hover {
  color: var(--color-primary);
}

.products-home-tab[aria-selected="true"] {
  color: #0052d6;
  border-bottom-color: #0052d6;
}

.products-home-carousel {
  position: relative;
  display: block;
  width: 100%;
  --phc-media-h: 280px;
}

.products-home-carousel-viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  --phc-gap: 10px;
  /* 由 js/home.js 覆盖；缺省用于首帧避免 calc 无效 */
  --phc-viewport-inline: 1120px;
  --phc-peek: 52px;
  padding-bottom: 30px;
}

.products-home-carousel-track {
  display: flex;
  gap: var(--phc-gap);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.products-home-carousel .products-home-card {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px -1px rgba(0, 47, 122, 0.1), 0 1px 3px 0 rgba(0, 47, 122, 0.1);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.products-home-carousel .products-home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 47, 122, 0.14);
}

.products-home-carousel .products-home-card.is-active {
  box-shadow:
  0 8px 12px -1px rgba(0, 98, 255, 0.1),
  0 14px 24px 0 rgba(0, 98, 255, 0.08),
  0 18px 32px 0 rgba(0, 98, 255, 0.04);
  transform: translateY(-2px);
}

/* 版心可视宽度内：3 张整卡 + 左右各一截邻卡；--phc-viewport-inline / --phc-peek 与 home.js 位移一致 */
@media (min-width: 769px) {
  .products-home-carousel .products-home-card {
    flex: 0 0
      calc(
        (var(--phc-viewport-inline) - 4 * var(--phc-gap) - 2 * var(--phc-peek)) / 3
      );
    width: calc(
      (var(--phc-viewport-inline) - 4 * var(--phc-gap) - 2 * var(--phc-peek)) / 3
    );
  }
}

.products-home-carousel-nav {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  /* background: rgba(0, 255, 255, 0.94); */
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 30, 80, 0.12);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.15s ease;
}

.products-home-carousel-nav--prev {
  left: max(12px, env(safe-area-inset-left, 0px));
}

.products-home-carousel-nav--next {
  right: max(12px, env(safe-area-inset-right, 0px));
}

.products-home-carousel-nav:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: rgba(21, 93, 209, 0.35);
  box-shadow: var(--shadow-md);
}

.products-home-carousel-nav:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.products-home-carousel-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.products-home-card-media {
  height: var(--phc-media-h, 280px);
  background: var(--color-primary-light);
  overflow: hidden;
}

.products-home-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.products-home-carousel .products-home-card.is-active .products-home-card-media img {
  transform: scale(1.08);
}

.products-home-card-body {
  padding: 24px 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.products-home-card-body h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
  color: rgba(0, 0, 0, 0.92);
}

.products-home-card-body p {
  font-size: 16px;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.6);
}

.products-home-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-2xl);
}

.products-home-more {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}

.products-home-more:hover {
  text-decoration: underline;
}

/* ---------- 资讯 ---------- */
.section-news-home {
  padding: 64px 0 80px;
  background: var(--color-bg-white);
}

.news-home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.news-home-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-2xl);
}

.news-home-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 54px;
  color: rgba(0, 0, 0, 0.92);
  margin-bottom: var(--spacing-sm);
}

.news-home-sub {
  font-size: 20px;
  line-height: 1.5;
  color: #6f7686;
  max-width: 560px;
}

.news-home-toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-lg);
  flex: 1;
}

.news-home-cat-group {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #dcdcde;
}

.news-home-cat {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 32px;
  cursor: pointer;
  border: none;
  background: #fff;
  color: rgba(0, 0, 0, 0.92);
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
}

.news-home-cat[aria-selected="true"] {
  background: #242424;
  color: #fff;
  font-weight: 600;
}

.news-home-cat[aria-selected="false"]:hover {
  background: #f7f8fa;
}

.news-home-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.news-home-more-link:hover {
  color: var(--color-primary);
}

.news-home-more-icon {
  flex-shrink: 0;
}

.news-home-mosaic {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.news-home-empty-state {
  width: 100%;
  min-height: 240px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
  border: 1px solid #e6edf8;
  border-radius: var(--radius-md);
}

.news-home-empty-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: #2b313d;
}

.news-home-empty-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #86909c;
}

.news-featured {
  flex: 1 1 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  background: #0052d6;
  border-radius: 64px 0 0 0;
  overflow: hidden;
  color: #fff;
  cursor: pointer;
}

.news-featured-media {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.news-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.news-featured-body {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #fff;
}

.news-featured-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #EF7418;
}

.news-featured-heading {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.news-featured-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.95;
}

.news-home-stack {
  flex: 0 1 420px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-compact {
  display: block;
  padding: 0 24px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px -1px rgba(0, 47, 122, 0.1), 0 1px 3px 0 rgba(0, 47, 122, 0.1);
  flex: 1;
  min-height: 126px;
  cursor: pointer;
}
.news-compact:hover {
  background: #FFF;
  box-shadow: 0 18px 32px 0 rgba(0, 98, 255, 0.04), 0 14px 24px 0 rgba(0, 98, 255, 0.08), 0 8px 12px -1px rgba(0, 98, 255, 0.10);
}

.news-compact:hover .news-compact-title,
.news-compact:focus-within .news-compact-title {
  color: var(--color-primary);
}

.news-compact-body {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-compact-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color:rgba(0, 0, 0, 0.92);
}

.news-compact-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #EF7418;
}

.news-compact-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.92);
  transition: color 0.2s ease;
}

.news-compact-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: #272b34;
  opacity: 0.6;
}

/* ---------- 场景化解决方案 ---------- */
.section-solutions-home {
  padding: 64px 0 80px;
  background: var(--color-bg-white);
}

.solutions-home-head {
  text-align: center;
  margin-bottom: 48px;
}

.solutions-home-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 54px;
  color: #1a1a1a;
  margin-bottom: var(--spacing-md);
}

.solutions-home-desc {
  font-size: 20px;
  line-height: 1.5;
  color: #6b7280;
  max-width: 720px;
  margin: 0 auto;
}

.solutions-home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.solution-home-card {
  flex: 1 1 260px;
  max-width: 320px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  background: #fafbfc;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eef0f3;
  transition: box-shadow 0.2s, transform 0.2s;
}

.solution-home-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.solution-home-top {
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solution-home-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.solution-home-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.solution-home-heading h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.solution-home-text {
  font-size: 16px;
  line-height: 24px;
  color: #535d6d;
}

.solution-home-media {
  height: 166px;
  background: #e8ecf1;
  overflow: hidden;
}

.solution-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-home-link {
  padding: 16px 32px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
}

.solution-home-card:hover .solution-home-link {
  text-decoration: underline;
}

/* ---------- 数据与理念 ---------- */
.section-home-stats {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
  background: linear-gradient(135deg, #1457c3 0%, #2060df 50%, #099dff 97%);
}

.section-home-stats::before,
.section-home-stats::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.section-home-stats::before {
  width: 384px;
  height: 384px;
  right: 8%;
  top: 10%;
  background: #ff6900;
  filter: blur(128px);
  opacity: 0.35;
}

.section-home-stats::after {
  width: 288px;
  height: 288px;
  left: 5%;
  top: 18%;
  background: #fff;
  filter: blur(140px);
  opacity: 0.12;
}

.home-stats-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.home-stats-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 72px;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.home-stats-tagline {
  font-size: 24px;
  line-height: 36px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 48px;
  letter-spacing: 4px;
}

.home-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 32px 48px;
}

.home-stat {
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-stat-num {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.home-stat-label {
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- 合作伙伴 ---------- */
.section-partners-home {
  padding: 64px 0 80px;
  background: var(--color-bg-white);
}

.section-title--center {
  text-align: center;
}

.section-desc--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.partners-home-desc {
  margin-bottom: 41px;
}

.partners-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg) var(--spacing-xl);
  align-items: center;
}

.partner-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: var(--radius-sm);
}

.partner-cell img {
  width: 284px;
  height: 129px;
  object-fit: contain;
}

.partner-cell:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ---------- CTA ---------- */
.section-home-cta {
  padding: 64px 0 80px;
  background: #f5f6ff;
}

.home-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.home-cta-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 54px;
  color: rgba(0, 0, 0, 0.92);
  max-width: 880px;
}

.home-cta-desc {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.76);
  max-width: 720px;
}

.home-cta-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 96px;
}

.home-cta-point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.6);
}

.home-cta-check {
  flex-shrink: 0;
}

.home-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #155dd1 0%, #155dfc 50%, #9810fa 100%);
  box-shadow: 0 8px 24px rgba(21, 93, 209, 0.25);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(21, 93, 209, 0.32);
}

/* ---------- 获取方案表单（与留言弹窗区分：宽版双列 + 蓝色顶栏 + 场景胶囊） ---------- */
.home-plan-root {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.home-plan-root[hidden] {
  display: none !important;
}

.home-plan-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 40, 0.58);
}

.home-plan-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  margin: 16px;
  overflow: visible;
}

.home-plan-dialog {
  width: 100%;
  max-height: calc(100vh - 62px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.home-plan-hero {
  padding: 28px 32px 24px;
  background: linear-gradient(135deg, #0b2d6b 0%, #155dd1 58%, #1a73e8 100%);
  color: #fff;
}

.home-plan-close {
  position: absolute;
  top: 0;
  right: -44px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #1d2129;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.home-plan-close:hover,
.home-plan-close:focus-visible {
  background: #4e5969;
}

.home-plan-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.home-plan-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-align: left;
}

.home-plan-lead {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.home-plan-form {
  padding: 24px 32px 28px;
}

.home-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 18px;
}

.home-plan-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1d2129;
}

.home-plan-field--full {
  display: flex;
  margin-bottom: 8px;
}

.home-plan-required {
  color: #f53f3f;
  margin-left: 2px;
}

.home-plan-field input,
.home-plan-field textarea {
  width: 100%;
  border: 1px solid #dce3ee;
  border-radius: 2px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #1d2129;
  background: #fff;
}

.home-plan-field textarea {
  min-height: 108px;
  resize: vertical;
}

.home-plan-field input:focus,
.home-plan-field textarea:focus {
  outline: none;
  border-color: #155dd1;
  box-shadow: 0 0 0 3px rgba(21, 93, 209, 0.12);
}

.home-plan-field input.is-invalid,
.home-plan-field textarea.is-invalid,
.home-plan-chips.is-invalid {
  border-color: #f53f3f;
}

.home-plan-scenes {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.home-plan-scenes legend {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1d2129;
}

.home-plan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 2px;
}

.home-plan-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dce3ee;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #4e5969;
  cursor: pointer;
}

.home-plan-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.home-plan-chip:has(input:checked),
.home-plan-chip.is-checked {
  border-color: #155dd1;
  background: #eef4ff;
  color: #155dd1;
  font-weight: 600;
}

.home-plan-chip:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(21, 93, 209, 0.16);
}

.home-plan-error {
  margin: 0 0 12px;
  font-size: 13px;
  color: #f53f3f;
}

.home-plan-error[hidden] {
  display: none !important;
}

.home-plan-actions {
  display: block;
}

.home-plan-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #c9cdd4;
  text-align: center;
}

.home-plan-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: #005ae0;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.home-plan-submit:hover:not(:disabled) {
  background: #0049b8;
}

.home-plan-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.home-plan-success {
  padding: 48px 32px 40px;
  text-align: center;
}

.home-plan-success[hidden] {
  display: none !important;
}

.home-plan-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f6ee;
  color: #1a7f4b;
  font-size: 28px;
  font-weight: 700;
}

.home-plan-success h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #1d2129;
}

.home-plan-success p {
  margin: 0 0 24px;
  font-size: 14px;
  color: #4e5969;
}

.home-plan-success-btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: #005ae0;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.home-plan-success-btn:hover {
  background: #0049b8;
}

body.home-plan-open {
  overflow: hidden;
}

/* ---------- 接口测试 ---------- */
.section-api-test {
  padding: var(--spacing-4xl) 0;
  background: var(--color-bg-light);
}

.section-api-test .section-title,
.section-api-test .section-desc {
  text-align: center;
}

.section-api-test .section-desc {
  margin-bottom: var(--spacing-xl);
}

.api-test-panel {
  background: #fff;
  border: 1px solid #e6edf8;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-xl);
}

.api-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.api-test-label {
  display: block;
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: 500;
  margin: var(--spacing-sm) 0 6px;
}

.api-test-input {
  width: 100%;
  border: 1px solid #d5deee;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
}

.api-test-textarea {
  min-height: 96px;
  resize: vertical;
  font-family: Consolas, Monaco, monospace;
}

.api-test-result {
  background: #0b1020;
  color: #d6e2ff;
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
  min-height: 220px;
  max-height: 460px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .partners-home-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-stats-title {
    font-size: 36px;
    line-height: 1.25;
  }

  .home-cta-points {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .section-products-home,
  .section-news-home,
  .section-solutions-home,
  .section-partners-home,
  .section-home-cta {
    padding: 48px 0 56px;
  }

  /* .products-home-panel {
    padding: var(--spacing-xl) var(--spacing-md);
  } */

  .products-home-title {
    font-size: 28px;
  }

  .products-home-desc {
    font-size: 16px;
  }

  .products-home-tab {
    min-width: calc(50% - 6px);
    flex: 1 1 calc(50% - 6px);
    font-size: 14px;
    padding: 12px 8px;
  }

  .products-home-carousel {
    margin: 0;
    --phc-media-h: 200px;
  }

  .products-home-carousel-track {
    gap: 8px;
  }

  .products-home-carousel .products-home-card {
    flex-basis: 100%;
    width: 100%;
  }

  .products-home-carousel-nav {
    width: 36px;
    height: 36px;
  }

  .products-home-carousel-nav--prev {
    left: max(8px, env(safe-area-inset-left, 0px));
  }

  .products-home-carousel-nav--next {
    right: max(8px, env(safe-area-inset-right, 0px));
  }

  .hero-stack-nav {
    width: 38px;
    height: 38px;
  }

  .hero-stack-nav--prev {
    left: max(8px, env(safe-area-inset-left, 0px));
  }

  .hero-stack-nav--next {
    right: max(8px, env(safe-area-inset-right, 0px));
  }

  .hero-stack-dots {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    gap: 2px;
  }

  .hero-stack-dot {
    width: 32px;
    height: 2px;
    /* padding: 14px 8px; */
  }

  .hero-stack-copy {
    max-width: 100%;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    padding-bottom: 72px;
  }

  .products-home-card-body {
    padding: 18px 16px 20px;
  }

  .products-home-card-body h3 {
    font-size: 20px;
    line-height: 1.4;
  }

  .products-home-card-body p {
    font-size: 14px;
    line-height: 1.6;
  }

  .news-home-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-home-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .news-home-title,
  .solutions-home-title,
  .home-cta-title {
    font-size: 28px;
    line-height: 1.35;
  }

  .news-home-sub,
  .solutions-home-desc,
  .home-cta-desc {
    font-size: 16px;
  }

  .news-home-cat {
    padding: 10px 22px;
    font-size: 14px;
  }

  .news-home-more-link {
    padding: 10px 0;
    font-size: 14px;
  }

  .news-home-mosaic {
    flex-direction: column;
  }

  .news-home-stack {
    flex: 1 1 auto;
  }

  .news-compact {
    padding: 0 16px;
  }

  .news-featured {
    border-radius: 20px 0 0 0;
  }

  .news-featured-media {
    height: 220px;
  }

  .news-featured-body {
    padding: 16px 16px 20px;
  }

  .solutions-home-grid {
    flex-direction: column;
  }

  .solution-home-card {
    max-width: none;
  }

  .solution-home-top {
    padding: 20px 16px 16px;
  }

  .solution-home-heading h3 {
    font-size: 18px;
  }

  .solution-home-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .solution-home-media {
    height: 150px;
  }

  .partners-home-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .partner-cell {
    min-height: 44px;
  }

  .home-stats-grid {
    flex-direction: column;
    gap: 18px;
  }


  .home-stats-tagline {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 56px;
  }

  .home-stat-num {
    font-size: 34px;
  }

  .home-cta-inner {
    gap: 20px;
  }

  .home-cta-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 18px;
    line-height: 1.4;
  }

  .home-plan-root {
    padding: 12px;
    align-items: center;
  }

  .home-plan-panel {
    width: 100%;
    max-height: none;
    margin: 12px;
    border-radius: 0;
  }

  .home-plan-dialog {
    max-height: calc(100vh - 48px);
    border-radius: 12px;
  }

  .home-plan-close {
    width: 28px;
    height: 28px;
    top: -10px;
    right: -10px;
  }

  .home-plan-hero,
  .home-plan-form,
  .home-plan-success {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-plan-hero {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .home-plan-title {
    font-size: 22px;
  }

  .home-plan-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
}
