/* =========================================================
   AYD · Solution Detail 通用样式
   左侧锚点导航 + 流程图概览 + 3 个场景（左图右文）
   ========================================================= */

/* ========== 整页 layout ========== */
.detail-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  align-items: start;
}

/* ========== 左侧锚点导航 ========== */
.side-nav {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  align-self: start;
  padding-top: 8px;
  height: fit-content;
  z-index: 10;
}
.side-nav-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--line);
}
.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-nav ul li a {
  display: block;
  padding: 10px 0 10px 14px;
  font-size: 13px;
  color: var(--ink-60);
  text-decoration: none;
  border-left: 1.5px solid var(--line);
  transition: color 0.2s, border-color 0.2s, padding-left 0.2s;
  letter-spacing: 0.01em;
}
.side-nav ul li a:hover {
  color: var(--ink);
  border-left-color: var(--ink-60);
  padding-left: 18px;
}
.side-nav ul li a.active {
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .side-nav {
    display: none;
  }
}

/* ========== 主内容区域 · 关键修复：不要用负 margin ========== */
.detail-main {
  min-width: 0; /* 防止 grid 子项溢出 */
}

/* ========== 行业概览 ========== */
.industry-overview {
  background: var(--paper);
  padding: 24px 0 64px;
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.industry-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 64px;
  align-items: start;
}
.industry-overview-label .eyebrow {
  margin-bottom: 16px;
}
.industry-overview-label h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.industry-overview-body p {
  font-size: 17px;
  color: var(--ink-60);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 720px;
}
.industry-overview-body p:last-child {
  margin-bottom: 0;
}
@media (max-width: 1020px) {
  .industry-overview-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ========== 流程概览 Section（新增）==========
   单张大流程图，作为"科普概览" */
.process-overview {
  padding: 64px 0 80px;
  scroll-margin-top: calc(var(--nav-h) + 32px);
  border-top: 0.5px solid var(--line);
}
.process-overview-header {
  margin-bottom: 32px;
}
.process-overview-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 12px;
}
.process-overview-header h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 720px;
}
.process-overview-header p {
  font-size: 15px;
  color: var(--ink-60);
  line-height: 1.75;
  margin: 0;
  max-width: 720px;
}
.process-overview-svg {
  background: var(--surface);
  padding: 40px 24px 32px;
  border: 0.5px solid var(--line);
}
.process-overview-svg svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 0 auto;
}
.process-overview-legend {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 0.5px solid var(--line);
  font-size: 12px;
  color: var(--ink-60);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.legend-dot.brand {
  background: var(--brand);
}
.legend-dot.neutral {
  background: var(--ink);
  opacity: 0.4;
}

/* ========== 应用场景 ========== */
.applications-section {
  padding: 80px 0;
  border-top: 0.5px solid var(--line);
}
.applications-section-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid var(--line);
}

.app-scenario {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 0.5px solid var(--line);
  align-items: start;
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.app-scenario:last-child {
  border-bottom: 0;
}

.app-visual {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.app-num {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.app-visual-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--hero-bg);
  overflow: hidden;
}
.app-visual-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-40);
  background: linear-gradient(135deg, #ECECE9 0%, #DEDED9 100%);
}

.app-content h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 8px;
}
.app-subtitle {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-60);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.app-block {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--line);
}
.app-block:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 24px;
}
.app-block-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  font-weight: 500;
  margin-bottom: 10px;
}
.app-block p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.75;
  margin: 0;
}

.app-recommend {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 2px solid var(--brand);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s;
}
.app-recommend:hover {
  background: #FAFAF8;
}
.app-recommend-text {
  flex: 1;
}
.app-recommend-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
  font-weight: 500;
  margin-bottom: 6px;
}
.app-recommend-product {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.app-recommend-arrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s;
}
.app-recommend-arrow::after {
  content: '→';
}
.app-recommend:hover .app-recommend-arrow {
  gap: 14px;
}

@media (max-width: 1020px) {
  .app-scenario {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .app-visual {
    position: static;
  }
}

/* ========== KPI ========== */
.kpi-section {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 40px;
  margin-top: 80px;
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.kpi-section-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}
.kpi-cell {
  background: var(--ink);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}
.kpi-value {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.kpi-value .small {
  font-size: 0.55em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 4px;
  letter-spacing: 0;
}
.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.kpi-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}
@media (max-width: 860px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Products entry ========== */
.product-entry-section {
  padding: 80px 0;
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.product-entry-section-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid var(--line);
}
.product-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.product-card {
  display: block;
  background: var(--surface);
  padding: 40px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.3s;
  border-top: 2px solid transparent;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover::before {
  transform: scaleX(1);
}
.product-card-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
  font-weight: 500;
  margin-bottom: 16px;
}
.product-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 16px;
}
.product-card p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.7;
  margin: 0 0 24px;
}
.product-card-arrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s, gap 0.25s;
}
.product-card-arrow::after {
  content: '→';
}
.product-card:hover .product-card-arrow {
  color: var(--brand);
  gap: 14px;
}
@media (max-width: 860px) {
  .product-entry-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CTA ========== */
.detail-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 40px;
  margin-top: 0;
  position: relative;
}
.detail-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
}
.detail-cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.detail-cta h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 20px;
}
.detail-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin-bottom: 32px;
}
.detail-cta .cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.detail-cta .btn {
  color: var(--paper);
  border-color: var(--paper);
}
.detail-cta .btn:hover {
  background: var(--paper);
  color: var(--ink);
}
.detail-cta .btn-red {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--paper);
}
.detail-cta .btn-red:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--paper);
}
.detail-cta-right {
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.detail-cta-right h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 16px;
  font-weight: 500;
}
.detail-cta-right p {
  font-size: 14px;
  color: var(--paper);
  margin: 0 0 10px;
  line-height: 1.6;
}
.detail-cta-right p a {
  color: var(--paper);
  transition: color 0.2s;
}
.detail-cta-right p a:hover {
  color: var(--brand);
}
@media (max-width: 860px) {
  .detail-cta-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .detail-cta {
    padding: 56px 24px;
  }
}

/* =========================================================
   AYD · Solution Detail · 手机端布局修复 v2（追加，用 !important 覆盖页面内联样式）
   产品页/解决方案页的 app-decor 样式是内联写在 HTML <style> 里的，
   优先级高于本文件，故这里用 !important 强制覆盖，修复手机端
   "01." 超大编号 + 标题 + 小标题重叠问题。
   ========================================================= */
@media (max-width: 1020px) {
  .app-scenario .app-visual {
    position: static !important;
    margin-bottom: 8px !important;
  }
  .app-scenario .app-visual::before {
    display: none !important;
  }
  .app-decor-num {
    font-size: clamp(44px, 15vw, 64px) !important;
    margin: 0 0 4px 0 !important;
    line-height: 1 !important;
  }
  .app-decor-label {
    margin: 0 0 10px 0 !important;
  }
  .app-decor-name {
    font-size: clamp(20px, 6vw, 24px) !important;
    margin: 0 0 8px 0 !important;
    max-width: 100% !important;
  }
  .app-decor-tag {
    margin: 0 0 8px 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 640px) {
  .app-scenario {
    padding: 36px 0 !important;
    gap: 18px !important;
  }
  .app-content h2 {
    margin-top: 4px !important;
  }
}