@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .agent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-row {
    grid-template-columns: minmax(280px, 1fr) var(--featured-image-w) minmax(240px, 300px);
    gap: 24px;
  }

  .product-row--featured {
    --featured-image-w: clamp(280px, 30vw, 360px);
    --featured-image-half-w: clamp(140px, 15vw, 180px);
  }

  /* ===== 架构图等比缩放（覆盖所有中小屏：分屏、半屏、手机）===== */
  .diagram-panel {
    /*
     * scale = 可用宽度 / 1400px
     *  - 1400px > 实际内容宽(1064px)，留出两侧内边距
     *  - 在 1180px 宽屏：scale≈0.82，图略缩；在 390px 手机：scale≈0.27
     * 面板高度 = 图片渲染高度(680px) × scale，图片是正方形 1024×1024
     */
    --scale-val: calc((100vw - 32px) / 1400px);
    height: calc(680px * var(--scale-val));
    overflow: hidden;
    border: var(--line);
    background: #ffffff;
    position: relative;
  }

  .diagram-wrapper {
    /*
     * 居中公式：left = (面板宽 - 内容实际宽1064 × scale) / 2  +  左标签补偿120 × scale
     * scale 分母(1400) 与内容宽(1064) 是两个不同概念，不能混用
     */
    position: absolute !important;
    left: calc((100vw - 32px - 1064px * var(--scale-val)) / 2 + 120px * var(--scale-val)) !important;
    margin-left: 0 !important;
    width: 680px !important;
    transform: scale(var(--scale-val)) !important;
    transform-origin: top left !important;
  }

  .diagram-panel img {
    display: block;
    width: 680px !important;
    max-width: 680px !important;
    height: auto !important;
    margin: 0 !important;
  }
}

@media (max-width: 1024px) {
  .scenario-grid {
    --scenario-visible: 2;
  }

  .news-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr);
  }

}

