/* =========================================================
   智能建筑页面样式（依赖 style.css 的设计变量与基础组件）
   ========================================================= */

/* ---------- Page hero ---------- */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 92px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  font-size: .76rem;
  color: rgba(186, 216, 255, .5);
}
.breadcrumb a { transition: color .2s ease; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span:last-child { color: rgba(226, 240, 255, .85); }

/* ---------- Stack visual ---------- */
.stack-card {
  position: relative;
  width: 100%;
  padding: 20px;
  border: 1px solid rgba(148, 197, 255, .18);
  border-radius: 24px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 52%, rgba(37, 99, 235, .12));
  box-shadow:
    0 46px 90px -30px rgba(0, 0, 0, .8),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: perspective(1200px) rotateY(-3deg);
  transition: transform .5s ease;
}
.stack-card:hover { transform: perspective(1200px) rotateY(0deg); }

.stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 16px;
  border-bottom: 1px solid rgba(148, 197, 255, .12);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .22em;
  color: rgba(186, 216, 255, .55);
}

.stack-layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.stack-layers li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(148, 197, 255, .13);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(125, 211, 252, .07), rgba(125, 211, 252, .015));
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.stack-layers li:first-child {
  border-color: rgba(125, 211, 252, .3);
  background: linear-gradient(90deg, rgba(37, 99, 235, .28), rgba(34, 211, 238, .06));
}
.stack-layers li:hover {
  transform: translateX(3px);
  border-color: rgba(125, 211, 252, .38);
}

.layer-index {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: #67e8f9;
}
.layer-body { flex: 1; min-width: 0; }
.layer-body strong {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.layer-body small {
  display: block;
  margin-top: 2px;
  font-size: .7rem;
  color: rgba(190, 216, 245, .62);
}
.layer-tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(125, 211, 252, .2);
  border-radius: 999px;
  font-size: .62rem;
  color: rgba(186, 216, 255, .7);
}

.stack-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 4px 2px;
  border-top: 1px dashed rgba(148, 197, 255, .14);
  font-size: .68rem;
  color: rgba(186, 216, 255, .6);
}
.stack-foot > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7dd3fc;
}

/* ---------- Scenarios ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.scenario-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.scenario-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, .22);
  box-shadow: var(--shadow-md);
}

.scenario-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.scenario-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: var(--brand);
  background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(34, 211, 238, .14));
  border: 1px solid rgba(37, 99, 235, .08);
}
.scenario-icon svg { width: 25px; height: 25px; }
.scenario-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.scenario-card > p {
  font-size: .93rem;
  line-height: 1.85;
  color: var(--muted);
}
.scenario-card .check-list { margin-top: 18px; }
.scenario-card .tag-row {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

/* ---------- Delivery process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .2);
  box-shadow: var(--shadow-sm);
}
.process-num {
  display: inline-block;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .16em;
  color: var(--brand);
}
.process-step h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: .01em;
}
.process-step p {
  font-size: .85rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- Why us ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.value-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .2);
  box-shadow: var(--shadow-sm);
}
.value-card:hover::before { transform: scaleX(1); }
.value-index {
  display: inline-block;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--muted-light);
}
.value-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 650;
}
.value-card p {
  font-size: .88rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- Reveal stagger ---------- */
.scenario-grid .reveal:nth-child(2),
.process-grid .reveal:nth-child(2),
.value-grid .reveal:nth-child(2) { transition-delay: .08s; }
.scenario-grid .reveal:nth-child(3),
.process-grid .reveal:nth-child(3),
.value-grid .reveal:nth-child(3) { transition-delay: .16s; }
.scenario-grid .reveal:nth-child(4),
.process-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stack-card {
    max-width: 520px;
    margin-inline: auto;
  }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card { padding: 28px 24px; }
}

@media (max-width: 560px) {
  .page-hero { padding: calc(var(--header-h) + 52px) 0 76px; }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  .stack-card {
    padding: 16px;
    transform: none;
  }
  .stack-card:hover { transform: none; }
  .stack-layers li { padding: 11px 13px; gap: 11px; }
  .layer-tag { display: none; }

  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding: 24px 20px; }
  .process-num { margin-bottom: 22px; }

  .value-card { padding: 26px 24px; }

  .scenario-head { gap: 12px; }
  .scenario-icon { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .stack-card,
  .stack-layers li { transform: none !important; }
}
