/* ==========================================================================
   FWPT 首页 v2 · 统一工作台布局
   - 顶栏「产品」大菜单 (全部系统 + 实时状态)
   - Hero 右侧「应用启动台」(OneID 状态 + 最近使用 + 9 宫格直达)
   - 业务矩阵按场景分组 + 卡片「联动」脚注
   - 「系统联动」中枢图 + 场景闭环
   ========================================================================== */

/* ---------- 0. 探针状态修复：旧样式 !important 覆盖了 JS 内联颜色 ---------- */
[data-probe-state="slow"] .probe-dot { background: #F59E0B !important; }
[data-probe-state="down"] .probe-dot { background: #EF4444 !important; }
.matrix-status-badge[data-probe-state="slow"] { color: #B45309 !important; background: rgba(245, 158, 11, 0.12) !important; }
.matrix-status-badge[data-probe-state="down"] { color: #DC2626 !important; background: rgba(239, 68, 68, 0.1) !important; }

/* ---------- 1. 顶栏「产品」大菜单 ---------- */
.nav-links .hx-nav-products { position: relative; }
.hx-nav-trigger {
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px;
}
.hx-nav-trigger:hover, .hx-nav-products.open .hx-nav-trigger { color: var(--text-primary); }
.hx-nav-trigger svg { transition: transform .2s ease; }
.hx-nav-products.open .hx-nav-trigger svg { transform: rotate(180deg); }
.hx-mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-38%);
  width: 880px; max-width: calc(100vw - 32px);
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 18px; display: none; z-index: 1200;
}
.hx-nav-products.open .hx-mega { display: block; animation: hxFade .16s ease; }
@keyframes hxFade { from { opacity: 0; transform: translateX(-38%) translateY(-4px); } to { opacity: 1; transform: translateX(-38%); } }
.hx-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hx-mega-item > span { min-width: 0; }
.hx-mega-col h4 { font-size: 11px; font-weight: 700; color: var(--text-quaternary); letter-spacing: .06em; margin: 0 0 8px 8px; }
.hx-mega-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 10px;
  text-decoration: none; color: var(--text-primary); transition: background .15s ease;
}
.hx-mega-item:hover { background: var(--bg-surface-subtle); }
.hx-mega-item i {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; color: #fff; font-style: normal;
  display: flex; align-items: center; justify-content: center;
}
.hx-mega-item b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.hx-mega-item small { display: block; font-size: 11.5px; color: var(--text-tertiary); margin-top: 1px; line-height: 1.35; }
.hx-mega-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-color);
  font-size: 12px; color: var(--text-tertiary);
}
.hx-mega-foot a { color: var(--color-pacer); font-weight: 600; text-decoration: none; }

