/* 大锤发型 · 100% 新大锤官网珠光微网格设计语言（纯白 #ffffff + 48px 珠光微网格 + 皇家钴蓝 #2350dc + 曜石黑 #111827 ↔ 曜石星夜 #0b0f19 · 零 Emoji · 零 select） */

:root {
  --hair-bg: #ffffff;
  --hair-surface: #ffffff;
  --hair-tint: #f5f7fb;
  --hair-stage: #f3f5f9;
  --hair-ink: #0f172a;
  --hair-ink-2: #475569;
  --hair-muted: #64748b;
  --hair-faint: #94a3b8;
  --hair-rule: rgba(15, 23, 42, 0.08);
  --hair-rule-strong: rgba(15, 23, 42, 0.14);
  --cobalt: #2350dc;
  --cobalt-hover: #1a3fb8;
  --cobalt-soft: #eef3ff;
  --obsidian: #111827;
  --obsidian-fg: #ffffff;
  --obsidian-hover: #1f2937;
  --ok-green: #0f766e;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --hair-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 14px 34px -16px rgba(15, 23, 42, 0.09);
  --hair-grid-line: rgba(15, 23, 42, 0.032);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --hair-bg: #0b0f19;
  --hair-surface: #111827;
  --hair-tint: #161f32;
  --hair-stage: #0f172a;
  --hair-ink: #f1f5f9;
  --hair-ink-2: #cbd5e1;
  --hair-muted: #94a3b8;
  --hair-faint: #64748b;
  --hair-rule: rgba(148, 163, 184, 0.14);
  --hair-rule-strong: rgba(148, 163, 184, 0.24);
  --cobalt: #5c8aff;
  --cobalt-hover: #7aa0ff;
  --cobalt-soft: rgba(92, 138, 255, 0.16);
  --obsidian: #f8fafc;
  --obsidian-fg: #0f172a;
  --obsidian-hover: #e2e8f0;
  --ok-green: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --hair-shadow: 0 2px 6px rgba(0, 0, 0, 0.32), 0 16px 36px -14px rgba(0, 0, 0, 0.52);
  --hair-grid-line: rgba(148, 163, 184, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body.hair-page {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--hair-bg);
  color: var(--hair-ink);
  font-family: "XinHammer Sans", "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.hair-main {
  flex: 1 0 auto;
  padding-bottom: 5.5rem;
}

.hair-page .wrap {
  width: min(74rem, calc(100% - 2.25rem));
  margin-inline: auto;
}

/* ---------- 1. 60px 官网磨砂顶栏 ---------- */
.hair-header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair-rule);
}

html[data-theme="dark"] .hair-header-wrap {
  background: rgba(11, 15, 25, 0.88);
}

.site-header.studio-nav.hair-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 60px;
  border-bottom: 0;
  padding-block: 6px;
}

.hair-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.site-header.studio-nav.hair-header .hair-brand-group .identity {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  text-decoration: none;
}

.hair-brand-group .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  flex: none;
}

.hair-brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
}

.site-header.studio-nav.hair-header .hair-brand-text .wordmark {
  font-family: "XinHammer Logo EN", var(--sans);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.03em;
  color: var(--cobalt);
  line-height: 1.05;
}

.site-header.studio-nav.hair-header .hair-brand-text .brand-name {
  padding-left: 0;
  border-left: 0;
  font-family: "XinHammer Logo CN", var(--sans);
  font-size: 1.06rem;
  font-weight: 840;
  letter-spacing: 0.015em;
  color: var(--hair-ink);
  white-space: nowrap;
}

.hair-back-link {
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--hair-muted);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--hair-rule-strong);
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}
.hair-back-link:hover { color: var(--cobalt); border-color: var(--cobalt); }

.hair-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.hair-gender-seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--hair-tint);
  border: 1px solid var(--hair-rule);
}

.hair-gender-btn {
  height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hair-ink-2);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.hair-gender-btn.is-active {
  background: var(--obsidian);
  color: var(--obsidian-fg);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.hair-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--hair-rule-strong);
  background: var(--hair-surface);
  color: var(--hair-ink-2);
  cursor: pointer;
  flex: none;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}
