.template-card .template-art.dw-card-art {
  background: linear-gradient(90deg, #091b1e 0%, #091b1e80 56%, #091b1e0d 100%),
    url('./assets/design-workbench.jpg') 68% 69% / cover;
}
.template-card .dw-card-art .art-index { color: #c5d6cc; }
.template-card .dw-card-art .art-title {
  color: #f1f5ef;
  max-width: 62%;
  font-family: 'DM Sans', var(--sans);
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.dw {
  --dw-ink: #192e2c;
  --dw-muted: #506661;
  --dw-deep: #123333;
  --dw-line: #dbe3dc;
  --dw-paper: #fffefa;
  --dw-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  color: var(--dw-ink);
  max-width: 1440px;
  margin: auto;
  padding: 0 clamp(16px, 4.3vw, 68px) 48px;
}
.dw h2, .dw h3 {
  font-family: 'DM Sans', var(--sans);
  color: var(--dw-ink);
  font-weight: 670;
  letter-spacing: -.027em;
  margin: 0;
}
.dw-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 0 0 14px; font-size: 13px; color: var(--dw-muted); }
.dw-breadcrumb a:hover { text-decoration: underline; }
.dw-breadcrumb span { font: 11px var(--dw-mono); border-left: 1px solid var(--dw-line); padding-left: 14px; }
.dw-hero {
  display: grid;
  align-items: center;
  min-height: clamp(245px, 22vw, 324px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  background: #0c2022;
  color: #f3f7ed;
}
.dw-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #071b1df5 4%, #0c2325de 32%, #081b1e0a 85%),
    url('./assets/design-workbench.jpg') 60% 69% / cover;
}
.dw-hero-copy { padding: clamp(24px, 4.3vw, 65px); max-width: 710px; }
.dw .dw-kicker {
  color: #c5dccf;
  font: 600 11px var(--dw-mono);
  letter-spacing: .12em;
  line-height: 1.55;
  margin: 0 0 17px;
}
.dw h1 {
  font-family: 'DM Sans', var(--sans);
  color: #f5f7ee;
  font-size: clamp(34px, 5.2vw, 73px);
  font-weight: 670;
  line-height: 1.02;
  letter-spacing: -.06em;
  margin: 0 0 18px;
}
.dw:lang(zh-CN) h1 { letter-spacing: -.04em; }
.dw-hero p:last-child { color: #d2ded7; max-width: 435px; margin: 0; font-size: clamp(13px, 1.35vw, 16px); line-height: 1.65; }
.dw-body { padding: 0 clamp(0px, 1.5vw, 22px); }
.dw-scenarios { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 14px; }
.dw-scenarios button, .dw-segments button {
  min-height: 39px;
  border: 1px solid var(--dw-line);
  border-radius: 7px;
  padding: 6px 13px;
  background: var(--dw-paper);
  color: var(--dw-muted);
  font-size: 12px;
  font-weight: 650;
}
.dw-scenarios button:hover, .dw-segments button:hover { border-color: #74948a; }
.dw-scenarios button[aria-pressed=true], .dw-segments button[aria-pressed=true] {
  border-color: #8ab1a0;
  background: #e4f0e7;
  color: #1b483b;
}
.dw-request, .dw-reuse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #eaf0e8;
  border: 1px solid #d9e4da;
  border-radius: 12px;
  padding: 17px 21px;
}
.dw-request h2 { font-size: clamp(20px, 2.1vw, 29px); }
.dw-request p:not(.dw-label), .dw-reuse p, .dw-research > p {
  line-height: 1.6;
  font-size: 13px;
  margin: 5px 0 0;
  color: var(--dw-muted);
}
.dw-request-measure { flex-shrink: 0; text-align: right; font-family: var(--dw-mono); }
.dw-request-measure strong { display: block; font-size: clamp(18px, 2.6vw, 32px); letter-spacing: -.04em; }
.dw-request-measure strong span { color: #4c796d; }
.dw-request-measure > span { font-size: 10px; color: var(--dw-muted); }
.dw-label {
  display: block;
  color: var(--dw-muted);
  font-size: 11px;
  font-weight: 650;
  margin: 0 0 6px;
}
.dw-request .dw-label { font-family: var(--dw-mono); letter-spacing: .06em; }
.dw-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 17px 0 0;
  border: 1px solid var(--dw-line);
  border-radius: 9px;
  overflow: hidden;
}
.dw-progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  min-width: 0;
  color: var(--dw-muted);
  font-size: 11px;
  background: var(--dw-paper);
}
.dw-progress li + li { border-left: 1px solid var(--dw-line); }
.dw-progress li[aria-current=step] { background: #173b38; color: #f2f7ef; }
.dw-progress li.dw-done { background: #ebf5ee; color: #2b5c49; }
.dw-progress li span { font: 11px var(--dw-mono); flex-shrink: 0; }
.dw-status { min-height: 30px; padding: 6px 0; font-size: 12px; font-weight: 600; color: #2b5c49; }
.dw-grid { display: grid; grid-template-columns: minmax(185px, 1fr) minmax(0, 2.6fr) minmax(193px, 1.08fr); gap: 13px; align-items: start; }
.dw-panel {
  min-width: 0;
  border: 1px solid var(--dw-line);
  border-radius: 13px;
  background: var(--dw-paper);
  padding: clamp(12px, 1.4vw, 19px);
}
.dw-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.dw-panel-title h2 { font-size: clamp(17px, 1.55vw, 22px); }
.dw-state { font-size: 10px; font-weight: 650; color: #526560; border: 1px solid #dbe3dc; padding: 4px 6px; border-radius: 5px; }
.dw-good { color: #295d46; background: #e5f2e7; }
.dw select {
  width: 100%;
  min-height: 37px;
  border: 1px solid #d4ded7;
  border-radius: 7px;
  background: #fcfdf9;
  color: var(--dw-ink);
  padding: 6px 8px;
  font-size: 12px;
}
.dw-file { display: flex; align-items: flex-start; padding: 12px 0 8px; gap: 7px; }
.dw-file > span { font-size: 17px; color: #54746b; line-height: 1; }
.dw-file strong { font: 600 11px var(--dw-mono); overflow-wrap: anywhere; display: block; }
.dw-file small { display: block; color: var(--dw-muted); font-size: 10px; line-height: 1.5; margin-top: 3px; }
.dw dl { margin: 0 0 14px; }
.dw dl div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 5px; padding: 8px 0; border-bottom: 1px solid var(--dw-line); }
.dw dt { font-size: 11px; color: var(--dw-muted); }
.dw dd { margin: 0; font: 600 10px var(--dw-mono); }
.dw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}
.dw-primary { color: #fff; background: var(--dw-deep); }
.dw-primary:hover:not(:disabled) { background: #20534c; }
.dw-secondary { color: #20534c; background: #f8fbf7; border-color: #c8d8cd; }
.dw-secondary:hover { background: #e7f0e9; }
.dw-button:disabled { color: #526560; background: #e7ece6; border-color: #dee6df; }
.dw-full { width: 100%; justify-content: space-between; text-align: left; }
.dw-comparison-title { margin-bottom: 12px; }
.dw-segments { display: flex; gap: 4px; }
.dw-segments button { min-height: 34px; font-size: 11px; padding-inline: 8px; }
.dw-canvas-wrap { border-radius: 8px; overflow: hidden; background: #0e2226; }
.dw canvas, .dw-empty-diagram { display: block; width: 100%; height: 220px; }
.dw-empty-diagram { display: grid; place-items: center; padding: 24px; text-align: center; font-size: 13px; color: #dce4dd; }
.dw-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; border-top: 1px solid #375257; padding: 9px 10px; color: #d1e0dc; font-size: 10px; }
.dw-legend span { display: flex; align-items: center; gap: 4px; }
.dw-legend span:last-child { margin-left: auto; }
.dw-legend i { width: 7px; height: 7px; border-radius: 50%; background: #9eb3b0; }
.dw-legend span:nth-child(2) i { background: #ffbf76; }
.dw-change { margin: 14px 0 0; }
.dw-numbers { display: grid; grid-template-columns: 1.1fr 1.1fr .7fr; gap: 8px; align-items: end; }
.dw-numbers > * { min-width: 0; }
.dw-numbers strong { display: block; min-height: 37px; font: 650 clamp(16px, 2vw, 26px)/37px var(--dw-mono); letter-spacing: -.05em; }
.dw-numbers small { font-size: 10px; letter-spacing: 0; }
.dw-delta { text-align: right; }
.dw-delta strong { color: #835015; }
.dw-input { display: flex; align-items: center; gap: 4px; padding-right: 7px; border: 1px solid #bfd0c6; border-radius: 6px; background: #f5faf6; }
.dw-input:focus-within { outline: 2px solid #719380; outline-offset: 1px; }
.dw-input input { width: 100%; min-width: 0; padding: 7px; min-height: 35px; border: 0; background: none; font: 650 15px var(--dw-mono); color: var(--dw-ink); outline: none; }
.dw-input input:focus { outline: none; }
.dw-input > span { font: 10px var(--dw-mono); color: var(--dw-muted); }
.dw-hint, .dw-review-guide { font-size: 11px; line-height: 1.55; color: var(--dw-muted); margin: 8px 0 10px; }
.dw-error-text { color: #a43d28; font-weight: 600; }
.dw-review-guide { margin-top: 0; }
.dw-checks { min-inline-size: 0; margin: 0 0 11px; border: 0; padding: 0; }
.dw-checks legend { font-size: 11px; color: var(--dw-muted); font-weight: 700; padding: 0 0 4px; }
.dw-checks label { display: flex; align-items: flex-start; gap: 6px; line-height: 1.4; font-size: 11px; padding: 7px 0; border-bottom: 1px solid var(--dw-line); cursor: pointer; }
.dw-checks:disabled label { cursor: default; color: var(--dw-muted); }
.dw-checks input { accent-color: #32634f; flex-shrink: 0; margin: 1px 0 0; width: 15px; height: 15px; }
.dw-review-actions { display: grid; gap: 6px; }
.dw-download { margin-top: 7px; }
.dw-message { padding: 8px 9px; border-radius: 6px; font-size: 11px; font-weight: 650; line-height: 1.55; }
.dw-warn { color: #75471a; background: #faefdf; }
.dw-reuse { margin-top: 21px; background: #eef2e7; }
.dw-reuse h2, .dw-research h2 { font-size: clamp(20px, 2.25vw, 29px); }
.dw-reuse-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex-shrink: 0; }
.dw-research { margin-top: 30px; }
.dw-references { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 13px; }
.dw-references article { display: flex; flex-direction: column; border-top: 2px solid #9bb9a9; padding: 12px 4px 4px; }
.dw-references h3 { font-size: 15px; line-height: 1.35; }
.dw-references p, .dw-disclosure { color: var(--dw-muted); font-size: 12px; line-height: 1.55; }
.dw-references a { align-self: start; margin-top: auto; font-size: 11px; font-weight: 700; color: #225648; text-decoration: underline; text-underline-offset: 3px; }
.dw-disclosure { border-top: 1px solid var(--dw-line); padding-top: 12px; margin: 21px 0 0; }

@media (max-width: 1060px) {
  .dw-grid { grid-template-columns: minmax(190px, .75fr) minmax(0, 2fr); }
  .dw-review { grid-column: 1 / -1; }
  .dw-review .dw-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
  .dw-review .dw-full { width: auto; }
  .dw-review-actions { display: flex; flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .dw canvas { height: 300px; }
  .dw-references { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .dw-hero { min-height: 233px; border-radius: 13px; }
  .dw-hero::before {
    background: linear-gradient(90deg, #071b1df5 2%, #0c2325e0 47%, #081b1e46 100%),
      url('./assets/design-workbench.jpg') 65% 69% / cover;
  }
  .dw-hero-copy { max-width: 385px; }
  .dw-scenarios { margin-top: 17px; }
  .dw-scenarios button { padding-inline: 9px; }
  .dw-request { padding: 12px; align-items: start; gap: 6px; }
  .dw-progress { grid-template-columns: repeat(2, 1fr); }
  .dw-progress li:nth-child(3) { border-left: 0; }
  .dw-progress li:nth-child(n+3) { border-top: 1px solid var(--dw-line); }
  .dw-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .dw-review .dw-checks { display: block; }
  .dw-reuse { align-items: start; flex-direction: column; gap: 10px; padding: 14px; }
  .dw-reuse-actions { justify-content: flex-start; }
}
