/* ============================================================
   sections.css — 从首页迁出的板块样式（2026-11-04）
   来源：portal/css/home.css 内 .tech-* / .model-matrix / .matrix-* /
         .case-* / .life-* / .diff-* 及其 4 个响应式媒体查询块。
   用途：检测流程页(#tech 检测原理)、AI 页(HormModel 三阶矩阵)、
         产品页(生活场景 / 差异化对比)。
   改动纪律：这些板块的视觉真源现在在这里；home.css 里的同名规则已随
             首页瘦身失效（首页不再渲染这些板块），不要再往 home.css 加。
   ============================================================ */
/* ============ 差异化对比 ============ */
.diff-card {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 0; align-items: stretch;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 920px; margin: 0 auto;
}

.diff-side { padding: 48px 40px; }

.diff-side.muted { background: #EEF1F6; color: var(--text-light); }

.diff-side.brand {
  background: var(--space-dark); color: #fff;
  background-image: radial-gradient(circle at 80% 20%, rgba(0,229,199,0.15), transparent 50%);
}

.diff-label {
  display: inline-block; padding: 5px 14px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; margin-bottom: 20px;
  background: rgba(122,132,153,0.12); color: var(--text-light);
}

.diff-side.brand .diff-label { background: rgba(0,229,199,0.12); color: var(--cyan-glow); }

.diff-title { font-size: 24px; font-weight: 800; line-height: 1.35; margin-bottom: 24px; letter-spacing: -0.5px; }

.diff-list li {
  font-size: 15px; padding: 10px 0; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px dashed rgba(122,132,153,0.25);
}

.diff-side.brand .diff-list li { border-bottom-color: rgba(255,255,255,0.1); color: var(--text-white-soft); }

.diff-list li::before { content: '×'; color: var(--danger); font-weight: 800; }

.diff-side.brand .diff-list li::before { content: ''; color: var(--cyan-glow); }

.diff-vs {
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand); color: #fff;
  font-family: var(--font-en); font-weight: 800; font-size: 18px;
  padding: 0 18px;
}

@media (max-width: 768px) {
  /* 注意：.hero-stats 的基础样式定义在文件后半段（L740+），
     写在这里的同名覆盖会被它吃掉 → 移动端规则统一放在文件末尾区块。 */
  .diff-card { grid-template-columns: 1fr; }
  .diff-vs { padding: 12px; }}


/* ============ 硬核科技：检测原理 ============ */
.section-tech {
  background: linear-gradient(180deg, #0a0d2a 0%, #06091a 100%);
  position: relative; overflow: hidden;
}

.section-tech::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(91,108,255,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0,229,199,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.tech-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  align-items: start; max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
}

.tech-visual {
  position: sticky; top: calc(var(--nav-h) + 32px);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(91,108,255,0.2);
  margin: 0;
}

.tech-visual img {
  width: 100%; height: 380px; object-fit: cover; display: block;
}

.tech-visual figcaption {
  background: rgba(6,9,26,0.92);
  color: rgba(255,255,255,0.85);
  font-size: 13px; line-height: 1.6;
  padding: 14px 18px;
  border-top: 1px solid rgba(91,108,255,0.2);
}

.tech-chain {
  display: flex; flex-direction: column; gap: 20px;
  position: relative; padding-left: 8px;
}

.tech-chain::before {
  content: ''; position: absolute;
  left: 32px; top: 32px; bottom: 32px;
  width: 2px;
  background: linear-gradient(180deg, #5B6CFF 0%, #00E5C7 100%);
  opacity: 0.3;
}

.tech-step {
  display: flex; gap: 20px; align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(91,108,255,0.2);
  border-radius: 12px;
  padding: 22px 24px 22px 18px;
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease-out);
}

.tech-step:hover {
  border-color: rgba(0,229,199,0.5);
  background: rgba(255,255,255,0.06);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(91,108,255,0.18);
}

.tech-step-num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #5B6CFF 0%, #8B5CF6 100%);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-size: 22px; font-weight: 800;
  letter-spacing: -1px;
  box-shadow: 0 6px 20px rgba(91,108,255,0.45);
  position: relative; z-index: 1;
}

.tech-step-body { flex: 1; min-width: 0; }

.tech-step-title {
  font-size: 18px; font-weight: 700;
  color: #fff; margin-bottom: 8px; letter-spacing: 0.5px;
}

.tech-step-desc {
  font-size: 14px; line-height: 1.7;
  color: rgba(255,255,255,0.78);
}

.tech-step-desc b {
  color: #00E5C7; font-weight: 700;
}

.tech-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid rgba(91,108,255,0.15);
  position: relative; z-index: 1;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}

.tm-item { text-align: center; }

.tm-num {
  font-family: var(--font-en);
  font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, #00E5C7 0%, #5B6CFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1; letter-spacing: -1px;
}

.tm-label {
  margin-top: 8px;
  font-size: 13px; color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
}


