/* 灰指甲疗程与费用计算器 · 深棕单列窄栏 · 前缀 nf- */
:root {
  --nf-a: #78350f;
  --nf-a2: #b45309;
  --nf-a3: #d97706;
  --nf-soft: #fef3e2;
  --nf-bg: #fbf7f1;
  --nf-card: #ffffff;
  --nf-card2: #fdf9f3;
  --nf-txt: #2d1d12;
  --nf-txt2: #6b5445;
  --nf-txt3: #9c8574;
  --nf-line: #eadccc;
  --nf-line2: #f4ece1;
  --nf-ok: #15803d;
  --nf-warn: #b45309;
  --nf-bad: #b91c1c;
  --nf-shadow: 0 1px 2px rgba(120, 53, 15, .05), 0 12px 32px -18px rgba(120, 53, 15, .3);
  --nf-r: 16px;
  --nf-r2: 11px;
}

[data-theme='dark'] .nf {
  --nf-a: #fbbf24;
  --nf-a2: #f59e0b;
  --nf-a3: #d97706;
  --nf-soft: #3a2812;
  --nf-bg: #16110c;
  --nf-card: #211a13;
  --nf-card2: #1b1510;
  --nf-txt: #f7ecdf;
  --nf-txt2: #cbb6a2;
  --nf-txt3: #94806d;
  --nf-line: #3b2f23;
  --nf-line2: #2b221a;
  --nf-ok: #4ade80;
  --nf-warn: #fbbf24;
  --nf-bad: #f87171;
  --nf-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 32px -18px rgba(0, 0, 0, .8);
}

.nf {
  background: var(--nf-bg);
  color: var(--nf-txt);
  padding: 26px 0 46px;
  font-size: 14.5px;
  line-height: 1.72;
}
.nf-inner {
  width: min(1140px, calc(100% - 44px));
  max-width: none;
  margin: 0 auto;
}
.nf-shell { width: 100%; max-width: 880px; margin: 0 auto; }

/* ---------- 免责条 ---------- */
.nf-disclaimer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--nf-a) 30%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--nf-a) 10%, var(--nf-card)), var(--nf-card));
  font-size: 13px;
  line-height: 1.6;
}
.nf-disclaimer-ico {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--nf-a);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
[data-theme='dark'] .nf .nf-disclaimer-ico { color: #16110c; }
.nf-disclaimer p { margin: 0; }
.nf-disclaimer b { color: var(--nf-a); }

/* ---------- Hero ---------- */
.nf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 20px;
  align-items: center;
  padding: 28px 28px 26px;
  border-radius: 22px;
  border: 1px solid var(--nf-line);
  background:
    radial-gradient(560px 240px at 90% 0%, rgba(217, 119, 6, .16), transparent 65%),
    linear-gradient(135deg, var(--nf-card) 0%, var(--nf-soft) 100%);
  box-shadow: var(--nf-shadow);
  position: relative;
  overflow: hidden;
}
.nf-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--nf-a), var(--nf-a3));
}
.nf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--nf-soft);
  border: 1px solid color-mix(in srgb, var(--nf-a) 24%, transparent);
  color: var(--nf-a);
  font-size: 12.5px;
  font-weight: 700;
}
.nf-hero h1 {
  margin: 13px 0 0;
  font-size: clamp(25px, 3.3vw, 38px);
  line-height: 1.26;
  letter-spacing: -.6px;
  font-weight: 800;
}
.nf-hero h1 em {
  display: inline-block;
  margin-top: 4px;
  padding: 0 2px;
  font-style: normal;
  color: var(--nf-a);
  background: linear-gradient(180deg, transparent 64%, rgba(217, 119, 6, .22) 64%);
}
.nf-sub {
  margin: 12px 0 0;
  max-width: 66ch;
  color: var(--nf-txt2);
  font-size: 14.5px;
  line-height: 1.85;
}
.nf-sub b { color: var(--nf-txt); }
.nf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.nf-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--nf-line);
  background: var(--nf-card);
  color: var(--nf-txt2);
  font-size: 12.5px;
}
.nf-tag i { font-style: normal; color: var(--nf-a); font-weight: 800; }

