/* ============================================================
   WorkLite · Cloud/AI 设计系统（浅色优先）
   原型专用，不上生产；生产落地时按 token 抽到 assets/css
   ========================================================== */

/* ---------------- Tokens ---------------- */
:root {
  /* 表面：冷白，不是纯白，避免刺眼 */
  --bg:            #F5F8FD;
  --bg-tint:       #EEF3FB;
  --surface:       #FFFFFF;
  --surface-2:     #FBFCFE;
  --surface-3:     #F2F6FC;
  --surface-sunk:  #EDF2F9;

  /* 描边：带蓝调的灰，避免水泥灰 */
  --line:          #E4EAF4;
  --line-2:        #D6E0EF;
  --line-3:        #C2D0E4;

  /* 文字 */
  --tx-1:          #0D1A30;
  --tx-2:          #46587A;
  --tx-3:          #74869F;
  --tx-4:          #9AA9BF;

  /* 品牌：精密蓝 → 云青 */
  --brand:         #2B55E0;
  --brand-2:       #4C86FF;
  --brand-3:       #17BFD8;
  --brand-ink:     #16307E;
  --brand-soft:    rgba(43, 85, 224, 0.07);
  --brand-soft-2:  rgba(43, 85, 224, 0.12);
  --brand-line:    rgba(43, 85, 224, 0.24);
  --grad:          linear-gradient(135deg, #2B55E0 0%, #4C86FF 52%, #17BFD8 100%);
  --grad-soft:     linear-gradient(135deg, rgba(43,85,224,.10), rgba(23,191,216,.08));

  /* 语义 */
  --ok:            #0C8A63;
  --ok-soft:       rgba(12, 138, 99, 0.09);
  --warn:          #A9610A;
  --warn-soft:     rgba(169, 97, 10, 0.10);
  --danger:        #C0392B;
  --danger-soft:   rgba(192, 57, 43, 0.08);

  /* 云层光效 */
  --cloud-a:       rgba(76, 134, 255, 0.16);
  --cloud-b:       rgba(23, 191, 216, 0.13);
  --cloud-c:       rgba(150, 170, 255, 0.14);

  /* 阴影：蓝调，压得很轻 */
  --sh-1: 0 1px 2px rgba(13, 26, 48, 0.04);
  --sh-2: 0 1px 2px rgba(13, 26, 48, 0.04), 0 10px 28px -14px rgba(13, 26, 48, 0.16);
  --sh-3: 0 2px 4px rgba(13, 26, 48, 0.04), 0 24px 56px -24px rgba(13, 26, 48, 0.24);
  --sh-brand: 0 10px 28px -12px rgba(43, 85, 224, 0.55);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --page: 1200px;
  --nav-h: 64px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg:            #080B14;
  --bg-tint:       #0C1120;
  --surface:       #101728;
  --surface-2:     #0D1322;
  --surface-3:     #162033;
  --surface-sunk:  #0B1120;

  --line:          rgba(255, 255, 255, 0.08);
  --line-2:        rgba(255, 255, 255, 0.14);
  --line-3:        rgba(255, 255, 255, 0.22);

  --tx-1:          #EAF0FA;
  --tx-2:          #A8B6CD;
  --tx-3:          #7B8AA3;
  --tx-4:          #5C6A82;

  --brand:         #5B84FF;
  --brand-2:       #7FA6FF;
  --brand-3:       #35D6EC;
  --brand-ink:     #B8CBFF;
  --brand-soft:    rgba(91, 132, 255, 0.12);
  --brand-soft-2:  rgba(91, 132, 255, 0.20);
  --brand-line:    rgba(91, 132, 255, 0.34);
  --grad:          linear-gradient(135deg, #4C74FF 0%, #7FA6FF 52%, #35D6EC 100%);
  --grad-soft:     linear-gradient(135deg, rgba(91,132,255,.16), rgba(53,214,236,.10));

  --ok:            #45D3A0;
  --ok-soft:       rgba(69, 211, 160, 0.12);
  --warn:          #F0B457;
  --warn-soft:     rgba(240, 180, 87, 0.12);
  --danger:        #F08A80;
  --danger-soft:   rgba(240, 138, 128, 0.12);

  --cloud-a:       rgba(76, 116, 255, 0.20);
  --cloud-b:       rgba(53, 214, 236, 0.12);
  --cloud-c:       rgba(120, 100, 255, 0.14);

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --sh-2: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 30px -16px rgba(0, 0, 0, 0.7);
  --sh-3: 0 2px 6px rgba(0, 0, 0, 0.55), 0 28px 60px -24px rgba(0, 0, 0, 0.8);
  --sh-brand: 0 10px 30px -14px rgba(76, 116, 255, 0.7);
  color-scheme: dark;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--tx-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: rgba(76, 134, 255, 0.22); }

/* ---------------- 云层氛围 ---------------- */
.atmos {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(820px 520px at 8% -12%, var(--cloud-a), transparent 62%),
    radial-gradient(680px 460px at 86% -6%, var(--cloud-b), transparent 60%),
    radial-gradient(900px 700px at 52% 4%, var(--cloud-c), transparent 66%);
}
.atmos::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(13, 26, 48, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 26, 48, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 46% at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(70% 46% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.9;
}
html[data-theme="dark"] .atmos::after {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* ---------------- 布局 ---------------- */
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 28px; }
.page { position: relative; z-index: 1; }
section[id] { scroll-margin-top: 84px; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in {
  height: 100%; display: flex; align-items: center; gap: 34px;
  width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: var(--sh-brand);
  position: relative;
}
.brand__mark svg { width: 17px; height: 17px; stroke: #fff; }
.brand__name {
  font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em;
}
.brand__name i {
  font-style: normal; font-weight: 600; color: var(--tx-3);
  font-size: 11px; letter-spacing: 0.06em; margin-left: 7px;
  padding-left: 8px; border-left: 1px solid var(--line-2);
  vertical-align: 2px;
}
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav__link {
  padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--tx-2); font-weight: 500;
  transition: color .16s, background .16s;
}
.nav__link:hover { color: var(--tx-1); background: var(--surface-3); }
.nav__link.is-on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  white-space: nowrap; transition: transform .14s, box-shadow .16s, background .16s, border-color .16s, color .16s;
  border: 1px solid transparent;
}
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { filter: brightness(1.06); box-shadow: 0 12px 32px -10px rgba(43,85,224,.6); }
.btn--ghost {
  background: var(--surface); color: var(--tx-1);
  border-color: var(--line-2); box-shadow: var(--sh-1);
}
.btn--ghost:hover { border-color: var(--line-3); background: var(--surface-2); }
.btn--quiet { color: var(--tx-2); }
.btn--quiet:hover { background: var(--surface-3); color: var(--tx-1); }
.btn--lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn--block { width: 100%; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; color: var(--tx-2);
  border: 1px solid transparent; transition: background .16s, color .16s, border-color .16s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--tx-1); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn--boxed { border-color: var(--line-2); background: var(--surface); box-shadow: var(--sh-1); }

/* ---------------- Hero ---------------- */
.hero { padding: 62px 0 54px; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: 52px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  height: 27px; padding: 0 11px 0 8px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--sh-1);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.045em;
  color: var(--tx-2); text-transform: uppercase;
}
.eyebrow b { color: var(--brand); font-weight: 700; }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-3);
  box-shadow: 0 0 0 3px rgba(23,191,216,.16);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 4.1vw, 54px);
  line-height: 1.13; letter-spacing: -0.032em; font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  /* 兜底：不支持时也能读 */
  padding-bottom: 2px;
}
.hero__lead {
  margin-top: 16px; max-width: 30em;
  font-size: 16.5px; line-height: 1.75; color: var(--tx-2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px;
  font-size: 12.5px; color: var(--tx-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 13px; height: 13px; color: var(--ok); }

/* Hero 右侧：工作台切片 */
.slice { position: relative; }
.slice__glow {
  position: absolute; inset: -18% -12% -22% -10%;
  background: radial-gradient(60% 60% at 50% 40%, var(--cloud-a), transparent 70%);
  filter: blur(22px); z-index: 0;
}
.win {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transform-origin: 60% 40%;
}
.win__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-3); }
.win__title {
  margin-left: 8px; font-family: var(--mono); font-size: 11px;
  color: var(--tx-3); letter-spacing: 0.02em;
}
.win__body { padding: 16px; display: grid; gap: 10px; background: var(--surface); }
.win__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.win__week { display: flex; gap: 6px; }
.win__day {
  flex: 1; height: 46px; border-radius: 8px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.win__day::after {
  content: ""; width: 100%; height: var(--h, 40%);
  background: linear-gradient(180deg, rgba(76, 134, 255, 0.92), rgba(23, 191, 216, 0.72));
  border-radius: 0 0 6px 6px;
  opacity: 0.85;
}
.win__day[style*="--h:0%"]::after { opacity: 0; }
.win__day.is-on { border-color: var(--brand-line); box-shadow: 0 0 0 2px var(--brand-soft); }
.win__task {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2);
}
.win__check {
  width: 15px; height: 15px; border-radius: 5px; flex-shrink: 0;
  border: 1.5px solid var(--line-3); display: grid; place-items: center;
}
.win__check.is-done { background: var(--grad); border-color: transparent; }
.win__check.is-done svg { width: 9px; height: 9px; stroke: #fff; stroke-width: 3; }
.win__task b { font-size: 13px; font-weight: 600; }
.win__task span { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--tx-4); }
.win__kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.win__kpi div {
  padding: 10px 12px; border-radius: 10px; background: var(--surface-3);
  border: 1px solid var(--line);
}
.win__kpi i {
  display: block; font-style: normal; font-size: 10px; color: var(--tx-3);
  font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.win__kpi b {
  display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; margin-top: 1px;
}
/* 浮动工具片 */
.chipfloat {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 13px 9px 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
  font-size: 12.5px; font-weight: 600;
}
.chipfloat i {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand);
}
.chipfloat i svg { width: 13px; height: 13px; }
.chipfloat small { display: block; font-size: 10.5px; color: var(--tx-3); font-weight: 500; }
.chipfloat--a { left: -22px; bottom: -16px; animation: float 7s ease-in-out infinite; }
.chipfloat--b { right: -14px; top: -18px; animation: float 8.5s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------------- 事实条 ---------------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-2);
  overflow: hidden;
  margin-top: 8px;
}
.facts div {
  padding: 18px 22px; border-left: 1px solid var(--line);
}
.facts div:first-child { border-left: 0; }
.facts b {
  display: block; font-size: 24px; font-weight: 750; letter-spacing: -0.028em;
  font-variant-numeric: tabular-nums;
}
.facts b span { font-size: 13px; font-weight: 600; color: var(--tx-3); margin-left: 3px; }
.facts i {
  display: block; font-style: normal; font-size: 12px; color: var(--tx-3);
  margin-top: 2px;
}