.hair-icon-btn:hover { color: var(--cobalt); border-color: var(--cobalt); }

.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

.hair-header .site-account-pill {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--hair-rule-strong);
  background: var(--hair-surface);
  color: var(--hair-ink);
  white-space: nowrap;
}

/* ---------- 2. 48px 珠光微网格首屏 + 右上同位零位移折叠 ---------- */
.hair-hero-band {
  position: relative;
  border-bottom: 1px solid var(--hair-rule);
  background-color: var(--hair-bg);
  background-image:
    radial-gradient(48rem 22rem at 82% 8%, rgba(35, 80, 220, 0.065), transparent 70%),
    radial-gradient(36rem 18rem at 12% 96%, rgba(245, 158, 11, 0.045), transparent 72%),
    linear-gradient(to right, var(--hair-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair-grid-line) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

html[data-theme="dark"] .hair-hero-band {
  background-image:
    radial-gradient(48rem 22rem at 82% 8%, rgba(92, 138, 255, 0.12), transparent 70%),
    linear-gradient(to right, var(--hair-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair-grid-line) 1px, transparent 1px);
}

.hair-hero-compact,
.hair-hero-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding-block: 8px;
}

.hair-hero-full {
  padding-bottom: 28px;
}

html[data-hero-collapsed="true"] .hair-hero-full { display: none; }
html[data-hero-collapsed="false"] .hair-hero-compact { display: none; }

.hair-eyebrow,
.hair-compact-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hair-muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hair-eyebrow {
  color: var(--cobalt);
  letter-spacing: 0.01em;
}

.hair-ghost-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hair-rule-strong);
  background: var(--hair-surface);
  color: var(--hair-ink-2);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease;
}
.hair-ghost-toggle:hover { color: var(--cobalt); border-color: var(--cobalt); }

.hair-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
  padding-top: 8px;
}

.hair-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.3vw, 2.55rem);
  font-weight: 820;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--hair-ink);
}

.hair-hero-copy h1 span {
  color: var(--cobalt);
}

.hair-hero-lead {
  margin: 0 0 20px;
  font-size: 0.98rem;
  color: var(--hair-ink-2);
  max-width: 36rem;
}

.hair-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hair-hero-media {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--hair-rule);
  box-shadow: var(--hair-shadow);
  background: var(--hair-tint);
}

.hair-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- 通用按钮体系 ---------- */
.hair-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--obsidian);
  color: var(--obsidian-fg);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}
.hair-btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }

.hair-btn-cobalt {
  background: var(--cobalt);
  color: #ffffff;
}
.hair-btn-cobalt:hover { background: var(--cobalt-hover); opacity: 1; }

.hair-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--hair-rule-strong);
  background: var(--hair-surface);
  color: var(--hair-ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.hair-btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); }
.hair-btn-outline.is-selected {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

.hair-btn-sm {
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.8rem;
}

/* ---------- 3. 主工作区四大专馆导航坞 ---------- */
.hair-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.hair-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--hair-tint);
  border: 1px solid var(--hair-rule);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.hair-tabs::-webkit-scrollbar { display: none; }

.hair-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hair-ink-2);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.hair-tab.is-active {
  background: var(--hair-surface);
  color: var(--cobalt);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.hair-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
}

.hair-nav-hint {
  font-size: 0.82rem;
  color: var(--hair-muted);
}

/* ---------- 4. 三维硬约束筛选面板（胶囊分段选择器 · 零 select） ---------- */
.hair-filter-card {
  border-radius: 20px;
  border: 1px solid var(--hair-rule);
  background: var(--hair-surface);
  box-shadow: var(--hair-shadow);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.hair-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.hair-filter-head-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.hair-filter-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 760;
}

.hair-filter-sub {
  font-size: 0.82rem;
  color: var(--hair-muted);
}