/* 纯 CSS 指甲剖面插画 */
.nf-hero-art { position: relative; height: 208px; }
.nf-art-nail {
  position: absolute;
  left: 50%;
  top: 46px;
  transform: translateX(-50%) rotate(-8deg);
  width: 182px;
  height: 104px;
}
.nf-art-bed {
  position: absolute;
  inset: 0;
  border-radius: 40px 40px 26px 26px;
  background: linear-gradient(180deg, #f7d9c4, #efc1a6);
  box-shadow: inset 0 -10px 18px rgba(120, 53, 15, .18);
}
[data-theme='dark'] .nf .nf-art-bed { background: linear-gradient(180deg, #5a3a25, #432b1b); }
.nf-art-plate {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 10px;
  height: 62px;
  border-radius: 32px 32px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(252, 231, 201, .88));
  border: 1px solid rgba(180, 83, 9, .28);
  box-shadow: inset 0 5px 12px rgba(255, 255, 255, .7);
}
[data-theme='dark'] .nf .nf-art-plate { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border-color: rgba(251, 191, 36, .25); }
.nf-art-edge {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 58px;
  height: 22px;
  border-radius: 0 0 22px 22px;
  background: rgba(120, 53, 15, .28);
}
.nf-art-fungus {
  position: absolute;
  border-radius: 50%;
  background: rgba(180, 83, 9, .55);
  filter: blur(1px);
  animation: nfFungus 3.6s ease-in-out infinite;
}
.nf-art-fungus.f1 { left: 26px; top: 20px; width: 34px; height: 22px; }
.nf-art-fungus.f2 { right: 24px; top: 42px; width: 26px; height: 18px; animation-delay: 1.1s; }
@keyframes nfFungus {
  0%, 100% { opacity: .35; transform: scale(.9); }
  50% { opacity: .8; transform: scale(1.1); }
}
.nf-art-arrow {
  position: absolute;
  right: -26px;
  bottom: 12px;
  color: var(--nf-a);
  font-size: 22px;
  font-weight: 800;
  animation: nfArrow 2.4s ease-in-out infinite;
}
@keyframes nfArrow {
  0%, 100% { transform: translateX(0); opacity: .5; }
  50% { transform: translateX(5px); opacity: 1; }
}
.nf-art-ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
}
.nf-art-ticks i {
  position: relative;
  padding-top: 9px;
  color: var(--nf-txt3);
  font-style: normal;
  font-size: 9.5px;
}
.nf-art-ticks i::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 6px;
  background: var(--nf-a3);
  opacity: .5;
}
.nf-chip {
  position: absolute;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--nf-line);
  background: var(--nf-card);
  color: var(--nf-txt2);
  font-size: 11px;
  font-weight: 600;
  box-shadow: var(--nf-shadow);
  white-space: nowrap;
}
.nf-chip b { color: var(--nf-a); }
.nf-chip.c1 { left: 0; top: 104px; animation: nfFloat 4s ease-in-out infinite; }
.nf-chip.c2 { right: 0; top: 22px; animation: nfFloat 4s ease-in-out .6s infinite; }
@keyframes nfFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ---------- 疗程进度条 ---------- */
.nf-progress {
  margin-top: 16px;
  padding: 16px 20px 14px;
  border: 1px solid var(--nf-line);
  border-radius: 16px;
  background: var(--nf-card);
  box-shadow: var(--nf-shadow);
}
.nf-progress-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.nf-progress-h h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.2px; }
.nf-progress-h span { font-size: 12px; color: var(--nf-txt3); }
.nf-progress-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--nf-line2);
  overflow: visible;
}
.nf-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nf-a3), var(--nf-a));
  transition: width .45s ease;
}
.nf-progress-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--nf-card);
  border: 3px solid var(--nf-a);
  transform: translate(-50%, -50%);
  transition: left .45s ease;
  box-shadow: 0 2px 8px rgba(120, 53, 15, .28);
}
.nf-progress-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--nf-txt3);
  font-size: 10.5px;
}

/* ---------- 卡片与表单 ---------- */
.nf-card {
  margin-top: 16px;
  padding: 20px 22px 22px;
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-r);
  background: var(--nf-card);
  box-shadow: var(--nf-shadow);
}
.nf-card-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.nf-card-h h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.2px;
}
.nf-no {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--nf-a);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
}
[data-theme='dark'] .nf .nf-no { color: #16110c; }
.nf-card-h small { color: var(--nf-txt3); font-size: 12px; text-align: right; }

.nf-field { margin-bottom: 15px; }
.nf-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.nf-label label { font-size: 13.5px; font-weight: 600; }
.nf-label label b { color: var(--nf-bad); }
.nf-hint { color: var(--nf-txt3); font-size: 11.5px; }

.nf-control {
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-r2);
  background: var(--nf-card2);
}
.nf-control select {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  background: transparent;
  color: var(--nf-txt);
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--nf-txt3) 50%), linear-gradient(135deg, var(--nf-txt3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.nf-numbox {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-r2);
  background: var(--nf-card2);
  overflow: hidden;
}
.nf-numbox input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--nf-txt);
  font-size: 15px;
  font-weight: 700;
  outline: none;
}
.nf-numbox span {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: var(--nf-line2);
  color: var(--nf-txt3);
  font-size: 12px;
}
.nf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nf-err { display: none; margin-top: 6px; color: var(--nf-bad); font-size: 12px; }
.nf-err.on { display: block; }
.nf-field.bad .nf-numbox,
.nf-field.bad .nf-control { border-color: var(--nf-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nf-bad) 14%, transparent); }

