/* ==========================================================================
   POA 首页 / Home dashboard
   --------------------------------------------------------------------------
   首页专用样式层，加载在 styles.css / modules.css / dashboard.css /
   tro-overrides.css / image-enhancements.css 之后，用来重建首页版式节奏。

   统一字号层级（全部取自 typography-system.css 的全站 token）：
     页面主标题  .home-hero h1                    --poa-page-title-*       橙色
     模块标题    .home-section-head h2            --poa-module-title-*     橙色
     卡片标题    .dashboard-panel-head h2         17px / 800 / #132033
     说明文案    --poa-module-copy-color          13px
     次要信息    12px / #5b687c
   只作用于首页（.home-dash 作用域），不影响其它页面。
   ========================================================================== */

.home-dash {
  --home-line: #e6ebf1;
  --home-line-soft: #eff3f8;
  --home-ink: #132033;
  --home-muted: var(--poa-module-copy-color, #41505f);
  --home-slate: #5b687c;
  --home-orange: #ff9900;
  --home-radius: 14px;
  --home-radius-lg: 16px;
  --home-shadow: 0 1px 2px rgba(16, 30, 48, .04), 0 16px 34px -28px rgba(16, 30, 48, .55);
  --home-shadow-hover: 0 2px 8px rgba(16, 30, 48, .07), 0 22px 42px -26px rgba(16, 30, 48, .6);
  /* 页面主标题遵循全站 #ff9900；白底上的普通强调文字继续使用深橙。 */
  --home-orange-ink: #9f5e00;
  --poa-page-title-color: #ff9900;
  --poa-page-subtitle-color: #9f5e00;
  --poa-page-kicker-color: #9f5e00;
  --poa-module-title-color: #c96a00;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-bottom: 8px;
}

.home-dash > section { margin: 0; }

/* 分组节奏：组内 16px（.home-dash 的 gap），组间 16 + 28 = 44px。
   P-040：三组 —— 第 1 组「首屏启动」hero / 覆盖平台 / 工具入口 / 指标卡，
   第 2 组「可信度」品牌背书 / 处理路径，
   第 3 组「工作台数据」快速定位+今日优先 / 最近案件+类型更新 / 服务矩阵。
   改前只有第 2 组前是 44px，其余 7 处全是 16px，页面没有分组感。 */
.home-dash > .home-spotlight,
.home-dash > .dashboard-grid.home-columns:not(.dashboard-grid-lower) { margin-top: 28px; }

.home-dash .dashboard-panel,
.home-dash .home-hero,
.home-dash .home-spotlight,
.home-dash .home-flow-panel,
.home-dash .matrix-panel,
.home-dash .home-tool-entry,
.home-dash .dashboard-stats article,
.home-dash .dashboard-stats .metric-note,
.home-dash .home-platform-strip {
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
  background: #fff;
  box-shadow: var(--home-shadow);
}

/* --------------------------------------------------------------------------
   1. 首屏
   -------------------------------------------------------------------------- */
.home-dash .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: 32px;
  padding: 30px;
  overflow: hidden;
  border-top: 3px solid var(--home-orange);
  background: linear-gradient(135deg, #fffdf8 0%, #fff 46%, #f5f9fd 100%);
}

.home-hero-copy { min-width: 0; }

.home-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--home-slate);
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-kicker-line { display: block; width: 22px; height: 2px; background: var(--home-orange); }