.hair-reset-btn {
  border: 0;
  background: transparent;
  color: var(--cobalt);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.hair-reset-btn:hover { background: var(--cobalt-soft); }

.hair-dim-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hair-dim-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.hair-dim-label {
  font-size: 0.82rem;
  font-weight: 680;
  color: var(--hair-ink-2);
  padding-top: 5px;
}

.hair-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hair-pill {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--hair-rule-strong);
  background: var(--hair-surface);
  color: var(--hair-ink-2);
  font: inherit;
  font-size: 0.81rem;
  font-weight: 580;
  cursor: pointer;
  white-space: nowrap;
  transition: all 140ms ease;
}
.hair-pill:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}
.hair-pill[aria-pressed="true"] {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: #ffffff;
  font-weight: 650;
}

.hair-diagnosis-bar {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--cobalt-soft);
  color: var(--hair-ink);
  font-size: 0.83rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hair-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--hair-muted);
}

/* ---------- 5. 剪发馆高审美图鉴与工程参数网格 ---------- */
.hair-cut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hair-cut-card {
  border-radius: 22px;
  border: 1px solid var(--hair-rule);
  background: var(--hair-surface);
  box-shadow: var(--hair-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease;
}
.hair-cut-card.is-picked {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 1px var(--cobalt), var(--hair-shadow);
}

.hair-cut-top {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 18px 14px;
}

.hair-cut-portrait {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--hair-stage);
  border: 1px solid var(--hair-rule);
  aspect-ratio: 1 / 1;
}

.hair-cut-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hair-cut-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.hair-cut-head-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hair-cut-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hair-cut-title-row h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 780;
  line-height: 1.25;
}

.hair-fit-pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--ok-soft);
  color: var(--ok-green);
  white-space: nowrap;
  flex-shrink: 0;
}

.hair-cut-sub {
  margin: 0;
  font-size: 0.83rem;
  color: var(--hair-ink-2);
}

.hair-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.hair-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--hair-tint);
  color: var(--hair-ink-2);
}
.hair-chip--hit {
  background: var(--cobalt-soft);
  color: var(--cobalt);
}
.hair-chip--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.hair-spec-box {
  margin: 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--hair-tint);
  display: grid;
  gap: 6px;
  font-size: 0.81rem;
}

.hair-spec-line {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 8px;
  line-height: 1.48;
}

.hair-spec-line dt {
  font-weight: 700;
  color: var(--hair-muted);
}

.hair-spec-line dd {
  margin: 0;
  color: var(--hair-ink);
  font-weight: 540;
}

.hair-bp-drawer {
  margin: 10px 18px 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--hair-rule);
  background: var(--hair-surface);
}

.hair-bp-svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--hair-ink);
}

.hair-cut-foot {
  margin-top: auto;
  padding: 14px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hair-cut-foot-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hair-cut-foot-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ---------- 6. 烫发馆网格 ---------- */
.hair-perm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hair-perm-card {
  border-radius: 20px;
  border: 1px solid var(--hair-rule);
  background: var(--hair-surface);
  box-shadow: var(--hair-shadow);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hair-perm-card.is-picked {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 1px var(--cobalt), var(--hair-shadow);
}

.hair-perm-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hair-perm-top h3 {
  margin: 0 0 3px;
  font-size: 1.06rem;
  font-weight: 780;
}

.hair-perm-buzz {
  font-size: 0.78rem;
  color: var(--hair-muted);
}

.hair-wave-svg {
  width: 118px;
  height: 32px;
  flex-shrink: 0;
  color: var(--hair-ink);
}

.hair-perm-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--hair-tint);
  font-size: 0.8rem;
}

.hair-perm-kv div strong {
  display: block;
  font-size: 0.73rem;
  color: var(--hair-muted);
  font-weight: 600;
}

.hair-perm-avoid {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.8rem;
  line-height: 1.48;
}

