/**
 * HormLab Portal · AI 能力页样式
 */

/* 页头标题 */
.page-hero-h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; line-height: 1.25; margin: 18px 0 16px; letter-spacing: -1px; color: #fff; }
.page-hero-lead { color: var(--text-white-soft); font-size: 17px; line-height: 1.7; margin: 0 auto; max-width: 640px; }
.page-hero-h1 .accent {
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ 双轨体系 ============ */
.dual-track {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch;
}
.dt-side {
  border-radius: var(--r-xl); padding: 32px; position: relative;
  border: 1px solid var(--border-light); background: var(--bg-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dt-side:hover { transform: translateY(-4px); }
.dt-rule { border-top: 4px solid var(--primary-blue); }
.dt-rule:hover { box-shadow: 0 16px 40px rgba(91,108,255,.15); }
.dt-llm { border-top: 4px solid var(--gold); }
.dt-llm:hover { box-shadow: 0 16px 40px rgba(212,162,78,.15); }
.dt-label {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 16px;
}
.dt-rule .dt-label { background: rgba(91,108,255,.08); color: var(--primary-blue); }
.dt-llm .dt-label { background: rgba(212,162,78,.1); color: var(--gold-deep); }
.dt-title { font-size: 21px; font-weight: 700; margin-bottom: 16px; }
.dt-list { list-style: none; padding: 0; margin: 0 0 18px; }
.dt-list li {
  font-size: 14px; color: var(--text-mid); line-height: 1.6;
  padding: 7px 0 7px 22px; position: relative;
  border-bottom: 1px dashed var(--border-light);
}
.dt-list li::before { content: '▸'; position: absolute; left: 2px; color: var(--text-light); }
.dt-rule .dt-list li::before { color: var(--primary-blue); }
.dt-llm .dt-list li::before { color: var(--gold); }
.dt-badge { font-size: 13px; font-weight: 600; color: var(--success); }

.dt-mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.dt-arrow { font-size: 13px; color: var(--text-light); white-space: nowrap; }
.dt-lock { font-size: 30px; }

/* ============ 四级决策 ============ */
.prio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.prio-card {
  border-radius: var(--r-lg); padding: 26px; background: var(--bg-card);
  border: 1px solid var(--border-light); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.prio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prio-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.prio-p0::before { background: #EF4444; }
.prio-p1::before { background: #F97316; }
.prio-p2::before { background: var(--warning); }
.prio-p3::before { background: var(--success); }
.prio-tag { font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.prio-p0 .prio-tag { color: #EF4444; }
.prio-p1 .prio-tag { color: #F97316; }
.prio-p2 .prio-tag { color: var(--warning); }
.prio-p3 .prio-tag { color: var(--success); }
.prio-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.prio-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }
.safety-note { text-align: center; margin-top: 28px; }
.safety-note p { font-size: 14px; color: var(--text-mid); background: var(--bg-light); display: inline-block; padding: 12px 24px; border-radius: var(--r-pill); }

/* ============ 五大引擎 ============ */
.engine-list { display: flex; flex-direction: column; gap: 16px; max-width: 860px; margin: 0 auto; }
.engine-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 26px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.engine-item:hover { transform: translateX(6px); border-color: rgba(91,108,255,.35); box-shadow: var(--shadow-md); }
.engine-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: rgba(91,108,255,.07); border: 1px solid rgba(91,108,255,.15);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.engine-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.engine-meta { font-size: 12px; font-weight: 600; color: var(--primary-blue); background: rgba(91,108,255,.08); border-radius: var(--r-pill); padding: 3px 10px; margin-left: 8px; vertical-align: 2px; }
.engine-desc { font-size: 14px; color: var(--text-mid); line-height: 1.75; }

/* ============ 21 天闭环 ============ */
.loop2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 36px; }
.loop2-step {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg); padding: 28px 24px; text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.loop2-step:hover { transform: translateY(-4px); border-color: rgba(0,229,199,.4); }
.loop2-num {
  font-size: 15px; font-weight: 800; color: var(--cyan-glow);
  letter-spacing: 2px; margin-bottom: 12px; font-variant-numeric: tabular-nums;
}
.loop2-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.loop2-desc { font-size: 13.5px; color: var(--text-white-soft); line-height: 1.65; }
.loop2-note { text-align: center; }
.loop2-note p { color: var(--text-white-muted); font-size: 14px; }
.section-dark .section-eyebrow { color: var(--cyan-glow); }
.section-dark .section-h2 { color: #fff; }

/* ============ 边界 ============ */
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.b-card { border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--border-light); background: var(--bg-card); }
.b-no { border-top: 4px solid var(--danger); }
.b-yes { border-top: 4px solid var(--success); }
.b-tag { font-size: 14px; font-weight: 700; color: var(--danger); margin-bottom: 14px; }
.b-tag-yes { color: var(--success); }
.b-card ul { list-style: none; padding: 0; margin: 0; }
.b-card li { font-size: 14.5px; color: var(--text-mid); line-height: 1.6; padding: 8px 0; border-bottom: 1px dashed var(--border-light); }
.b-card li:last-child { border-bottom: none; }
.boundary-foot { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 28px; line-height: 1.7; }

/* ============ FAQ（与全站一致） ============ */
.container-narrow { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s ease;
}
.faq-item:hover { border-color: rgba(212,162,78,.4); }
.faq-item summary {
  padding: 16px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  list-style: none; position: relative; padding-right: 44px; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 300; color: var(--gold); transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 20px 18px; font-size: 14px; color: var(--text-mid); line-height: 1.75; margin: 0; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .dual-track { grid-template-columns: 1fr; }
  .dt-mid { flex-direction: row; padding: 4px 0; }
  .dt-arrow { transform: rotate(90deg); }
}
@media (max-width: 768px) {
  .engine-item { flex-direction: column; gap: 12px; }
  .boundary-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .dt-side, .prio-card, .engine-item, .loop2-step { transition: none; }
}