.home-dash .home-hero h1 {
  margin: 0 0 12px;
  color: var(--poa-page-title-color, #ff9900);
  font-family: var(--poa-font-sans, 'Noto Sans SC', sans-serif);
  font-size: var(--poa-page-title-size, clamp(28px, 2.8vw, 38px));
  font-weight: var(--poa-page-title-weight, 700);
  line-height: var(--poa-page-title-leading, 1.25);
  letter-spacing: 0;
}

.home-dash .home-hero-lead {
  max-width: 620px;
  margin: 0;
  color: var(--poa-page-subtitle-color, #ff9900);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }

/* 首页首屏主按钮与全站橙色行动按钮保持一致。 */
.home-dash .primary-action.dash-cta,
.home-dash .primary-action.dash-cta:hover { color: #fff; text-shadow: none; }

/* P-037（B 档）：「查看处理路径」从描边按钮降级为文字链，
   首屏 hero 内只保留 1 个按钮（主按钮），减少焦点竞争。 */
.home-ghost-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* 视觉是文字链，但保留 40px 触控热区（原来是 40px 高的描边按钮，改成 17px 会把热区降到 24px 以下） */
  min-height: 40px;
  height: auto;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--home-orange-ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.home-ghost-action:hover { color: #8f4a00; transform: translateX(2px); }
.home-ghost-action i { font-size: 11px; color: inherit; }

.home-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--home-line-soft);
  list-style: none;
}

.home-hero-proof li { display: flex; flex-direction: column; gap: 5px; }
/* 22px/800 属「大字」，白底需 3:1 —— #ff9900 只有 2.14:1，改用模块标题令牌 #c96a00（3.79:1） */
.home-hero-proof strong { color: var(--poa-module-title-color, #c96a00); font-family: 'DM Sans', 'Noto Sans SC', sans-serif; font-size: 22px; font-weight: 800; line-height: 1; }
.home-hero-proof strong span { color: var(--poa-module-title-color, #c96a00); font-size: 15px; }
.home-hero-proof small { color: var(--home-orange-ink); font-size: 12px; }

/* P-036：图列跟随行高（改前图 689×231.6 比文案列 777×263.5 矮 31.9px，上下各空 18px） */
.home-hero-visual {
  position: relative;
  margin: 0;
  min-height: 0;
  align-self: stretch;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f7;
}

/* 按原图比例（2380×800 = 3:1）显示：原来 height:100% + min-height:268px，
   同一张图在 1898 / 1440 / 1280 档被裁成 2.6 / 1.9 / 1.6 三种取景。 */
.home-hero-visual img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }

.home-dash .home-hero-visual::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(9, 22, 38, 0) 0%, rgba(9, 22, 38, .66) 100%);
  pointer-events: none;
}

.home-dash .home-hero-visual figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
}

.home-hero-badge {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 153, 0, .92);
  color: #17263a;
  font-size: 14px;
}

.home-hero-badge-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.home-hero-badge-copy strong { font-size: 13px; font-weight: 800; }
.home-hero-badge-copy small { color: rgba(255, 255, 255, .82); font-size: 11px; }

/* --------------------------------------------------------------------------
   2. 覆盖平台
   -------------------------------------------------------------------------- */
.home-dash .home-platform-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
  padding: 13px 26px 13px 30px;
  border-radius: var(--home-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 153, 0, .09) 0%, rgba(255, 153, 0, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
}

.home-platform-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-right: 24px;
  border-right: 1px solid var(--home-line);
  color: var(--home-orange-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  white-space: nowrap;
}

.home-platform-label::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ffb033, #ff8a00);
}

/* P-041：标签→首个胶囊由 88px 收到 24px；6 个胶囊仍等距铺满整条（1920 档间距 ~186px）。
   试过左对齐紧凑排列（胶囊间 12px），但整条右半 900px 全空，观感反而更差，故保留铺满。 */
.home-platform-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-platform-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 3px 12px;
  /* 兜底：不支持 color-mix 的浏览器用白底浅边 */
  border: 1px solid #edf1f6;
  border-radius: 999px;
  background: #fff;
  /* 文字统一用站点品牌橙（和「覆盖平台」标签、数据条说明同色），
     底色 / 描边 / 圆点则「各归其位」对应各平台品牌色，整体仍是橙为主调 */
  border-color: color-mix(in srgb, var(--platform-color, #ff9900) 24%, #fff);
  background: color-mix(in srgb, var(--platform-color, #ff9900) 8%, #fff);
  color: var(--home-orange-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 30, 48, .05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-platform-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--platform-color, var(--home-orange));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.home-platform-list li:hover {
  border-color: var(--platform-color, #ff9900);
  color: #8f4d00;
  box-shadow: 0 8px 18px -12px rgba(16, 30, 48, .45);
  transform: translateY(-1px);
}

/* 各平台品牌色：用于圆点、胶囊底色与描边（文字统一橙色，不跟随） */
.home-platform-list li:nth-child(1) { --platform-color: #ff9900; } /* Amazon */
.home-platform-list li:nth-child(2) { --platform-color: #0071dc; } /* Walmart */
.home-platform-list li:nth-child(3) { --platform-color: #e53238; } /* eBay */
.home-platform-list li:nth-child(4) { --platform-color: #ff6a00; } /* 速卖通 */
.home-platform-list li:nth-child(5) { --platform-color: #ee4d2d; } /* Shopee */
.home-platform-list li:nth-child(6) { --platform-color: #20242c; } /* TikTok Shop */

@media (prefers-reduced-motion: reduce) {
  .home-platform-list li { transition: none; }
  .home-platform-list li:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   3. 快捷检测工具（大图卡）
   -------------------------------------------------------------------------- */
/* 卡片宽度不足 470px 时换行成单列：原来固定 2 列，901~1300 档每张卡只有 350~500px，
   图片列被压到 112~150px 宽、137px 高（竖条），文案列也只剩 163~256px。 */
.home-dash .home-tool-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(470px, 1fr)); gap: 16px; }

.home-dash .home-tool-entry {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-height: 158px;
  padding: 18px 30px;
  border-left: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
  text-decoration: none;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-dash .home-tool-entry:hover { transform: translateY(-2px); box-shadow: var(--home-shadow-hover); border-color: #f2c08a; }

.home-tool-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; }
.home-tool-copy small { color: var(--home-orange-ink); font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.home-dash .ip-entry .home-tool-copy small { color: #4a6f92; }
.home-tool-copy strong { margin-top: 10px; color: var(--home-ink); font-size: 19px; font-weight: 800; line-height: 1.3; }
.home-tool-copy em { margin-top: 8px; color: var(--home-muted); font-size: 13px; font-style: normal; line-height: 1.7; }
.home-dash .home-tool-copy em { white-space: normal; overflow: visible; text-overflow: clip; }

.home-tool-action {
  align-self: flex-start;
  margin-top: 14px;
  white-space: nowrap;
}

.home-tool-action i { font-size: 11px; transition: transform .2s ease; }
.home-dash .home-tool-entry:hover .home-tool-action i { transform: translateX(3px); }

/* 图框固定 16:9：原来 align-self:stretch + height:100%，图高跟着卡片高度走，
   卡窄时变成 112×137 的竖条；两卡图列也不再等宽等高（136.9 vs 116）。
   P-038：加 1px 描边 + 极轻内阴影，左卡那种白底素材才有边界，不会和白卡糊成一片。 */
.home-tool-thumb {
  position: relative;
  flex: 0 0 clamp(190px, 38%, 268px);
  width: auto;
  max-width: 268px;
  aspect-ratio: 16 / 9;
  height: auto;
  align-self: center;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
  box-shadow: inset 0 -14px 22px -20px rgba(16, 30, 48, .45);
}
.home-tool-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.home-dash .home-tool-entry:hover .home-tool-thumb img { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   4. 知识库概览
   -------------------------------------------------------------------------- */
/* P-039：四张卡等宽（原 `repeat(3,1fr) 1.6fr` 让第 4 张是前三张的 1.6 倍、结构也不同），
   第 4 张改成结构一致的「行动卡」——浅橙底 + 橙描边 + 15px/700 标题，全页唯一的高亮卡。 */
.home-dash .home-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.home-dash .home-stats article,
.home-dash .home-stats .metric-note {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 106px;
  padding: 20px 30px;
  border-radius: var(--home-radius-lg);
  text-decoration: none;
}

.home-dash .home-stats .metric-note { cursor: pointer; background: linear-gradient(135deg, #fffaf2 0%, #fff1dd 100%); border-color: #ffd9a8; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.home-dash .home-stats .metric-note:hover { transform: translateY(-2px); box-shadow: var(--home-shadow-hover); border-color: #ffc27a; }
.home-dash .home-stats .metric-note > i:last-child { margin-left: auto; color: var(--home-orange-ink); font-size: 13px; }
/* 行动卡的文字规格与前三条数据卡对齐：标题 15px/700（原 24px 粗体问句），说明 12px/400 */
.home-dash .home-stats .metric-note strong { margin-top: 0; font-family: var(--poa-font-sans, 'Noto Sans SC', sans-serif); font-size: 15px; font-weight: 700; line-height: 1.5; }
.home-dash .home-stats .metric-note .home-stat-copy { gap: 6px; }
.home-dash .home-stats .metric-note .home-stat-copy > span { margin-top: 0; font-size: 12px; font-weight: 400; text-wrap: pretty; }

.home-dash .home-stats .dash-stat-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 13px;
  font-size: 16px;
  line-height: 1;
}

.home-dash .home-stats .dash-stat-icon svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-dash .home-stats .dash-stat-icon.orange { color: #c26500; background: linear-gradient(160deg, #fff7ec, #ffe8c6); }
.home-dash .home-stats .dash-stat-icon.blue { color: #3672a6; background: linear-gradient(160deg, #f2f8fd, #e0edfa); }
.home-dash .home-stats .dash-stat-icon.green { color: #2f7a54; background: linear-gradient(160deg, #f0faf4, #ddf0e5); }
.home-dash .home-stats .dash-stat-icon.amber { color: #b3611a; background: linear-gradient(160deg, #fff8ef, #ffe9c9); }

.home-stat-copy { display: flex; flex-direction: column; min-width: 0; }
.home-stat-copy > span { color: var(--home-muted); font-size: 12px; font-weight: 600; }

.home-dash .home-stats strong {
  margin-top: 7px;
  color: var(--home-ink);
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.home-dash .home-stats small { margin-top: 7px; color: var(--home-slate); font-size: 11px; }
.home-dash .home-stats small b { margin-right: 3px; color: #3b7253; font-size: 10px; }

/* --------------------------------------------------------------------------
   5. 品牌背书（大图 + 要点）
   -------------------------------------------------------------------------- */
.home-dash .home-spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); overflow: hidden; padding: 0; }

/* 图框固定 3:2（原图 5760×3840）：原来 min-height:340px + height:100%，
   1024~1440 档图被拉成 1.18~1.4 的近方形，同一张图每个宽度取景都不同。 */
.home-spotlight-visual { position: relative; margin: 0; margin-inline: auto; width: 100%; max-width: 840px; aspect-ratio: 3 / 2; min-height: 0; align-self: center; background: #eef2f7; }
.home-spotlight-visual img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.home-dash .home-spotlight-visual figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(11, 24, 40, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.home-spotlight-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px 30px; }
.home-dash .home-spotlight-copy .home-kicker { margin-bottom: 12px; }

.home-dash .home-spotlight-copy h2 {
  margin: 0 0 14px;
  color: var(--poa-module-title-color, #ff9900);
  font-family: var(--poa-font-sans, 'Noto Sans SC', sans-serif);
  font-size: var(--poa-module-title-size, clamp(24px, 2.1vw, 30px));
  font-weight: var(--poa-module-title-weight, 800);
  line-height: var(--poa-module-title-leading, 1.35);
  letter-spacing: var(--poa-module-title-tracking, .04em);
}

.home-dash .home-spotlight-lead { margin: 0 0 22px; color: var(--home-muted); font-size: 13px; line-height: 1.85; }

.home-spotlight-points { display: flex; flex-direction: column; gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
.home-spotlight-points li { display: flex; align-items: flex-start; gap: 12px; }
.home-spotlight-points i { margin-top: 3px; color: #2f7a54; font-size: 14px; }
.home-spotlight-points strong { display: block; color: var(--home-ink); font-size: 14px; font-weight: 800; }
.home-spotlight-points span { display: block; margin-top: 4px; color: var(--home-muted); font-size: 13px; line-height: 1.7; }

.home-text-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-orange-ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.home-text-link:hover { color: #8f4a00; }
.home-text-link i { font-size: 11px; }

/* --------------------------------------------------------------------------
   6. 模块标题区（沿用全站模块标题 token）
   -------------------------------------------------------------------------- */
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; }
.home-section-head .home-kicker { margin-bottom: 9px; }

.home-dash .home-section-head h2 {
  margin: 0;
  color: var(--poa-module-title-color, #ff9900);
  font-family: var(--poa-font-sans, 'Noto Sans SC', sans-serif);
  font-size: var(--poa-module-title-size, clamp(24px, 2.1vw, 30px));
  font-weight: var(--poa-module-title-weight, 800);
  line-height: var(--poa-module-title-leading, 1.35);
  letter-spacing: var(--poa-module-title-tracking, .04em);
}

.home-section-note { margin: 0 0 7px; max-width: 560px; color: var(--home-muted); font-size: 13px; line-height: 1.8; text-align: right; }

/* --------------------------------------------------------------------------
   7. 处理路径
   -------------------------------------------------------------------------- */
.home-dash .home-flow-panel { padding: 28px 30px; }
.home-dash .home-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }

.home-dash .home-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 98px;
  padding: 20px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: #fbfcfe;
  color: var(--home-ink);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.home-dash .home-flow-step:hover { border-color: #ffc27a; background: #fffaf1; transform: translateY(-2px); }
.home-dash .home-flow-number {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--home-orange-ink);
  background: #fff2df;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-flow-body { min-width: 0; flex: 1; }
.home-dash .home-flow-step strong { display: block; color: var(--home-ink); font-size: 15px; font-weight: 800; white-space: normal; }
.home-dash .home-flow-step small { display: block; margin-top: 7px; color: var(--home-muted); font-size: 12px; line-height: 1.7; white-space: normal; overflow: visible; }
.home-dash .home-flow-step > i { margin-left: auto; align-self: center; color: #b9c4d0; font-size: 12px; transition: color .2s ease, transform .2s ease; }
.home-dash .home-flow-step:hover > i { color: var(--home-orange); transform: translateX(3px); }

/* --------------------------------------------------------------------------
   8. 两栏面板与卡片标题
   -------------------------------------------------------------------------- */
.home-dash .home-columns { display: grid; grid-template-columns: 1.18fr .82fr; gap: 16px; }
.home-dash .dashboard-panel { padding: 28px 30px; }

/* P-042：面板标题 17px → 20px/800，补上「模块标题 30px → 面板标题 20px → 正文 13px」中间那一级。 */
.home-dash .dashboard-panel-head h2 {
  color: var(--home-ink) !important;
  font-family: var(--poa-font-sans, 'Noto Sans SC', sans-serif) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}

.home-dash .dashboard-panel-head p { margin: 7px 0 0; color: var(--home-muted) !important; font-size: 13px !important; line-height: 1.7 !important; }
.home-dash .panel-code { color: var(--home-slate); font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .18em; }

.home-dash .text-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--home-orange-ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.home-dash .text-action:hover { color: #8f4a00; }
.home-dash .text-action i { font-size: 11px; }
.home-dash .priority-count { padding: 5px 11px; border-radius: 999px; color: var(--home-orange-ink); background: #fff2df; font-size: 11px; font-weight: 800; }

/* 搜索面板
   P-042：两行栅格是等高布局，「快速定位问题」内容比右栏矮，底部会留 51px 空白，
   这里让面板内元素纵向均分剩余空间，把空白摊到各段之间。 */
.home-dash .dashboard-search-panel { display: flex; flex-direction: column; justify-content: space-between; }
.home-dash .dashboard-search-tabs { display: flex; gap: 6px; width: max-content; max-width: 100%; margin-top: 20px; padding: 5px; border-radius: 11px; background: #f2f5f9; }
.home-dash .dashboard-search-tab { height: 34px; padding: 0 14px; border-radius: 8px; color: var(--home-slate); font-size: 12px; font-weight: 700; }
.home-dash .dashboard-search-tab.active { color: var(--home-orange-ink); background: #fff; box-shadow: 0 1px 3px rgba(15, 32, 51, .12); }

.home-dash .dashboard-search-box {
  height: 50px;
  margin-top: 16px;
  padding: 0 5px 0 16px;
  border: 1px solid #dfe6ee;
  border-radius: 12px;
  background: #fff;
}

.home-dash .dashboard-search-box > i { color: #9aa7b6; font-size: 13px; }
.home-dash .dashboard-search-box input { color: var(--home-ink); font-size: 13px; }
.home-dash .dashboard-search-box input::placeholder { color: #9aa7b6; }

.home-dash .dashboard-search-box button {
  align-self: center;
  margin-left: 10px;
  padding: 0 20px;
  height: 40px;
  border-radius: 9px;
  /* 与首屏主按钮同款白色文字。 */
  color: #fff;
  background: linear-gradient(135deg, #ff7a2f 0%, #ff9e2f 100%);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(255, 112, 32, .55);
}

.home-dash .search-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--home-slate); font-size: 12px; }
.home-dash .search-suggestion-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.home-dash .search-suggestions button { padding: 6px 12px; border: 1px solid #e6ebf1; border-radius: 999px; color: #3c4d61; background: #f7f9fc; font-size: 12px; font-weight: 600; }
.home-dash .search-suggestions button:hover { border-color: #ffc27a; color: var(--home-orange-ink); background: #fff7ec; }

/* 优先事项 */
.home-dash .priority-list { margin-top: 8px; }
.home-dash .priority-item { gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--home-line-soft); }
.home-dash .priority-item strong { color: var(--home-ink); font-size: 13px; font-weight: 800; }
.home-dash .priority-item small { margin-top: 6px; color: var(--home-slate); font-size: 12px; }
.home-dash .priority-level { width: 26px; height: 26px; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 800; }
.home-dash .priority-item > i { color: #b9c4d0; font-size: 12px; }

/* 最近案件：6 列案件表 + 无缝纵向滚动 */
.home-dash .recent-case-table { margin-top: 14px; }

.home-dash .recent-case-head,
.home-dash .recent-case-item {
  display: grid;
  /* 封号原因最长，单独放宽，其余列按图一的比例收紧 */
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) minmax(0, .8fr) minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  padding-right: 12px;
  text-align: center;
}

.home-dash .recent-case-head {
  padding-top: 9px;
  padding-bottom: 9px;
  border-radius: 8px;
  background: #f2f5f8;
  /* 表头 11px 小字：原来的 #ff9900 在 #f2f5f8 上只有 1.96:1，改用深橙令牌（5.1:1） */
  color: var(--home-orange-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

/* 视口只露出约 3 行，上下沿做柔和淡出，避免硬切 */
.home-dash .recent-case-viewport {
  position: relative;
  height: 192px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
}

/* flow-root 让最后一项的 margin 也计入轨道高度，-50% 位移才能严丝合缝 */
.home-dash .recent-case-track { display: flow-root; animation: recent-case-scroll 26s linear infinite; }
.home-dash .recent-case-track.is-static { animation: none; }

.home-dash .recent-case-item {
  position: relative;
  min-height: 56px;
  margin-bottom: 8px; /* 用 margin 而非 gap，保证 -50% 位移严丝合缝 */
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 30, 48, .05), 0 12px 22px -20px rgba(16, 30, 48, .6);
  color: var(--home-slate);
  font-size: 12px;
}

/* 每行左侧的品牌橙竖条 */
.home-dash .recent-case-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #ffb033, #ff8a00);
}

.home-dash .recent-case-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-dash .recent-case-item > span.case-money { color: var(--home-orange-ink); font-family: 'DM Sans', 'Noto Sans SC', sans-serif; font-weight: 800; }
.home-dash .recent-case-item.recent-case-status { display: flex; align-items: center; justify-content: center; color: var(--home-slate); }
.home-dash .recent-case-item.recent-case-status::before { display: none; }
.home-dash .recent-case-status > span { white-space: normal; text-align: center; }

@keyframes recent-case-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .home-dash .recent-case-viewport { overflow-y: auto; }
  .home-dash .recent-case-track { animation: none; }
}

/* 类型更新 */
.home-dash .knowledge-feed { margin-top: 10px; }
.home-dash .knowledge-feed-item { gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--home-line-soft); }
.home-dash .knowledge-feed-item strong { color: var(--home-ink); font-size: 13px; font-weight: 700; white-space: normal; }
.home-dash .knowledge-feed-item small { margin-top: 6px; color: var(--home-slate); font-size: 11px; white-space: normal; }
.home-dash .knowledge-feed-item > i { color: #b9c4d0; font-size: 11px; }

.feed-thumb { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 11px; overflow: hidden; background: #eef2f7; }
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.home-dash .knowledge-feed-item:hover .feed-thumb img { transform: scale(1.07); }
.home-dash .feed-date { display: inline; width: auto; margin-right: 7px; color: var(--home-orange-ink); font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 800; }

/* --------------------------------------------------------------------------
   9. 服务矩阵
   -------------------------------------------------------------------------- */
.home-dash .matrix-panel { padding: 28px 30px; }
.home-dash .service-matrix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.home-dash .service-matrix > button { gap: 14px; min-height: 88px; padding: 18px; border: 1px solid var(--home-line); border-radius: var(--home-radius); background: #fbfcfe; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.home-dash .service-matrix > button:hover { border-color: #ffc27a; background: #fffaf1; transform: translateY(-2px); }
.home-dash .service-matrix .matrix-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 12px; font-size: 17px; }
.home-dash .service-matrix strong { color: var(--home-ink); font-size: 14px; font-weight: 800; }
.home-dash .service-matrix small { margin-top: 6px; color: var(--home-muted); font-size: 12px; }
.home-dash .service-matrix > button > i { color: #b9c4d0; font-size: 12px; transition: color .2s ease, transform .2s ease; }
.home-dash .service-matrix > button:hover > i { color: var(--home-orange); transform: translateX(3px); }

/* --------------------------------------------------------------------------
   10. 响应式
   -------------------------------------------------------------------------- */
/* 指标区 4 卡在 1301~1400 档被压到 206~232px 宽，卡内文案换行把卡高从 116.6 撑到 142.2，
   提前在 1400 转 2 列（每张 ≥ 275px）。 */
@media (max-width: 1400px) {
  .home-dash .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1240px) {
  .home-dash .home-hero { grid-template-columns: 1fr; gap: 24px; }
  .home-dash .home-spotlight { grid-template-columns: 1fr; }
  .home-spotlight-visual { order: -1; }
  .home-dash .service-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .home-dash .home-columns { grid-template-columns: 1fr; }
  .home-dash .home-flow { grid-template-columns: 1fr; }
  .home-platform-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .home-dash { gap: 14px; }
  .home-dash > .home-spotlight { margin-top: 22px; }
  .home-dash .home-tool-entries { grid-template-columns: 1fr; }
  .home-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .home-section-note { margin-top: 4px; text-align: left; }
  .home-dash .home-hero { padding: 24px 22px; }
  .home-dash .home-tool-entry { padding: 20px 22px; }
  .home-dash .home-spotlight-copy { padding: 26px 22px; }
  .home-dash .home-flow-panel, .home-dash .matrix-panel, .home-dash .dashboard-panel { padding: 22px 20px; }
}

@media (max-width: 760px) {
  .home-dash .home-tool-entry { flex-direction: column-reverse; gap: 16px; }
  /* 移动端图铺满整宽，同样保持 3:2（原来是固定 150px 高，比例 2.2:1） */
  .home-tool-thumb { flex: 0 0 auto; max-width: none; width: 100%; height: auto; }
  .home-dash .home-hero-proof { gap: 12px 26px; }
  .home-dash .home-flow-number { width: 36px; height: 36px; flex: 0 0 36px; font-size: 14px; }
}

@media (max-width: 620px) {
  .home-dash .home-stats, .home-dash .service-matrix { grid-template-columns: 1fr; }
  .home-dash .home-hero h1 { font-size: 26px; }
  .home-dash .home-hero-lead { font-size: 14px; }
  .home-dash .dashboard-panel-head { gap: 12px; }
  .home-dash .home-platform-strip { grid-template-columns: 1fr; gap: 10px; padding: 14px 18px; }
  .home-platform-label { padding-right: 0; border-right: 0; }
  .home-platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
