/* 首页卡片材质：柔和环境阴影、亮边和一致的表面光照。 */
html[data-page="home"]{
  --surface-radius:20px;
  --surface-shadow:0 2px 4px rgba(29,48,80,.025),
    0 12px 24px -12px rgba(29,48,80,.18),
    0 32px 58px -24px rgba(29,48,80,.24),
    inset 0 1px 0 rgba(255,255,255,.98);
  --surface-shadow-raised:0 3px 6px rgba(29,48,80,.035),
    0 18px 32px -14px rgba(29,48,80,.19),
    0 44px 76px -26px rgba(38,72,126,.26),
    inset 0 1px 0 #fff;
}

/* 两个相邻区块共享连续的浅色环境，让阴影落在同一张底面上。 */
#tech{padding-bottom:72px;background:linear-gradient(180deg,#fafcff 0%,#eef3f9 100%)}
#capability{padding-top:72px;background:linear-gradient(180deg,#eef3f9 0%,#fafcff 100%)}
#tech::before,#capability::before{content:none}
#tech .section-head,#capability .section-head{margin-bottom:56px}
#apps{background:linear-gradient(180deg,#f6f8fc,#edf2f8)}
#apps::before{content:none}

.card,.mode,.form-wrap{
  border:1px solid;
  border-color:rgba(255,255,255,.98) rgba(213,223,236,.88) rgba(203,215,232,.92) rgba(242,246,252,.98);
  border-radius:var(--surface-radius);
  background:linear-gradient(145deg,#fff 0%,#fff 52%,#f5f8fc 100%);
  box-shadow:var(--surface-shadow);
  transition:transform .32s var(--ease),box-shadow .32s var(--ease),border-color .32s var(--ease);
}
.card,.mode{isolation:isolate}
.card::before{
  opacity:1;
  background:linear-gradient(115deg,rgba(255,255,255,.8),transparent 42%);
}
.card::after{
  content:"";position:absolute;inset:1px;border-radius:calc(var(--surface-radius) - 2px);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55);
  pointer-events:none;
}
.card:hover,.mode:hover{transform:none;box-shadow:var(--surface-shadow)}
.card:focus-visible{
  outline:2px solid var(--accent);outline-offset:5px;
  box-shadow:var(--surface-shadow-raised);
}
.card.pressed{transform:translateY(-2px)}

/* 技术流程与能力卡片采用相同的内边距、图标托盘和标题规格。 */
.step-card,.cap{padding:32px 28px;text-align:left}
.step-card{height:100%;min-height:264px}
.step-mark,.ico-wrap,.cap .ico-wrap{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:56px;height:56px;margin:0 0 24px;
  color:var(--accent);border:1px solid rgba(255,255,255,.98);border-radius:16px;
  background:linear-gradient(145deg,#f8fbff,#e6eefb);
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 2px rgba(67,100,151,.08),
    0 6px 12px -7px rgba(43,77,132,.27);
  transition:box-shadow .3s var(--ease),transform .3s var(--ease);
}
.step-mark .ico,.cap .ico,.ico-wrap .ico{width:26px;height:26px;stroke-width:1.5}
.card:hover .ico-wrap,.card.open .ico-wrap,.step-card:hover .step-mark,.mode:hover .ico-wrap{
  color:var(--accent);background:linear-gradient(145deg,#f8fbff,#e6eefb);
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 2px rgba(67,100,151,.08),
    0 6px 12px -7px rgba(43,77,132,.27);
  transform:none;
}
.step-card h3,.cap h3{margin:0 0 12px;font-size:20px;font-weight:600;line-height:1.4;color:var(--ink)}
.step-card:hover h3{color:var(--ink)}
.step-card p,.cap>p{font-size:15px;line-height:1.8;color:var(--ink-2)}
.step-card .step-no{
  position:absolute;top:40px;right:28px;margin:0;
  font-size:12px;font-weight:600;letter-spacing:.1em;color:#6b7c98;
}
.step-cell:not(:last-child)::before{
  height:1px;animation:none;opacity:.65;
  background:linear-gradient(90deg,#c7d4e8,#a9bedc,#c7d4e8);
}
.mini span,.mini a,.tag{
  background:#edf2fa;border:1px solid #e4ebf5;border-radius:8px;color:#244b85;
}
.cap .mini{margin-top:22px}

.app{padding-bottom:64px}
.plus{right:24px;bottom:22px;width:28px;height:28px;border-radius:9px;
  background:linear-gradient(145deg,#fff,#edf2f9);border-color:#dbe4f1;
  box-shadow:0 3px 8px -5px rgba(35,62,102,.25),inset 0 1px 0 #fff}
.mode{padding:32px 28px}
.mode .ico-wrap{margin:0 auto 24px}
.form-wrap{box-shadow:0 18px 50px -28px rgba(29,48,80,.2),inset 0 1px 0 #fff}

@media(hover:hover) and (pointer:fine){
  .card:hover,.mode:hover{
    transform:translateY(-7px);box-shadow:var(--surface-shadow-raised);
    border-color:#fff #c9d7ea #bdcfe6 #eef3fa;
  }
  .card:hover .ico-wrap,.step-card:hover .step-mark,.mode:hover .ico-wrap{
    transform:translateY(-2px);
    box-shadow:inset 0 1px 0 #fff,0 10px 18px -9px rgba(43,77,132,.3);
  }
}
@media(max-width:1100px){
  #tech{padding-bottom:52px}
  #capability{padding-top:52px}
}
@media(max-width:768px){
  #tech{padding-bottom:40px}
  #capability{padding-top:40px}
  #tech .section-head,#capability .section-head{margin-bottom:38px}
  .card,.mode,.form-wrap{--surface-radius:18px}
  .step-card,.cap,.mode{padding:28px 24px}
  .step-card{min-height:232px}
  .step-card .step-no{right:24px;top:36px}
  .step-card h3,.cap h3{font-size:19px}
  .app{padding:28px 24px 64px}
}
@media(prefers-reduced-motion:reduce){
  .card,.mode,.ico-wrap,.step-mark{transition:none}
  .card:hover,.mode:hover,.card.pressed,.card:hover .ico-wrap,
  .step-card:hover .step-mark,.mode:hover .ico-wrap{transform:none}
}