/* ---------------- 章节 ---------------- */
.sec { padding: 74px 0 0; }
.sec__head { max-width: 640px; }
.sec__tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.sec__tag::before {
  content: ""; width: 18px; height: 1px; background: var(--brand-line);
}
.sec__head h2 {
  font-size: clamp(25px, 2.7vw, 33px);
  letter-spacing: -0.028em; font-weight: 750; line-height: 1.25;
  margin: 10px 0 10px;
}
.sec__head p { color: var(--tx-2); font-size: 15px; }
.sec__head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; max-width: none;
}

/* ---------------- 能力卡 ---------------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.cap {
  position: relative; padding: 22px 20px 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: transform .18s, box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.cap::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .2s;
}
.cap:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.cap:hover::after { opacity: 1; }
.cap__ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px;
  border: 1px solid var(--brand-line);
}
.cap__ico svg { width: 18px; height: 18px; }
.cap h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.012em; }
.cap p { margin-top: 6px; font-size: 13.5px; line-height: 1.7; color: var(--tx-2); }

/* ---------------- 职业场景 ---------------- */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 30px; }
.role {
  padding: 20px 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.role:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.role__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.role__ico {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line);
}
.role__ico svg { width: 16px; height: 16px; }
.role__tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--tx-4);
}
.role h3 { font-size: 14.5px; font-weight: 700; }
.role p { font-size: 12.5px; color: var(--tx-3); margin-top: 3px; line-height: 1.6; }
.role ul { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); display: grid; gap: 6px; }
.role li {
  font-size: 12px; color: var(--tx-2); display: flex; gap: 7px; line-height: 1.5;
}
.role li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand-2); margin-top: 7px; flex-shrink: 0;
}
.role[data-role="pm"] { --brand-2: #6366F1; }
.role[data-role="designer"] { --brand-2: #A855F7; }
.role[data-role="student"] { --brand-2: #10B981; }
.role[data-role="parent"] { --brand-2: #F59E0B; }
.role[data-role="shop"] { --brand-2: #EF4444; }

/* ---------------- 三步 ---------------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-2); overflow: hidden;
}
.step { padding: 24px 24px 26px; border-left: 1px solid var(--line); position: relative; }
.step:first-child { border-left: 0; }
.step__n {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--brand); letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 8px;
}
.step__n::after {
  content: ""; height: 1px; width: 26px; background: var(--brand-line);
}
.step h3 { margin-top: 10px; font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.step p { margin-top: 6px; font-size: 13.5px; color: var(--tx-2); line-height: 1.7; }
.step__code {
  display: inline-block; margin-top: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--brand);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  padding: 3px 8px; border-radius: 6px;
}

/* ---------------- 工具卡 ---------------- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.tool {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: transform .16s, box-shadow .2s, border-color .2s;
  position: relative;
}
.tool:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.tool__top { display: flex; align-items: flex-start; gap: 10px; }
.tool__ico {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line);
  color: var(--brand);
  font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.tool h3 { font-size: 13.8px; font-weight: 680; letter-spacing: -.01em; line-height: 1.4; }
.tool p { font-size: 12.3px; color: var(--tx-3); line-height: 1.6; }
.tool__foot {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; color: var(--tx-4);
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 19px; padding: 0 6px; border-radius: 5px;
  font-size: 10.5px; font-weight: 600; font-family: var(--font);
  background: var(--surface-3); color: var(--tx-3); border: 1px solid var(--line);
}
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge--brand { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tool__foot .badge:first-child { margin-right: auto; }

/* ---------------- 技巧 ---------------- */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.tip {
  padding: 22px 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  display: flex; flex-direction: column; gap: 9px;
  transition: transform .16s, box-shadow .2s, border-color .2s;
}
.tip:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.tip__meta {
  font-family: var(--mono); font-size: 10.5px; color: var(--tx-4);
  letter-spacing: .04em; display: flex; gap: 10px; align-items: center;
}
.tip h3 { font-size: 16px; font-weight: 700; line-height: 1.45; letter-spacing: -.015em; }
.tip p { font-size: 13px; color: var(--tx-2); line-height: 1.7; }
.tip__go { margin-top: auto; padding-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 5px; }
.tip__go svg { width: 13px; height: 13px; transition: transform .18s; }
.tip:hover .tip__go svg { transform: translateX(3px); }

/* ---------------- FAQ ---------------- */
.faq { margin-top: 28px; display: grid; gap: 10px; max-width: 940px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; text-align: left; font-size: 14.5px; font-weight: 650;
  letter-spacing: -.01em;
}
.faq__q:hover { background: var(--surface-2); }
.faq__q i {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line-2); display: grid; place-items: center;
  color: var(--tx-3); transition: transform .22s, background .2s, color .2s;
}
.faq__q i svg { width: 11px; height: 11px; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); background: var(--brand); color: #fff; border-color: transparent; }
.faq__a {
  display: none; padding: 0 18px 17px; font-size: 13.8px; line-height: 1.78; color: var(--tx-2);
  max-width: 62em;
}
.faq__item.is-open .faq__a { display: block; }
.faq__a code {
  font-family: var(--mono); font-size: 12.5px; background: var(--surface-3);
  padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line);
}

/* ---------------- 底部 CTA ---------------- */
.cta {
  margin-top: 76px; position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: var(--surface); box-shadow: var(--sh-2);
  padding: 46px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 300px at 88% 10%, var(--cloud-a), transparent 70%),
    radial-gradient(420px 260px at 70% 100%, var(--cloud-b), transparent 70%);
  opacity: .9;
}
.cta__in { position: relative; z-index: 1; max-width: 620px; }
.cta h2 { font-size: clamp(22px, 2.4vw, 29px); letter-spacing: -.028em; font-weight: 760; line-height: 1.3; }
.cta p { margin-top: 9px; color: var(--tx-2); font-size: 14.5px; }
.cta__acts { position: relative; z-index: 1; display: flex; gap: 10px; flex-shrink: 0; }

/* ---------------- 页脚 ---------------- */
.foot { margin-top: 56px; border-top: 1px solid var(--line); padding: 40px 0 30px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot__about p { margin-top: 12px; font-size: 12.8px; color: var(--tx-3); line-height: 1.75; max-width: 30em; }
.foot h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--tx-4); font-family: var(--mono); margin-bottom: 12px;
}
.foot__col a {
  display: block; font-size: 13px; color: var(--tx-2); padding: 4px 0;
  transition: color .15s;
}
.foot__col a:hover { color: var(--brand); }
.foot__bar {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: 12px; color: var(--tx-4);
}
.foot__bar a { color: var(--tx-3); }
.foot__bar a:hover { color: var(--brand); }
.foot__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; }
.foot__meta a { display: inline-flex; align-items: center; gap: 5px; }
.foot__meta svg { width: 12px; height: 12px; }

