/* ============================================================================
   home-portal.css · 前台首页外观层（对齐参考站 jiucai.oo7.co 登录页的视觉语言）
   设计语言：浅瓷底 + 陶瓷玻璃白卡 + 墨绿主色 + 极轻描边 + 大留白
     · 画布 #F8FAF9，噪点/点阵极淡，两个径向光斑
     · 主色 #064E36 / #086345，强调线 #E2E8F0
     · 卡片 20px 圆角，阴影只做 1px 抬升
     · 标题字距 -.02em，正文 13–15px
   本层只覆盖观感：不改结构、不改业务脚本、不影响控制台（控制台用 jiucai-skin.css）。
   ========================================================================== */

html[data-ui-theme] body.customer-body #homeView#homeView.home-page {
  --hp-canvas: #f8faf9;
  --hp-green: #064e36;
  --hp-green-2: #086345;
  --hp-green-3: #043c29;
  --hp-green-soft: #eef5f1;
  --hp-ink: #0f172a;
  --hp-ink-2: #1e293b;
  --hp-muted: #64748b;
  --hp-faint: #94a3b8;
  --hp-line: #e2e8f0;
  --hp-line-2: #eef1f5;
  --hp-surface: #ffffff;
  --hp-radius: 20px;
  --hp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(6, 78, 54, .28);
  --hp-shadow-lg: 0 24px 64px -32px rgba(6, 78, 54, .35);
  --hp-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  position: relative!important;
  min-height: 100svh!important;
  padding: 0!important;
  margin: 0!important;
  background:
    radial-gradient(ellipse 62% 46% at 88% 4%, rgba(197, 232, 216, .5), transparent 62%),
    radial-gradient(ellipse 52% 40% at 6% 96%, rgba(214, 234, 226, .45), transparent 62%),
    var(--hp-canvas)!important;
  color: var(--hp-ink-2)!important;
  font-family: var(--hp-sans)!important;
  -webkit-font-smoothing: antialiased!important;
  overflow-x: clip!important;
}

/* 点阵底纹：与登录门户保持同一质感 */
html[data-ui-theme] body.customer-body #homeView#homeView.home-page::before {
  content: ""!important;
  position: absolute!important;
  inset: 0!important;
  background-image: radial-gradient(rgba(148, 163, 184, .28) .7px, transparent .7px)!important;
  background-size: 22px 22px!important;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 12%, transparent 78%)!important;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 12%, transparent 78%)!important;
  pointer-events: none!important;
  z-index: 0!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView.home-page > * { position: relative!important; z-index: 1!important; }

/* ============================== 顶部导航 ============================== */
html[data-ui-theme] body.customer-body #homeView#homeView .home-nav {
  position: sticky!important;
  top: 0!important;
  z-index: 30!important;
  display: flex;
  align-items: center!important;
  gap: 14px!important;
  min-height: 0!important;
  width: min(1180px, calc(100% - 40px))!important;
  margin: 18px auto 0!important;
  padding: 10px 14px 10px 16px!important;
  border: 1px solid rgba(226, 232, 240, .9)!important;
  border-radius: 16px!important;
  background: rgba(255, 255, 255, .78)!important;
  box-shadow: 0 2px 10px -6px rgba(15, 23, 42, .18)!important;
  backdrop-filter: blur(14px) saturate(1.2)!important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2)!important;
  box-sizing: border-box!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-brand { display: inline-flex; align-items: center!important; gap: 10px!important; padding: 0!important; min-height: 0!important; text-decoration: none!important; }
html[data-ui-theme] body.customer-body #homeView#homeView .home-brand .brand-mark {
  box-sizing: border-box !important;
  padding: 0 !important;
  min-width: 34px !important;
  max-width: 34px !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-grid !important;
  place-items: center!important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #0b7a5b, var(--hp-green-3)) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0!important;
  box-shadow: 0 6px 14px -10px rgba(6, 78, 54, .9) !important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-brand strong { display: block; font-size: 14.5px !important; font-weight: 700 !important; color: var(--hp-ink)!important; letter-spacing: -.01em!important; }
