/* WorkHalo 官网 · 新版视觉系统 v2.0 (2026-12-04)
   基准：白底 + 深蓝 #0F2440 + 银灰 + 电路蓝点缀（取自 Logo 的蓝色电路光效）
   原则：大留白、大标题、分区底色交替、无编号眉标、无分割线、克制动效
    commod: 本文件为全站统一样式，8 个页面共用 */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --bg-ink: #0F2440;
  --ink: #0F2440;
  --ink-soft: #33507A;
  --text: #1E2A3A;
  --muted: #5C6B80;
  --line: #E3E9F0;
  --line-strong: #D8DEE6;
  --accent: #2563C7;
  --accent-soft: #EEF4FD;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 36, 64, 0.04), 0 10px 30px rgba(15, 36, 64, 0.05);
  --shadow-lg: 0 2px 4px rgba(15, 36, 64, 0.05), 0 18px 48px rgba(15, 36, 64, 0.08);
  --content-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-wrap: pretty;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 44px; letter-spacing: -0.02em; }
h2 { font-size: 36px; letter-spacing: -0.02em; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
h4 { font-size: 17px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 10px; }
strong { color: var(--ink); font-weight: 650; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 页头 ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-word {
  font-size: 25px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(180deg, #f2f4f8 0%, #c3cad6 30%, #6e7889 58%, #9aa3b2 82%, #d7dce5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 1px rgba(15, 36, 64, 0.45));
}
.brand-sub { color: var(--muted); font-weight: 400; font-size: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; flex: 0 0 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; margin: 0; }
.site-nav > ul > li > a, .has-sub > button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 15px; font: inherit; font-size: 15px;
  color: var(--muted); background: transparent; border: 0; border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap;
}
.site-nav > ul > li > a:hover, .has-sub > button:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.site-nav > ul > li > a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.caret { font-size: 10px; line-height: 1; }

.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none;
}
.has-sub.open .submenu { display: block; }
.submenu a { display: block; padding: 11px 14px; min-height: 44px; color: var(--text); font-size: 15px; border-radius: var(--radius-sm); }
.submenu a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }

/* ---------- 通用区块 ---------- */
main { padding-bottom: 0; }
.section { padding: 88px 0; }
.section-tint { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; margin: 0 0 14px; }
.section-head h2 { margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--muted); margin: 0; line-height: 1.75; }

