/* 白发比例与染发频率计算器 · 独立主题（银灰 + 紫） */
:root {
  --wd-a: #6b7280;
  --wd-a2: #a855f7;
  --wd-a-soft: #f3f0f9;
  --wd-purple-soft: #f3e8ff;
  --wd-bg: #f7f6fa;
  --wd-card: #ffffff;
  --wd-card2: #faf9fc;
  --wd-txt: #23212b;
  --wd-txt2: #565463;
  --wd-txt3: #8a8798;
  --wd-line: #e4e2ea;
  --wd-line2: #f0eef5;
  --wd-ok: #15803d;
  --wd-warn: #b45309;
  --wd-bad: #b91c1c;
  --wd-shadow: 0 1px 2px rgba(80, 70, 100, .05), 0 12px 30px -16px rgba(80, 70, 100, .28);
  --wd-r: 16px;
  --wd-r2: 11px;
}

[data-theme='dark'] .wd {
  --wd-a: #9ca3af;
  --wd-a2: #c084fc;
  --wd-a-soft: #2a2734;
  --wd-purple-soft: #2f1b45;
  --wd-bg: #131218;
  --wd-card: #1d1c24;
  --wd-card2: #17161d;
  --wd-txt: #ecebf2;
  --wd-txt2: #b9b6c5;
  --wd-txt3: #8a8798;
  --wd-line: #34323e;
  --wd-line2: #272530;
  --wd-ok: #4ade80;
  --wd-warn: #fbbf24;
  --wd-bad: #f87171;
  --wd-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 12px 30px -16px rgba(0, 0, 0, .7);
}

.wd { background: var(--wd-bg); color: var(--wd-txt); padding: 26px 0 46px; }
.wd-inner { width: min(1140px, calc(100% - 44px)); max-width: none; margin: 0 auto; }

/* 免责条 */
.wd-disclaimer {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px;
  border-radius: 12px; background: color-mix(in srgb, var(--wd-bad) 8%, var(--wd-card));
  border: 1px solid color-mix(in srgb, var(--wd-bad) 28%, transparent); border-left: 4px solid var(--wd-bad);
}
.wd-disclaimer-ico {
  width: 22px; height: 22px; border-radius: 50%; flex: none; display: inline-flex;
  align-items: center; justify-content: center; background: var(--wd-bad); color: #fff; font-weight: 800; font-size: 13px;
}
.wd-disclaimer p { margin: 0; font-size: 13px; color: var(--wd-txt2); flex: 1 1 auto; }
.wd-disclaimer p b { color: var(--wd-bad); margin-right: 8px; }
.wd-disclaimer-tag { font-size: 11.5px; color: var(--wd-txt3); padding: 3px 9px; border-radius: 999px; background: var(--wd-card); border: 1px solid var(--wd-line); }

/* Hero */
.wd-hero {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 26px; align-items: center;
  padding: 30px 30px 26px; border-radius: 22px;
  background:
    radial-gradient(820px 300px at 84% 8%, rgba(168, 85, 247, .14), transparent 64%),
    linear-gradient(135deg, var(--wd-card) 0%, var(--wd-card2) 100%);
  border: 1px solid var(--wd-line); box-shadow: var(--wd-shadow);
}
.wd-kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  color: var(--wd-a2); background: var(--wd-purple-soft);
  border: 1px solid color-mix(in srgb, var(--wd-a2) 24%, transparent); padding: 5px 11px; border-radius: 999px;
}
.wd-hero h1 { margin: 14px 0 0; font-size: clamp(26px, 3.4vw, 39px); line-height: 1.24; letter-spacing: -.6px; font-weight: 800; }
.wd-hero h1 em {
  font-style: normal; display: inline-block; margin-top: 4px; color: var(--wd-a2);
  background: linear-gradient(180deg, transparent 62%, rgba(168, 85, 247, .26) 62%); padding: 0 2px;
}
.wd-sub { margin: 12px 0 0; font-size: 14.5px; line-height: 1.85; color: var(--wd-txt2); max-width: 66ch; }
.wd-sub b { color: var(--wd-txt); font-weight: 700; }
.wd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wd-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: var(--wd-card2); border: 1px solid var(--wd-line); color: var(--wd-txt2); }
.wd-tag i { color: var(--wd-a2); font-style: normal; font-weight: 800; }

