/* ============================================================
   home.css · 首页专属深色工程风格主题
   仅通过 {% block extra_head %} 注入 dashboard/home.html，
   不影响其他任何页面。前缀 hm- 与 main.css 零冲突。
   ============================================================ */

/* ── 全局覆盖：此 CSS 只在首页加载，覆盖安全 ─────────────── */
body.qhy-skin {
  background: #080C10 !important;
  color: #E2E8F0 !important;
}
body.qhy-skin .qhy-main {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
}

/* ── 字体回退栈 ──────────────────────────────────────────── */
.hm-root,
.hm-root * {
  font-family: 'Inter', 'SF Pro Display', 'PingFang SC',
               'Source Han Sans SC', 'Noto Sans SC',
               system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 1 · HERO
═══════════════════════════════════════════════════════════ */
.hm-hero {
  background: #080C10;
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background-image:
    linear-gradient(rgba(56,189,248,.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.030) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hm-hero::before {
  content: '';
  position: absolute;
  right: 8%;
  top: -120px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(56,189,248,.06) 0%, transparent 60%);
  pointer-events: none;
}
.hm-hero::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56,189,248,.04) 0%, transparent 65%);
  pointer-events: none;
}
.hm-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

/* 左侧文字 */
.hm-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #38BDF8;
  margin-bottom: 28px;
  opacity: .9;
}
.hm-headline {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.10;
  letter-spacing: -2px;
  color: #E2E8F0;
  margin: 0 0 22px;
}
.hm-headline-accent {
  color: #38BDF8;
}
.hm-sub {
  font-size: 15px;
  line-height: 1.82;
  color: #5A7090;
  margin: 0 0 40px;
  max-width: 500px;
}
.hm-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hm-btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .025em;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  border: 1px solid transparent;
  line-height: 1.4;
}
.hm-btn-primary {
  background: #38BDF8;
  color: #020D18;
  border-color: #38BDF8;
}
.hm-btn-primary:hover {
  background: #0EA5E9;
  border-color: #0EA5E9;
  color: #020D18;
}
.hm-btn-ghost {
  background: transparent;
  color: #8BA3BC;
  border-color: rgba(255,255,255,.13);
}
.hm-btn-ghost:hover {
  color: #CBD5E1;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
}

/* 右侧线框占位 */
.hm-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hm-wireframe {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(56,189,248,.15);
  border-radius: 3px;
  background: rgba(56,189,248,.015);
  position: relative;
  overflow: hidden;
}
.hm-wireframe svg {
  width: 100%;
  height: 100%;
}
.hm-wf-label {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(56,189,248,.28);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2 · STATS BAR
═══════════════════════════════════════════════════════════ */
.hm-stats-bar {
  background: #0A1119;
  border-top: 1px solid rgba(56,189,248,.09);
  border-bottom: 1px solid rgba(56,189,248,.09);
}
.hm-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px 16px;
  border-right: 1px solid rgba(255,255,255,.05);
}
.hm-stat:last-child { border-right: none; }
.hm-stat-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #38BDF8;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hm-stat-label {
  font-size: 10.5px;
  color: #2E4257;
  letter-spacing: .10em;
  text-transform: uppercase;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3 · PLATFORM CAPABILITIES
═══════════════════════════════════════════════════════════ */
.hm-section {
  background: #080C10;
  padding: 96px 0;
}
.hm-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.hm-section-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: #38BDF8;
  margin-bottom: 14px;
  opacity: .85;
}
.hm-section-title {
  font-size: 30px;
  font-weight: 700;
  color: #C8D4E0;
  margin: 0 0 56px;
  letter-spacing: -.4px;
}