.hair-perm-foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- 7. 染发馆与独创「三阶段真实发丝光泽掉色条」 ---------- */
.hair-dye-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hair-dye-card {
  border-radius: 22px;
  border: 1px solid var(--hair-rule);
  background: var(--hair-surface);
  box-shadow: var(--hair-shadow);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hair-dye-card.is-picked {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 1px var(--cobalt), var(--hair-shadow);
}

.hair-dye-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hair-dye-head h3 {
  margin: 0 0 3px;
  font-size: 1.1rem;
  font-weight: 780;
}

.hair-bleach-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.hair-bleach-pill--0 { background: var(--ok-soft); color: var(--ok-green); }
.hair-bleach-pill--1 { background: var(--cobalt-soft); color: var(--cobalt); }
.hair-bleach-pill--2 { background: var(--warn-soft); color: var(--warn); }

/* 三阶段真实发丝高光演变条 */
.hair-fade-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.hair-fade-step {
  position: relative;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px 10px 10px;
  min-height: 76px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 140ms ease, border-color 140ms ease;
}
.hair-fade-step:hover { transform: translateY(-1px); }
.hair-fade-step.is-active {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 2px var(--hair-surface), 0 0 0 4px var(--cobalt);
}
.hair-fade-step.is-light-swatch {
  color: #1e293b;
}

.hair-fade-step-lbl {
  font-size: 0.74rem;
  font-weight: 720;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}
.hair-fade-step.is-light-swatch .hair-fade-step-lbl {
  text-shadow: none;
}

.hair-fade-step-hex {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.88;
  font-variant-numeric: tabular-nums;
}

.hair-fade-desc {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--hair-tint);
  font-size: 0.81rem;
  color: var(--hair-ink-2);
}

/* 肤色显白红绿灯四宫格 */
.hair-skin-lights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.hair-skin-cell {
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--hair-tint);
  font-size: 0.74rem;
  line-height: 1.35;
}
.hair-skin-cell.is-highlighted {
  outline: 1.5px solid var(--cobalt);
  background: var(--cobalt-soft);
}

.hair-skin-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--hair-ink);
  margin-bottom: 2px;
}

.hair-light-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hair-light-dot--green { background: #10b981; }
.hair-light-dot--amber { background: #f59e0b; }
.hair-light-dot--red { background: #ef4444; }

.hair-skin-sub {
  color: var(--hair-muted);
  font-size: 0.71rem;
}

.hair-dye-pitfall {
  font-size: 0.8rem;
  color: var(--hair-ink-2);
  border-left: 3px solid var(--cobalt);
  padding-left: 10px;
  line-height: 1.5;
}

/* ---------- 8. 不翻车档案与星型生态联动专馆 ---------- */
.hair-archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: start;
}

.hair-panel-card {
  border-radius: 22px;
  border: 1px solid var(--hair-rule);
  background: var(--hair-surface);
  box-shadow: var(--hair-shadow);
  padding: 20px 22px;
}

.hair-panel-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 780;
}

.hair-panel-sub {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--hair-muted);
}

.hair-field-group {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.hair-field {
  display: grid;
  gap: 5px;
}

.hair-field span {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--hair-ink-2);
}

.hair-input,
.hair-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--hair-rule-strong);
  background: var(--hair-surface);
  color: var(--hair-ink);
  font: inherit;
  font-size: 0.88rem;
  padding: 9px 12px;
  transition: border-color 140ms ease;
}
.hair-input:focus,
.hair-textarea:focus {
  outline: none;
  border-color: var(--cobalt);
}

.hair-saved-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.hair-saved-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--hair-tint);
  border: 1px solid var(--hair-rule);
  display: grid;
  gap: 6px;
}

.hair-saved-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hair-saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hair-danger-link {
  border: 0;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: auto;
}

.hair-eco-stack {
  display: grid;
  gap: 12px;
}

.hair-eco-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--hair-tint);
  border: 1px solid var(--hair-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hair-eco-copy strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.hair-eco-copy span {
  font-size: 0.79rem;
  color: var(--hair-muted);
}

.hair-care-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hair-care-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--hair-tint);
  font-size: 0.82rem;
}
.hair-care-card strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 3px;
}

/* ---------- 9. 底部常驻「当前选定配方 + 一键出施工单」悬浮船坞 ---------- */
.hair-combo-dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 38;
  width: min(52rem, calc(100% - 1.5rem));
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--hair-rule-strong);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 18px 42px -12px rgba(15, 23, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html[data-theme="dark"] .hair-combo-dock {
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.65);
}