/* 通用小状态点 (被 updateProbeBadge 驱动) */
.hx-dot { display: inline-flex; align-items: center; }
.hx-dot .probe-dot { width: 6px !important; height: 6px !important; }
.hx-dot .probe-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 2. Hero 布局 ---------- */
.hx-hero { padding: 112px 0 64px; text-align: left; }
.hx-hero .hx-launcher, .hx-hero .hx-hero-copy { text-align: left; }
.hx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 48px; align-items: center; }
.hx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  border-radius: 999px; background: var(--bg-surface); border: 1px solid var(--border-color);
  font-size: 12px; color: var(--text-secondary); text-decoration: none; margin-bottom: 20px;
}
.hx-eyebrow span:first-child {
  background: linear-gradient(135deg, #4F46E5, #0D9488); color: #fff; font-weight: 700;
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
}
.hx-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); margin: 0 0 18px; }
.hx-title .text-gradient { background: linear-gradient(120deg, #4F46E5 0%, #0D9488 60%, #059669 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-sub { font-size: 16px; line-height: 1.7; color: var(--text-secondary); max-width: 560px; margin: 0 0 26px; }
.hx-sub strong { color: var(--text-primary); font-weight: 600; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hx-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 11px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.hx-btn-primary { background: var(--text-primary); color: var(--bg-surface); box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .5); }
.hx-btn-primary:hover { transform: translateY(-1px); }
.hx-btn-ghost { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-color); }
.hx-btn-ghost:hover { border-color: var(--text-tertiary); }
.hx-proof { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; justify-content: start; }
.hx-proof div { display: flex; flex-direction: column; }
.hx-proof b { font-size: 22px; font-weight: 800; color: var(--text-primary); font-family: var(--font-mono); letter-spacing: -0.02em; }
.hx-proof span { font-size: 12px; color: var(--text-tertiary); }

/* ---------- 3. 应用启动台 ---------- */
.hx-launcher {
  background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 20px;
  box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .28), 0 0 0 1px rgba(255, 255, 255, .4) inset;
  padding: 18px; position: relative;
}
.hx-launcher::before {
  content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(99, 102, 241, .45), rgba(20, 184, 166, .25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.hx-l-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hx-l-title { font-size: 13px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.hx-l-live {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  color: #059669; background: rgba(16, 185, 129, .1); padding: 3px 9px; border-radius: 999px; cursor: pointer; border: none;
}
.hx-l-live .status-dot-pulse { width: 6px; height: 6px; }
.hx-id {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  background: var(--bg-surface-subtle); margin-bottom: 14px;
}
.hx-id-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #6366F1, #14B8A6);
}
.hx-id-avatar.guest { background: var(--border-color); color: var(--text-tertiary); }
.hx-id-main { flex: 1; min-width: 0; }
.hx-id-name { font-size: 13.5px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-id-sub { font-size: 11.5px; color: var(--text-tertiary); }
.hx-id-btn {
  flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  background: var(--color-pacer); color: #fff; border: none;
}
.hx-sso-chips { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.hx-sso-chips span { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border-color); }
.hx-recent { margin-bottom: 12px; }
.hx-recent-label, .hx-l-label { font-size: 11px; font-weight: 700; color: var(--text-quaternary); letter-spacing: .06em; margin: 0 2px 8px; display: flex; justify-content: space-between; }
.hx-recent-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hx-recent-row::-webkit-scrollbar { display: none; }
.hx-recent-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 999px;
  border: 1px solid var(--border-color); background: var(--bg-surface); text-decoration: none; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--text-primary);
}
.hx-recent-chip i { width: 22px; height: 22px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; }
.hx-recent-chip small { color: var(--text-quaternary); font-weight: 500; font-size: 11px; }
.hx-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hx-app {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--border-color); background: var(--bg-surface); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.hx-app:hover { transform: translateY(-2px); border-color: var(--app-color, var(--text-tertiary)); box-shadow: 0 10px 22px -12px var(--app-color, rgba(0,0,0,.3)); }
.hx-app i { width: 34px; height: 34px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; }
.hx-app b { font-size: 12.5px; font-weight: 700; color: var(--text-primary); line-height: 1.25; }
.hx-app small { font-size: 11px; color: var(--text-tertiary); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hx-app .hx-dot { position: absolute; top: 12px; right: 12px; }
.hx-app-tag { position: absolute; top: 9px; right: 22px; font-size: 9.5px; font-weight: 700; padding: 0 5px; border-radius: 4px; line-height: 16px; }
.hx-app-tag.free { color: #059669; background: rgba(16, 185, 129, .1); }
.hx-app-tag.sso { color: #4F46E5; background: rgba(99, 102, 241, .1); }
.hx-app-tag.login { color: #DB2777; background: rgba(219, 39, 119, .1); }
.hx-l-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 11.5px; color: var(--text-tertiary); }
.hx-l-foot a { color: var(--color-pacer); text-decoration: none; font-weight: 600; }
.hx-l-foot kbd { font-family: var(--font-mono); font-size: 10px; border: 1px solid var(--border-color); border-radius: 4px; padding: 0 4px; background: var(--bg-surface-subtle); }

/* ---------- 4. 业务矩阵分组与联动脚注 ---------- */
.bento-group-label {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; margin: 10px 0 -8px;
  padding-bottom: 8px; border-bottom: 1px dashed var(--border-color);
}
.bento-group-label:first-child { margin-top: 0; }
.bento-group-label b { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.bento-group-label span { font-size: 12.5px; color: var(--text-tertiary); }
.bento-group-label em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--text-quaternary); font-family: var(--font-mono); }
.bento-links {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--border-light); font-size: 12px; color: var(--text-tertiary);
}
.bento-links > span:first-child { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.bento-link-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-surface-subtle); border: 1px solid var(--border-color); color: var(--text-secondary);
  text-decoration: none; font-size: 11.5px; font-weight: 500; cursor: pointer;
}
.bento-link-chip:hover { color: var(--text-primary); border-color: var(--text-tertiary); }
.bento-link-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--chip-color, #94A3B8); }
.bento-card.hx-flash { animation: hxFlash 1.4s ease; }
@keyframes hxFlash { 0%, 100% { box-shadow: 0 1px 3px rgba(0,0,0,.04); } 30% { box-shadow: 0 0 0 3px var(--color-pacer), 0 10px 30px -8px rgba(79, 70, 229, .4); } }

/* ---------- 5. 系统联动中枢 ---------- */
.hx-eco-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 32px; }
.hx-hub { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hx-hub svg.hx-hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx-hub-lines line { stroke: var(--border-color); stroke-width: 1.5; stroke-dasharray: 4 5; transition: stroke .25s ease, opacity .25s ease; }
.hx-hub-lines line.on { stroke: var(--color-pacer); stroke-dasharray: none; stroke-width: 2; animation: hxDash 1s linear infinite; }
.hx-hub-lines circle { fill: none; stroke: var(--border-color); stroke-width: 1; }
@keyframes hxDash { to { stroke-dashoffset: -18; } }
.hx-hub-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 27%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #6366F1, #0F172A 75%); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 0 0 10px rgba(99, 102, 241, .08), 0 0 0 22px rgba(99, 102, 241, .04), 0 20px 40px -12px rgba(79, 70, 229, .55);
}
.hx-hub-core b { font-size: clamp(13px, 2vw, 17px); font-weight: 800; letter-spacing: .02em; }
.hx-hub-core small { font-size: 10.5px; opacity: .75; margin-top: 2px; }
.hx-hub-node {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; transition: opacity .25s ease, transform .25s ease; width: 92px;
}
.hx-hub-node i {
  width: 46px; height: 46px; border-radius: 14px; color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal;
  box-shadow: 0 8px 18px -8px rgba(15, 23, 42, .45); border: 3px solid var(--bg-surface);
}
.hx-hub-node span { font-size: 11.5px; font-weight: 700; color: var(--text-primary); background: var(--bg-surface); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.hx-hub.has-focus .hx-hub-node { opacity: .28; }
.hx-hub.has-focus .hx-hub-node.on { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
.hx-hub-node .hx-step-no {
  position: absolute; top: -6px; right: 14px; width: 18px; height: 18px; border-radius: 50%; display: none;
  background: var(--text-primary); color: var(--bg-surface); font-size: 10.5px; font-weight: 800; align-items: center; justify-content: center;
}
.hx-hub-node.on .hx-step-no { display: flex; }

.hx-scn-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.hx-scn-tab {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-surface);
  font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all .15s ease;
}
.hx-scn-tab:hover { color: var(--text-primary); }
.hx-scn-tab.active { background: var(--text-primary); color: var(--bg-surface); border-color: var(--text-primary); }
.hx-scn-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px; padding: 22px; }
.hx-scn-card h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0 0 6px; }
.hx-scn-card > p { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 18px; line-height: 1.6; }
.hx-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.hx-step { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; position: relative; padding-bottom: 16px; }
.hx-step:last-child { padding-bottom: 0; }
.hx-step::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: var(--border-color); }
.hx-step:last-child::before { display: none; }
.hx-step-idx { width: 30px; height: 30px; border-radius: 9px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; position: relative; z-index: 1; }
.hx-step b { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.hx-step small { display: block; font-size: 12.5px; color: var(--text-tertiary); line-height: 1.5; margin-top: 2px; }
.hx-step a {
  font-size: 12px; font-weight: 600; text-decoration: none; color: var(--text-secondary); white-space: nowrap;
  padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-surface-subtle);
}
.hx-step a:hover { color: var(--text-primary); border-color: var(--text-tertiary); }
.hx-scn-note { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--bg-surface-subtle); font-size: 12px; color: var(--text-tertiary); display: flex; gap: 8px; align-items: flex-start; }

