/* 首页品牌基线：蓝灰 / 白 / 浅灰；限定作用域，避免影响其他工作区。 */
@font-face {
  font-family: 'Home Chinese';
  src: local('PingFang SC'), local('Microsoft YaHei'), url('../fonts/noto-sans-sc-400.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.home-brand, .hw-modal {
  --hw-canvas: #f3f5f8;
  --hw-surface: #ffffff;
  --hw-soft: #f6f8fa;
  --hw-ink: #25364d;
  --hw-secondary: #586b80;
  --hw-muted: #637187;
  --hw-line: #e3e9ef;
  --hw-line-strong: #c8d4e0;
  --hw-accent: #506f93;
  --hw-accent-dark: #354f70;
  --hw-tint: #eaf0f6;
  --hw-glass: rgba(255, 255, 255, .84);
  --hw-green: #347967;
  --hw-green-bg: #edf6f1;
  --hw-amber: #946e32;
  --hw-amber-bg: #faf4e9;
  --hw-red: #b34f59;
  --hw-red-bg: #fbf0f1;
  --hw-shadow: 0 4px 20px rgba(40, 60, 85, .035);
  --hw-lift-shadow: 0 14px 36px rgba(40, 60, 85, .09);
  --hw-ease: cubic-bezier(.2, .8, .2, 1);
  color: var(--hw-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Home Chinese', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.home-brand {
  margin: 0;
  min-width: 320px;
  background: var(--hw-canvas);
  color: var(--hw-ink);
  color-scheme: light;
}
.home-brand *, .hw-modal * { box-sizing: border-box; }
.home-brand [hidden], .hw-modal [hidden] { display: none !important; }
.home-brand button, .home-brand input, .hw-modal button, .hw-modal input { font: inherit; }
.home-brand button, .hw-modal button { cursor: pointer; }
.home-brand button:disabled, .hw-modal button:disabled { opacity: .4; cursor: not-allowed; }
.home-brand a { color: inherit; text-decoration: none; }
.home-brand svg, .hw-modal svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.home-brand :focus-visible, .hw-modal :focus-visible { outline: 3px solid var(--hw-accent); outline-offset: 4px; }
/* 表单控件的聚焦层由自身边框 / box-shadow 绘制，避免与控件尺寸错位的外置 outline。 */
.home-brand :is(input, select, textarea):focus-visible, .hw-modal :is(input, select, textarea):focus-visible { outline: none !important; outline-offset: 0; }
.home-brand .hw-skip { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--hw-surface); border-radius: 10px; }
.home-brand .hw-skip:focus { top: 16px; }
.home-brand .hw-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.home-brand .hw-shell > .header-sticky-sentinel { position: absolute; top: 0; left: 0; }

/* 继续使用 nav.js 导航内容；首页单独采用浅色悬浮侧栏。 */
body.home-brand .header {
  position: sticky; top: 0; grid-area: 1 / 1; align-self: start; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  height: 100vh; width: auto; min-width: 0; padding: 28px 16px 18px; margin: 0;
  background: var(--hw-glass); border: 0; border-right: 1px solid var(--hw-line); border-radius: 0;
  box-shadow: none; overflow: hidden; z-index: 20;
}
body.home-brand .header::before, body.home-brand .header::after { display: none; }
body.home-brand .header-brand { display: block; padding: 0 8px 25px; border: 0; }
.home-brand .hw-brand-symbol { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 13px; color: var(--hw-surface); background: linear-gradient(140deg, #91a6bc, #4a6484); box-shadow: 0 5px 12px rgba(62, 85, 113, .2), inset 0 1px 1px rgba(255, 255, 255, .5); }
.home-brand .hw-brand-symbol svg { width: 25px; height: 25px; }
body.home-brand .header-brand h1 { margin: 0; padding: 0; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--hw-ink); background: none; -webkit-text-fill-color: currentColor; letter-spacing: -.03em; overflow-wrap: anywhere; }
.home-brand .hw-brand-label { display: block; margin-top: 3px; color: var(--hw-muted); font-size: 10px; letter-spacing: .2em; }
body.home-brand .header-right { display: flex; flex-direction: column; flex: 1; min-height: 0; align-items: stretch; gap: 18px; margin: 0; }
body.home-brand .user-info { display: block; margin: 0; padding: 10px 12px; border: 1px solid var(--hw-line); border-radius: 10px; font-size: 12px; line-height: 1.6; color: var(--hw-secondary); background: var(--hw-soft); white-space: normal; overflow-wrap: anywhere; }
body.home-brand .user-info::before { display: none; }
body.home-brand .nav { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 0 0 14px; overflow-x: hidden; overflow-y: auto; min-height: 0; scrollbar-width: thin; }
body.home-brand .nav::before { content: '工作空间'; display: block; margin: 0 12px 7px; font-size: 11px; letter-spacing: .05em; color: var(--hw-muted); }
body.home-brand .nav-btn, body.home-brand .nav-dropdown-toggle, .hw-mobile-navigation .nav-btn, .hw-mobile-navigation .nav-dropdown-toggle {
  display: flex; gap: 9px; align-items: center; min-height: 43px; padding: 9px 12px; border: 1px solid transparent; border-radius: 10px;
  color: var(--hw-secondary); background: transparent; box-shadow: none; text-decoration: none; font-size: 13px; font-weight: 500; transition: color 180ms, background 180ms, transform 180ms;
}
body.home-brand .nav-btn::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border: 1px solid var(--hw-line-strong); border-radius: 2px; margin-right: 5px; }
body.home-brand .nav-btn.active, .hw-mobile-navigation .nav-btn.active { color: var(--hw-accent-dark); background: var(--hw-tint); font-weight: 650; border-color: var(--hw-line); }
body.home-brand .nav-btn.active::before { background: var(--hw-accent); border-color: var(--hw-accent); }
body.home-brand .nav-btn:hover, body.home-brand .nav-dropdown-toggle:hover { color: var(--hw-accent-dark); background: var(--hw-tint); transform: translateX(2px); }
body.home-brand .nav-dropdown { display: block; }
body.home-brand .nav-dropdown-menu, .hw-mobile-navigation .nav-dropdown-menu { position: static; display: block; background: transparent; box-shadow: none; padding: 0 0 0 20px; border: 0; }
body.home-brand .nav-dropdown-item, .hw-mobile-navigation .nav-dropdown-item { display: block; padding: 8px 12px; font-size: 12px; color: var(--hw-secondary); text-decoration: none; }
.home-brand .hw-sidebar-note { padding: 16px 10px 0; border-top: 1px solid var(--hw-line); display: flex; align-items: center; gap: 10px; color: var(--hw-muted); font-size: 11px; }
.home-brand .hw-sidebar-note span { display: block; }
.home-brand .hw-sidebar-note small { font-size: 10px; letter-spacing: .12em; }
.home-brand .hw-sidebar-note svg { color: var(--hw-accent); }
.home-brand #home-workspace { min-width: 0; grid-area: 1 / 2; }

/* 允许旧工作区只叠加 home-brand 类来调用同一份导航；覆盖其历史 sticky 深色规则。 */
body.home-brand.wxt-v2 .header.is-sticky {
  background: var(--hw-glass);
  border-right-color: var(--hw-line);
  box-shadow: none;
}
body.home-brand.wxt-v2 .header.is-sticky .user-info {
  background: var(--hw-soft);
  color: var(--hw-secondary);
}
body.home-brand.wxt-v2 .header.is-sticky .nav-btn {
  background: transparent;
  color: var(--hw-secondary);
}
body.home-brand.wxt-v2 .header.is-sticky .nav-btn:hover {
  background: var(--hw-tint);
  color: var(--hw-accent-dark);
}
body.home-brand.wxt-v2 .header.is-sticky .nav-btn.active {
  background: var(--hw-tint);
  color: var(--hw-accent-dark);
}
.hw-topbar { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 38px; border-bottom: 1px solid var(--hw-line); background: var(--hw-glass); }
.hw-breadcrumb, .hw-top-actions { display: flex; align-items: center; gap: 18px; font-size: 12px; }
.hw-workspace-label, .hw-divider, .hw-date { color: var(--hw-muted); }
.hw-breadcrumb strong { color: var(--hw-ink); font-weight: 550; }
.hw-icon-btn { display: inline-flex; width: 36px; height: 36px; padding: 8px; align-items: center; justify-content: center; position: relative; color: var(--hw-secondary); border: 1px solid var(--hw-line); background: var(--hw-surface); border-radius: 9px; }
.hw-icon-btn:hover { border-color: var(--hw-line-strong); background: var(--hw-tint); }
.hw-top-actions .hw-icon-btn { border: 0; background: transparent; }
#home-alert-dot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--hw-amber); right: 7px; top: 6px; }
.hw-menu { display: none; }
.hw-content { width: 100%; max-width: none; margin: 0; padding: 28px clamp(24px, 4vw, 64px) 0; }
.hw-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; position: relative; min-height: 322px; margin-bottom: 30px; padding: 30px 38px; border: 1px solid var(--hw-line); border-radius: 22px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 78% 60%, #e0e8f3 0, transparent 57%), linear-gradient(115deg, #ffffff 10%, #f5f8fb 64%, #e9eef5); }
.hw-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .2; background-image: radial-gradient(#8ba1b8 .7px, transparent .7px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 30%, black 100%); }
.hw-hero-copy { position: relative; z-index: 2; }
.hw-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--hw-secondary); font-size: 11px; letter-spacing: .1em; }
.hw-eyebrow i, .hw-footer i { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: var(--hw-accent); }
.hw-hero h1 { margin: 15px 0 12px; font-size: clamp(32px, 3.1vw, 48px); line-height: 1.25; font-weight: 700; letter-spacing: -.055em; }
.hw-hero h1 span { color: var(--hw-accent); }
.hw-hero p { margin: 0; color: var(--hw-secondary); font-size: 13px; line-height: 1.9; }
.hw-mobile-break { display: none; }
.hw-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.hw-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 7px; min-height: 37px; padding: 8px 13px; border: 1px solid var(--hw-line); border-radius: 9px; color: var(--hw-secondary); background: var(--hw-surface); font-size: 12px; font-weight: 550; text-decoration: none; transition: transform 180ms var(--hw-ease), box-shadow 180ms, background 180ms; }
.hw-btn svg { width: 16px; height: 16px; }
.hw-btn:hover { background: var(--hw-soft); border-color: var(--hw-line-strong); box-shadow: var(--hw-shadow); transform: translateY(-1px); }
.hw-btn:active { transform: translateY(1px); }
.hw-btn.hw-primary { background: linear-gradient(145deg, #6683a3, #425e80); color: #fff; border-color: #526e8e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 9px rgba(59, 82, 111, .12); }
.hw-btn.hw-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px rgba(59, 82, 111, .22); }
.home-brand a.hw-hero-link { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; color: var(--hw-secondary); }
.hw-hero-link svg { width: 16px; height: 16px; transition: transform 180ms; }
.hw-hero-link:hover svg { transform: translateX(4px); }
.hw-hero-caption { display: block; margin-top: 12px; font-size: 10px; color: var(--hw-muted); letter-spacing: .03em; }

/* 参考中心 Token 的层叠与呼吸，使用本地 CSS 图形表达系统连接。 */
.hw-orbit { position: relative; width: 100%; height: 278px; max-width: 420px; margin: auto; perspective: 800px; }
.hw-orbit-halo { position: absolute; width: 240px; height: 240px; left: calc(50% - 120px); top: 20px; background: radial-gradient(circle, rgba(131, 159, 195, .32), transparent 68%); }
.hw-orbit-ring { position: absolute; width: 252px; height: 252px; left: calc(50% - 126px); top: 0; border: 1px solid rgba(133, 160, 191, .34); border-radius: 50%; }
.hw-ring-one { transform: rotateX(56deg) rotateZ(-28deg); box-shadow: 0 1px 1px rgba(255, 255, 255, .9); }
.hw-ring-two { transform: rotateX(56deg) rotateZ(36deg); width: 302px; height: 302px; left: calc(50% - 151px); top: -25px; border-color: rgba(137, 164, 194, .22); }
.hw-ring-three { width: 195px; height: 195px; left: calc(50% - 97.5px); top: 25px; border: 1px dashed rgba(133, 160, 191, .25); }
.hw-ring-three::before { content: ''; position: absolute; top: 4px; left: 58px; width: 7px; height: 7px; border-radius: 50%; background: #8aa7c8; box-shadow: 0 0 14px #b4c7df; }
.hw-orbit-core { display: flex; position: absolute; width: 139px; height: 151px; top: 49px; left: calc(50% - 69.5px); align-items: center; justify-content: center; flex-direction: column; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .98); background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(216, 228, 241, .75)); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .45), 8px 16px 30px rgba(74, 104, 145, .17); transform: rotate(-7deg); }
.hw-core-mark { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 19px; background: linear-gradient(135deg, #809bb9, #405e81); color: white; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), 0 8px 13px rgba(49, 78, 111, .2); }
.hw-core-mark svg { width: 40px; height: 40px; stroke-width: 1.3; }
.hw-orbit-core > span { margin-top: 10px; color: #4a6586; font-weight: 650; font-size: 11px; }
.hw-orbit-core > small { font-size: 6px; letter-spacing: .2em; color: #7b91ac; }
.hw-orbit-chip { display: flex; position: absolute; gap: 8px; align-items: center; padding: 10px 13px; border: 1px solid rgba(255, 255, 255, .98); border-radius: 12px; background: var(--hw-glass); color: #596e89; box-shadow: 0 9px 22px rgba(63, 89, 123, .07); font-size: 10px; font-weight: 600; }
.hw-orbit-chip svg { width: 15px; height: 15px; }
.hw-chip-one { top: 25px; left: 3%; transform: rotate(-5deg); }
.hw-chip-two { top: 52px; right: -1%; transform: rotate(5deg); }
.hw-chip-three { bottom: 43px; left: 2%; transform: rotate(-4deg); }
.hw-chip-four { bottom: 20px; right: 4%; transform: rotate(4deg); }
.hw-orbit-platform { position: absolute; width: 200px; height: 45px; left: calc(50% - 100px); bottom: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); background: linear-gradient(180deg, rgba(222, 232, 244, .5), rgba(190, 207, 228, .3)); box-shadow: 0 9px 0 -3px rgba(173, 195, 220, .14), 0 17px 0 -7px rgba(159, 182, 208, .13); z-index: -1; }
.hw-overview-head, .hw-module-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 16px; }
.hw-kicker { font-size: 9px; letter-spacing: .17em; color: var(--hw-muted); font-weight: 600; }
.hw-overview-head h2, .hw-module-heading h2 { margin: 3px 0 0; font-size: 20px; font-weight: 650; letter-spacing: -.04em; }
.hw-refresh { display: flex; align-items: center; gap: 12px; }
#last-refresh { font-size: 10px; color: var(--hw-muted); }
.hw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-brand a.hw-kpi { display: block; min-width: 0; padding: 19px 20px 16px; border: 1px solid var(--hw-line); border-radius: 14px; background: var(--hw-surface); box-shadow: var(--hw-shadow); color: var(--hw-ink); transition: border-color 180ms, transform 180ms; }
.hw-kpi:hover { transform: translateY(-3px); border-color: var(--hw-line-strong); }
.hw-kpi > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--hw-secondary); font-size: 12px; }
.hw-kpi > div > svg { color: var(--hw-muted); width: 17px; height: 17px; }
.hw-kpi > strong { display: block; margin: 13px 0 15px; font-size: clamp(22px, 2vw, 32px); line-height: 1.1; font-weight: 650; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hw-kpi .hw-kpi-foot { font-size: 10px; color: var(--hw-muted); }
.hw-kpi [data-kpi-note] { color: var(--hw-accent); }
.hw-kpi[data-state="error"] [data-kpi-note] { color: var(--hw-red); }
.hw-kpi[data-state="warn"] [data-kpi-note] { color: var(--hw-amber); }
.hw-context-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin: 18px 0 32px; }
.hw-panel { background: var(--hw-surface); border: 1px solid var(--hw-line); border-radius: 14px; padding: 18px 20px; min-width: 0; }
.hw-panel-head, .hw-panel-title { display: flex; align-items: center; gap: 8px; }
.hw-panel-head { justify-content: space-between; margin-bottom: 16px; }
.hw-panel-title > svg { width: 16px; height: 16px; color: var(--hw-secondary); }
.hw-panel-title h2 { font-size: 13px; font-weight: 650; margin: 0; }
.hw-count { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; font-size: 10px; color: var(--hw-muted); background: var(--hw-soft); vertical-align: middle; font-weight: 500; }
.hw-module-heading .hw-count { margin-left: 8px; }
.hw-text-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0; min-height: 28px; border: 0; background: transparent; color: var(--hw-secondary); font-size: 10px; }
.hw-text-btn:hover { color: var(--hw-accent-dark); }
.hw-text-btn svg { width: 13px; height: 13px; }
.hw-empty-note { margin: 0; color: var(--hw-muted); font-size: 12px; }
.hw-clear-state { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.hw-clear-state > svg { padding: 7px; width: 34px; height: 34px; border-radius: 50%; color: var(--hw-green); background: var(--hw-green-bg); }
.hw-clear-state strong { display: block; font-size: 12px; font-weight: 500; }
.hw-clear-state span { display: block; margin-top: 3px; font-size: 10px; color: var(--hw-muted); }
.hw-attention-items { display: flex; flex-wrap: wrap; gap: 8px; max-height: 155px; overflow-y: auto; padding-right: 2px; }
.home-brand .hw-attention-item { display: flex; align-items: center; flex: 1 1 150px; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--hw-soft); }
.hw-attention-item > i, .hw-health-items i { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--hw-amber); }
.hw-attention-item[data-state="error"] > i { background: var(--hw-red); }
.hw-attention-item > span { flex: 1; }
.hw-attention-item strong { display: block; font-size: 11px; font-weight: 550; }
.hw-attention-item small { display: block; font-size: 10px; color: var(--hw-muted); }
.hw-attention-item svg { width: 13px; height: 13px; color: var(--hw-muted); }
.hw-health-items { display: flex; justify-content: space-between; gap: 10px; }
.hw-health-items > div { flex: 1; min-width: 0; border-right: 1px solid var(--hw-line); }
.hw-health-items > div:last-child { border: 0; }
.hw-health-items span { display: block; color: var(--hw-muted); font-size: 10px; margin-bottom: 7px; }
.hw-health-items strong { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; flex-wrap: wrap; }
.hw-health-items i[data-state="ok"] { background: var(--hw-green); }
.hw-module-actions, .hw-view-actions { display: flex; align-items: center; gap: 8px; }
.hw-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hw-filters { display: flex; gap: 5px; padding: 3px; min-width: 0; flex-wrap: wrap; }
.hw-filters button { padding: 6px 13px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; color: var(--hw-muted); background: transparent; white-space: nowrap; transition: color 160ms, background 160ms; }
.hw-filters button[aria-pressed="true"] { color: var(--hw-accent-dark); background: var(--hw-surface); border-color: var(--hw-line); box-shadow: 0 2px 3px rgba(30, 50, 75, .03); font-weight: 600; }
.hw-search { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 36px; width: 174px; min-width: 0; border: 1px solid var(--hw-line); border-radius: 9px; background: var(--hw-surface); color: var(--hw-muted); }
.hw-search > svg { width: 15px; height: 15px; }
.hw-search input { width: 100%; min-width: 0; border: 0; padding: 6px 0; background: transparent; color: var(--hw-ink); font-size: 11px; outline-offset: 1px; }
.hw-search input::placeholder { color: var(--hw-muted); }
.hw-search:focus-within { border-color: var(--hw-accent); box-shadow: 0 0 0 3px var(--hw-tint); }
.hw-search input:focus { box-shadow: none; }
.hw-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.hw-card { min-width: 0; display: flex; flex-direction: column; position: relative; border: 1px solid var(--hw-line); border-radius: 16px; background: var(--hw-surface); box-shadow: var(--hw-shadow); transition: border-color 240ms, box-shadow 240ms, transform 240ms var(--hw-ease); isolation: isolate; }
.hw-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; background: radial-gradient(280px circle at var(--hw-pointer-x, 50%) var(--hw-pointer-y, 0%), rgba(173, 192, 216, .18), transparent 70%); transition: opacity 260ms; }
.hw-card:hover { border-color: var(--hw-line-strong); box-shadow: var(--hw-lift-shadow); transform: translateY(-3px); }
.hw-card:hover::before { opacity: 1; }
.home-brand .hw-card-link { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 21px 20px 17px; border-radius: inherit; color: var(--hw-ink); }
.hw-card-head { display: flex; align-items: center; gap: 10px; }
.hw-module-icon { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 11px; color: var(--hw-accent); background: linear-gradient(145deg, var(--hw-soft), var(--hw-tint)); border: 1px solid var(--hw-line); flex-shrink: 0; }
.hw-module-icon svg { width: 19px; height: 19px; }
.hw-card-titles { flex: 1; min-width: 0; }
.hw-card-titles h3 { font-size: 13px; font-weight: 650; margin: 0 0 3px; }
.hw-card-titles > span { font-size: 9px; color: var(--hw-muted); }
.hw-badge { font-size: 9px; padding: 2px 6px; white-space: nowrap; border-radius: 5px; background: var(--hw-soft); color: var(--hw-muted); }
.hw-card[data-state="ok"] .hw-badge { color: var(--hw-green); background: var(--hw-green-bg); }
.hw-card[data-state="warn"] .hw-badge { color: var(--hw-amber); background: var(--hw-amber-bg); }
.hw-card[data-state="error"] .hw-badge { color: var(--hw-red); background: var(--hw-red-bg); }
.hw-card-value { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin: 25px 0 20px; min-height: 36px; }
.hw-card-value strong { font-size: 29px; font-weight: 600; line-height: 1.15; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 100%; }
.hw-card-value > span { font-size: 10px; color: var(--hw-muted); }
.hw-card-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-bottom: 20px; }
.hw-card-metrics > div { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.hw-card-metrics span { font-size: 10px; color: var(--hw-muted); }
.hw-card-metrics strong { font-size: 12px; font-weight: 550; color: var(--hw-secondary); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hw-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--hw-line); }
.hw-card-foot > span:first-child { color: var(--hw-muted); font-size: 9px; line-height: 1.7; }
.hw-card-arrow { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; flex-shrink: 0; color: var(--hw-secondary); background: var(--hw-soft); border-radius: 50%; transition: transform 180ms; }
.hw-card-arrow svg { width: 12px; height: 12px; }
.hw-card:hover .hw-card-arrow { transform: translateX(3px); color: var(--hw-accent-dark); }
.hw-card-retry { align-self: start; margin: 0 20px 12px; color: var(--hw-accent); }
.hw-card-edit { display: flex; align-items: center; gap: 4px; padding: 7px 10px; background: var(--hw-tint); border-bottom: 1px dashed var(--hw-line-strong); border-radius: 15px 15px 0 0; }
.hw-card-edit .hw-icon-btn { width: 30px; height: 30px; border-color: transparent; background: transparent; padding: 6px; }
.hw-edit-position { color: var(--hw-accent); margin-right: auto; font-size: 11px; }
.hw-card-edit .hw-drag-handle { cursor: grab; }
.hw-editing .hw-card { border-style: dashed; }
.hw-editing .hw-card:hover { transform: none; }
.hw-editing .hw-card-link { cursor: default; }
.hw-card.is-dragging { opacity: .4; }
.hw-card.is-drop-target { outline: 2px solid var(--hw-accent); outline-offset: 3px; }
.hw-editbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--hw-line-strong); border-radius: 12px; background: var(--hw-tint); }
.hw-editbar > div { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--hw-secondary); }
.hw-editbar > div:first-child { flex: 1; }
.hw-editbar .hw-text-btn { white-space: nowrap; }
.hw-grid-empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--hw-line-strong); border-radius: 16px; color: var(--hw-muted); }
.hw-grid-empty > svg { width: 30px; height: 30px; }
.hw-grid-empty h3 { font-size: 17px; color: var(--hw-secondary); margin-bottom: 8px; }
.hw-grid-empty p { font-size: 12px; margin-bottom: 22px; }
.hw-grid-empty .hw-btn { margin: 4px; }
.hw-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 22px 0; margin-top: 15px; border-bottom: 1px solid var(--hw-line); }
.hw-shortcuts > span { font-size: 10px; color: var(--hw-muted); margin-right: 5px; }
.home-brand .hw-shortcuts a { display: inline-flex; align-items: center; gap: 6px; color: var(--hw-secondary); font-size: 11px; }
.hw-shortcuts a:hover { color: var(--hw-accent-dark); }
.hw-shortcuts svg { width: 12px; height: 12px; }
.hw-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 0 26px; font-size: 9px; color: var(--hw-muted); }
.hw-footer span:first-child { display: flex; align-items: center; gap: 7px; }
.hw-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
[data-density="compact"] .hw-card-link { padding: 16px; }
[data-density="compact"] .hw-card-value { margin: 16px 0 12px; }
[data-density="compact"] .hw-card-metrics { gap: 7px; margin-bottom: 12px; }
[data-density="compact"] .hw-card-value strong { font-size: 25px; }

