/* 应用领域 — applications.asp */

.page-applications {
  font-size: var(--fs-base, 14px);
  color: var(--color-copy, #666);
}

.app-page {
  background: #fff;
}

/* 行业索引：灰底面板 + 7 列卡片 */
.page-applications .app-index-section {
  padding: clamp(32px, 3.6vw, 44px) 0 clamp(40px, 4.2vw, 52px);
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.app-index-section {
  padding: clamp(32px, 3.6vw, 44px) 0 clamp(40px, 4.2vw, 52px);
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-applications .app-index-head {
  max-width: none;
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  text-align: center;
}

.app-index-head {
  max-width: 40em;
  margin: 0 auto clamp(20px, 2.4vw, 28px);
  text-align: center;
}

.app-index-head__eyebrow {
  justify-content: center;
}

.page-applications .app-index-head__title {
  margin: 0;
  letter-spacing: 0.04em;
}

.app-index-head__title {
  margin: 0;
}

.app-index-head__lead {
  margin: 0;
  font-size: var(--section-lead-fs, 15px);
  line-height: 1.75;
  color: var(--section-lead-color, #666);
}

.page-applications .app-index-panel {
  padding: clamp(24px, 2.8vw, 32px);
  background: #f5f6f8;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
}

.app-index-panel {
  padding: clamp(24px, 2.8vw, 32px);
  background: #f5f6f8;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
}

.app-index-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(12px, 1.1vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-index-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 11px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  box-shadow: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.app-index-card::after {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-top: 1.5px solid rgba(0, 0, 0, 0.16);
  border-right: 1.5px solid rgba(0, 0, 0, 0.16);
  transform: rotate(45deg);
  opacity: 0.45;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.app-index-card:hover,
.app-index-card:focus-visible {
  border-color: rgba(230, 0, 18, 0.22);
  box-shadow: 0 4px 14px rgba(230, 0, 18, 0.06);
  transform: translateY(-1px);
}

.app-index-card:hover::after,
.app-index-card:focus-visible::after {
  opacity: 1;
  border-color: var(--brand, #e60012);
}

.app-index-card:focus-visible {
  outline: 2px solid rgba(230, 0, 18, 0.35);
  outline-offset: 2px;
}

.app-index-card__no {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--brand, #e60012);
  background: rgba(230, 0, 18, 0.07);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.app-index-card:hover .app-index-card__no,
.app-index-card:focus-visible .app-index-card__no {
  color: #fff;
  background: var(--brand, #e60012);
}

.app-index-card__name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-title, #333);
  transition: color 0.2s ease;
}

.app-index-card:hover .app-index-card__name,
.app-index-card:focus-visible .app-index-card__name {
  color: var(--brand, #e60012);
}

@media (prefers-reduced-motion: reduce) {
  .app-index-card,
  .app-index-card::after,
  .app-index-card__no {
    transition: none;
  }

  .app-index-card:hover,
  .app-index-card:focus-visible {
    transform: none;
  }
}

/* 滚动渐入（与 main.css .reveal 配合，本页在 applications.js 中挂载） */
.page-applications .app-index-grid > li.reveal {
  transform: translateY(18px);
}

.page-applications .app-reveal--media.reveal {
  transform: translateY(24px) translateX(-20px);
}

.page-applications .app-industry--reverse .app-reveal--media.reveal {
  transform: translateY(24px) translateX(20px);
}

.page-applications .app-reveal--body.reveal {
  transform: translateY(24px) translateX(20px);
}

.page-applications .app-industry--reverse .app-reveal--body.reveal {
  transform: translateY(24px) translateX(-20px);
}

.page-applications .app-reveal--media.reveal.is-visible,
.page-applications .app-reveal--body.reveal.is-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-applications .app-index-grid > li.reveal,
  .page-applications .app-reveal--media.reveal,
  .page-applications .app-reveal--body.reveal {
    transform: none;
  }
}

.app-load-error {
  margin: 0;
  padding: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  text-align: center;
  background: #f9fafb;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 8px;
}

.app-section {
  padding: clamp(48px, 5.5vw, 72px) 0;
  scroll-margin-top: calc(var(--header-h, 105px) + 20px);
}

.app-section--soft {
  background: #f3f4f6;
}

.app-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: var(--inner-eyebrow-fs, 13px);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(230, 0, 18, 0.88);
}

.app-eyebrow__mark {
  width: 28px;
  height: 2px;
  background: var(--brand, #e60012);
  border-radius: 1px;
}

.app-section__title {
  margin: 0 0 16px;
  font-size: var(--inner-section-title-fs, clamp(22px, 2.6vw, 30px));
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-title, #333);
}

.app-industry__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(28px, 3.5vw, 48px);
}

.app-industry--reverse .app-industry__inner {
  flex-direction: row-reverse;
}

.app-industry__media {
  flex: 1 1 42%;
  max-width: 48%;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}


.app-industry__body {
  flex: 1 1 46%;
  min-width: min(100%, 300px);
}

.app-industry .app-section__title {
  margin-bottom: 1em;
}

.app-industry__summary {
  margin: 0 0 1.25em;
  font-size: var(--section-lead-fs, 15px);
  line-height: 1.8;
  color: var(--section-lead-color, #666);
}

.app-industry__note {
  margin: 0 0 1.25em;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: #555;
  white-space: pre-line;
  background: rgba(230, 0, 18, 0.05);
  border-left: 3px solid var(--brand, #e60012);
  border-radius: 0 8px 8px 0;
}

.app-industry__chains {
  margin-bottom: 1.5em;
}

.app-industry__chains-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-title, #333);
}

.app-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-products__item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1.35;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

.app-section--soft .app-products__item {
  background: #fff;
}

.app-products__name {
  color: #333;
  font-weight: 500;
}

.app-products__cat {
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand, #e60012);
  background: rgba(230, 0, 18, 0.08);
  border-radius: 999px;
}

.app-industry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.app-industry__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--brand, #e60012);
  border: 1px solid var(--brand, #e60012);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(230, 0, 18, 0.12);
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.app-industry__cta:hover,
.app-industry__cta:focus-visible {
  background: var(--brand-dark, #c40010);
  border-color: var(--brand-dark, #c40010);
  box-shadow: 0 10px 24px rgba(230, 0, 18, 0.28);
  transform: translateY(-2px);
}

.app-industry__cta:focus-visible {
  outline: 2px solid rgba(230, 0, 18, 0.35);
  outline-offset: 3px;
}

.app-industry__cta--ghost {
  color: var(--brand, #e60012);
  background: #fff;
  border-color: rgba(230, 0, 18, 0.42);
  box-shadow: none;
}

.app-industry__cta--ghost:hover,
.app-industry__cta--ghost:focus-visible {
  color: #fff;
  background: var(--brand, #e60012);
  border-color: var(--brand, #e60012);
  box-shadow: 0 10px 24px rgba(230, 0, 18, 0.22);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .app-industry__cta,
  .app-industry__cta--ghost {
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }

  .app-industry__cta:hover,
  .app-industry__cta:focus-visible,
  .app-industry__cta--ghost:hover,
  .app-industry__cta--ghost:focus-visible {
    transform: none;
  }
}

.app-industries .app-industry:last-child {
  padding-bottom: clamp(64px, 7vw, 88px);
}

/* Pad / 手机：大板块间距（PC 保持上方 clamp 不变） */
@media (max-width: 1024px) {
  .page-applications {
    --app-block-gap: 55px;
  }

  body.page-applications .page-banner.page-banner--has-bg {
    min-height: clamp(260px, 32vw, 360px);
    padding-top: var(--app-block-gap);
    padding-bottom: var(--app-block-gap);
  }

  body.page-applications .app-index-section {
    padding-top: var(--app-block-gap);
    padding-bottom: var(--app-block-gap);
  }

  /* 与 PC 一致：每条行业块（含首条）上下各留一大板块间距 */
  body.page-applications .app-section.app-industry {
    padding-top: var(--app-block-gap);
    padding-bottom: var(--app-block-gap);
  }

  body.page-applications .app-industries .app-industry:last-child {
    padding-bottom: var(--app-block-gap);
  }
}

@media (max-width: 1199px) and (min-width: 641px) {
  .app-index-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 14px);
  }
}

@media (max-width: 640px) {
  .page-applications {
    --app-block-gap: 30px;
  }

  body.page-applications .page-banner.page-banner--has-bg {
    min-height: clamp(200px, 50vw, 260px);
    padding-top: var(--app-block-gap);
    padding-bottom: var(--app-block-gap);
  }

  /* 手机端隐藏行业索引，仅保留下方详情 */
  body.page-applications .app-index-section {
    display: none;
  }

  /* 行业详情：图文均在 14px 版心内（含配图，不再通栏） */
  body.page-applications .app-industry__inner.container {
    width: 100%;
    max-width: 100%;
    padding-inline: var(--page-inner-gutter, 14px);
    box-sizing: border-box;
  }

  body.page-applications .app-industry__body {
    width: 100%;
    min-width: 0;
    padding-inline: 0;
    box-sizing: border-box;
  }

  body.page-applications .app-industry__chains,
  body.page-applications .app-products {
    min-width: 0;
    max-width: 100%;
  }

  body.page-applications .app-industry__media {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    border-radius: 12px;
  }

  body.page-applications .app-industry__media img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* 渐入位移在窄屏易显得贴边，仅保留纵向动效 */
  body.page-applications .app-reveal--body.reveal,
  body.page-applications .app-industry--reverse .app-reveal--body.reveal,
  body.page-applications .app-reveal--media.reveal,
  body.page-applications .app-industry--reverse .app-reveal--media.reveal {
    transform: translateY(18px);
  }

  body.page-applications .app-reveal--media.reveal.is-visible,
  body.page-applications .app-reveal--body.reveal.is-visible {
    transform: none;
  }

  body.page-applications .app-section.app-industry {
    padding-top: var(--app-block-gap);
    padding-bottom: var(--app-block-gap);
  }

  body.page-applications .app-industries .app-industry:last-child {
    padding-bottom: var(--app-block-gap);
  }

  body.page-applications .app-industry__inner {
    gap: 16px;
  }

  body.page-applications .app-section__title {
    font-size: clamp(18px, 5.2vw, 22px);
    margin-bottom: 12px;
  }

  body.page-applications .app-industry__summary {
    font-size: 14px;
    line-height: 1.75;
  }

  body.page-applications .app-industry__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  body.page-applications .app-industry__cta {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    min-width: 0;
    width: auto;
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
    box-shadow: 0 1px 6px rgba(230, 0, 18, 0.1);
  }
}

@media (max-width: 992px) {
  .app-industry__inner,
  .app-industry--reverse .app-industry__inner {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .app-industry__media {
    flex: 1 1 auto;
    max-width: 100%;
  }
}


/* 后台富文本简介：去掉首尾段落多余间距，保持与原型单段文本一致 */
.app-industry__summary > :first-child {
  margin-top: 0;
}

.app-industry__summary > :last-child {
  margin-bottom: 0;
}

.app-industry__summary p {
  margin: 0 0 0.9em;
  line-height: inherit;
}

.app-industry__summary img {
  max-width: 100%;
  height: auto;
}