.hair-dock-summary {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hair-dock-kicker {
  font-size: 0.72rem;
  font-weight: 680;
  color: var(--cobalt);
}

.hair-dock-title {
  font-size: 0.88rem;
  font-weight: 720;
  color: var(--hair-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hair-dock-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------- 10. 社恐救星：全屏高对比「递给 Tony 老师看的施工交底单」 ---------- */
.hair-sheet-dialog {
  width: min(56rem, calc(100vw - 1.25rem));
  max-height: calc(100svh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--hair-rule-strong);
  border-radius: 26px;
  background: var(--hair-bg);
  color: var(--hair-ink);
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.hair-sheet-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
}

.hair-sheet-dialog[data-sheet-contrast="dark"] {
  color-scheme: dark;
  --hair-bg: #0b0f19;
  --hair-surface: #111827;
  --hair-tint: #162033;
  --hair-ink: #f8fafc;
  --hair-ink-2: #e2e8f0;
  --hair-muted: #94a3b8;
  --hair-rule: rgba(148, 163, 184, 0.18);
  --hair-rule-strong: rgba(148, 163, 184, 0.28);
  --cobalt: #638fff;
  --cobalt-soft: rgba(99, 143, 255, 0.18);
  --ok-green: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.15);
  --danger: #fca5a5;
  --danger-soft: rgba(239, 68, 68, 0.14);
}

.hair-sheet-dialog[data-sheet-contrast="dark"] .hair-redline-box {
  border-color: rgba(248, 113, 113, 0.34);
}

.hair-sheet-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100svh - 1.5rem);
}

.hair-sheet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hair-rule);
  background: var(--hair-surface);
  flex-shrink: 0;
}

.hair-sheet-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hair-wake-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok-green);
  font-size: 0.73rem;
  font-weight: 680;
  white-space: nowrap;
}

.hair-sheet-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hair-sheet-topbar-title {
  white-space: nowrap;
  font-size: 0.98rem;
}

.hair-sheet-scroll {
  overflow-y: auto;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
}

.hair-sheet-scroll > * {
  flex-shrink: 0;
}

.hair-sheet-bp-wrap {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--hair-rule);
  background: var(--hair-surface);
}

.hair-sheet-greet {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--cobalt-soft);
  border: 1px solid rgba(35, 80, 220, 0.18);
}

.hair-sheet-greet p {
  margin: 0 0 6px;
  font-size: 0.86rem;
  color: var(--cobalt);
  font-weight: 700;
}

.hair-sheet-greet h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 840;
  line-height: 1.25;
}

.hair-sheet-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.hair-sheet-hero img {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--hair-rule);
}

.hair-sheet-specs {
  display: grid;
  gap: 10px;
}

.hair-sheet-spec-card {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--hair-tint);
  border: 1px solid var(--hair-rule);
  display: grid;
  grid-template-columns: 5.8rem minmax(0, 1fr);
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hair-sheet-spec-card strong {
  color: var(--cobalt);
  font-weight: 760;
}

.hair-redline-box {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--danger-soft);
  border: 1.5px solid rgba(220, 38, 38, 0.25);
  display: grid;
  gap: 10px;
}

.hair-redline-box h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--danger);
}

.hair-redline-list {
  display: grid;
  gap: 8px;
}

.hair-redline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 620;
  line-height: 1.45;
  cursor: pointer;
}

.hair-redline-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--danger);
  flex-shrink: 0;
}

.hair-sheet-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--hair-rule);
  background: var(--hair-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.hair-sheet-foot-sec {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 11. 非阻塞轻提示 Toast ---------- */
.hair-toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 90;
  padding: 9px 16px;
  border-radius: 999px;
  background: #111827;
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 24px);
}

