body.case-hub-modern {
  background: #F8FAFD;
  color: #14161A;
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

.hub-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* 顶部导航条 */
.hub-nav-strip {
  padding: 24px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hub-case-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #2563EB;
  background: #EFF6FF;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Hero 首屏展示 */
.hub-hero {
  position: relative;
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 84px);
  overflow: hidden;
}
.hub-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 30%, rgba(37,99,235,0.14) 0%, rgba(46,143,214,0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hub-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.hub-hero-appicon {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(37,99,235,0.20), 0 4px 12px rgba(15,23,42,0.06);
  display: block;
  overflow: hidden;
}
.hub-hero-appicon img {
  width: 100%;
  height: 100%;
  display: block;
}
.hub-hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #2563EB;
  margin-bottom: 12px;
}
.hub-hero-title {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #14161A;
  margin-bottom: 18px;
}
.hub-hero-title span {
  background: linear-gradient(135deg, #2563EB 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hub-hero-lead {
  font-size: clamp(15px, 1.8vw, 17px);
  color: #5B626C;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 28px;
}
.hub-tool-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: #4A515D;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

/* Hero 三机悬浮叠放 */
.hub-hero-phones {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 24px;
}
.hub-hero-phone {
  position: relative;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.hub-hero-phone img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 48px rgba(20,22,26,0.18));
}
.hub-phone-center {
  width: clamp(230px, 28vw, 320px);
  z-index: 3;
}
.hub-phone-left {
  width: clamp(190px, 23vw, 260px);
  margin-right: -48px;
  margin-bottom: 24px;
  z-index: 2;
  transform: rotate(-5deg) translateY(10px);
}
.hub-phone-right {
  width: clamp(190px, 23vw, 260px);
  margin-left: -48px;
  margin-bottom: 24px;
  z-index: 2;
  transform: rotate(5deg) translateY(10px);
}
.hub-hero-phone:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 4;
}
.hub-phone-caption {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #767E8C;
  margin-top: 14px;
  letter-spacing: .04em;
}

/* 项目元数据 4 栏 */
.hub-meta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.hub-meta-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px 22px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}
.hub-meta-card small {
  font-size: 11.5px;
  font-weight: 800;
  color: #2563EB;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.hub-meta-card b {
  font-size: 15px;
  color: #14161A;
  display: block;
  margin-bottom: 4px;
}
.hub-meta-card p {
  font-size: 13px;
  color: #717885;
  line-height: 1.5;
  margin: 0;
}

/* 通用区块排版 */
.hub-section {
  padding: clamp(60px, 9vw, 110px) 0;
}
.hub-section-alt {
  background: #FFFFFF;
}
.hub-section-header {
  text-align: left;
  max-width: 660px;
  margin: 0 0 clamp(34px, 4.4vw, 58px);
}
.hub-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #2563EB;
  background: #EFF6FF;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hub-section-title {
  font-size: clamp(23px, 2.6vw, 31px);
  font-weight: 800;
  color: #14161A;
  letter-spacing: -0.01em;
  line-height: 1.32;
  margin: 13px 0 12px;
}
.hub-section-lead {
  font-size: 15.5px;
  max-width: 600px;
  color: #5B626C;
  line-height: 1.72;
}

/* ================= 品牌与 2D App Icon 规范展区 ================= */
.hub-brand-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 36px auto 0;
  gap: 32px;
}
@media (max-width: 800px) {
  .hub-brand-showcase {
    grid-template-columns: 1fr;
  }
}
.hub-brand-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 36px 24px 28px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hub-brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(37,99,235,0.10);
}
.hub-brand-icon-box {
  width: 140px;
  height: 140px;
  margin-bottom: 24px;
  border-radius: 32px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  overflow: hidden;
  display: block;
}
.hub-brand-icon-box img {
  width: 100%;
  height: 100%;
  display: block;
}
.hub-brand-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hub-brand-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: #14161A;
  margin-bottom: 8px;
}
.hub-brand-card p {
  font-size: 13px;
  color: #717885;
  line-height: 1.6;
  margin: 0;
}

/* ================= 设计规范 Style Guide ================= */
.hub-guide-panel {
  background: #FFFFFF;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.02);
  margin-bottom: 32px;
}
.hub-guide-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.hub-guide-head h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #14161A;
  margin: 0;
}
.hub-guide-head h3 i {
  font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  color: #2563EB; background: #EFF6FF; border-radius: 7px; padding: 3px 8px;
}
.hub-guide-head span {
  font-size: 12.5px;
  color: #767E8C;
}

