/* ==========================================================================
   hub.css —— 演示总入口页（四端统一入口）
   ========================================================================== */

.hub { background: #EFF1F5; min-height: 100vh; }

/* ---------------- 顶栏 ---------------- */
.hub-top {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 30px;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.hub-brand { display: flex; align-items: center; gap: 12px; }
.hub-logo {
  width: 42px; height: 42px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 3px 12px rgba(199,0,11,.2);
}
.hub-logo img { width: 37px; height: 37px; object-fit: contain; }
.hub-brand-t { font-size: 15px; font-weight: 800; letter-spacing: .3px; line-height: 1.2; }
.hub-brand-s { margin-top: 3px; font-size: 11px; color: var(--ink-4); letter-spacing: .3px; }

.hub-top-acts { display: flex; align-items: center; gap: 9px; margin-left: auto; }

/* ---------------- 主视觉 ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--brand-grad-d);
  color: #fff;
  padding: 44px 30px 86px;
}
.hero::before {
  content: ""; position: absolute; right: -140px; top: -180px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 68%);
}
.hero::after {
  content: ""; position: absolute; left: -60px; bottom: -220px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 70%);
}
.hero-inner { position: relative; max-width: 1320px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 99px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  font-size: 11.5px; font-weight: 700; letter-spacing: .8px;
}
.hero-badge .pulse { width: 6px; height: 6px; border-radius: 50%; background: #7CFFB2; box-shadow: 0 0 0 4px rgba(124,255,178,.22); animation: heroPulse 1.8s infinite; }
@keyframes heroPulse { 0%,100% { box-shadow: 0 0 0 4px rgba(124,255,178,.22); } 50% { box-shadow: 0 0 0 8px rgba(124,255,178,.06); } }

.hero h1 { margin-top: 18px; font-size: 40px; font-weight: 800; letter-spacing: -.6px; line-height: 1.16; }
.hero h1 em { font-style: normal; color: #FFD9A0; }
.hero .hero-sub { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.78); letter-spacing: .4px; max-width: 660px; line-height: 1.75; }

.hero-metrics { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-metric {
  min-width: 146px; padding: 14px 18px; border-radius: var(--r-l);
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}
.hero-metric .hm-v { font-size: 27px; font-weight: 800; letter-spacing: -.4px; font-family: var(--font-num); }
.hero-metric .hm-v small { font-size: 12.5px; font-weight: 600; margin-left: 3px; color: rgba(255,255,255,.72); }
.hero-metric .hm-k { margin-top: 5px; font-size: 11.5px; color: rgba(255,255,255,.66); letter-spacing: .4px; }

/* ---------------- 四端入口 ---------------- */
.hub-body { max-width: 1320px; margin: -56px auto 0; padding: 0 30px 56px; position: relative; }

.ends-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
@media (max-width: 1240px) { .ends-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .ends-grid { grid-template-columns: minmax(0,1fr); } }

.end-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-2xl); padding: 22px 22px 20px;
  border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(16,18,24,.08);
  transition: transform .22s cubic-bezier(.2,.9,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.end-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,18,24,.14); border-color: var(--brand-100); }
.end-card::before {
  content: ""; position: absolute; right: -46px; top: -46px; width: 148px; height: 148px;
  border-radius: 50%; opacity: .1; background: var(--ec, #C7000B);
}
.ec-head { display: flex; align-items: center; gap: 12px; position: relative; }
.ec-ico {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: var(--ec, #C7000B);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ec, #C7000B) 34%, transparent);
}
.ec-ico svg { width: 24px; height: 24px; }
.ec-name { font-size: 17px; font-weight: 800; letter-spacing: .2px; }
.ec-sub { margin-top: 4px; font-size: 11.5px; color: var(--ink-4); line-height: 1.4; }

.ec-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 15px; }
.ec-tag { padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--bg-3); color: var(--ink-3); }