@media (max-width: 900px) {
  :root {
    --page-x: 22px;
    --section-y: 84px;
    --section-heading-gap: 48px;
    --card-pad: 24px;
  }

  .site-header {
    top: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    min-height: 54px;
    padding: 4px 12px 4px 14px;
  }

  .brand img {
    width: 126px;
  }

  .header-actions .icon-button[aria-label="搜索"] {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .site-header .header-cta {
    display: inline-flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .menu-panel {
    padding: 100px var(--page-x) 40px;
  }

  .menu-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(34px, 7vw, 56px);
    line-height: 1.25;
  }

  .hero-title__phrase {
    display: block;
  }

  .hero h1 br {
    display: none;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: clamp(38px, 11vw, 66px);
  }

  .section-heading p:not(.kicker) {
    font-size: 17px;
  }

  .product-index,
  .agent-grid,
  .scenario-grid,
  .news-grid,
  .security-list,
  .contact-grid {
    margin-top: 0;
  }

  /* diagram 缩放已移至 max-width:1180px 断点，此处不再重复 */

  .answer-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .answer-step {
    border-bottom: 1px solid var(--color-line-soft);
    border-right: 0;
    padding: 20px 0;
    display: grid;
    grid-template-columns: 96px 1fr; /* 左侧固定 96px 显示步骤与标题，右侧自适应 */
    align-items: center; /* 垂直居中 */
    gap: 4px 16px;
  }

  .answer-step::after {
    display: none !important;
  }

  .answer-step__number {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0 !important;
    width: fit-content;
  }

  .answer-step__title {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0 !important;
    font-size: 15px !important;
  }

  .answer-step__grid {
    grid-column: 2;
    grid-row: 1 / span 2; /* 跨越两行，实现完美的垂直居中 */
    margin-top: 0 !important;
    gap: 8px 24px !important; /* 手机端紧凑网格间距，稍微加宽列间距 */
    justify-content: end !important; /* 整体往右对齐，消除右侧过宽的空白 */
  }

  .product-row {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 32vw);
    gap: 14px 12px;
    align-items: start;
  }

  .product-row__visual {
    grid-column: 1;
    grid-row: auto !important; /* 清除桌面端强制在 grid-row: 1 排列的规则，防止移动端单列重叠 */
  }

  .product-row__media {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .product-row__symbol {
    display: none;
  }

  .product-row__body {
    display: contents;
    opacity: 1;
    pointer-events: auto;
  }

  .product-row__number {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1;
    text-align: left;
  }

  .product-row h3 {
    font-size: clamp(36px, 10.8vw, 44px) !important;
    line-height: .96 !important;
    white-space: nowrap;
  }

  .product-row__body strong {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 0;
    font-size: clamp(17px, 4.8vw, 20px);
    line-height: 1.18;
    white-space: normal;
  }

  .product-row__body p {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 10px;
  }

  .product-row__hover-image {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .agent-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr) !important; /* 页脚栏目在平板/移动端改为双列 */
    gap: 32px 24px !important;
  }

  .scenario-grid {
    --scenario-gap: 16px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-section__bar {
    margin-bottom: 18px;
  }

  .news-card--lead,
  .news-card--secondary {
    grid-row: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .news-card--lead h3 {
    max-width: none;
    font-size: clamp(22px, 4.8vw, 30px);
  }

  .scenario-card {
    min-height: auto !important; /* 清除桌面端的 min-height 强制值，自适应高度 */
    padding: 24px 0 !important;
    --local-pad: 20px !important; /* 加小内边距 */
    /* 缩小斜切角尺寸为 28px，给文字留出安全边距 */
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%) !important;
  }

  .scenario-card h3 {
    font-size: 18px !important;
  }

  .scenario-card__visual {
    margin: 16px auto 28px !important;
  }

  .scenario-card p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .footer-column--qr {
    padding-top: 0;
    flex-direction: row;
    gap: 16px;
  }

  .footer-column--qr img {
    width: 76px !important;
    height: 76px !important;
  }

  .agent-card,
  .scenario-card,
  .contact-card {
    min-height: auto;
  }

  .contact-card p {
    margin-top: 48px;
  }

  .scenario-card__visual {
    width: 100%;
    height: auto;
  }

  .scenario-card p {
    margin-top: 0;
  }

  .security-list {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  .security-diagram {
    min-height: 320px;
  }

  .security-controls {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* 安全特性列表在移动端展现为双列 */
    gap: 16px 24px !important;
  }

  .security-control {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--color-line-soft) !important;
  }

  .security-control:nth-last-child(1),
  .security-control:nth-last-child(2) {
    border-bottom: 0 !important; /* 最后一行不需要下边框 */
  }

  .security-control h3 {
    font-size: 18px !important;
  }

  .security-control p {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 520px) {
  :root {
    --page-x: 18px;
    --section-y: 68px;
    --section-heading-gap: 42px;
    --card-pad: 22px;
  }

  .diagram-panel {
    height: auto !important;
    overflow: hidden;
    padding: 14px 10px 16px;
    background: #ffffff;
  }

  .diagram-wrapper {
    position: relative !important;
    left: auto !important;
    width: min(100%, 440px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    transform: none !important;
    transform-origin: center !important;
  }

  .diagram-panel img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .diagram-callout {
    display: none !important;
  }

  .flow-connections {
    opacity: .78;
  }

  .mobile-layer-tag {
    position: absolute;
    left: 4px;
    z-index: 12;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid rgba(13, 14, 16, .78);
    background: rgba(255, 255, 255, .9);
    color: var(--color-ink);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
  }

  .mobile-layer-tag::after {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 24px;
    border-top: 1px solid currentColor;
    content: "";
    opacity: .75;
  }

  .mobile-layer-tag span {
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1;
    color: var(--color-muted);
  }

  .mobile-layer-tag strong {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-layer-tag--action {
    top: 21%;
  }

  .mobile-layer-tag--ontology {
    top: 47%;
  }

  .mobile-layer-tag--data {
    top: 71%;
  }

  .diagram-mobile-legend {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }

  .mobile-layer-list {
    display: grid;
    gap: 8px;
  }

  .mobile-layer-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 2px 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid rgba(13, 14, 16, .12);
    border-left: 3px solid var(--color-ink);
    background: rgba(255, 255, 255, .88);
  }

  .mobile-layer-card--action {
    border-left-color: var(--color-mint);
  }

  .mobile-layer-card--ontology {
    border-left-color: var(--color-ink);
  }

  .mobile-layer-card--data {
    border-left-color: var(--color-line-soft);
  }

  .mobile-layer-card span {
    grid-row: 1 / span 2;
    color: var(--color-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
  }

  .mobile-layer-card strong {
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
  }

  .mobile-layer-card p {
    margin: 0;
    color: var(--color-ink-soft);
    font-size: 12px;
    line-height: 1.45;
  }

  .menu-panel {
    padding: 90px var(--page-x) 30px;
  }

  .menu-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .brand img {
    width: 104px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .site-header {
    gap: 12px;
    padding: 4px 10px 4px 14px;
  }

  .site-header .header-cta {
    height: 40px;
    min-width: 112px;
    padding: 0 14px;
    font-size: 12px;
  }

  @media (max-width: 360px) {
    .brand img {
      width: 96px;
    }

    .site-header {
      gap: 10px;
    }

    .site-header .header-cta {
      min-width: 108px;
      padding: 0 12px;
    }
  }

  .hero h1 {
    font-size: clamp(28px, 10vw, 42px);
    line-height: 1.3;
  }

  .hero-title__phrase--mid,
  .hero-title__phrase--tail {
    margin-top: 0.08em;
  }

  .section-heading h2 {
    font-size: clamp(34px, 12vw, 50px);
  }

  .answer-steps {
    grid-template-columns: 1fr;
  }

  .answer-step {
    min-height: auto;
    padding: 16px 0;
  }

  .answer-step:last-child {
    border-bottom: 0;
  }

  .product-row h3 {
    font-size: clamp(32px, 9.2vw, 36px) !important;
  }

  .agent-card {
    padding: var(--card-pad) 20px;
  }

  .agent-card h3,
  .contact-card h3 {
    font-size: 26px;
  }

  .scenario-grid {
    --scenario-visible: 1;
    --scenario-gap: 12px;
  }

  .news-card--lead,
  .news-card--secondary {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .news-section__bar {
    align-items: center;
    margin-bottom: 16px;
  }

  .news-section__bar h2 {
    font-size: 26px;
  }

  .news-card__body {
    min-height: 132px;
    gap: 12px;
    padding: 18px;
  }

  .news-card h3,
  .news-card--lead h3 {
    font-size: 21px;
    line-height: 1.35;
  }

  .scenario-card {
    --local-pad: 20px !important;
    padding: 24px 0 !important;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%) !important;
  }

  .scenario-card h3 {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  .scenario-card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .security-diagram {
    min-height: 260px;
  }

  .security-control h3 {
    font-size: 15px !important;
  }

  .security-control p {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .security-control__number {
    font-size: 11px !important;
  }

  .site-footer {
    padding-top: 42px;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