/* 色彩卡片 */
.hub-color-grid, .hub-comp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}
.hub-color-card, .hub-comp-box {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: #F8FAFD;
}
.hub-color-swatch {
  height: 96px;
  width: 100%;
}
.hub-color-meta {
  padding: 14px 16px;
}
.hub-color-meta b {
  font-size: 14px;
  color: #14161A;
  display: block;
  margin-bottom: 2px;
}
.hub-color-meta code {
  font-size: 11.5px;
  color: #767E8C;
  display: block;
  font-family: var(--font-mono);
}
.hub-color-meta small {
  font-size: 11.5px;
  color: #5B626C;
  display: block;
  margin-top: 4px;
}

/* ================= 核心功能特性 Feature Deep Dives ================= */
.hub-features {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 100px);
}
.hub-feature-item {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hub-feature-item.reverse {
  grid-template-columns: 1.25fr 1fr;
}
.hub-feature-item.reverse .hub-feature-copy {
  order: 2;
}
.hub-feature-item.reverse .hub-feature-media {
  order: 1;
}
@media (max-width: 860px) {
  .hub-feature-item, .hub-feature-item.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hub-feature-item.reverse .hub-feature-copy { order: 1; }
  .hub-feature-item.reverse .hub-feature-media { order: 2; }
}

.hub-feature-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #2563EB;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.hub-feature-copy h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  color: #14161A;
  line-height: 1.3;
  margin-bottom: 16px;
}
.hub-feature-copy p {
  font-size: 15px;
  color: #5B626C;
  line-height: 1.75;
  margin-bottom: 24px;
}
.hub-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hub-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hub-point-n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.hub-point-text b {
  font-size: 14px;
  color: #14161A;
  display: block;
  margin-bottom: 2px;
}
.hub-point-text p {
  font-size: 13px;
  color: #717885;
  line-height: 1.5;
  margin: 0;
}

.hub-feature-media {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hub-phone-frame {
  width: clamp(200px, 22vw, 280px);
  margin: 0;
  transition: transform .3s ease;
}
.hub-phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 36px rgba(20,22,26,0.12));
}
.hub-phone-frame:hover {
  transform: translateY(-6px);
}

/* ================= 深色模式展区 ================= */
.hub-dark-section {
  background: #101217;
  border-radius: 36px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
  color: #FFFFFF;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.hub-dark-section::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hub-dark-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) {
  .hub-dark-grid { grid-template-columns: 1fr; }
}
.hub-dark-copy h3 {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 0 16px;
  color: #FFFFFF;
}
.hub-dark-copy p {
  font-size: 15px;
  color: #9BA3AF;
  line-height: 1.75;
  margin-bottom: 24px;
}
.hub-dark-phones {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.hub-dark-phones .hub-phone-frame img {
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.75)) drop-shadow(0 0 20px rgba(37,99,235,0.18));
}

/* 底部复盘与操作 */
.hub-footer-deck {
  background: #FFFFFF;
  border-radius: 28px;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 48px);
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.03);
}
.hub-footer-deck h3 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  color: #14161A;
  margin: 12px 0 16px;
}
.hub-footer-deck p {
  font-size: 15.5px;
  color: #5B626C;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 32px;
}
.hub-nav-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Home Hub · 全局与响应式优化增强 (ABCD 规范落地产出)
   ========================================================================== */

/* 1. 宽屏侧轨避让规范
   hub-container 是 1180px 居中版心：侧轨占左缘 18~84px，
   视口到 1180 + 2×84 = 1348px 起版心已整体让开侧轨，无需再偏；
   只在真正会压住内容的中段视口，按全站同一条公式（基础内边距 + 84px）加左让位 */
@media (min-width: 1280px) and (max-width: 1348px) {
  body.case-hub-modern.has-rail .hub-container {
    padding-left: calc(clamp(20px, 4vw, 48px) + 84px);
  }
}