/* CSS 插画：发丝 + 染发膏 + 色环 */
.wd-hero-art { position: relative; height: 232px; }
.wd-hair { position: absolute; inset: 8px 0 0 0; }
.wd-strand { position: absolute; width: 3px; height: 150px; border-radius: 3px; background: linear-gradient(180deg, #9ca3af, #4b5563 55%, #a855f7); opacity: .85; transform-origin: top center; }
.wd-strand.s1 { left: 20%; top: 6px; transform: rotate(-16deg); }
.wd-strand.s2 { left: 27%; top: 2px; transform: rotate(-9deg); height: 168px; }
.wd-strand.s3 { left: 34%; top: 0; transform: rotate(-2deg); height: 176px; }
.wd-strand.s4 { left: 41%; top: 4px; transform: rotate(5deg); height: 162px; }
.wd-strand.s5 { left: 48%; top: 10px; transform: rotate(12deg); }
.wd-strand.s6 { left: 55%; top: 8px; transform: rotate(19deg); height: 144px; opacity: .55; }
.wd-tube { position: absolute; right: 8px; bottom: 6px; width: 52px; transform: rotate(8deg); }
.wd-tube-cap { height: 12px; width: 22px; margin: 0 auto; border-radius: 4px 4px 0 0; background: #4b5563; }
.wd-tube-body {
  margin-top: 2px; height: 112px; border-radius: 8px 8px 14px 14px;
  background: linear-gradient(160deg, #f5f3ff 0%, #ddd6fe 45%, #a855f7 100%);
  border: 1.5px solid #7c3aed; position: relative; display: flex; align-items: center; justify-content: center;
  box-shadow: inset -6px 0 12px -8px rgba(76, 29, 149, .6);
}
.wd-tube-label { font-size: 9px; line-height: 1.35; color: #4c1d95; font-weight: 800; text-align: center; }
[data-theme='dark'] .wd .wd-tube-label { color: #ede9fe; }
.wd-tube-drop { position: absolute; bottom: -5px; width: 9px; height: 12px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: #a855f7; }
.wd-ring-art {
  position: absolute; left: 6px; top: 40px; width: 112px; height: 112px; border-radius: 50%;
  border: 3px solid #c4b5fd;
  background: conic-gradient(#a855f7 0deg, #a855f7 140deg, #e5e7eb 140deg, #e5e7eb 360deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--wd-shadow);
}
.wd-ring-art span {
  width: 86px; height: 86px; border-radius: 50%; background: var(--wd-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; color: var(--wd-txt3); text-align: center;
}
.wd-chip {
  position: absolute; font-size: 11.5px; padding: 5px 10px; border-radius: 8px; background: var(--wd-card);
  border: 1px solid var(--wd-line); color: var(--wd-txt2); box-shadow: var(--wd-shadow); white-space: nowrap;
  animation: wdFloat 4.4s ease-in-out infinite;
}
.wd-chip b { color: var(--wd-a2); }
.wd-chip.c1 { right: 0; top: 26px; }
.wd-chip.c2 { right: 12px; top: 74px; animation-delay: 1.2s; }
@keyframes wdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 卡片 */
.wd-card {
  background: var(--wd-card); border: 1px solid var(--wd-line); border-radius: var(--wd-r);
  box-shadow: var(--wd-shadow); padding: 20px 22px 22px; margin-top: 18px; min-width: 0;
}
.wd-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.wd-card-h h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }
.wd-no { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #fff; background: var(--wd-a2); padding: 3px 7px; border-radius: 6px; }
[data-theme='dark'] .wd .wd-no { color: #1b0f2b; }
.wd-card-h small { font-size: 11.5px; color: var(--wd-txt3); }

.wd-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wd-field { margin-bottom: 14px; min-width: 0; }
.wd-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wd-label label { font-size: 13.5px; font-weight: 600; color: var(--wd-txt); }
.wd-label label b { color: var(--wd-bad); }
.wd-hint { font-size: 11.5px; color: var(--wd-txt3); }
.wd-select {
  width: 100%; border: 1px solid var(--wd-line); border-radius: var(--wd-r2); background-color: var(--wd-card2);
  color: var(--wd-txt); font-size: 13.5px; padding: 10px 11px; outline: none; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--wd-txt3) 50%), linear-gradient(135deg, var(--wd-txt3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.wd-select:focus { border-color: var(--wd-a2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wd-a2) 13%, transparent); }
.wd-numbox { display: flex; align-items: center; border: 1px solid var(--wd-line); border-radius: var(--wd-r2); background: var(--wd-card2); overflow: hidden; }
.wd-numbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--wd-txt); font-size: 15px; font-weight: 700; padding: 9px 10px; outline: none; }
.wd-numbox span { padding: 0 9px; font-size: 12px; color: var(--wd-txt3); background: var(--wd-line2); align-self: stretch; display: flex; align-items: center; }
.wd-datebox { border: 1px solid var(--wd-line); border-radius: var(--wd-r2); background: var(--wd-card2); overflow: hidden; }
.wd-datebox input { width: 100%; border: 0; background: transparent; color: var(--wd-txt); font-size: 13px; padding: 9px 10px; outline: none; }
.wd-range-row { display: grid; grid-template-columns: 1fr 88px; gap: 10px; align-items: center; }
.wd-range-row input[type='range'] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--wd-line); outline: none; }
.wd-range-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 19px; height: 19px; border-radius: 50%;
  background: var(--wd-a2); border: 3px solid var(--wd-card); box-shadow: 0 0 0 1px var(--wd-a2); cursor: pointer;
}
.wd-range-row input[type='range']::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%; background: var(--wd-a2); cursor: pointer; }
.wd-err { display: none; margin-top: 6px; font-size: 12px; color: var(--wd-bad); }
.wd-err.on { display: block; }
.wd-field.bad .wd-numbox, .wd-field.bad .wd-datebox, .wd-field.bad .wd-select { border-color: var(--wd-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wd-bad) 13%, transparent); }

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

.wd-field-tip { display: flex; flex-direction: column; }
.wd-mini-tip { margin: 0; font-size: 11.8px; line-height: 1.7; color: var(--wd-txt2); background: var(--wd-purple-soft); border-left: 3px solid var(--wd-a2); padding: 9px 11px; border-radius: 0 8px 8px 0; }
.wd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-actions.tight { margin-top: 12px; }
.wd-btn {
  border: 1px solid var(--wd-line); background: var(--wd-card); color: var(--wd-txt);
  font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 10px; cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.wd-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5); }
.wd-btn.primary { background: var(--wd-a2); border-color: var(--wd-a2); color: #fff; }
.wd-btn.ghost { background: transparent; color: var(--wd-txt2); }
.wd-msg { margin-top: 11px; font-size: 12.5px; color: var(--wd-txt3); }
.wd-empty { font-size: 12.5px; color: var(--wd-txt3); margin: 0; }
.wd-tip { margin: 12px 0 0; font-size: 12px; line-height: 1.75; color: var(--wd-txt3); background: var(--wd-line2); border-left: 3px solid var(--wd-a2); padding: 9px 12px; border-radius: 0 8px 8px 0; }
.wd-tip code { font-size: 11.5px; background: var(--wd-card); padding: 1px 5px; border-radius: 4px; color: var(--wd-a2); }

/* 评估 + 时间线 */
.wd-eval { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 22px; align-items: start; }
.wd-eval-side { min-width: 0; }
.wd-ring-wrap { display: flex; align-items: center; gap: 16px; }
.wd-ring {
  width: 132px; height: 132px; border-radius: 50%; flex: none; padding: 9px;
  display: flex; align-items: center; justify-content: center; transition: background .4s ease;
  box-shadow: inset 0 0 0 1px var(--wd-line);
}
.wd-ring-hole { width: 100%; height: 100%; border-radius: 50%; background: var(--wd-card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wd-ring-hole b { font-size: 26px; font-weight: 800; color: var(--wd-a2); line-height: 1; letter-spacing: -.6px; }
.wd-ring-hole span { font-size: 10.5px; color: var(--wd-txt3); margin-top: 3px; }
.wd-early { min-width: 0; }
.wd-early b { display: block; font-size: 15px; font-weight: 800; color: var(--wd-txt); line-height: 1.4; }
.wd-early span { display: block; margin-top: 4px; font-size: 11.8px; line-height: 1.65; color: var(--wd-txt3); }
.wd-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--wd-line2); border-radius: 10px; overflow: hidden; margin-top: 14px; }
.wd-kpi { background: var(--wd-card); padding: 11px 12px; }
.wd-kpi span { display: block; font-size: 10.8px; color: var(--wd-txt3); }
.wd-kpi b { display: inline-block; font-size: 19px; font-weight: 800; color: var(--wd-txt); margin-top: 1px; letter-spacing: -.4px; }
.wd-kpi small { font-size: 10.5px; color: var(--wd-txt3); margin-left: 2px; }
.wd-next {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.6;
  background: var(--wd-purple-soft); color: var(--wd-txt2); border: 1px solid color-mix(in srgb, var(--wd-a2) 22%, transparent);
}
.wd-next.over { background: color-mix(in srgb, var(--wd-bad) 10%, transparent); border-color: color-mix(in srgb, var(--wd-bad) 32%, transparent); color: var(--wd-txt2); }

.wd-timeline { margin: 0; padding: 0 0 0 2px; list-style: none; position: relative; }
.wd-timeline::before { content: ''; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 2px; background: var(--wd-line); }
.wd-timeline li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 14px; }
.wd-timeline li:last-child { padding-bottom: 0; }
.wd-timeline li b {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--wd-card2); border: 2px solid var(--wd-line); color: var(--wd-txt2); font-size: 11px; font-weight: 800; z-index: 1;
}
.wd-timeline li.on b { background: var(--wd-a2); border-color: var(--wd-a2); color: #fff; }
.wd-timeline li.key b { border-color: var(--wd-a2); color: var(--wd-a2); }
.wd-timeline li div { min-width: 0; padding-top: 3px; }
.wd-timeline h3 { margin: 0; font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wd-timeline h3 em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--wd-a2); background: var(--wd-purple-soft); padding: 2px 7px; border-radius: 999px; }
.wd-timeline p { margin: 4px 0 0; font-size: 11.8px; line-height: 1.68; color: var(--wd-txt2); }
.wd-timeline span.wd-tl-date { display: block; margin-top: 3px; font-size: 11px; color: var(--wd-txt3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* 双栏 */
.wd-two { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 18px; align-items: start; }
.wd-two .wd-card { margin-top: 18px; }

/* 日历 */
.wd-calendar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.wd-cal-item { border: 1px solid var(--wd-line); border-radius: 10px; background: var(--wd-card2); padding: 10px 11px; position: relative; }
.wd-cal-item.full { border-color: color-mix(in srgb, var(--wd-a2) 45%, transparent); background: color-mix(in srgb, var(--wd-a2) 8%, var(--wd-card)); }
.wd-cal-month { font-size: 10.5px; color: var(--wd-txt3); letter-spacing: .3px; }
.wd-cal-day { display: block; font-size: 16px; font-weight: 800; color: var(--wd-txt); margin-top: 1px; letter-spacing: -.4px; }
.wd-cal-type { display: inline-block; margin-top: 5px; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--wd-line2); color: var(--wd-txt2); }
.wd-cal-item.full .wd-cal-type { background: var(--wd-a2); color: #fff; }
.wd-cal-grams { position: absolute; right: 10px; bottom: 9px; font-size: 10.5px; color: var(--wd-txt3); }

/* 明度阶梯 */
.wd-ladder { display: flex; gap: 4px; height: 72px; align-items: flex-end; }
.wd-ladder-item { flex: 1 1 0; min-width: 0; border-radius: 5px 5px 3px 3px; position: relative; transition: transform .2s, box-shadow .2s; }
.wd-ladder-item.rec { box-shadow: 0 0 0 2px var(--wd-a2); transform: translateY(-3px); }
.wd-ladder-item.now { box-shadow: 0 0 0 2px var(--wd-txt); transform: translateY(-3px); }
.wd-ladder-item span {
  position: absolute; left: 0; right: 0; bottom: -17px; text-align: center;
  font-size: 9.5px; color: var(--wd-txt3); font-weight: 700;
}
.wd-ladder-item.rec span { color: var(--wd-a2); }
.wd-ladder-scale { display: flex; justify-content: space-between; margin-top: 24px; font-size: 10.5px; color: var(--wd-txt3); }

/* 三档方案 */
.wd-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wd-plan { border: 1.5px solid var(--wd-line); border-radius: 14px; background: var(--wd-card2); padding: 16px 16px 14px; position: relative; transition: border-color .2s, box-shadow .2s, background .2s; }
.wd-plan.rec { border-color: var(--wd-a2); background: var(--wd-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wd-a2) 13%, transparent); }
.wd-plan-tag { position: absolute; right: 12px; top: -10px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--wd-a2); padding: 3px 9px; border-radius: 999px; }
.wd-plan h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--wd-txt); letter-spacing: -.3px; }
.wd-plan h3 span { font-size: 11px; color: var(--wd-txt3); font-weight: 500; margin-left: 4px; }
.wd-plan p.wd-plan-desc { margin: 4px 0 11px; font-size: 11.8px; line-height: 1.65; color: var(--wd-txt3); }
.wd-plan dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 9px; font-size: 12.2px; }
.wd-plan dt { color: var(--wd-txt3); }
.wd-plan dd { margin: 0; text-align: right; font-weight: 600; color: var(--wd-txt); }
.wd-plan .wd-plan-note { margin-top: 10px; font-size: 11.5px; line-height: 1.7; color: var(--wd-txt2); }
.wd-plan-pick { margin-top: 11px; width: 100%; border: 0; border-radius: 8px; padding: 8px; font-size: 12.2px; font-weight: 700; cursor: pointer; background: var(--wd-line2); color: var(--wd-txt2); }
.wd-plan.rec .wd-plan-pick { background: var(--wd-a2); color: #fff; }

/* 决策 */
.wd-advice-head { margin: 0 0 8px; font-size: 14px; line-height: 1.7; color: var(--wd-a2); font-weight: 700; }
.wd-advice-list { margin: 0; padding-left: 19px; }
.wd-advice-list li { font-size: 12.5px; line-height: 1.78; color: var(--wd-txt2); margin-bottom: 4px; }
.wd-risk { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--wd-warn) 11%, transparent); border: 1px solid color-mix(in srgb, var(--wd-warn) 33%, transparent); font-size: 12.2px; line-height: 1.7; color: var(--wd-txt2); }
.wd-risk strong { color: var(--wd-warn); margin-right: 6px; }