.nf-range-row { display: grid; grid-template-columns: 1fr 118px; gap: 14px; align-items: center; }
.nf-range-single {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: -4px 0 4px;
  font-size: 12.5px;
  color: var(--nf-txt3);
}
.nf-range-single b { color: var(--nf-a); font-size: 14px; }
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--nf-line);
  outline: none;
  width: 100%;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--nf-a);
  border: 3px solid var(--nf-card);
  box-shadow: 0 0 0 1px var(--nf-a);
  cursor: pointer;
}
input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--nf-a);
  cursor: pointer;
}

.nf-seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: var(--nf-r2); background: var(--nf-line2); }
.nf-segbtn {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--nf-txt2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.nf-segbtn.on {
  background: var(--nf-card);
  color: var(--nf-a);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.nf-segbtn:hover { color: var(--nf-a); }

.nf-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.nf-chips.one { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--nf-line);
  border-radius: 10px;
  background: var(--nf-card2);
  color: var(--nf-txt2);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.nf-check input {
  flex: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--nf-line);
  border-radius: 5px;
  appearance: none;
  position: relative;
  cursor: pointer;
}
.nf-check input:checked { background: var(--nf-a); border-color: var(--nf-a); }
.nf-check input:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
[data-theme='dark'] .nf .nf-check input:checked::after { color: #16110c; }
.nf-check:has(input:checked) { border-color: var(--nf-a); background: var(--nf-soft); color: var(--nf-txt); }

.nf-tip {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-left: 3px solid var(--nf-a3);
  border-radius: 0 8px 8px 0;
  background: var(--nf-line2);
  color: var(--nf-txt3);
  font-size: 12.5px;
  line-height: 1.75;
}

.nf-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.nf-actions.tight { margin-top: 12px; }
.nf-btn {
  padding: 10px 16px;
  border: 1px solid var(--nf-line);
  border-radius: 10px;
  background: var(--nf-card);
  color: var(--nf-txt);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.nf-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 18px -12px rgba(0, 0, 0, .55); }
.nf-btn.primary { background: var(--nf-a); border-color: var(--nf-a); color: #fff; }
[data-theme='dark'] .nf .nf-btn.primary { color: #16110c; }
.nf-btn.ghost { background: transparent; color: var(--nf-txt2); }
.nf-msg { margin-top: 11px; color: var(--nf-txt3); font-size: 12.5px; }
.nf-msg.bad { color: var(--nf-bad); }

/* ---------- 结果 ---------- */
.nf-result {
  margin-top: 16px;
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-r);
  background: var(--nf-card);
  box-shadow: var(--nf-shadow);
  overflow: hidden;
}
.nf-result-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--nf-line2);
}
.nf-result-h h2 { margin: 0; font-size: 15px; font-weight: 800; }
.nf-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--nf-line2);
  color: var(--nf-txt3);
  font-size: 11.5px;
  font-weight: 700;
}
.nf-badge.ok { background: color-mix(in srgb, var(--nf-ok) 15%, transparent); color: var(--nf-ok); }
.nf-badge.warn { background: color-mix(in srgb, var(--nf-warn) 16%, transparent); color: var(--nf-warn); }
.nf-badge.bad { background: color-mix(in srgb, var(--nf-bad) 15%, transparent); color: var(--nf-bad); }

