/* DSH管家 官网落地页
   配色只用品牌给定的五项：#F06A3D / #E55A2E / #F0894E / #222122 / #FAF8F5
   其余中性色与透明色都由这五项推导（同一支色相的明度台阶）。
   圆角统一 8px，阴影不用，层级靠 1px 描边和留白。
   字体全部走系统栈，不引外链字体。 */

:root {
  --paper: #FAF8F5;
  --ink: #222122;
  --ink-2: #56544F;
  --ink-3: #6E6C66;
  --brand: #F06A3D;
  --brand-deep: #E55A2E;
  --brand-light: #F0894E;
  --brand-tint: rgba(240, 106, 61, 0.06);
  --brand-tint-2: rgba(240, 106, 61, 0.11);
  --surface: #FFFFFF;
  --line: rgba(34, 33, 34, 0.14);
  --line-strong: rgba(34, 33, 34, 0.3);
  --on-dark: #FAF8F5;
  --on-dark-2: rgba(250, 248, 245, 0.72);
  --on-dark-3: rgba(250, 248, 245, 0.62);
  --radius: 8px;
  --head-h: 64px;
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(34, 33, 34, 0.06); border-radius: 4px; padding: 2px 6px; color: var(--ink); }

h1, h2, h3 { letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  background: var(--ink);
  color: var(--on-dark);
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 顶栏 ─────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--head-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
}
.site-nav > a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.site-nav > a:hover { color: var(--ink); border-bottom-color: var(--brand); }
.site-nav > a.btn { color: var(--ink); border-bottom: 0; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ── 按钮 ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }

.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(34, 33, 34, 0.04); }
.btn-ghost:active { transform: translateY(1px); }

/* ── 首屏 ─────────────────────────────────────────────── */

.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--brand-deep); }

.hero-lead {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  max-width: 36em;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  line-height: 1.75;
  color: var(--ink-2);
}
.hero-lead > span { display: block; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(20px, 2.6vw, 32px) clamp(20px, 2.6vw, 32px) clamp(16px, 2vw, 24px);
  background: var(--brand-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-plate::after {
  content: "";
  position: absolute;
  left: -1px;
  bottom: -1px;
  width: 88px;
  height: 4px;
  background: var(--brand);
}
.hero-mark { width: min(100%, 320px); display: block; }
.hero-plate-name { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); }

/* 首屏下方的事实条 */

.facts {
  list-style: none;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px clamp(24px, 3vw, 40px);
}
.fact-k { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.fact-v { display: block; font-size: 14.5px; line-height: 1.55; color: var(--ink); font-weight: 500; }

/* ── 通用段落 ─────────────────────────────────────────── */

.section { padding: clamp(60px, 8.5vw, 116px) 0; }
.section-alt {
  background: var(--brand-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.9vw, 2.75rem);
  line-height: 1.14;
  font-weight: 700;
}
.lead {
  margin-top: 14px;
  max-width: 34em;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink-2);
}

/* ── 四张功能卡（错落网格）─────────────────────────────── */

.bento {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cell-plugins, .cell-guard { grid-column: span 7; }
.cell-repair, .cell-update { grid-column: span 5; }

.cell h3 { margin: 0; font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 700; }
.cell > p { font-size: 15px; line-height: 1.72; color: var(--ink-2); }

.cell-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--brand-deep);
}
.cell-icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cell-list { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cell-list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.cell-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 1.5px;
  background: var(--brand);
}
.cell-note { margin-top: auto; font-size: 13px; color: var(--ink-2); }

.cell-update { background: var(--brand-tint-2); }

.cell-guard { background: var(--ink); border-color: var(--ink); }
.cell-guard h3 { color: var(--on-dark); }
.cell-guard > p, .cell-guard .cell-list li { color: var(--on-dark-2); }
.cell-guard .cell-icon { background: rgba(250, 248, 245, 0.06); border-color: rgba(250, 248, 245, 0.2); color: var(--brand-light); }
.cell-guard .cell-list li::before { background: var(--brand-light); }

/* ── 界面实拍（主图整宽，副图靠右下沉一线）────────────── */

.shots {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
}
.shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-main { grid-column: 1 / -1; }
.shot-side { grid-column: 7 / -1; margin-top: clamp(8px, 1.8vw, 32px); }

/* ── 工作方式（流程行）────────────────────────────────── */

.steps {
  list-style: none;
  margin: clamp(32px, 4vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 2px solid var(--brand);
}
.step-n { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }
.step h3 { margin: 0; font-size: 1.125rem; font-weight: 700; }
.step p { font-size: 14.5px; line-height: 1.72; color: var(--ink-2); }

/* ── 更多能力（分簇清单）──────────────────────────────── */

.clusters {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 48px) clamp(32px, 5vw, 76px);
}
.cluster {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.cluster h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.cluster ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cluster li { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }

/* ── 下载说明 ─────────────────────────────────────────── */

.dl-panel {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.dl-mark { width: 72px; height: 72px; flex: 0 0 auto; }
.dl-copy h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.dl-copy p { margin-top: 10px; max-width: 52ch; font-size: 15px; line-height: 1.72; color: var(--ink-2); }

/* ── 页脚 ─────────────────────────────────────────────── */

.site-foot {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(48px, 6vw, 76px) 0 26px;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(250, 248, 245, 0.16);
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-mark { width: 40px; height: 40px; }
.foot-name { font-size: 17px; font-weight: 700; }
.foot-tagline { font-size: 14.5px; color: var(--on-dark-2); }

.foot-nav { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.6vw, 34px); }
.foot-nav a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: 14.5px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.foot-nav a:hover { color: var(--on-dark); border-bottom-color: var(--brand-light); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--on-dark-3);
}

/* ── 进场动效（可关）──────────────────────────────────── */

.reveal { transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1); }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── 响应式 ───────────────────────────────────────────── */

@media (max-width: 1100px) {
  .hero-grid { gap: 40px; }
  .bento { gap: 14px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-plate { max-width: 460px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-plugins, .cell-guard, .cell-repair, .cell-update { grid-column: span 6; }
  .clusters { grid-template-columns: minmax(0, 1fr); }
  .shot-side { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 760px) {
  :root { --head-h: 60px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px clamp(20px, 5vw, 48px) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 12px 0; font-size: 15.5px; }
  .site-nav > a.btn { margin-top: 10px; }

  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(2.125rem, 9.4vw, 2.75rem); }
  .hero-plate { max-width: none; }
  .hero-mark { width: min(100%, 220px); }
  .btn-row .btn { flex: 1 1 auto; }

  .facts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cell-plugins, .cell-guard, .cell-repair, .cell-update { grid-column: span 12; }
  .steps, .clusters { grid-template-columns: minmax(0, 1fr); }
  .dl-panel { flex-direction: column; align-items: flex-start; }
  .foot-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* ── 第 7 条：LOGO 透明底 + 覆盖整块区域的粒子 ─────────────────── */
/* logo.png 本身早就是透明背景（RGBA，四角 alpha=0），看着"有底"是 .hero-plate 这块卡片自己的背景。
   这里把卡片底去掉，让 LOGO 直接浮在页面上，粒子铺满整块区域。 */
.hero-plate {
  position: relative;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;   /* 鼠标事件交给父元素统一处理，粒子层不挡点击 */
}
.hero-plate .hero-mark,
.hero-plate .hero-plate-name {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-particles { display: none; }   /* 系统开了"减少动态效果"就不放粒子 */
}