/* ---------- 6. 页脚产品列 ---------- */
.footer-links-col .hx-foot-app { display: inline-flex; align-items: center; gap: 6px; }
.footer-links-col .hx-foot-app::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--chip-color, #94A3B8); }

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1080px) {
  .hx-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hx-launcher { max-width: 620px; }
  .hx-eco-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
  .hx-mega { display: none !important; }
}
@media (max-width: 640px) {
  /* 修复移动端顶栏溢出：隐藏次要元素，保证汉堡菜单可见 */
  .nav-brand-text, #btnOpenLoginModal, #btnOpenRegisterModal, #globalStatusPill { display: none !important; }
  .nav-right { gap: 6px !important; }
  .nav-user-name { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hx-hero { padding: 92px 0 44px; }
  .hx-proof { gap: 18px; }
  .hx-proof b { font-size: 18px; }
  .hx-apps { gap: 6px; }
  .hx-app { padding: 10px; }
  .hx-app small, .hx-app-tag { display: none; }
  .hx-hub-node { width: 70px; }
  .hx-hub-node i { width: 38px; height: 38px; border-radius: 11px; }
  .hx-hub-node span { font-size: 10.5px; }
  .hx-step { grid-template-columns: 30px 1fr; }
  .hx-step a { grid-column: 2; justify-self: start; }
  .bento-group-label em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-hub-lines line.on { animation: none; }
  .bento-card.hx-flash { animation: none; }
}
[data-theme="dark"] .hx-launcher { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
[data-theme="dark"] .hx-btn-primary { background: #F8FAFC; color: #0F172A; }
[data-theme="dark"] .hx-scn-tab.active { background: #F8FAFC; color: #0F172A; border-color: #F8FAFC; }

/* ---------- 8. 全站新架构图标系统 · 玻璃内倒角与高定质感 ---------- */
.bento-icon,
.hx-app i,
.hx-mega-item i,
.dl-app-icon {
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.42),
    inset 0 -1px 1px rgba(15, 23, 42, 0.18),
    0 8px 18px -8px rgba(15, 23, 42, 0.34);
}
.bento-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
}
.bento-icon.seahorse-bg { background: linear-gradient(135deg, #0284C7 0%, #0D9488 55%, #2DD4BF 100%) !important; }
.bento-icon.zebra-bg    { background: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%) !important; }
.bento-icon.pacer-bg    { background: linear-gradient(135deg, #4F46E5 0%, #6366F1 58%, #38BDF8 100%) !important; }
.bento-icon.vault-bg    { background: linear-gradient(135deg, #047857 0%, #10B981 58%, #34D399 100%) !important; }
.bento-icon.tools-bg    { background: linear-gradient(135deg, #4338CA 0%, #6366F1 100%) !important; }
.bento-icon.ip-bg       { background: linear-gradient(135deg, #0369A1 0%, #06B6D4 58%, #38BDF8 100%) !important; }
.bento-icon.arrow-bg    { background: linear-gradient(135deg, #EA580C 0%, #F97316 58%, #FBBF24 100%) !important; }
.bento-icon.party-bg    { background: linear-gradient(135deg, #DB2777 0%, #EC4899 58%, #A855F7 100%) !important; }

.bento-icon::after,
.hx-app i::after,
.dl-app-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.28), transparent 58%);
  pointer-events: none;
}

.hx-hub-node i {
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.45),
    0 10px 22px -8px rgba(15, 23, 42, 0.48);
}

.hx-hub-core-emblem {
  width: 28px;
  height: 28px;
  margin-bottom: 3px;
  filter: drop-shadow(0 2px 6px rgba(56, 189, 248, 0.35));
}

.hx-scn-spark {
  color: var(--color-pacer);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 71合1 工具箱卡片图标胶囊 */
.tool-quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(13, 148, 136, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.tool-quick-card[data-cat="codec"] .tool-quick-icon {
  color: #059669 !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
  border-color: rgba(16, 185, 129, 0.22);
}
.tool-quick-card[data-cat="text"] .tool-quick-icon {
  color: #0284C7 !important;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(99, 102, 241, 0.08));
  border-color: rgba(2, 132, 199, 0.22);
}
.tool-quick-card:hover .tool-quick-icon {
  transform: scale(1.05);
}
[data-theme="dark"] .tool-quick-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 下载中心筛选标签与参数微胶囊 SVG 图标对齐 */
.dl-filter-btn > span:first-child,
.dl-chip,
.dl-tip-title > span,
.bento-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dl-pwa-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #047857 0%, #10B981 60%, #34D399 100%) !important;
  color: #FFFFFF !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.42), 0 8px 18px -6px rgba(5, 150, 105, 0.45);
}
.ui-inline-ico {
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
}


/* ==========================================================================
   首页 v3 · 视觉精修（最后加载，覆盖前面各层的同名规则）
   原则：
   - 一个操作色：主按钮统一用墨色（深色模式下为浅色），品牌靛蓝只用于链接、选中与焦点
   - 产品色只出现在产品图标和分组色块上，不再给每张卡片的按钮各自上色
   - 标题区一律左对齐，去掉英文大写眉标；节奏靠留白和字号，不靠装饰
   ========================================================================== */
:root {
  --ink: #111827;
  --ink-hover: #1F2937;
  --on-ink: #FFFFFF;
  --link: #4F46E5;
  --space-section-y: 96px;
}
/* 浅色主题的中性色微调；只作用于浅色，避免覆盖深色主题的同名变量 */
html:not([data-theme="dark"]) {
  --bg-page: #F5F6F8;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-tertiary: #6B7280;
  --border-color: #E3E6EB;
  --border-light: #EEF0F3;
}
html[data-theme="dark"] {
  --ink: #F1F5F9;
  --ink-hover: #FFFFFF;
  --on-ink: #0F172A;
  --link: #A5B4FC;
}

/* ---------- 标题区 ---------- */
.section-header-row,
.section-header-center {
  text-align: left !important;
  max-width: none !important;
  margin: 0 0 40px !important;
}
.section-header-row { align-items: flex-end; }
.section-header-center > * { max-width: 680px; }
.section-title {
  font-size: clamp(26px, 2.6vw, 34px) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-primary) !important;
  margin: 0 0 10px !important;
}
.section-desc {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: var(--text-secondary) !important;
  max-width: 640px;
}

/* ---------- Hero ---------- */
.hx-title { font-weight: 750; letter-spacing: -0.035em; }
.hx-title .hx-title-2 { color: var(--text-primary); }
.hx-eyebrow span:first-child { background: var(--ink); color: var(--on-ink); }
.hx-btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.hx-btn-primary:hover { background: var(--ink-hover); transform: none; }
.hx-proof b { font-family: inherit; font-weight: 700; font-variant-numeric: tabular-nums; }
.hx-launcher::before { display: none; }
.hx-launcher { box-shadow: 0 24px 60px -28px rgba(17, 24, 39, 0.35); }
.hx-id-btn { background: var(--ink); color: var(--on-ink); }

/* ---------- 统一按钮 ---------- */
.bento-btn-primary,
#matrixCardsView .bento-btn-primary {
  background: var(--ink) !important;
  color: var(--on-ink) !important;
  border: 1px solid var(--ink) !important;
  box-shadow: none !important;
  border-radius: 9px !important;
  transform: none !important;
}
.bento-btn-primary:hover,
#matrixCardsView .bento-btn-primary:hover {
  background: var(--ink-hover) !important;
  opacity: 1 !important;
}
.bento-btn-secondary {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 9px !important;
}
.bento-btn-secondary:hover {
  border-color: var(--text-tertiary) !important;
  color: var(--text-primary) !important;
  background: var(--bg-surface) !important;
}

/* ---------- 产品矩阵 ---------- */
.bento-card {
  border-color: var(--border-color) !important;
  box-shadow: none !important;
  background: var(--bg-surface) !important;
}
.bento-card:hover {
  transform: none !important;
  border-color: #C9CED6 !important;
  box-shadow: 0 10px 30px -18px rgba(17, 24, 39, 0.25) !important;
}
[data-theme="dark"] .bento-card:hover { border-color: #33495C !important; }
.bento-card::before, .bento-card::after { display: none !important; }
.bento-cat-tag {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--text-tertiary) !important;
}
.bento-card-title { letter-spacing: -0.01em; }
.bento-slogan { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
.bento-feature-pill {
  background: transparent !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}
/* 分组标题前的色块沿用 logo 的四色方块 */
.bento-group-label b { display: inline-flex; align-items: center; gap: 10px; font-size: 17px !important; }
.bento-group-label b::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--color-seahorse);
}
.bento-group-label[data-category="dev"] b::before { background: var(--color-pacer); }
.bento-group-label[data-category="tools"] b::before { background: var(--color-ip); }
.bento-group-label[data-category="fun"] b::before { background: var(--color-party); }
.bento-group-label span { font-size: 13px !important; }
.filter-tab.active {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08), 0 0 0 1px var(--border-color) !important;
}
[data-theme="dark"] .filter-tab.active { background: var(--bg-surface-elevated) !important; }

/* ---------- 定价 ---------- */
.pricing-card { box-shadow: none !important; }
.pricing-card.featured {
  border: 1.5px solid var(--ink) !important;
  box-shadow: 0 18px 40px -24px rgba(17, 24, 39, 0.35) !important;
  transform: none !important;
}
.foundation-card:hover { transform: none !important; }

/* ---------- 链接色 ---------- */
.hx-mega-foot a, .hx-l-foot a { color: var(--link); }

@media (max-width: 768px) {
  :root { --space-section-y: 64px; }
  .section-header-row, .section-header-center { margin-bottom: 28px !important; }
}

/* 顶栏注册、定价主按钮、定制咨询提交：与全站主按钮一致 */
#btnOpenRegisterModal,
.mobile-menu .btn-primary,
.pricing-btn.primary,
#btnSubmitCustomDev {
  background: var(--ink) !important;
  color: var(--on-ink) !important;
  border: 1px solid var(--ink) !important;
  box-shadow: none !important;
}
#btnOpenRegisterModal:hover,
.pricing-btn.primary:hover,
#btnSubmitCustomDev:hover { background: var(--ink-hover) !important; }
.pricing-btn.primary, .pricing-btn { border-radius: 10px !important; }
.pricing-popular-badge {
  background: var(--ink) !important;
  color: var(--on-ink) !important;
  box-shadow: none !important;
}
/* 手机上产品筛选标签会把页面撑宽（原有问题）：改为在自身范围内横向滚动 */
.section-header-row > * { min-width: 0; max-width: 100%; }
.matrix-controls { max-width: 100%; min-width: 0; }
.filter-tabs {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { flex-shrink: 0; }