/* 所有浮层继续交由 ModalManager 管理焦点、滚动、Esc 和遮罩。 */
.hw-modal .modal { background: var(--hw-surface); color: var(--hw-ink); border-color: var(--hw-line); --modal-width: 600px; }
.hw-modal .modal-body { background: var(--hw-surface); }
.hw-modal .modal-header { background: var(--hw-surface); border-bottom: 1px solid var(--hw-line); color: var(--hw-ink); }
.hw-modal .modal-header__text { color: var(--hw-ink); }
.hw-modal .modal-close { color: var(--hw-secondary); border-color: var(--hw-line); background: var(--hw-soft); }
.hw-library-intro { margin-top: 0; color: var(--hw-secondary); font-size: 12px; line-height: 1.8; }
.hw-library .hw-search { width: 100%; margin-bottom: 15px; height: 42px; }
.hw-library-list { display: grid; gap: 8px; }
.hw-library-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--hw-line); border-radius: 12px; }
.hw-library-item > div { flex: 1; }
.hw-library-item strong { display: block; font-size: 13px; font-weight: 600; }
.hw-library-item small { display: block; font-size: 10px; color: var(--hw-muted); }
.hw-library-item [aria-pressed="true"] { background: var(--hw-tint); color: var(--hw-accent); border-color: var(--hw-line-strong); }
.hw-library-status { font-size: 11px; color: var(--hw-secondary); min-height: 20px; }
.hw-library-done { width: 100%; }
body.home-brand .hw-mobile-navigation { display: flex; flex-direction: column; gap: 5px; }
body.home-brand .hw-mobile-navigation :is(.nav-btn, .nav-dropdown-toggle, .nav-dropdown-item) { min-height: 44px; }
body.home-brand .hw-mobile-navigation .nav-btn { background: var(--hw-soft); }
.hw-mobile-navigation .nav-separator { display: none; }
body.home-brand .hw-nav-modal,
body.wxt-v2 .hw-nav-modal,
body.compare-fresh .hw-nav-modal {
  align-items: stretch !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  padding: 0 !important;
}
body.home-brand .hw-nav-modal .modal,
body.wxt-v2 .hw-nav-modal .modal-secondary-dialog,
body.compare-fresh .hw-nav-modal .modal-secondary-dialog {
  --modal-width: 320px;
  align-self: stretch;
  width: min(320px, calc(100vw - 48px)) !important;
  max-width: min(320px, calc(100vw - 48px)) !important;
  min-width: 0;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border-radius: 0 18px 18px 0 !important;
  border-left: 0 !important;
  border-right: 1px solid var(--hw-line) !important;
  background: var(--hw-surface) !important;
  color: var(--hw-ink) !important;
  box-shadow: 14px 0 40px rgba(15, 23, 42, .18) !important;
}
body.home-brand .hw-nav-modal .modal-header,
body.wxt-v2 .hw-nav-modal .modal-secondary-dialog > .modal-header,
body.compare-fresh .hw-nav-modal .modal-secondary-dialog > .modal-header {
  flex: 0 0 auto;
  min-height: 64px;
  padding: max(16px, env(safe-area-inset-top)) 18px 14px !important;
  border-bottom: 1px solid var(--hw-line) !important;
  background: var(--hw-surface) !important;
  color: var(--hw-ink) !important;
}
body.home-brand .hw-nav-modal .modal-close,
body.wxt-v2 .hw-nav-modal .modal-secondary-dialog .modal-close,
body.compare-fresh .hw-nav-modal .modal-secondary-dialog .modal-close {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border: 1px solid var(--hw-line) !important;
  border-radius: 10px !important;
  background: var(--hw-soft) !important;
  color: var(--hw-secondary) !important;
}
body.home-brand .hw-nav-modal .modal-body,
body.wxt-v2 .hw-nav-modal .modal-secondary-dialog > .modal-body,
body.compare-fresh .hw-nav-modal .modal-secondary-dialog > .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 16px 14px max(20px, env(safe-area-inset-bottom)) !important;
  background: var(--hw-surface) !important;
  color: var(--hw-secondary) !important;
}
.hw-nav-modal .hw-mobile-navigation {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hw-nav-modal .hw-mobile-navigation :is(.nav-btn, .nav-dropdown-toggle, .nav-dropdown-item) {
  min-height: 44px;
}
.hw-nav-modal.modal-overlay--nested.active > .modal,
body.wxt-v2 .hw-nav-modal.modal-overlay--nested.active > .modal-secondary-dialog,
body.compare-fresh .hw-nav-modal.modal-overlay--nested.active > .modal-secondary-dialog,
.hw-nav-modal:not(.modal-overlay--nested).active > .modal,
body.wxt-v2 .hw-nav-modal:not(.modal-overlay--nested).active > .modal-secondary-dialog,
body.compare-fresh .hw-nav-modal:not(.modal-overlay--nested).active > .modal-secondary-dialog {
  animation: hw-nav-drawer-in 260ms cubic-bezier(.2, .75, .25, 1) forwards !important;
}
.hw-nav-modal.modal-overlay--nested.closing > .modal,
body.wxt-v2 .hw-nav-modal.modal-overlay--nested.closing > .modal-secondary-dialog,
body.compare-fresh .hw-nav-modal.modal-overlay--nested.closing > .modal-secondary-dialog,
.hw-nav-modal:not(.modal-overlay--nested).closing > .modal,
body.wxt-v2 .hw-nav-modal:not(.modal-overlay--nested).closing > .modal-secondary-dialog,
body.compare-fresh .hw-nav-modal:not(.modal-overlay--nested).closing > .modal-secondary-dialog {
  animation: hw-nav-drawer-out 200ms cubic-bezier(.4, 0, 1, 1) forwards !important;
}
@keyframes hw-nav-drawer-in {
  from { opacity: .94; transform: translateX(-100%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hw-nav-drawer-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: .94; transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  body.home-brand .hw-nav-modal.active > .modal,
  body.home-brand .hw-nav-modal.closing > .modal,
  body.wxt-v2 .hw-nav-modal.modal-overlay--nested.active > .modal-secondary-dialog,
  body.wxt-v2 .hw-nav-modal.modal-overlay--nested.closing > .modal-secondary-dialog,
  body.wxt-v2 .hw-nav-modal:not(.modal-overlay--nested).active > .modal-secondary-dialog,
  body.wxt-v2 .hw-nav-modal:not(.modal-overlay--nested).closing > .modal-secondary-dialog,
  body.compare-fresh .hw-nav-modal.modal-overlay--nested.active > .modal-secondary-dialog,
  body.compare-fresh .hw-nav-modal.modal-overlay--nested.closing > .modal-secondary-dialog,
  body.compare-fresh .hw-nav-modal:not(.modal-overlay--nested).active > .modal-secondary-dialog,
  body.compare-fresh .hw-nav-modal:not(.modal-overlay--nested).closing > .modal-secondary-dialog {
    animation: none !important;
    transform: none !important;
  }
}

/* 动效：标准档位保留入场与交互；丰富档位增加环境呼吸与轨道转动。 */
html[data-effects-entry="on"] .hw-hero-copy { animation: hw-enter 650ms var(--hw-ease) both; }
html[data-effects-entry="on"] .hw-orbit { animation: hw-enter 900ms var(--hw-ease) both; }
html[data-effects-ambient="on"] .hw-orbit-core { animation: hw-core-breathe 4.8s ease-in-out infinite; }
html[data-effects-ambient="on"] .hw-ring-three { animation: hw-orbit-turn 32s linear infinite; }
html[data-effects-ambient="on"] .hw-orbit-halo { animation: hw-glow 5.8s ease-in-out infinite alternate; }
html[data-effects-ambient="on"] .hw-chip-one, html[data-effects-ambient="on"] .hw-chip-three { animation: hw-chip-float 5s ease-in-out infinite alternate; }
html[data-effects-ambient="on"] .hw-chip-two, html[data-effects-ambient="on"] .hw-chip-four { animation: hw-chip-float 6s -2s ease-in-out infinite alternate-reverse; }
.hw-refresh-btn.is-loading svg { animation: hw-orbit-turn 1s linear infinite; }
.hw-paused *, .hw-paused *::before, .hw-paused *::after { animation-play-state: paused !important; }
@keyframes hw-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hw-core-breathe { 0%, 100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-8px) rotate(-4deg); } }
@keyframes hw-orbit-turn { to { transform: rotate(360deg); } }
@keyframes hw-glow { from { opacity: .6; transform: scale(.95); } to { opacity: 1; transform: scale(1.08); } }
@keyframes hw-chip-float { from { transform: translateY(0); } to { transform: translateY(-6px); } }
html[data-effects-interaction="off"] .hw-card:hover, html[data-effects-interaction="off"] .hw-kpi:hover, html[data-effects-interaction="off"] .hw-btn:hover { transform: none; }
html[data-effects-interaction="off"] .hw-card::before { display: none; }
html[data-effects="off"] .home-brand *, html[data-effects="reduced"] .home-brand * { animation: none !important; transition: none !important; }

@media (min-width: 1600px) { .hw-module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1280px) {
  .home-brand .hw-shell { grid-template-columns: 194px minmax(0, 1fr); }
  .hw-topbar { padding: 16px 26px; }
  .hw-content { padding: 24px 26px 0; }
  .hw-hero { padding: 26px; }
  .hw-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-context-grid { grid-template-columns: 1.1fr 1fr; }
  .hw-panel { padding: 16px; }
  .hw-orbit-chip { padding: 8px 10px; }
  .hw-chip-two { right: -5%; }
  .hw-filters { gap: 1px; }
  .hw-filters button { padding: 6px 10px; }
}
@media (max-width: 1024px) {
  .home-brand .hw-shell { grid-template-columns: 180px minmax(0, 1fr); }
  body.home-brand .header { padding: 24px 10px 16px; }
  .hw-topbar { padding: 14px 20px; min-height: 68px; }
  .hw-content { padding: 20px 20px 0; }
  .hw-hero { min-height: 290px; padding: 24px; grid-template-columns: 1.1fr .9fr; }
  .hw-orbit { transform: scale(.84); transform-origin: center; }
  .hw-orbit-chip { display: none; }
  .hw-hero-actions { gap: 12px; }
  .hw-hero h1 { font-size: 33px; }
  .hw-kpis { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-kpi > strong { font-size: 28px; }
  .hw-context-grid { grid-template-columns: 1fr; gap: 12px; }
  .hw-filterbar { flex-wrap: wrap; }
  .hw-view-actions { margin-left: auto; }
  .hw-search { width: 190px; }
  .hw-editbar { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .home-brand .hw-shell { display: block; }
  body.home-brand .header { display: none; }
  .hw-menu { display: inline-flex; }
  .hw-topbar { position: sticky; top: 0; z-index: 20; min-height: 64px; padding: 10px 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .hw-breadcrumb { gap: 12px; }
  .hw-top-actions { gap: 6px; }
  .hw-content { padding: 18px 14px 0; }
  .hw-hero { grid-template-columns: 1fr 1fr; }
  .hw-orbit { transform: none; }
  .hw-hero-link { min-height: 40px; }
  .hw-icon-btn { width: 42px; height: 42px; }
  .hw-btn { min-height: 42px; }
  .hw-card-edit .hw-icon-btn { width: 42px; height: 42px; }
  .hw-filters button { min-height: 42px; }
  .hw-text-btn { min-height: 36px; }
  .hw-health-items { padding: 4px 0 8px; }
  .hw-attention, .hw-module-heading { scroll-margin-top: 88px; }
  #modules-title { scroll-margin-top: 88px; }
}
@media (max-width: 640px) {
  .hw-topbar { margin: 10px 12px 0; padding: 8px 10px; border: 1px solid var(--hw-line); border-radius: 16px; min-height: 60px; top: 8px; box-shadow: var(--hw-shadow); }
  .hw-workspace-label, .hw-divider, .hw-date { display: none; }
  .hw-breadcrumb strong { font-size: 14px; }
  .hw-content { padding: 16px 14px 0; }
  .hw-hero { display: flex; flex-direction: column; align-items: stretch; padding: 25px 24px 0; margin-bottom: 24px; border-radius: 18px; }
  .hw-hero-copy { text-align: left; }
  .hw-hero h1 { font-size: 36px; margin-top: 12px; }
  .hw-hero p { font-size: 12px; }
  .hw-mobile-break { display: block; }
  .hw-hero-actions { gap: 15px; margin-top: 17px; }
  .hw-hero-link { font-size: 11px !important; }
  .hw-hero-caption { display: none; }
  .hw-orbit { height: 228px; max-width: 340px; margin-top: 16px; }
  .hw-orbit-core { top: 35px; width: 117px; height: 127px; left: calc(50% - 58.5px); border-radius: 24px; }
  .hw-core-mark { width: 50px; height: 50px; border-radius: 15px; }
  .hw-core-mark svg { width: 33px; height: 33px; }
  .hw-orbit-core > span { margin-top: 7px; font-size: 10px; }
  .hw-orbit-ring { top: -26px; }
  .hw-ring-three { top: 3px; }
  .hw-orbit-platform { bottom: 23px; width: 178px; left: calc(50% - 89px); }
  .hw-orbit-chip { display: flex; font-size: 9px; padding: 6px 8px; gap: 5px; border-radius: 9px; }
  .hw-orbit-chip svg { width: 13px; height: 13px; }
  .hw-chip-one { left: -2%; top: 15px; }
  .hw-chip-two { right: -2%; top: 52px; }
  .hw-chip-three { left: -2%; bottom: 50px; }
  .hw-chip-four { right: -2%; bottom: 20px; }
  .hw-overview-head { align-items: end; gap: 5px; }
  .hw-overview-head h2, .hw-module-heading h2 { font-size: 18px; }
  .hw-kicker { font-size: 8px; }
  .hw-refresh { flex-direction: column-reverse; align-items: flex-end; gap: 4px; }
  #last-refresh { font-size: 8px; max-width: 155px; text-align: right; }
  .hw-refresh-btn { min-height: 34px; padding: 6px 9px; font-size: 10px; }
  .home-brand a.hw-kpi { padding: 15px 14px 12px; border-radius: 12px; }
  .hw-kpi > div { font-size: 11px; }
  .hw-kpi > strong { font-size: 24px; margin: 15px 0; }
  .hw-kpi .hw-kpi-foot { font-size: 8px; gap: 4px; flex-wrap: wrap; }
  .hw-context-grid { margin: 14px 0 26px; }
  .hw-panel { padding: 15px; }
  .hw-panel-head { margin-bottom: 10px; }
  .hw-module-heading { flex-wrap: wrap; gap: 12px; }
  .hw-module-actions { gap: 5px; }
  .hw-module-actions .hw-btn { min-height: 36px; padding: 7px 9px; font-size: 10px; }
  .hw-module-actions svg { width: 13px; height: 13px; }
  .hw-filterbar { gap: 8px; margin-bottom: 14px; }
  .hw-filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; width: 100%; scrollbar-width: none; }
  .hw-filters button { flex: 1; padding: 5px 9px; font-size: 11px; min-height: 35px; }
  .hw-view-actions { width: 100%; }
  .hw-search { width: auto; flex: 1; height: 40px; }
  .hw-module-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-brand .hw-card-link { padding: 19px; }
  .hw-card-titles h3 { font-size: 14px; }
  .hw-card-titles > span { font-size: 10px; }
  .hw-card-value { margin: 22px 0 18px; }
  .hw-card-value strong { font-size: 30px; }
  .hw-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hw-card-metrics > div { padding: 9px 11px; background: var(--hw-soft); border-radius: 8px; }
  .hw-card-metrics strong { font-size: 13px; }
  .hw-card-foot > span:first-child { font-size: 10px; }
  .hw-card .hw-badge { font-size: 10px; }
  .hw-editbar { position: sticky; top: 78px; z-index: 10; background: var(--hw-tint); }
  .hw-editbar > div:first-child { flex-basis: 100%; font-size: 10px; }
  .hw-editbar > div:last-child { width: 100%; justify-content: flex-end; }
  .hw-editbar > div:last-child > :first-child { margin-right: auto; }
  .hw-shortcuts { gap: 12px 16px; }
  .hw-shortcuts a { min-height: 32px; }
  .hw-shortcuts > span { width: 100%; }
  .hw-footer { flex-direction: column; align-items: flex-start; font-size: 9px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .hw-library-item { gap: 9px; padding: 9px; }
  .hw-library-item small { font-size: 9px; }
  .hw-library .hw-module-icon { width: 32px; height: 32px; }
  .hw-library .hw-btn { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-brand *, .home-brand *::before, .home-brand *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hw-card:hover, .hw-kpi:hover, .hw-btn:hover { transform: none; }
}
/* 手机版沿用 M.theme 的主题选择，首页共享令牌随主题切换。 */
html[data-m-theme="dark"] .home-brand[data-home-mobile="true"], html[data-m-theme="dark"] .hw-modal {
  --hw-canvas: #17202d; --hw-surface: #202c3d; --hw-soft: #263346; --hw-ink: #e6edf6;
  --hw-secondary: #bdcbdc; --hw-muted: #97a9bf; --hw-line: #344459; --hw-line-strong: #4d6481;
  --hw-accent: #a0bad9; --hw-accent-dark: #c2d5eb; --hw-tint: #2c3e55; --hw-glass: rgba(32, 44, 61, .9);
  --hw-green: #a0d4bf; --hw-green-bg: #253f39; --hw-amber: #dec49a; --hw-amber-bg: #443c31; --hw-red: #e4a5ae; --hw-red-bg: #462e36;
  color-scheme: dark;
}
html[data-m-theme="dark"] .home-brand[data-home-mobile="true"] .hw-hero { background: radial-gradient(ellipse at 78% 60%, #354963, transparent 70%), #202c3d; }

/* 首页手机顶栏控件：44px 触控命中区，并适配短横屏导航抽屉。 */
@media (max-width: 768px) and (pointer: coarse) {
  body.home-brand.home-overview-page #home-workspace .hw-topbar .hw-icon-btn {
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  body.home-brand.home-overview-page #home-workspace .hw-content :is(.hw-btn, .hw-text-btn, .hw-filters button, .hw-hero-link) {
    min-height: 44px;
  }

  body.home-brand.home-overview-page #home-workspace .hw-hero-actions > :is(.hw-btn, .hw-hero-link) {
    box-sizing: border-box;
    min-height: 44px;
    flex: 0 0 auto;
  }
}

@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  body.home-brand.home-overview-page .hw-shell {
    display: block;
    min-height: 100dvh;
  }

  body.home-brand.home-overview-page .hw-shell > .header { display: none !important; }

  body.home-brand.home-overview-page #home-workspace > .hw-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 52px;
    margin: 0 12px 10px;
    padding: 4px 10px;
    border: 1px solid var(--hw-line);
    border-radius: 12px;
    background: var(--hw-glass);
    box-shadow: var(--hw-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  body.home-brand.home-overview-page #home-workspace .hw-menu { display: inline-flex; }
  body.home-brand.home-overview-page #home-workspace .hw-topbar .hw-icon-btn {
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  body.home-brand.home-overview-page #home-workspace .hw-content { padding: 0 12px; }
  body.home-brand.home-overview-page #home-workspace .hw-hero {
    display: flex;
    min-height: 0;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 16px;
    border-radius: 16px;
  }
  body.home-brand.home-overview-page #home-workspace .hw-eyebrow { margin-bottom: 6px; }
  body.home-brand.home-overview-page #home-workspace .hw-hero h1 {
    margin: 2px 0;
    font-size: 24px;
  }
  body.home-brand.home-overview-page #home-workspace .hw-hero h1 br { display: none; }
  body.home-brand.home-overview-page #home-workspace .hw-hero p {
    font-size: 10px;
    line-height: 1.35;
  }
  body.home-brand.home-overview-page #home-workspace .hw-hero-actions { gap: 8px; margin-top: 6px; }
  body.home-brand.home-overview-page #home-workspace .hw-hero-actions > :is(.hw-btn, .hw-hero-link) {
    box-sizing: border-box;
    min-height: 44px;
    flex: 0 0 auto;
  }
  body.home-brand.home-overview-page #home-workspace .hw-hero-caption,
  body.home-brand.home-overview-page #home-workspace .hw-orbit { display: none; }
  body.home-brand.home-overview-page #home-workspace .hw-overview-head { margin-bottom: 10px; }
}

@media (max-width: 640px) and (orientation: portrait) {
  body.home-brand.home-overview-page #home-workspace .hw-hero {
    margin-bottom: 18px;
    padding: 18px 18px 0;
  }

  body.home-brand.home-overview-page #home-workspace .hw-hero h1 {
    margin-top: 8px;
    font-size: 32px;
  }

  body.home-brand.home-overview-page #home-workspace .hw-hero-actions {
    gap: 10px;
    margin-top: 12px;
  }

  body.home-brand.home-overview-page #home-workspace .hw-orbit {
    height: 160px;
    max-width: 300px;
    margin-top: 6px;
    transform: scale(.85);
    transform-origin: top center;
  }
}