/* ---------- 首屏 ---------- */
.hero { padding: 96px 0 84px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-soft); font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.hero .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { margin-bottom: 22px; }
.hero .tagline { font-size: 20px; color: var(--ink-soft); font-weight: 500; margin-bottom: 14px; }
.hero .intro { font-size: 16px; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-visual { display: flex; align-items: center; justify-content: center; min-width: 0; }
.logo-plate {
  width: 100%; max-width: 440px; aspect-ratio: 1 / 1; padding: 18px;
  background: #F6F7F9; border: 1px solid var(--line); border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }

/* ---------- 按钮 ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #173A66; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--ink-soft); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #1E55B0; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; min-width: 0; overflow-wrap: break-word; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

.feature-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feature-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.feature-body { padding: 28px; display: flex; flex-direction: column; flex: 1 1 auto; }
.feature-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.badge { flex-shrink: 0; font-size: 12px; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 100px; padding: 4px 12px; font-weight: 600; }
.badge-accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.feature-lead { font-size: 16px; color: var(--text); margin-bottom: 20px; }
.mini-title { font-size: 13px; color: var(--ink); font-weight: 650; letter-spacing: 0.03em; margin: 0 0 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { font-size: 13px; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px; }
.feature-body .btn-row { margin-top: auto; }

/* ---------- 清单 ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 14px; font-size: 16px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--accent-soft); border: 1px solid var(--accent);
}
.check-list li::after {
  content: ""; position: absolute; left: 7px; top: 13px;
  width: 5px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 40px; }

.small-list { list-style: none; padding: 0; margin: 0; }
.small-list li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 15px; color: var(--muted); }
.small-list li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- 分区说明块 ---------- */
.lead-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; font-size: 17px; color: var(--text); line-height: 1.8;
}
.notice {
  background: var(--accent-soft); border: 1px solid #D6E6FB; border-radius: var(--radius);
  padding: 20px 24px; font-size: 15px; color: var(--ink-soft);
}
.disclaimer {
  border-left: 3px solid var(--accent); background: var(--bg-soft);
  padding: 20px 24px; font-size: 14px; color: var(--muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- 场景条目 ---------- */
.scene-group { margin-bottom: 34px; }
.scene-group-title { font-size: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scene-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.scene-item h4 { margin-bottom: 8px; }
.scene-item p { color: var(--muted); font-size: 15px; margin: 0; }
.scene-src { color: var(--accent); font-size: 13px; margin-top: 12px; display: block; }
.hidden-scene { display: none; }
.hidden-scene.show { display: block; }

.more-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 30px; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 10px; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background .18s ease;
}
.more-toggle:hover { background: var(--bg-soft); }
.more-wrap { text-align: center; margin-top: 36px; }
.more-hint { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- 工具条目 ---------- */
.tool-list { display: grid; gap: 14px; }
.tool-row {
  display: grid; grid-template-columns: 64px minmax(180px, 0.8fr) minmax(0, 2fr);
  align-items: center; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 20px; box-shadow: var(--shadow);
}
.tool-row .cover { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--bg-soft); }
.tool-row .tool-name { color: var(--ink); font-size: 16px; font-weight: 650; }
.tool-row .tool-desc { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.7; }

/* ---------- 折叠 ---------- */
.collapsible { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 24px; box-shadow: var(--shadow); }
.collapsible > summary {
  cursor: pointer; min-height: 68px; display: flex; align-items: center;
  font-size: 17px; font-weight: 650; color: var(--ink); list-style: none;
}
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--accent); font-weight: 400; }
.collapsible[open] > summary::after { content: "\2212"; }
.collapsible-body { padding: 0 0 24px; }
.collapsible-body > p { color: var(--muted); font-size: 15px; }
.legacy-list { margin-top: 12px; }
.legacy-item { display: grid; grid-template-columns: minmax(160px, 0.7fr) minmax(0, 2fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legacy-item:last-child { border-bottom: 0; }
.legacy-name { color: var(--ink); font-size: 15px; font-weight: 650; }
.legacy-desc { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- 原则卡片 ---------- */
.principle { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.principle-num { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.principle h3 { font-size: 19px; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- 内页页头 ---------- */
.page-head { padding: 84px 0 56px; }
.page-head h1 { margin-bottom: 18px; }
.page-head .subtitle { font-size: 20px; color: var(--ink-soft); margin: 0 0 12px; }
.page-head .intro { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0; }
.prose { max-width: 820px; }
.prose h2 { font-size: 28px; margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 16px; }
.prose ul { color: var(--muted); font-size: 16px; }

/* ---------- 收口 CTA ---------- */
.cta-band { background: var(--bg-ink); border-radius: 20px; padding: 64px 48px; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #C7D3E3; font-size: 17px; max-width: 620px; margin: 0 auto 30px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0; font-size: 14px; color: var(--muted); }
.site-footer p { margin-bottom: 10px; }
.footer-brand { color: var(--ink); font-weight: 700; font-size: 15px; margin-bottom: 14px !important; }
.site-footer a { color: var(--ink-soft); }
.footer-icp { margin-top: 18px !important; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  .hero { padding: 72px 0 60px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; }
  .section { padding: 68px 0; }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 18px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav > ul > li > a, .has-sub > button { width: 100%; justify-content: space-between; }
  .submenu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); margin-left: 12px; min-width: 0; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  h1 { font-size: 32px; }
  h2 { font-size: 29px; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { justify-content: flex-start; }
  .logo-plate { max-width: 220px; padding: 16px; border-radius: 18px; }
  .hero .intro { font-size: 15px; }
  .btn-row { flex-direction: column; }
  .btn { width: 100%; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-desc { font-size: 16px; }
  .card-grid, .card-grid-3, .check-grid, .scene-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .feature-body { padding: 22px; }
  .tool-row { grid-template-columns: 52px 1fr; gap: 12px 16px; }
  .tool-row .cover { width: 52px; height: 52px; }
  .tool-row .tool-desc { grid-column: 1 / -1; }
  .legacy-item { grid-template-columns: 1fr; gap: 4px; }
  .page-head { padding: 56px 0 36px; }
  .cta-band { padding: 44px 24px; border-radius: 16px; }
  .prose h2 { font-size: 25px; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 30px; }
  .brand-word { font-size: 21px; }
  .brand-sub { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ---------------------------------------------------------------- 编辑态
   仅在 editor.html 的 iframe 内生效（父页面通过 JS 注入 class），
   给可改文字加虚线下划线、可换图片加角标，让编辑者一眼看出可点区域。 */
.wh-editable {
  outline: 1px dashed #B9C4D2;
  outline-offset: 3px;
  border-radius: 3px;
  cursor: text;
  transition: background .15s, outline-color .15s;
}
.wh-editable:hover { background: #FFF8E8; outline-color: #E0A93B; }
.wh-editable:focus { background: #FFFBF0; outline: 2px solid #E0A93B; outline-offset: 3px; }

.wh-editable-img {
  cursor: pointer;
  outline: 1px dashed #B9C4D2;
  outline-offset: 2px;
  border-radius: 4px;
  transition: outline-color .15s, filter .15s;
  position: relative;
}
.wh-editable-img:hover { outline: 2px solid #E0A93B; filter: brightness(1.04); }