html[data-ui-theme] body.customer-body #homeView#homeView .home-nav-actions { display: flex; align-items: center!important; gap: 8px!important; margin-left: auto!important; }
html[data-ui-theme] body.customer-body #homeView#homeView .home-nav-link {
  display: inline-flex;
  align-items: center!important;
  min-height: 34px!important;
  padding: 0 12px!important;
  border-radius: 9px!important;
  color: var(--hp-muted)!important;
  font-size: 13px !important;
  font-weight: 550 !important;
  text-decoration: none!important;
  transition: background .2s ease, color .2s ease!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-nav-link:hover { background: var(--hp-green-soft)!important; color: var(--hp-green)!important; }

/* 导航里的按钮：胶囊形、更紧凑 */
html[data-ui-theme] body.customer-body #homeView#homeView .home-nav .home-nav-actions .button {
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-nav .button.ghost {
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--hp-ink-2) !important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-nav .button.ghost:hover { background: #f1f5f4 !important; }

/* ============================== 主视觉 ============================== */
html[data-ui-theme] body.customer-body #homeView#homeView .home-hero {
  width: min(1180px, calc(100% - 40px))!important;
  margin: 0 auto!important;
  padding: clamp(44px, 7vw, 84px) 0 clamp(30px, 4vw, 46px)!important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr)!important;
  align-items: center!important;
  gap: clamp(28px, 5vw, 68px)!important;
  width: 100%!important;
  max-width: none!important;
  margin: 0!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-hero-copy { min-width: 0!important; }