.ec-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.ec-li { display: flex; gap: 9px; align-items: flex-start; }
.ec-li .li-ico { flex: none; margin-top: 1px; color: var(--ec, #C7000B); display: grid; }
.ec-li .li-t { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.ec-li .li-s { margin-top: 2px; font-size: 11px; color: var(--ink-4); line-height: 1.5; }

.ec-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px dashed var(--line-2); }
.ec-enter {
  flex: 1 1 auto; height: 40px; border-radius: var(--r-m);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: #fff;
  background: var(--ec, #C7000B);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ec, #C7000B) 30%, transparent);
  transition: filter .16s ease, transform .16s ease;
}
.ec-enter:hover { filter: brightness(1.08); }
.ec-enter:active { transform: scale(.985); }
.ec-enter svg { width: 15px; height: 15px; }
.ec-mini {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-m);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-3);
  display: grid; place-items: center; transition: all .14s ease;
}
.ec-mini:hover { border-color: var(--ec, #C7000B); color: var(--ec, #C7000B); background: var(--bg-2); }

/* ---------------- 区块 ---------------- */
.hub-sec { margin-top: 34px; }
.hub-sec-h { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 15px; }
.hub-sec-h .hs-bar { width: 4px; height: 20px; border-radius: 3px; background: var(--brand-grad); }
.hub-sec-h h2 { font-size: 19px; font-weight: 800; letter-spacing: .2px; }
.hub-sec-h p { font-size: 12px; color: var(--ink-4); margin-bottom: 2px; }
.hub-sec-h .hs-sp { flex: 1 1 auto; }

/* 演示脚本（流程） */
.flows { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 1000px) { .flows { grid-template-columns: minmax(0,1fr); } }
.flow-card { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--sh-1); padding: 18px 20px 16px; }
.flow-head { display: flex; align-items: center; gap: 11px; }
.flow-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  color: #fff; background: var(--fc, #C7000B);
}
.flow-ico svg { width: 19px; height: 19px; }
.flow-name { font-size: 15px; font-weight: 800; }
.flow-desc { margin-top: 4px; font-size: 11.5px; color: var(--ink-4); line-height: 1.5; }
.flow-steps { margin-top: 15px; display: flex; flex-direction: column; }
.flow-step { display: flex; gap: 11px; align-items: flex-start; position: relative; padding-bottom: 13px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: -2px; width: 1.5px;
  background: var(--line-2);
}
.flow-step:last-child::before { display: none; }
.fs-no {
  width: 25px; height: 25px; border-radius: 50%; flex: none; z-index: 1;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--bg-3); color: var(--ink-3);
}
.flow-step:hover .fs-no { background: var(--fc, #C7000B); color: #fff; }
.fs-body { flex: 1 1 auto; min-width: 0; padding-top: 1px; }
.fs-end { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 5px; font-size: 10.5px; font-weight: 700; background: var(--bg-3); color: var(--ink-3); margin-right: 6px; }
.fs-t { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.fs-go { flex: none; font-size: 11px; color: var(--ink-4); display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; }
.flow-step:hover .fs-go { color: var(--brand); }

/* 架构总览 */
.arch { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--sh-1); padding: 22px 24px; }
.arch-layers { display: flex; flex-direction: column; gap: 12px; }
.arch-layer { display: flex; gap: 14px; align-items: stretch; }
.arch-lb {
  width: 92px; flex: none; border-radius: var(--r-m); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; padding: 12px 6px;
  background: var(--brand-grad); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .5px;
}
.arch-lb small { font-size: 10px; font-weight: 600; opacity: .72; letter-spacing: 0; }
.arch-layer:nth-child(2) .arch-lb { background: linear-gradient(135deg, #5B93E8 0%, #2B6CD4 100%); }
.arch-layer:nth-child(3) .arch-lb { background: linear-gradient(135deg, #9277F5 0%, #6B4EE6 100%); }
.arch-layer:nth-child(4) .arch-lb { background: linear-gradient(135deg, #34C4B0 0%, #0E9E8E 100%); }
.arch-layer:nth-child(5) .arch-lb { background: linear-gradient(135deg, #9AA0A8 0%, #6B7078 100%); }
.arch-cells { flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
@media (max-width: 1100px) { .arch-cells { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.arch-cell {
  padding: 11px 13px; border-radius: var(--r-m); background: var(--bg-2);
  border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 3px;
}
.arch-cell small { font-size: 10.5px; color: var(--ink-4); font-weight: 500; }

/* 报价总览表 */
.quote-wrap { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.quote-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.quote-head h3 { font-size: 15px; font-weight: 800; }
.quote-notes { padding: 14px 20px 18px; font-size: 11.5px; color: var(--ink-4); line-height: 1.9; }
.quote-notes b { color: var(--ink-3); }

/* 底部 */
.hub-foot { padding: 26px 30px 40px; text-align: center; font-size: 11.5px; color: var(--ink-4); line-height: 1.9; }
.hub-foot b { color: var(--ink-3); }

/* 手机端窄屏 */
@media (max-width: 720px) {
  .hub-top { padding: 10px 14px; }
  .hub-brand-s { display: none; }
  .hub-top-acts .btn span { display: none; }
  .hero { padding: 30px 16px 76px; }
  .hero h1 { font-size: 27px; }
  .hero .hero-sub { font-size: 13px; }
  .hub-body { padding: 0 14px 40px; }
  .arch { padding: 16px; }
  .arch-layer { flex-direction: column; }
  .arch-lb { width: 100%; flex-direction: row; gap: 8px; padding: 9px; }
}