/* 表格 / 步骤 */
.wd-table-wrap { overflow-x: auto; border: 1px solid var(--wd-line); border-radius: 12px; }
.wd-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 540px; }
.wd-table th, .wd-table td { padding: 9px 13px; text-align: left; border-bottom: 1px solid var(--wd-line2); }
.wd-table th { background: var(--wd-line2); font-size: 12px; color: var(--wd-txt2); font-weight: 700; }
.wd-table td:last-child { color: var(--wd-txt3); font-size: 11.8px; }
.wd-table tr:last-child td { border-bottom: 0; }
.wd-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.wd-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.8; color: var(--wd-txt2); }
.wd-steps li b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: var(--wd-purple-soft); color: var(--wd-a2); font-size: 12px; }
.wd-steps li em { display: block; font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--wd-a2); margin-top: 3px; }

/* 红旗 */
.wd-redblock {
  margin-top: 18px; border-radius: var(--wd-r); padding: 20px 22px;
  background: color-mix(in srgb, var(--wd-bad) 7%, var(--wd-card));
  border: 1px solid color-mix(in srgb, var(--wd-bad) 32%, transparent); border-left: 5px solid var(--wd-bad);
}
.wd-redblock header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.wd-red-ico { font-size: 20px; }
.wd-redblock h2 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--wd-bad); }
.wd-redblock small { font-size: 11.5px; color: var(--wd-txt3); }
.wd-red-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.wd-red-item { background: var(--wd-card); border: 1px solid color-mix(in srgb, var(--wd-bad) 20%, transparent); border-radius: 11px; padding: 12px 13px; }
.wd-red-item b { display: block; font-size: 13px; color: var(--wd-bad); margin-bottom: 4px; }
.wd-red-item span { font-size: 11.8px; line-height: 1.7; color: var(--wd-txt2); }