/* ============================================================
   工具的页面：工具中心
   ========================================================== */
.toolhero { padding: 52px 0 8px; text-align: center; }
.toolhero h1 {
  font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.032em;
  font-weight: 800; line-height: 1.18;
}
.toolhero p { margin: 12px auto 0; max-width: 46em; color: var(--tx-2); font-size: 15.5px; }
.toolhero__stats {
  display: flex; justify-content: center; gap: 26px; margin-top: 18px;
  font-family: var(--mono); font-size: 11.5px; color: var(--tx-4);
  letter-spacing: .03em; flex-wrap: wrap;
}
.toolhero__stats b { color: var(--tx-2); font-weight: 700; }

.searchbar {
  margin: 26px auto 0; max-width: 660px; position: relative;
}
.searchbar__box {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 8px 0 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--sh-2);
  transition: border-color .18s, box-shadow .18s;
}
.searchbar__box:focus-within {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 4px var(--brand-soft), var(--sh-2);
}
.searchbar__box > svg { width: 18px; height: 18px; color: var(--tx-3); flex-shrink: 0; }
.searchbar input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none;
  font-size: 15px;
}
.searchbar input::placeholder { color: var(--tx-4); }
.kbd {
  font-family: var(--mono); font-size: 10.5px; color: var(--tx-4);
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  padding: 2px 6px; border-radius: 5px; background: var(--surface-2);
}
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px;
}
.chip {
  height: 32px; padding: 0 13px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 550; color: var(--tx-2);
  background: var(--surface); border: 1px solid var(--line-2);
  transition: all .16s;
}
.chip:hover { border-color: var(--line-3); color: var(--tx-1); }
.chip.is-on {
  background: var(--brand); border-color: transparent; color: #fff;
  box-shadow: var(--sh-brand);
}
.chip span { font-family: var(--mono); font-size: 10.5px; opacity: .65; }