/* 3×2 能力卡片栅格 */
.hm-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.055);
  gap: 1px;
  background: rgba(255,255,255,.055);
}
.hm-cap-card {
  background: #0D1520;
  padding: 40px 36px;
  position: relative;
  transition: background .18s ease;
}
.hm-cap-card:hover { background: #111C2B; }
.hm-cap-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: transparent;
  transition: background .18s ease;
}
.hm-cap-card:hover::after { background: #38BDF8; }

.hm-cap-icon {
  width: 40px;
  height: 40px;
  color: #38BDF8;
  margin-bottom: 22px;
}
.hm-cap-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}
.hm-cap-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #C0CEDC;
  margin: 0 0 10px;
  letter-spacing: .01em;
}
.hm-cap-desc {
  font-size: 13px;
  line-height: 1.75;
  color: #3D566E;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4 · STANDARDS RAIL
═══════════════════════════════════════════════════════════ */
.hm-standards {
  background: #09111A;
  border-top: 1px solid rgba(255,255,255,.045);
  border-bottom: 1px solid rgba(255,255,255,.045);
  padding: 18px 0;
}
.hm-standards-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  font-size: 10.5px;
  color: #253545;
  letter-spacing: .11em;
  text-transform: uppercase;
  line-height: 2;
  text-align: center;
}
.hm-std-label {
  color: #344E66;
  font-weight: 700;
}
.hm-std-sep {
  color: #1A2A38;
  margin: 0 6px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 5 · SHENZHEN + DATA IMPORT
═══════════════════════════════════════════════════════════ */
.hm-split {
  background: #080C10;
  padding: 0;
}
.hm-split-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.05);
}
.hm-split-col {
  background: #080C10;
  padding: 72px 56px;
  transition: background .18s ease;
}
.hm-split-col:hover { background: #0D1520; }
.hm-split-title {
  font-size: 21px;
  font-weight: 600;
  color: #C0CEDC;
  margin: 14px 0 14px;
  letter-spacing: -.2px;
}
.hm-split-desc {
  font-size: 13.5px;
  line-height: 1.82;
  color: #3D566E;
  margin: 0 0 36px;
}
.hm-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #38BDF8;
  text-decoration: none;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: gap .16s ease, color .16s ease;
}
.hm-arrow-link:hover {
  gap: 14px;
  color: #0EA5E9;
}
.hm-arrow-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform .16s ease;
}
.hm-arrow-link:hover svg { transform: translateX(2px); }

/* ═══════════════════════════════════════════════════════════
   SECTION 2.5 · MODULE QUICK ACCESS
═══════════════════════════════════════════════════════════ */
.hm-modules {
  background: #080C10;
  padding: 72px 0 80px;
  border-bottom: 1px solid rgba(56,189,248,.07);
}
.hm-modules-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.hm-mod-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.08);
  border-radius: 4px;
  overflow: hidden;
}
.hm-mod-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 12px 24px;
  background: #0B1320;
  text-decoration: none;
  transition: background .16s ease;
  cursor: pointer;
  position: relative;
}
.hm-mod-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background .16s ease;
}
.hm-mod-card:hover {
  background: #0F1C2E;
}
.hm-mod-card:hover::after {
  background: #38BDF8;
}
.hm-mod-icon {
  width: 26px;
  height: 26px;
  color: #38BDF8;
  opacity: .75;
  transition: opacity .16s ease;
  flex-shrink: 0;
}
.hm-mod-card:hover .hm-mod-icon {
  opacity: 1;
}
.hm-mod-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #3D5A74;
  text-align: center;
  line-height: 1.35;
  transition: color .16s ease;
}
.hm-mod-card:hover .hm-mod-name {
  color: #7AADCC;
}
/* 建设中状态（保留结构，灰色不可点击） */
.hm-mod-card.hm-mod-wip {
  cursor: default;
  opacity: .45;
}
.hm-mod-card.hm-mod-wip:hover { background: #0B1320; }
.hm-mod-card.hm-mod-wip::after { display: none; }
.hm-mod-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #64748B;
  background: rgba(100,116,139,.12);
  border: 1px solid rgba(100,116,139,.20);
  border-radius: 2px;
  padding: 1px 5px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hm-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hm-visual { display: none; }
  .hm-headline { font-size: 48px; }
  .hm-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-split-grid { grid-template-columns: 1fr; }
  .hm-split-col { padding: 56px 40px; }
  .hm-mod-grid { grid-template-columns: repeat(4, 1fr); }
  .hm-modules-inner { padding: 0 24px; }
}
@media (max-width: 640px) {
  .hm-hero { padding: 68px 0 56px; }
  .hm-hero-inner { padding: 0 20px; gap: 0; }
  .hm-headline { font-size: 34px; letter-spacing: -.8px; }
  .hm-stats-inner { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
  .hm-stat { padding: 22px 10px; }
  .hm-stat-num { font-size: 26px; }
  .hm-section { padding: 64px 0; }
  .hm-section-inner { padding: 0 20px; }
  .hm-cap-grid { grid-template-columns: 1fr; }
  .hm-cap-card { padding: 32px 24px; }
  .hm-split-col { padding: 48px 24px; }
  .hm-standards-inner { padding: 0 20px; }
  .hm-mod-grid { grid-template-columns: repeat(3, 1fr); }
  .hm-modules { padding: 48px 0 56px; }
  .hm-modules-inner { padding: 0 16px; }
  .hm-mod-card { padding: 22px 8px 18px; gap: 8px; }
  .hm-mod-name { font-size: 10px; }
}
