/* ============================================================
   首页（1）与待设计页（菜单与页面齐备性占位）
   口径：docs/功能清单-V1.0.md
   视觉：与全站一致的浅蓝白科技风；两页共用一组基础控件（.hm-btn）
   ============================================================ */

/* ---------------- 通用按钮 ---------------- */
.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s var(--ease);
}
.hm-btn:hover {
  border-color: rgba(15, 98, 254, 0.45);
  color: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 98, 254, 0.12);
}
.hm-btn.is-primary {
  border-color: transparent;
  background: linear-gradient(120deg, #0F62FE, #0A7BE0);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 98, 254, 0.28);
}
.hm-btn.is-primary:hover { color: #fff; }
.hm-btn.is-quiet { padding: 9px 18px; font-size: 13px; background: #fff; }
.hm-btn-arrow { font-style: normal; transition: transform 0.18s var(--ease); }
.hm-btn:hover .hm-btn-arrow { transform: translateX(3px); }

/* ---------------- 首页 · 首屏 ---------------- */
.hm-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  column-gap: 28px;
  margin-top: 10px;
  padding: 42px 44px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #EAF2FF 0%, #F7FAFF 44%, #E9F6FA 100%);
  box-shadow: 0 22px 50px rgba(12, 50, 140, 0.09);
  overflow: hidden;
  isolation: isolate;
}
.hm-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, #0F62FE, #00A3C4 58%, rgba(15, 98, 254, 0));
}
.hm-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(640px 300px at 90% -24%, rgba(15, 98, 254, 0.2), transparent 66%),
    radial-gradient(520px 280px at 0% 118%, rgba(0, 163, 196, 0.16), transparent 68%),
    linear-gradient(to right, rgba(15, 98, 254, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 98, 254, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
}
.hm-hero-main {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  max-width: 680px;
}
.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 13px 4px 11px;
  border: 1px solid rgba(15, 98, 254, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.hm-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.16);
}
.hm-hero h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hm-lede {
  margin-top: 13px;
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-3);
}
.hm-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* 首屏右侧：三条测试线（基准 / 互联 / 协同）示意 */
.hm-lines {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hm-lines span {
  position: relative;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(15, 98, 254, 0.16), rgba(15, 98, 254, 0.03));
  animation: in-rise 0.6s var(--ease) both;
}
.hm-lines span::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--lc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lc) 14%, transparent);
}
.hm-lines span.is-l1 { width: 100%; --lc: #0F62FE; animation-delay: 0.08s; }
.hm-lines span.is-l2 { width: 82%; --lc: #00A3C4; animation-delay: 0.16s; }
.hm-lines span.is-l3 { width: 64%; --lc: #5C4EE5; animation-delay: 0.24s; }

/* 关键数字横条 */
.hm-stats {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 36px -44px 0;
  padding: 0 44px;
  list-style: none;
  border-top: 1px solid rgba(15, 98, 254, 0.14);
  background: rgba(255, 255, 255, 0.6);
}
.hm-stats li { position: relative; padding: 20px 0 24px; }
.hm-stats li + li::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 24px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(15, 98, 254, 0), rgba(15, 98, 254, 0.18) 30%,
    rgba(15, 98, 254, 0.18) 70%, rgba(15, 98, 254, 0));
}
.hm-stats b {
  display: block;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--blue-700);
}
.hm-stat-k { display: block; margin-top: 7px; font-size: 12.5px; color: var(--ink-2); }
.hm-stat-n { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-4); }

/* ---------------- 首页 · 分节 ---------------- */
.hm-sec { margin-top: 18px; }
.hm-sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hm-sec-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hm-note { font-size: 12px; color: var(--ink-4); }

/* 两个入口卡（1.1.1 / 1.1.2） */
.hm-secs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hm-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ec) 6%, #fff) 0%, #fff 46%);
  box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 12px 30px rgba(11, 27, 51, 0.035);
  overflow: hidden;
}
.hm-entry::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ec), color-mix(in srgb, var(--ec) 22%, transparent));
}
.hm-entry-head { display: flex; align-items: center; gap: 10px; }
.hm-entry-code {
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--ec) 26%, transparent);
  border-radius: 6px;
  background: #fff;
  color: var(--ec);
  font-size: 10.5px;
}
.hm-entry h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hm-entry-desc { font-size: 12px; color: var(--ink-4); }
.hm-entry-lead { font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.hm-entry-points {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.hm-entry-points li { position: relative; padding-left: 14px; }
.hm-entry-points li::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ec) 55%, transparent);
}
.hm-entry .hm-btn { align-self: flex-start; margin-top: auto; }

/* 模块导航 */
.hm-mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hm-mod {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.18s, box-shadow 0.18s;
}
.hm-mod:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 98, 254, 0.4);
  box-shadow: 0 14px 30px rgba(12, 50, 140, 0.12);
}
.hm-mod-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.hm-mod-intro { min-height: 38px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.hm-mod-num { font-size: 11px; color: var(--ink-4); }
.hm-mod-ft { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); }
.hm-mod-ft i {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-700);
  transition: gap 0.18s var(--ease);
}
.hm-mod:hover .hm-mod-ft i { gap: 10px; }

/* ---------------- 待设计页 ---------------- */
.st-wrap {
  margin-top: 10px;
  padding: 26px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 12px 30px rgba(11, 27, 51, 0.035);
}
.st-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-code {
  padding: 3px 9px;
  border: 1px solid rgba(15, 98, 254, 0.18);
  border-radius: 6px;
  background: var(--blue-wash);
  color: var(--blue-700);
  font-size: 11.5px;
}
.st-head h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.st-badge {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-4);
  font-size: 11.5px;
}
.st-path { margin-top: 10px; font-size: 12px; color: var(--ink-4); }
.st-path i { margin: 0 7px; font-style: normal; opacity: 0.55; }
.st-path em { font-style: normal; color: var(--ink-2); }
.st-desc {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}
.st-desc-label {
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}
.st-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}
.st-box { padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: 12px; }
.st-box h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.st-list {
  counter-reset: st;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.st-list li {
  counter-increment: st;
  position: relative;
  padding-left: 32px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}
.st-list li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  top: 2px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  opacity: 0.72;
}
.st-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-4);
}
.st-side { display: flex; flex-direction: column; gap: 12px; }
.st-card {
  padding: 16px 18px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #FBFDFF, #F5F9FF);
}
.st-card-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}
.st-card p { margin-top: 9px; font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.st-prog {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.st-prog li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}
.st-prog b { font-size: 16px; font-weight: 600; color: var(--blue-700); }
.st-links { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.st-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 12.5px;
  text-decoration: none;
}
.st-links a:hover { background: #fff; color: var(--blue-700); }
.st-links .mono { font-size: 10.5px; color: var(--ink-4); }
.st-none { margin-top: 10px; font-size: 12px; color: var(--ink-4); }

/* ---------------- 窄屏 ---------------- */
@media (max-width: 1180px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr); padding: 32px 30px 0; }
  .hm-lines { display: none; }
  .hm-hero-main { max-width: none; }
  .hm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px -30px 0; padding: 0 30px; }
  .hm-stats li + li::before { display: none; }
  .hm-secs { grid-template-columns: minmax(0, 1fr); }
  .hm-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hm-hero { padding: 26px 22px 0; }
  .hm-hero h1 { font-size: 30px; }
  .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 22px; margin-left: -22px; margin-right: -22px; }
  .hm-stats b { font-size: 27px; }
  .hm-mods { grid-template-columns: minmax(0, 1fr); }
  .st-wrap { padding: 20px 18px 22px; }
  .st-head h1 { font-size: 20px; }
}