/* 分类区块 */
.cat { padding-top: 44px; }
.cat__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cat__head h2 {
  font-size: 18px; font-weight: 720; letter-spacing: -.018em;
  display: inline-flex; align-items: center; gap: 9px;
}
.cat__head h2 i {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--brand-line); color: var(--brand);
}
.cat__head h2 i svg { width: 13px; height: 13px; }
.cat__head p { font-size: 12.8px; color: var(--tx-3); }
.cat__head span.count {
  margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--tx-4);
}

/* 工具页：详情 */
.crumbs {
  display: flex; align-items: center; gap: 7px; padding: 22px 0 0;
  font-size: 12.5px; color: var(--tx-3);
}
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 11px; height: 11px; color: var(--tx-4); }
.crumbs b { color: var(--tx-2); font-weight: 600; }

.detail { padding: 18px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.detail__main { min-width: 0; }
.detail h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; font-weight: 790; line-height: 1.24; }
.detail__lead { margin-top: 9px; color: var(--tx-2); font-size: 15px; max-width: 46em; }
.detail__metas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.panel {
  margin-top: 20px; border-radius: var(--r-lg);
  border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: var(--sh-2); overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.panel__bar .t {
  font-size: 12.5px; font-weight: 650; color: var(--tx-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.panel__bar .t svg { width: 13px; height: 13px; color: var(--brand); }
.panel__bar .sp { flex: 1; }
.panel__grid { display: grid; grid-template-columns: 1fr 1fr; }
.panel__col { min-width: 0; }
.panel__col + .panel__col { border-left: 1px solid var(--line); }
.panel__colhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--tx-4);
}
.panel textarea {
  display: block; width: 100%; min-height: 268px; resize: vertical;
  padding: 13px 14px; border: 0; outline: none; background: transparent;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.75; color: var(--tx-1);
  tab-size: 2;
}
.panel textarea::placeholder { color: var(--tx-4); }
.panel__out {
  min-height: 268px; max-height: 420px; overflow: auto;
  padding: 12px 14px; margin: 0;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word;
}
.panel__out .k { color: var(--brand); }
.panel__out .s { color: var(--ok); }
.panel__out .n { color: #B45309; }
.panel__out .b { color: #7C3AED; }
.panel__out .empty { color: var(--tx-4); }
.panel__foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 12px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.panel__foot .sp { flex: 1; }
.hint {
  font-size: 12px; color: var(--tx-3); display: inline-flex; align-items: center; gap: 5px;
}
.hint svg { width: 12px; height: 12px; }
.hint--err { color: var(--danger); }
.hint--ok { color: var(--ok); }
.panel__foot .sel {
  height: 30px; padding: 0 8px; border-radius: 7px; font-size: 12px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--tx-2);
  outline: none;
}

/* 说明区块 */
.prose { margin-top: 34px; }
.prose h2 {
  font-size: 19px; font-weight: 720; letter-spacing: -.018em;
  margin-bottom: 12px; display: flex; align-items: center; gap: 9px;
}
.prose h2::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--grad);
}
.prose ol.steps2 { display: grid; gap: 10px; counter-reset: s; }
.prose ol.steps2 li {
  display: flex; gap: 12px; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 13.8px; color: var(--tx-2); line-height: 1.7;
}
.prose ol.steps2 li::before {
  counter-increment: s; content: counter(s);
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; margin-top: 1px;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
}
.prose ol.steps2 li b { color: var(--tx-1); }
.example {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.example figure {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--surface);
}
.example figcaption {
  padding: 7px 12px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--tx-4);
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.example pre {
  margin: 0; padding: 12px 14px; font-family: var(--mono); font-size: 12.3px;
  line-height: 1.72; color: var(--tx-2); overflow: auto; white-space: pre-wrap;
}