.nf-verdict {
  padding: 18px 20px 14px;
  text-align: center;
  background: linear-gradient(180deg, var(--nf-soft), transparent 90%);
}
.nf-verdict-label { display: block; color: var(--nf-txt3); font-size: 12px; letter-spacing: .4px; }
.nf-verdict strong {
  display: inline-block;
  margin-top: 2px;
  color: var(--nf-a);
  font-size: 40px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.nf-verdict-unit { margin-left: 4px; color: var(--nf-txt2); font-size: 13px; }
.nf-verdict p { margin: 6px 0 0; color: var(--nf-txt2); font-size: 12.5px; line-height: 1.65; }

.nf-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--nf-line2);
  border-top: 1px solid var(--nf-line2);
  border-bottom: 1px solid var(--nf-line2);
}
.nf-kpi { padding: 12px 14px; background: var(--nf-card); }
.nf-kpi small { display: block; color: var(--nf-txt3); font-size: 11px; }
.nf-kpi b { display: inline-block; margin-top: 2px; color: var(--nf-txt); font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.nf-kpi em { margin-left: 3px; color: var(--nf-txt3); font-style: normal; font-size: 10.5px; }

.nf-visual {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px 8px;
}
.nf-ring-wrap { text-align: center; }
.nf-ring {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--nf-a) calc(var(--nf-p, 0) * 1%), var(--nf-line2) 0);
  display: grid;
  place-items: center;
  transition: background .35s;
}
.nf-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--nf-card);
  box-shadow: inset 0 1px 4px rgba(120, 53, 15, .1);
}
.nf-ring b { position: relative; color: var(--nf-a); font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.nf-ring small { position: relative; margin-top: 2px; color: var(--nf-txt3); font-size: 10px; }
.nf-ring-cap { margin: 7px 0 0; color: var(--nf-txt3); font-size: 11.5px; }
.nf-ring-note { margin: 2px 0 0; color: var(--nf-txt2); font-size: 11px; }

.nf-ruler-wrap { min-width: 0; }
.nf-ruler-head { display: flex; justify-content: space-between; margin-bottom: 22px; font-size: 11.5px; color: var(--nf-txt3); }
.nf-ruler-head span:first-child { color: var(--nf-txt); font-weight: 700; }
.nf-ruler { padding: 0 2px; }
.nf-ruler-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--nf-line2);
}
.nf-ruler-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nf-a3), var(--nf-a));
  transition: width .45s ease;
}
.nf-ruler-mark {
  position: absolute;
  top: -5px;
  left: 0;
  width: 2px;
  height: 22px;
  background: var(--nf-a);
  transform: translateX(-50%);
  transition: left .45s ease;
}
.nf-ruler-mark i {
  position: absolute;
  left: 50%;
  top: -19px;
  transform: translateX(-50%);
  padding: 1px 5px;
  border: 1px solid var(--nf-line);
  border-radius: 5px;
  background: var(--nf-card);
  color: var(--nf-a);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
.nf-ruler-mark.tip { left: 100%; background: var(--nf-txt3); }
.nf-ruler-mark.tip i { color: var(--nf-txt3); }
.nf-ruler-scale { display: flex; justify-content: space-between; margin-top: 8px; color: var(--nf-txt3); font-size: 9.5px; }
.nf-ruler-note { margin: 10px 0 0; color: var(--nf-txt3); font-size: 11px; line-height: 1.6; }

.nf-advice { padding: 8px 20px 15px; }
.nf-advice h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.nf-advice ul { margin: 0; padding-left: 18px; }
.nf-advice li { margin-bottom: 4px; color: var(--nf-txt2); font-size: 12.5px; line-height: 1.78; }
.nf-risk {
  margin: 0 16px 16px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--nf-warn) 35%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--nf-warn) 10%, transparent);
  color: var(--nf-txt2);
  font-size: 12.5px;
  line-height: 1.7;
}
.nf-risk strong { margin-right: 6px; color: var(--nf-warn); }

/* ---------- 方案对比 ---------- */
.nf-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.nf-plan {
  position: relative;
  padding: 15px 15px 14px;
  border: 1.5px solid var(--nf-line);
  border-radius: 14px;
  background: var(--nf-card2);
  transition: border-color .2s, box-shadow .2s;
}
.nf-plan.rec {
  border-color: var(--nf-a);
  background: var(--nf-card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nf-a) 14%, transparent);
}
.nf-plan-tag {
  position: absolute;
  right: 11px;
  top: -10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--nf-a);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}
[data-theme='dark'] .nf .nf-plan-tag { color: #16110c; }
.nf-plan h3 { margin: 0; font-size: 14.5px; font-weight: 800; }
.nf-plan h3 span { display: block; margin-top: 2px; color: var(--nf-txt3); font-size: 11px; font-weight: 600; }
.nf-plan-p { margin: 7px 0 10px; color: var(--nf-txt3); font-size: 11.5px; line-height: 1.6; }
.nf-plan dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 9px; margin: 0; font-size: 12px; }
.nf-plan dt { color: var(--nf-txt3); }
.nf-plan dd { margin: 0; text-align: right; font-weight: 600; }
.nf-plan-meta { margin-top: 9px; color: var(--nf-txt3); font-size: 11.3px; line-height: 1.66; }
.nf-plan-meta strong { color: var(--nf-ok); }
.nf-plan-pick {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: var(--nf-line2);
  color: var(--nf-txt2);
  font-size: 12.3px;
  font-weight: 700;
  cursor: pointer;
}
.nf-plan.rec .nf-plan-pick { background: var(--nf-a); color: #fff; }
[data-theme='dark'] .nf .nf-plan.rec .nf-plan-pick { color: #16110c; }

/* ---------- 表格 / 步骤 / 时间轴 ---------- */
.nf-table-wrap { overflow-x: auto; border: 1px solid var(--nf-line); border-radius: 12px; }
.nf-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 12.8px; }
.nf-table th, .nf-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--nf-line2); }
.nf-table th { background: var(--nf-line2); color: var(--nf-txt2); font-size: 11.8px; font-weight: 700; }
.nf-table td:nth-child(2) { font-weight: 600; }
.nf-table td:last-child { color: var(--nf-txt3); font-size: 11.8px; }
.nf-table tr:last-child td { border-bottom: 0; }