/* 批量 / 历史 */
.wd-textarea {
  width: 100%; min-height: 112px; resize: vertical; border: 1px solid var(--wd-line); border-radius: 12px;
  background: var(--wd-card2); color: var(--wd-txt); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.7; padding: 12px;
}
.wd-history { display: flex; flex-direction: column; gap: 8px; }
.wd-hist-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--wd-line); border-radius: 10px; padding: 10px 12px; background: var(--wd-card2); font-size: 12.5px; }
.wd-hist-item button { border: 0; background: var(--wd-purple-soft); color: var(--wd-a2); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 7px; cursor: pointer; }

/* 响应式 */
@media (max-width: 1024px) {
  .wd-hero { grid-template-columns: 1fr; }
  .wd-hero-art { display: none; }
  .wd-eval { grid-template-columns: 1fr; }
  .wd-two { grid-template-columns: 1fr; }
  .wd-plans { grid-template-columns: 1fr; }
  .wd-red-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wd-inner { width: calc(100% - 28px); }
  .wd-hero { padding: 22px 18px; border-radius: 16px; }
  .wd-card { padding: 16px 16px 18px; }
  .wd-grid3 { grid-template-columns: 1fr; }
  .wd-range-row { grid-template-columns: 1fr; }
  .wd-ring-wrap { flex-direction: column; align-items: flex-start; }
  .wd-calendar { grid-template-columns: 1fr; }
  .wd-kpis { grid-template-columns: 1fr 1fr; }
  .wd-red-grid { grid-template-columns: 1fr; }
  .wd-actions .wd-btn { flex: 1 1 44%; }
}

/* 打印 */
@media print {
  .wd-actions, .wd-textarea, .wd-history, .wd-seg, .wd-btn, .tsk-crumb-bar, .wd-disclaimer-tag { display: none !important; }
  .wd { padding: 0; background: #fff; }
  .wd-card, .wd-hero, .wd-redblock { box-shadow: none !important; border-color: #ddd; break-inside: avoid; }
  .wd-eval, .wd-two { grid-template-columns: 1fr 1fr; }
}

/* ---------- 全局对齐：面包屑 / 内容 / 底部区块统一 ---------- */
.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}}