/* 2. 吸顶章节导航目录 (Sticky TOC Sub-Nav) */
.hub-subnav {
  position: sticky;
  top: 16px;
  z-index: 80;
  margin: -16px 0 40px;
  pointer-events: none;
}
.hub-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 12px;
  pointer-events: auto;
  scrollbar-width: none;
}
.hub-subnav-inner::-webkit-scrollbar {
  display: none;
}
.hub-subnav-pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #5B626C;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 7px 16px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: color .22s cubic-bezier(.16, 1, .3, 1), background-color .22s cubic-bezier(.16, 1, .3, 1), border-color .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s cubic-bezier(.16, 1, .3, 1), transform .22s cubic-bezier(.16, 1, .3, 1);
}
.hub-subnav-pill:hover {
  color: #2563EB;
  background: #FFFFFF;
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}
.hub-subnav-pill.active {
  color: #FFFFFF;
  background: #2563EB;
  border-color: #2563EB;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* 3. Hero 三机叠放深度响应式防溢出微调 */
@media (max-width: 860px) {
  .hub-hero-phones {
    gap: 0;
    padding-bottom: 20px;
  }
  .hub-phone-center {
    width: clamp(200px, 32vw, 260px);
  }
  .hub-phone-left {
    width: clamp(160px, 25vw, 200px);
    margin-right: -36px;
    margin-bottom: 16px;
  }
  .hub-phone-right {
    width: clamp(160px, 25vw, 200px);
    margin-left: -36px;
    margin-bottom: 16px;
  }
}
@media (max-width: 640px) {
  .hub-hero-phones {
    max-width: 100%;
    padding: 0 8px 16px;
  }
  .hub-phone-center {
    width: 52vw;
    max-width: 210px;
  }
  .hub-phone-left {
    width: 38vw;
    max-width: 150px;
    margin-right: -24px;
    margin-bottom: 12px;
  }
  .hub-phone-right {
    width: 38vw;
    max-width: 150px;
    margin-left: -24px;
    margin-bottom: 12px;
  }
  .hub-phone-caption {
    font-size: 11px;
    margin-top: 8px;
  }
}
@media (max-width: 420px) {
  .hub-phone-center {
    width: 58vw;
  }
  .hub-phone-left {
    width: 36vw;
    margin-right: -20px;
  }
  .hub-phone-right {
    width: 36vw;
    margin-left: -20px;
  }
}

/* 5. 14 屏全景高保真 Lightbox 模态画廊 */
.hub-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s cubic-bezier(.16, 1, .3, 1);
  padding: 20px;
}
.hub-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.hub-lightbox-dialog {
  position: relative;
  max-width: 94vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(.94) translateY(12px);
  transition: transform .26s cubic-bezier(.16, 1, .3, 1);
}
.hub-lightbox.active .hub-lightbox-dialog {
  transform: scale(1) translateY(0);
}
.hub-lightbox-img-wrap {
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.hub-lightbox-img {
  max-height: 78vh;
  width: auto;
  max-width: 86vw;
  object-fit: contain;
  display: block;
  user-select: none;
  border-radius: 24px; /* All Screens 换纯 UI 截图后给屏幕圆角（带框版本自带边壳，无此项） */
  filter: drop-shadow(0 28px 64px rgba(0, 0, 0, 0.65));
}
.hub-lightbox-info {
  margin-top: 14px;
  text-align: center;
  color: #FFFFFF;
  user-select: none;
}
.hub-lightbox-counter {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #60A5FA;
  background: rgba(37, 99, 235, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.hub-lightbox-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}
.hub-lightbox-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
}
.hub-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.hub-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.08);
}
.hub-lightbox-close svg {
  width: 18px;
  height: 18px;
}
.hub-lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color .2s ease, transform .2s ease;
  z-index: 2;
}
.hub-lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}
.hub-lightbox-nav-btn svg {
  width: 22px;
  height: 22px;
}
.hub-lightbox-prev {
  left: -68px;
}
.hub-lightbox-next {
  right: -68px;
}
@media (max-width: 820px) {
  .hub-lightbox-prev {
    left: -20px;
  }
  .hub-lightbox-next {
    right: -20px;
  }
}
@media (max-width: 640px) {
  .hub-lightbox-prev {
    left: 4px;
    width: 40px;
    height: 40px;
  }
  .hub-lightbox-next {
    right: 4px;
    width: 40px;
    height: 40px;
  }
  .hub-lightbox-img-wrap {
    max-height: 68vh;
  }
  .hub-lightbox-img {
    max-height: 68vh;
  }
}

/* ==========================================================================
   Tactile Switch 精致软态开关 (核心交互原子规范)
   ========================================================================== */