html[data-ui-theme] body.customer-body #homeView#homeView #homeTitle,
html[data-ui-theme] body.customer-body #homeView#homeView .home-hero-copy h1 {
  margin: 0!important;
  color: var(--hp-ink) !important;
  font-size: clamp(34px, 4.6vw, 58px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -.03em !important;
  text-wrap: balance!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-hero-copy p {
  max-width: 44ch!important;
  margin: 20px 0 0!important;
  color: var(--hp-muted)!important;
  font-size: 15px !important;
  line-height: 1.85 !important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-hero-actions { display: flex; flex-wrap: wrap!important; align-items: center!important; gap: 12px!important; margin-top: 30px!important; }

/* 主按钮：墨绿陶瓷 */
html[data-ui-theme] body.customer-body #homeView#homeView .button.primary {
  min-height: 46px !important;
  padding: 0 24px !important;
  border: 1px solid var(--hp-green-2) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, var(--hp-green-2), var(--hp-green)) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em!important;
  box-shadow: 0 10px 24px -14px rgba(6, 78, 54, .85), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .button.primary:hover {
  background: linear-gradient(180deg, #0a7550, var(--hp-green-2)) !important;
  box-shadow: 0 16px 34px -16px rgba(6, 78, 54, .9), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
  transform: translateY(-1px)!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .button.primary:active { transform: translateY(0)!important; }
html[data-ui-theme] body.customer-body #homeView#homeView .button.home-secondary-action,
html[data-ui-theme] body.customer-body #homeView#homeView .home-hero-actions .button:not(.primary) {
  min-height: 46px !important;
  padding: 0 22px !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--hp-ink-2) !important;
  font-size: 14px !important;
  font-weight: 550 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .button.home-secondary-action:hover,
html[data-ui-theme] body.customer-body #homeView#homeView .home-hero-actions .button:not(.primary):hover { border-color: #cbd5e1 !important; background: #fbfcfb !important; }

/* 对接流程卡：陶瓷白 + 编号 */
html[data-ui-theme] body.customer-body #homeView#homeView .home-workflow {
  position: relative!important;
  padding: 24px !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: var(--hp-radius) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82)) !important;
  box-shadow: var(--hp-shadow) !important;
  backdrop-filter: blur(10px)!important;
  -webkit-backdrop-filter: blur(10px)!important;
  overflow: hidden!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-workflow::after {
  content: ""!important;
  position: absolute!important;
  inset: 0 0 auto!important;
  height: 3px!important;
  background: linear-gradient(90deg, var(--hp-green), #35a07c 62%, rgba(53, 160, 124, 0))!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .workflow-heading { display: flex; align-items: center!important; gap: 8px!important; margin-bottom: 6px!important; }
html[data-ui-theme] body.customer-body #homeView#homeView .workflow-heading strong {
  color: var(--hp-faint) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .workflow-steps { display: grid; gap: 2px!important; margin: 0!important; padding: 0!important; list-style: none!important; }
html[data-ui-theme] body.customer-body #homeView#homeView .workflow-row {
  display: flex;
  align-items: center!important;
  gap: 14px!important;
  padding: 14px 4px!important;
  border-bottom: 1px solid var(--hp-line-2)!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .workflow-row:last-child { border-bottom: 0!important; padding-bottom: 2px!important; }
html[data-ui-theme] body.customer-body #homeView#homeView .workflow-number {
  flex: none!important;
  display: grid;
  place-items: center!important;
  width: 30px!important;
  height: 30px!important;
  border-radius: 9px!important;
  background: var(--hp-green-soft)!important;
  color: var(--hp-green-2)!important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums!important;
  letter-spacing: .01em!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .workflow-copy { min-width: 0!important; }
html[data-ui-theme] body.customer-body #homeView#homeView .workflow-copy strong {
  display: block;
  color: var(--hp-ink) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em!important;
}

/* ============================== 数据条 ============================== */
html[data-ui-theme] body.customer-body #homeView#homeView .home-template-stats,
html[data-ui-theme] body.customer-body #homeView#homeView .home-capabilities {
  width: min(1180px, calc(100% - 40px))!important;
  margin: 0 auto!important;
  padding: clamp(26px, 3.4vw, 40px) 0!important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-template-heading { display: flex; flex-wrap: wrap!important; align-items: center!important; gap: 12px!important; margin-bottom: 16px!important; }
html[data-ui-theme] body.customer-body #homeView#homeView .home-template-heading h2,
html[data-ui-theme] body.customer-body #homeView#homeView .home-section-head h2 {
  margin: 0!important;
  color: var(--hp-ink) !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-template-badge {
  margin-left: auto!important;
  padding: 5px 11px!important;
  border: 1px solid #d6e8dd !important;
  border-radius: 999px!important;
  background: var(--hp-green-soft) !important;
  color: #2f7a5d !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  white-space: nowrap!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-template-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr))!important;
  gap: 14px!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-template-stats-grid article {
  min-width: 0!important;
  padding: 18px 20px !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03) !important;
  text-align: left !important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-template-stats-grid article > span {
  display: block;
  margin-bottom: 8px!important;
  color: var(--hp-faint) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-template-stats-grid article > strong {
  display: block;
  overflow: hidden!important;
  color: var(--hp-ink) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -.02em!important;
  font-variant-numeric: tabular-nums!important;
  text-overflow: ellipsis!important;
}

/* ============================== 能力卡 ============================== */
html[data-ui-theme] body.customer-body #homeView#homeView .home-section-head { margin-bottom: 16px!important; }
html[data-ui-theme] body.customer-body #homeView#homeView .home-capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr))!important; gap: 14px!important; }
html[data-ui-theme] body.customer-body #homeView#homeView .home-capability-grid article {
  position: relative!important;
  min-width: 0!important;
  padding: 22px 22px 24px !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-capability-grid article:hover {
  border-color: #d7e6de !important;
  box-shadow: 0 18px 40px -30px rgba(6, 78, 54, .55) !important;
  transform: translateY(-2px)!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-step {
  display: inline-grid;
  place-items: center!important;
  min-width: 26px!important;
  height: 26px!important;
  margin-bottom: 12px!important;
  border-radius: 8px!important;
  background: var(--hp-green-soft) !important;
  color: var(--hp-green-2) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-capability-grid h3 {
  margin: 0!important;
  color: var(--hp-ink) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  letter-spacing: -.01em!important;
  line-height: 1.5!important;
}
html[data-ui-theme] body.customer-body #homeView#homeView .home-capability-grid p { margin: 8px 0 0!important; color: var(--hp-muted) !important; font-size: 13px !important; line-height: 1.7 !important; }

/* ============================== 页脚 ============================== */
html[data-ui-theme] body.customer-body #homeView#homeView .home-footer {
  width: min(1180px, calc(100% - 40px))!important;
  margin: 0 auto!important;
  padding: 26px 0 calc(32px + env(safe-area-inset-bottom, 0px))!important;
  border-top: 1px solid var(--hp-line-2)!important;
  color: var(--hp-faint) !important;
  font-size: 12px !important;
  text-align: center!important;
  background: transparent !important;
}

/* ============================== 响应式 ============================== */
@media (max-width: 1024px) {
  html[data-ui-theme] body.customer-body #homeView#homeView .home-hero-inner { grid-template-columns: 1fr!important; align-items: start!important; }
  html[data-ui-theme] body.customer-body #homeView#homeView .home-template-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr))!important; }
  html[data-ui-theme] body.customer-body #homeView#homeView .home-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr))!important; }
}
@media (max-width: 720px) {
  html[data-ui-theme] body.customer-body #homeView#homeView .home-nav { width: calc(100% - 24px)!important; margin-top: 12px!important; padding: 8px 10px 8px 12px!important; }
  html[data-ui-theme] body.customer-body #homeView#homeView .home-nav-link { display: none; }
  html[data-ui-theme] body.customer-body #homeView#homeView .home-hero,
  html[data-ui-theme] body.customer-body #homeView#homeView .home-template-stats,
  html[data-ui-theme] body.customer-body #homeView#homeView .home-capabilities,
  html[data-ui-theme] body.customer-body #homeView#homeView .home-footer { width: calc(100% - 28px)!important; }
  html[data-ui-theme] body.customer-body #homeView#homeView .home-hero { padding: 34px 0 22px!important; }
  html[data-ui-theme] body.customer-body #homeView#homeView #homeTitle,
  html[data-ui-theme] body.customer-body #homeView#homeView .home-hero-copy h1 { font-size: clamp(28px, 8.6vw, 38px) !important; }
  html[data-ui-theme] body.customer-body #homeView#homeView .home-hero-actions .button { flex: 1 1 100%!important; justify-content: center!important; }
  html[data-ui-theme] body.customer-body #homeView#homeView .home-capability-grid { grid-template-columns: 1fr!important; }
  html[data-ui-theme] body.customer-body #homeView#homeView .home-template-stats-grid { grid-template-columns: 1fr 1fr!important; gap: 10px!important; }
  html[data-ui-theme] body.customer-body #homeView#homeView .home-template-stats-grid article { padding: 14px 15px !important; }
  html[data-ui-theme] body.customer-body #homeView#homeView .home-template-stats-grid article > strong { font-size: 17px !important; }
  html[data-ui-theme] body.customer-body #homeView#homeView .home-template-badge { margin-left: 0!important; }
}
@media (max-width: 420px) {
  html[data-ui-theme] body.customer-body #homeView#homeView .home-template-stats-grid { grid-template-columns: 1fr!important; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui-theme] body.customer-body #homeView#homeView *,
  html[data-ui-theme] body.customer-body #homeView#homeView *::before,
  html[data-ui-theme] body.customer-body #homeView#homeView *::after { transition: none !important; animation: none !important; }
}