html[data-theme="dark"] .hair-toast {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.hair-toast-act {
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--cobalt);
  color: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- 12. 极轻通透贴底页脚 ---------- */
.hair-footer {
  border-top: 1px solid var(--hair-rule);
  padding-block: 16px;
  font-size: 0.8rem;
  color: var(--hair-muted);
}

.hair-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hair-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hair-footer-links a {
  color: var(--hair-muted);
  text-decoration: none;
}
.hair-footer-links a:hover { color: var(--cobalt); }

/* ---------- 13. 移动端响应式防溢出精修（390px / 360px / 320px 严格 0px 横溢） ---------- */
@media (max-width: 60rem) {
  .hair-hero-grid,
  .hair-cut-grid,
  .hair-perm-grid,
  .hair-dye-grid,
  .hair-archive-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 44rem) {
  .hair-page .wrap {
    width: calc(100% - 1.5rem);
  }

  .site-header.studio-nav.hair-header {
    gap: 6px;
  }

  .hair-brand-group {
    gap: 7px;
  }

  .hair-brand-group .brand-icon {
    width: 28px;
    height: 28px;
  }

  .site-header.studio-nav.hair-header .hair-brand-text .brand-name {
    font-size: 0.96rem;
  }

  .hair-back-link {
    display: none;
  }

  .hair-header-actions {
    gap: 5px;
  }

  .hair-gender-btn {
    height: 28px;
    padding: 0 9px;
    font-size: 0.75rem;
  }

  .hair-icon-btn {
    width: 32px;
    height: 32px;
  }

  .hair-header .site-account-pill {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.75rem;
  }

  .hair-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .hair-tab {
    justify-content: center;
    padding: 0 6px;
    font-size: 0.82rem;
  }

  .hair-input,
  .hair-textarea {
    font-size: 16px;
  }

  .hair-dim-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .hair-dim-label {
    padding-top: 0;
  }

  .hair-cut-top {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 14px 12px;
  }

  .hair-spec-box {
    margin: 0 14px;
    padding: 10px 12px;
  }

  .hair-bp-drawer {
    margin: 10px 14px 0;
  }

  .hair-cut-foot {
    padding: 12px 14px 14px;
    flex-wrap: wrap;
  }

  .hair-skin-lights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hair-sheet-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    border: 0;
  }

  .hair-sheet-inner {
    height: 100svh;
    max-height: 100svh;
  }

  .hair-sheet-topbar {
    padding: 12px 14px;
  }

  .hair-sheet-scroll {
    padding: 14px 16px;
  }

  .hair-sheet-hero {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .hair-sheet-hero img {
    width: 96px;
    height: 96px;
  }

  .hair-sheet-spec-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    font-size: 0.9rem;
  }

  .hair-sheet-foot {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .hair-sheet-foot-sec {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hair-sheet-foot-sec .hair-btn-outline {
    padding: 0 6px;
    font-size: 0.78rem;
  }

  .hair-sheet-dl-btn {
    width: 100%;
    min-height: 40px;
  }

  .hair-combo-dock {
    width: calc(100% - 1rem);
    border-radius: 20px;
    padding: 8px 10px 8px 14px;
    gap: 8px;
  }

  .hair-dock-clear {
    display: none;
  }
}

@media (max-width: 25rem) {
  .hair-wake-badge {
    display: none;
  }
  .hair-header .site-account-dot {
    display: none;
  }
}

@media (max-width: 23rem) {
  .site-header.studio-nav.hair-header .hair-brand-text .wordmark {
    display: none;
  }
  .site-header.studio-nav.hair-header .hair-brand-text .brand-name {
    font-size: 0.88rem;
  }
  .hair-gender-btn {
    padding: 0 7px;
    font-size: 0.72rem;
  }
  .hair-header .site-account-pill {
    padding: 0 7px;
    font-size: 0.71rem;
  }
  .hair-icon-btn {
    width: 29px;
    height: 29px;
  }
  .hair-tab {
    padding: 0 4px;
    font-size: 0.76rem;
  }
  .hair-dock-title {
    font-size: 0.8rem;
  }
  #btn-dock-open-sheet {
    padding: 0 11px;
    font-size: 0.76rem;
  }
  .hair-footer-links {
    gap: 8px;
  }
}