.sw {
  position: relative;
  width: 52px;
  height: 30px;
  background: #E2E8F0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .24s cubic-bezier(.16, 1, .3, 1), box-shadow .24s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  display: inline-block;
  vertical-align: middle;
  user-select: none;
}
.sw i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16), 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform .24s cubic-bezier(.16, 1, .3, 1);
  display: block;
}
.sw.on {
  background: #2563EB;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.sw.on i {
  transform: translateX(22px);
}
.sw:hover i {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   Style Guide / 深色展区：HTML 内联样式类化回收（只搬位置，值不变）
   ========================================================================== */

/* 语义色调对（底色 + 前景）：图标底座、品牌标签、状态药丸共用 */
.tone-blue   { background: #EFF6FF; color: #2563EB; }
.tone-sky    { background: #E9F3FC; color: #2E8FD6; }
.tone-green  { background: #E9F8F2; color: #2FBF8F; }
.tone-night  { background: #131B2E; color: #38BDF8; }

/* 色板 */
.sw-blue   { background: #2563EB; }
.sw-sky    { background: #2E8FD6; }
.sw-violet { background: #7C6CF0; }
.sw-green  { background: #2FBF8F; }
.sw-ink    { background: #14161A; }

/* 交互原子展区 */
.hub-comp-grid      { /* 与色卡共用同一套列网格（见 .hub-color-grid） */ }
.hub-comp-box       { padding: 24px 14px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.hub-comp-label     { color: #767E8C; font-size: 11.5px; font-weight: 700; display: block; margin-bottom: 12px; }
.hub-comp-switchrow { display: inline-flex; align-items: center; gap: 12px; }
.hub-seg            { background: #E9ECF1; padding: 3px; border-radius: 10px; display: inline-flex; gap: 3px; font-size: 11.5px; font-weight: 700; max-width: 100%; }
.hub-seg-on         { background: #FFFFFF; padding: 4px 9px; border-radius: 8px; color: #14161A; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); white-space: nowrap; }
.hub-seg-off        { padding: 4px 9px; color: #717885; white-space: nowrap; }
.hub-pill-row       { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.hub-pill           { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* 深色展区：徽标与工具标签换深色皮肤；紧凑手机框、去顶留白变体 */
.hub-dark-copy .hub-badge    { background: rgba(37, 99, 235, 0.2); color: #38BDF8; }
.hub-dark-copy .hub-tool-tag { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.1); }
.hub-tag-row         { display: flex; gap: 12px; flex-wrap: wrap; }
.hub-phone-frame--sm { width: clamp(190px, 19vw, 260px); }
.hub-section--flush  { padding-top: 0; }

/* 宽版容器：比文字列宽一档（双类名提高权重，避免被 .hub-container 覆盖） */
.hub-container.hub-container--wide { max-width: min(1460px, calc(100vw - 200px)); }
.hub-icons-board { margin: 0; padding: 0; }
.hub-icons-board img {
  width: 100%; height: auto; display: block;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(15,42,92,.06);
}
@media (max-width: 700px) {
  .hub-icons-board img { border-radius: 16px; }
}

/* Style Guide 系列：色卡与组件共用列网格的响应式档位 */
@media (max-width: 1280px) { .hub-color-grid, .hub-comp-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1040px) { .hub-color-grid, .hub-comp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .hub-color-grid, .hub-comp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .hub-color-grid, .hub-comp-grid { grid-template-columns: 1fr; } }

/* 缩短「核心交互原子 → 核心功能交互推导」之间的留白（原为 110+32+110 ≈ 252px） */
#styleguide { padding-bottom: clamp(44px, 5vw, 66px); }
#features   { padding-top:    clamp(48px, 5.4vw, 70px); }
#styleguide .hub-guide-panel:last-child { margin-bottom: 0; }

/* ==========================================================================
   All Screens · 中心聚焦式屏幕带（hub-fan）
   交互形态学自 helloayushi.com Paytm Bonds 案例的「The rest of the flow」：
   中央 1 屏全尺寸，两侧屏幕缩至 52% 等距排开，点侧屏换焦点、点中央屏进 Lightbox。
   无 JS 兜底：容器默认是换行网格，site.js 加 .hub-fan--ready 后才切到轮播形态。
   ========================================================================== */
.hub-fan {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 6px;
}
.hub-fan-item {
  flex: 0 0 calc((100% - 3 * 20px) / 4);
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  cursor: pointer;
}
.hub-fan-shot {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}
.hub-fan-shot img {
  width: 100%;
  height: auto;
  display: block;
}
.hub-fan-hint,
.hub-fan-caption { display: none; }

/* —— 轮播形态（site.js 接管后；几何尺寸由 JS 按容器宽写入 --fan-w / --fan-h） —— */
.hub-fan--ready {
  display: block;
  position: relative;
  max-width: 1260px;
  margin: 6px auto 0;
  overflow: hidden;
}
.hub-fan--ready .hub-fan-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--fan-w);
  margin: calc(var(--fan-h) / -2) 0 0 calc(var(--fan-w) / -2);
  padding: 0;
  background: none;
  border: 0;
  border-radius: 22px;
  z-index: 1;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, visibility 0s;
}
.hub-fan--ready .hub-fan-item.is-off {
  opacity: 0;
  visibility: hidden;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, visibility 0s linear 0.4s;
}
.hub-fan--ready .hub-fan-item.is-active { z-index: 2; }
.hub-fan--ready .hub-fan-item:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 4px;
}
.hub-fan--ready .hub-fan-shot {
  border-radius: 22px;
  background: #F8FAFD;
  box-shadow: 0 10px 28px rgba(13, 14, 17, 0.10);
  transition: box-shadow 0.4s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hub-fan--ready .hub-fan-item.is-active .hub-fan-shot {
  box-shadow: 0 28px 64px rgba(13, 14, 17, 0.18);
}
.hub-fan--ready .hub-fan-shot img {
  width: var(--fan-w);
  height: var(--fan-h);
}
.hub-fan--ready .hub-fan-item:not(.is-active):hover .hub-fan-shot {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(13, 14, 17, 0.14);
}
.hub-fan--ready + .hub-fan-hint {
  display: block;
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: #717885;
}
.hub-fan--ready ~ .hub-fan-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

/* 说明条：随焦点切换淡出再淡入（site.js 加 .is-swap 换字） */
.hub-fan-cap-num {
  font-size: 13px;
  font-weight: 800;
  color: #2563EB;
  font-variant-numeric: tabular-nums;
}
.hub-fan-cap-title { font-size: 15px; font-weight: 800; color: #14161A; }
.hub-fan-cap-tag {
  font-size: 11px;
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  padding: 2px 7px;
  border-radius: 6px;
}
.hub-fan-cap-desc { font-size: 12.5px; color: #717885; }
.hub-fan-caption > * {
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.hub-fan-caption.is-swap > * {
  opacity: 0;
  transform: translateY(5px);
}

/* 兜底网格列数随窄屏收紧（与全站断点一致） */
@media (max-width: 1040px) { .hub-fan-item { flex-basis: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 720px)  { .hub-fan-item { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 480px)  { .hub-fan-item { flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .hub-fan-item,
  .hub-fan-shot,
  .hub-fan-caption > * { transition: none !important; }
}

/* ==========================================================================
   Hero 三机入场编排：换页进入/直达时三机错峰浮入。
   关键约束：left/right 两机的定位本身就是 transform（rotate+translateY），
   位移动画必须挂在 img 上、容器只做透明度——若在容器上动 transform，
   动画会先清掉定位 transform、结束后再弹回，形成明显的「闪回位」。
   容器透明度淡入同时也是「真机闪一下」的遮蔽层：软导航进入后大图若解码
   稍晚，弹入发生在浮入期间，肉眼不可见。
   ========================================================================== */
@keyframes hub-phone-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hub-phone-rise {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.hub-hero-phone { animation: hub-phone-fade 0.5s ease backwards; }
.hub-hero-phone img { animation: hub-phone-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hub-phone-center, .hub-phone-center img { animation-delay: 0s; }
.hub-phone-left,   .hub-phone-left img   { animation-delay: 0.12s; }
.hub-phone-right,  .hub-phone-right img  { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .hub-hero-phone, .hub-hero-phone img { animation: none; }
}

/* ==========================================================================
   窄屏修正（≤860 / ≤720）：只影响手机与小平板，桌面不受影响
   1) .hub-container--wide 的 calc(100vw - 200px) 在手机上只剩 190px，
      深色展区/设计系统/全屏画廊三段的正文会被 overflow:hidden 裁掉；
   2) .hub-phone-frame 有 200px 下限，深色展区两张并排会超出被裁；
      特性区的两张牌靠 flex-wrap 换行，手机上一张一行即可。
   ========================================================================== */
@media (max-width: 860px) {
  .hub-container.hub-container--wide { max-width: none; }
}
@media (max-width: 720px) {
  .hub-dark-phones { gap: 12px; }
  .hub-dark-phones .hub-phone-frame { width: clamp(132px, 37vw, 190px); }
  .hub-dark-phones .hub-phone-frame--sm { width: clamp(118px, 32vw, 170px); }
  /* 灯箱控件补足触控尺寸 */
  .hub-lightbox-close { width: 42px; height: 42px; }
  .hub-lightbox-nav-btn { width: 42px; height: 42px; }
}

/* 顶部条让位：721–1279px 顶栏形态下会压住返回按钮（手机已无顶栏，不需要） */
@media (max-width: 1279px) { .hub-nav-strip { padding-top: 96px; } }