.nf-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.nf-steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--nf-txt2);
  font-size: 13px;
  line-height: 1.8;
}
.nf-steps li b { color: var(--nf-txt); }
.nf-steps li em {
  display: block;
  margin-top: 3px;
  color: var(--nf-a);
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.nf-timeline { display: flex; flex-direction: column; gap: 0; margin: 14px 0 16px; }
.nf-node {
  display: grid;
  grid-template-columns: 78px 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-bottom: 14px;
  position: relative;
}
.nf-node:last-child { padding-bottom: 0; }
.nf-node-time { padding-top: 1px; color: var(--nf-a); font-size: 12px; font-weight: 700; text-align: right; }
.nf-node-dot {
  position: relative;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--nf-card);
  border: 3px solid var(--nf-a);
}
.nf-node:not(:last-child) .nf-node-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 2px;
  height: 56px;
  background: var(--nf-line);
}
.nf-node-body b { display: block; font-size: 12.7px; }
.nf-node-body span { color: var(--nf-txt3); font-size: 11.6px; line-height: 1.6; }

/* ---------- 红旗 / 历史 ---------- */
.nf-flag {
  margin-top: 16px;
  padding: 17px 19px 18px;
  border: 1px solid color-mix(in srgb, var(--nf-bad) 28%, var(--nf-line));
  border-radius: var(--nf-r);
  background: var(--nf-card);
  box-shadow: var(--nf-shadow);
}
.nf-flag h3 { margin: 0 0 10px; color: var(--nf-bad); font-size: 13.5px; font-weight: 800; }
.nf-flag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.nf-flag p { margin: 0; color: var(--nf-txt2); font-size: 12.4px; line-height: 1.72; }
.nf-flag b { color: var(--nf-txt); }

.nf-history { display: flex; flex-direction: column; gap: 8px; }
.nf-hist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--nf-line);
  border-radius: 10px;
  background: var(--nf-card2);
  font-size: 12.5px;
}
.nf-hist-item button {
  flex: none;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: var(--nf-soft);
  color: var(--nf-a);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.nf-empty { margin: 0; color: var(--nf-txt3); font-size: 12.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .nf-hero { grid-template-columns: 1fr; }
  .nf-hero-art { display: none; }
  .nf-plans { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nf-inner { width: calc(100% - 28px); }
  .nf-hero { padding: 22px 18px; border-radius: 16px; }
  .nf-card { padding: 16px 16px 18px; }
  .nf-grid2,
  .nf-chips,
  .nf-chips.one { grid-template-columns: 1fr; }
  .nf-range-row { grid-template-columns: 1fr; }
  .nf-kpis { grid-template-columns: 1fr 1fr; }
  .nf-visual { grid-template-columns: 1fr; }
  .nf-ruler-wrap { padding: 4px 2px 0; }
  .nf-flag-grid { grid-template-columns: 1fr; }
  .nf-actions .nf-btn { flex: 1 1 44%; }
  .nf-verdict strong { font-size: 34px; }
}
@media (max-width: 420px) {
  .nf-node { grid-template-columns: 64px 18px minmax(0, 1fr); gap: 7px; }
}

/* ---------- 打印 ---------- */
@media print {
  .nf-actions,
  .nf-history,
  .nf-msg,
  .nf-flag,
  .tsk-crumb-bar { display: none !important; }
  .nf { padding: 0; background: #fff; }
  .nf-card,
  .nf-result,
  .nf-progress { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .nf-hero { box-shadow: none; }
}

/* ---------- 全局对齐 ---------- */
.tsk-crumb-bar-in{width:min(1140px,calc(100% - 44px))!important;max-width:none!important;margin:0 auto!important;padding:11px 0!important}
@media (max-width:700px){.tsk-crumb-bar-in{width:calc(100% - 28px)!important;padding:9px 0!important}}