/* 侧栏 */
.sidecard {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-1); padding: 16px;
}
.sidecard + .sidecard { margin-top: 12px; }
.sidecard h3 {
  font-size: 12px; font-family: var(--mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--tx-4); margin-bottom: 11px;
}
.sidecard ul { display: grid; gap: 2px; }
.sidecard li a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 7px; font-size: 13px; color: var(--tx-2);
}
.sidecard li a:hover { background: var(--surface-3); color: var(--tx-1); }
.sidecard li a svg { width: 13px; height: 13px; color: var(--tx-4); }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 5px 0; }
.kv span { color: var(--tx-3); }
.kv b { font-weight: 600; }
.kv + .kv { border-top: 1px dashed var(--line); }

/* 全局提示条 */
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 26px; padding: 12px 15px; border-radius: var(--r-md);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  font-size: 12.8px; color: var(--tx-2); line-height: 1.65;
}
.notice svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.notice b { color: var(--tx-1); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .win { transform: none; }
  .chipfloat--a { left: 8px; bottom: -14px; }
  .chipfloat--b { right: 8px; top: -16px; }
  .slice { margin-top: 10px; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(3, 1fr); }
  .tools { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .facts div:nth-child(4) { border-top: 1px solid var(--line); }
  .detail { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .sidecard + .sidecard { margin-top: 0; }
  .nav__links { display: none; }
}
@media (max-width: 760px) {
  .wrap, .nav__in { padding: 0 18px; }
  .brand__name i { display: none; }
  .nav__actions { gap: 6px; }
  .nav__actions .btn--primary { padding: 0 13px; font-size: 13px; }
  .chipfloat { display: none; }
  .win__bar { min-width: 0; }
  .win__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero__lead { font-size: 15.5px; line-height: 1.72; }
  /* 分类按方案做横向滚动，不堆成四行 */
  .chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 2px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .hero { padding: 38px 0 30px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .tips { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 30px 22px; }
  .cta__acts { width: 100%; }
  .cta__acts .btn { flex: 1; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot__about { grid-column: 1 / -1; }
  .panel__grid { grid-template-columns: 1fr; }
  .panel__col + .panel__col { border-left: 0; border-top: 1px solid var(--line); }
  .example { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; min-width: 140px; }
  .nav__actions .btn--ghost { display: none; }
  .sec__head--row { flex-direction: column; align-items: flex-start; }
  .foot__meta { margin-left: 0; width: 100%; }
}
@media (max-width: 460px) {
  .nav__in { gap: 10px; }
  .nav__actions .btn--quiet { padding: 0 8px; }
  .nav__actions .btn--primary { padding: 0 10px; }
  .nav__actions .btn--primary svg { display: none; }
  .panel textarea, .panel__out { min-height: 180px; }
  .caps { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
}

/* ==================== 工具运行态组件 v1.0.0 ==================== */
.form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; padding: 16px;
}
.form-grid .field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field-l {
  font-size: 11.5px; font-weight: 650; color: var(--tx-2);
  font-family: var(--mono); letter-spacing: .02em;
}
.field-l b { color: var(--brand); font-weight: 700; }
.input {
  width: 100%; min-height: 38px; padding: 8px 11px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--surface); color: var(--tx-1);
  font-family: var(--font); font-size: 13px; outline: none;
}
.input:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.sel {
  min-height: 38px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--tx-1); font-family: var(--font); font-size: 13px; outline: none;
}
.checks { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 38px; }
.checks .sel { min-height: 34px; }
.checks input[type=checkbox] { accent-color: var(--brand); }
.ta { display: block; width: 100%; min-height: 220px; resize: vertical; padding: 14px; border: 0; outline: none; background: transparent; font-family: var(--mono); font-size: 12.8px; line-height: 1.75; color: var(--tx-1); }
.ta::placeholder { color: var(--tx-4); }
.ta--tall { min-height: 280px; }
.result-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  padding: 0 16px 16px;
}
.result {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); padding: 12px 14px; min-width: 0;
}
.result.wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result b { display: block; font-size: 11.5px; color: var(--tx-4); font-weight: 600; }
.result span { display: block; margin-top: 5px; font-size: 15px; font-weight: 700; color: var(--tx-1); font-variant-numeric: tabular-nums; word-break: break-word; }
.wide span { color: var(--brand); }
.result.err span { color: var(--danger); }
.secret-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0 16px 16px; padding: 14px 16px;
  border: 1px solid var(--brand-line); border-radius: var(--r-md);
  background: var(--brand-soft);
}
.secret-box code { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--brand); word-break: break-all; }
.secret-box > div { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; }
.qr-box { min-height: 220px; display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.qr-box img, .qr-box canvas { display: block; }
.img-preview { min-height: 180px; display: grid; place-items: center; width: 100%; border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.img-preview img { max-width: 100%; max-height: 340px; border-radius: 8px; }
.color-preview { height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--brand); }
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .result-grid { grid-template-columns: 1fr; }
  .secret-box { flex-direction: column; align-items: flex-start; }
}

/* ==================== 公开页面与筛选状态 ==================== */
[hidden] { display: none !important; }
.public-note {
  margin: 14px 0 0; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface-2); color: var(--tx-3);
  font-size: 12px; line-height: 1.7;
}
.noscript-note {
  margin: 10px 0 0; padding: 10px 13px;
  border: 1px dashed var(--line-2); border-radius: 9px;
  color: var(--tx-3); font-size: 12px; line-height: 1.7;
}