/* ============ HormModel：6 激素 × 3 层推断矩阵 ============ */
.model-matrix {
  max-width: 1100px; margin: 0 auto;
  border: 1px solid var(--border-light-2);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(91,108,255,0.06);
}

.model-matrix .matrix-header,
.model-matrix .matrix-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  align-items: stretch;
}

.model-matrix .matrix-header {
  background: linear-gradient(135deg, #5B6CFF 0%, #8B5CF6 50%, #00E5C7 100%);
  color: #fff;
}

.model-matrix .matrix-th,
.model-matrix .matrix-td,
.model-matrix .matrix-td-h {
  padding: 18px 22px;
  font-size: 14px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.model-matrix .matrix-th:last-child,
.model-matrix .matrix-td:last-child { border-right: none; }

.model-matrix .matrix-th {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}

.model-matrix .matrix-td-h {
  font-weight: 700;
  color: var(--text-dark);
  background: var(--bg-light);
  border-right: 1px solid var(--border-light);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  font-size: 15px;
}

.model-matrix .matrix-td-h [lang="en"] {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 2px;
}

.model-matrix .matrix-row {
  border-bottom: 1px solid var(--border-light-2);
  transition: background 0.2s;
}

.model-matrix .matrix-row:last-child { border-bottom: none; }

.model-matrix .matrix-row:hover {
  background: rgba(91,108,255,0.03);
}

.model-matrix .matrix-td {
  color: var(--text-mid);
  line-height: 1.65;
  font-size: 13px;
  display: flex; align-items: center;
  border-right: 1px solid var(--border-light-2);
}

/* ============ 模型矩阵下方注释 ============ */
/* 这条样式原先只写在 home.css（L898），但 ai.html 并不加载 home.css ——
   所以这行一直是裸 <p>：没有底色、没有内边距、左对齐。
   迁到 sections.css（ai.html 实际加载的样式表），并按反馈居中。
   注：home.css 里那份已无人使用，属死代码，未删除以免影响其他页。 */
.model-note {
  font-size: 13px; color: var(--text-mid); margin-top: 20px;
  padding: 12px 16px; background: var(--bg-light);
  border-radius: 8px; border-left: 3px solid var(--accent-teal);
  max-width: 1100px; margin-left: auto; margin-right: auto;
  text-align: center;
  line-height: 1.7;
}


/* ============ 典型用例：4 卡 × 3 段式（情绪/睡眠/减脂/运动） ============ */
.cases-wrap { max-width: var(--max-w); margin: 80px auto 0; padding: 0 24px; }

.cases-title {
  font-size: 22px; font-weight: 800; color: var(--text-dark);
  margin-bottom: 28px;
}

.cases-title span {
  font-size: 14px; font-weight: 500; color: var(--text-mid); margin-left: 8px;
}

.case-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.case-card {
  background: var(--bg-card); border: 1px solid var(--border-light-2);
  border-radius: 16px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(91,108,255,0.10);
}

.case-tag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 999px; align-self: flex-start;
}
   /* 运动-橙 */
.case-input {
  font-size: 15px; font-weight: 600; color: var(--text-dark);
  padding: 12px 14px; background: var(--bg-light); border-left: 3px solid var(--primary-blue);
  border-radius: 6px; font-style: italic;
}

.case-arrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal, #00E5C7));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-align: center;
}

.case-output {
  font-size: 13px; line-height: 1.7; color: var(--text-mid);
}

@media (max-width: 1100px) { .case-grid { grid-template-columns: repeat(2, 1fr); }}

@media (max-width: 640px)  { .case-grid { grid-template-columns: 1fr; }}


/* ============ 典型用例 底部说明 ============ */
.cases-note { font-size: 12.5px; color: var(--text-light); margin-top: 28px; text-align: center; font-style: italic; }


/* ============ 生活场景（产品宣传图） ============ */
/* 2 列大图：海报自带标题文案，560px 宽时标题约 13px 仍可读；
   3 列会压到 380px 让标题糊掉，不要降到 3 列 */
.life-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin: 36px auto 0;
}

.life-card { display: block; text-decoration: none; color: inherit; }

.life-img-wrap {
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--bg-card); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s, border-color 0.4s;
}

.life-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--ease-out);
}

.life-card:hover .life-img-wrap { box-shadow: var(--shadow-lg); border-color: rgba(91,108,255,0.32); }

.life-card:hover .life-img-wrap img { transform: scale(1.03); }

.life-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 14px;
}

.life-tag { font-size: 13px; font-weight: 600; color: var(--text-light); }

.life-link { font-size: 14px; font-weight: 600; color: var(--primary-blue); }

.life-note {
  margin: 28px auto 0; max-width: 720px;
  font-size: 12.5px; color: var(--text-light); text-align: center;
}

@media (max-width: 900px) {
  .life-grid { grid-template-columns: 1fr; gap: 28px; }}
