:root {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-soft: #fffaf1;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --brand: #0f766e;
  --brand-strong: #134e4a;
  --brand-soft: #ccfbf1;
  --border: rgba(15, 118, 110, 0.18);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-base: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(212, 163, 115, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

#app {
  min-height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.page-footer {
  grid-column: 2;
  align-self: end;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  color: rgba(236, 254, 255, 0.9);
  background: linear-gradient(180deg, #145b58 0%, #1b6f6b 100%);
  border-top: 1px solid rgba(236, 254, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(236, 254, 255, 0.04);
}

.page-footer span {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.6;
}

.login-card {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 48px;
  color: #ecfeff;
  background:
    linear-gradient(140deg, rgba(6, 95, 70, 0.96), rgba(19, 78, 74, 0.98)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.09)' stroke-width='1'%3E%3Cpath d='M0 24H180'/%3E%3Cpath d='M0 72H180'/%3E%3Cpath d='M0 120H180'/%3E%3Cpath d='M0 168H180'/%3E%3Cpath d='M24 0V180'/%3E%3Cpath d='M72 0V180'/%3E%3Cpath d='M120 0V180'/%3E%3Cpath d='M168 0V180'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 180px 180px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-title {
  margin: 22px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
}

.hero-copy {
  max-width: 42ch;
  margin: 0;
  color: rgba(236, 254, 255, 0.88);
  font-size: 16px;
  line-height: 1.8;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.metric span {
  color: rgba(236, 254, 255, 0.8);
  font-size: 13px;
}

.form-panel {
  padding: 48px;
  background: rgba(255, 255, 255, 0.72);
}

.panel-title {
  margin: 0;
  font-size: 30px;
}

.panel-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #334155;
}

.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: rgba(15, 118, 110, 0.56);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.button {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #115e59);
}

.button-ghost {
  color: var(--brand-strong);
  background: rgba(15, 118, 110, 0.08);
}

.hint {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  color: #475569;
  background: #f8fafc;
  line-height: 1.7;
}

.workspace {
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.sidebar {
  grid-row: 1 / span 2;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 28px 22px;
  overflow: hidden;
  color: #ecfeff;
  background: linear-gradient(180deg, #0f172a 0%, #134e4a 100%);
  border-right: 1px solid rgba(236, 254, 255, 0.04);
}

.brand {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.brand-subtitle {
  margin: 6px 0 0;
  color: rgba(236, 254, 255, 0.72);
  font-size: 13px;
}

.nav {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(209, 250, 229, 0.35) transparent;
}

.nav::-webkit-scrollbar {
  width: 6px;
}

.nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(209, 250, 229, 0.28);
}

.nav-group {
  display: grid;
  gap: 8px;
}

.nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(236, 254, 255, 0.94);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.nav button.active {
  color: #0f172a;
  background: #d1fae5;
}

.nav-submenu {
  display: grid;
  gap: 6px;
  max-height: 0;
  margin: 0 0 0 18px;
  padding-left: 12px;
  overflow: hidden;
  border-left: 1px solid rgba(209, 250, 229, 0.26);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 240ms ease,
    margin 240ms ease,
    opacity 180ms ease,
    transform 240ms ease;
}

.nav-submenu.expanded {
  max-height: 320px;
  margin: -2px 0 4px 18px;
  opacity: 1;
  transform: translateY(0);
}

.nav-submenu-item {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  color: rgba(236, 254, 255, 0.88) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  font-size: 12px;
}

.nav-submenu-item:hover {
  background: rgba(209, 250, 229, 0.14) !important;
}

.nav-submenu-item > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #0f172a;
  background: #d1fae5;
  font-weight: 700;
}

.nav-submenu-item > strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-submenu-item > small {
  color: rgba(236, 254, 255, 0.64);
  white-space: nowrap;
}

.sidebar-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.main {
  grid-column: 2;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 28px;
}

.topbar p {
  margin: 0;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.workspace-body {
  min-height: 0;
  padding: 28px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.35) transparent;
}

.workspace-body::-webkit-scrollbar {
  width: 8px;
}

.workspace-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.24);
}

.page {
  display: grid;
  gap: 18px;
}

.stat-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.feature-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.78));
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.stat-card span,
.feature-item {
  color: var(--muted);
  line-height: 1.6;
}

.board-note {
  margin-top: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.board-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.flow-step {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(228, 248, 241, 0.88));
}

.flow-step h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.flow-step p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.flow-step span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: rgba(15, 118, 110, 0.08);
  font-size: 12px;
}

.showcase-stack {
  display: grid;
  gap: 18px;
}

.showcase-hero {
  padding: 28px;
  border-radius: 22px;
  color: #ecfeff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(20, 91, 88, 0.96)),
    radial-gradient(circle at right top, rgba(255, 255, 255, 0.08), transparent 32%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

.showcase-hero small {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(236, 254, 255, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-hero h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
}

.showcase-hero p {
  margin: 0;
  max-width: 56ch;
  color: rgba(236, 254, 255, 0.84);
  line-height: 1.8;
}

.stage-grid {
  display: grid;
  gap: 18px;
}

.stage-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.stage-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.stage-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.stage-count {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: rgba(15, 118, 110, 0.08);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.task-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 253, 249, 0.9));
}

.task-card[data-route] {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.task-card[data-route]:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.task-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 18px;
}

.task-card span {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}

.task-code {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ecfeff;
  background: linear-gradient(135deg, #0f766e, #115e59);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.task-meta {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.task-meta b {
  color: var(--brand-strong);
  white-space: nowrap;
}

.detail-list {
  margin: 12px 0 0;
  padding-left: 1.3em;
  color: var(--muted);
  line-height: 1.8;
}

.detail-list li + li {
  margin-top: 6px;
}

.tp01-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.tp01-control {
  display: grid;
  gap: 8px;
  min-width: 220px;
  flex: 1 1 220px;
}

.tp01-control label {
  color: var(--muted);
  font-size: 13px;
}

.tp01-control input,
.tp01-control select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.tp01-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tp01-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.9fr);
  gap: 18px;
}

.tp01-table-wrap {
  min-width: 0;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.tp01-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.tp01-table th,
.tp01-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
  vertical-align: middle;
  text-align: left;
}

.tp01-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: rgba(236, 253, 245, 0.92);
  font-size: 13px;
}

.tp01-table tbody tr:nth-child(even) {
  background: rgba(248, 252, 251, 0.8);
}

.tp01-row--active {
  background: rgba(15, 118, 110, 0.08) !important;
}

.tp01-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
  font-size: 12px;
}

.tp01-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button-sm {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.tp01-form-card {
  min-width: 0;
}

.tp01-form .field input,
.tp01-form .field select {
  padding: 12px 14px;
}

.tp01-note {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #475569;
  background: rgba(15, 118, 110, 0.06);
  line-height: 1.7;
}

.tp01-form .actions {
  justify-content: flex-start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.card h2,
.card h3 {
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.module-tile {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.78));
}

.module-tile strong {
  display: block;
  margin-bottom: 8px;
}

.module-tile span {
  color: var(--muted);
  line-height: 1.6;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
}

.section-title small {
  color: var(--muted);
}

.page-note {
  padding: 18px 20px;
  border: 1px dashed rgba(15, 118, 110, 0.24);
  border-radius: 18px;
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
}

.standard-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: #475569;
  line-height: 1.7;
}

.standard-list li {
  padding-left: 4px;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.level-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 253, 249, 0.9));
}

.level-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-strong);
  font-size: 18px;
}

.level-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .login-card,
  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto auto auto;
    overflow: visible;
  }

  .sidebar {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .nav {
    overflow: visible;
  }

  .main {
    grid-column: 1;
    grid-row: 2;
    overflow: visible;
  }

  .hero-panel,
  .form-panel,
  .workspace-body,
  .topbar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .grid,
  .stat-grid,
  .feature-grid,
  .board-flow,
  .task-grid,
  .module-grid,
  .level-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .stage-header {
    flex-direction: column;
  }

  .page-footer {
    grid-column: 1;
    grid-row: 3;
  }

  .page-footer {
    border-top: 1px solid rgba(236, 254, 255, 0.08);
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 16px;
  }

  .login-card {
    border-radius: 22px;
  }

  .page-footer {
    min-height: 64px;
    padding: 14px 16px;
  }

  .page-footer span {
    font-size: 12px;
    line-height: 1.6;
  }

  .hero-panel,
  .form-panel {
    padding: 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions,
  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

/* ═══════════════════════════════════════════
   全过程看板 (dashboard)
   ─────────────────────────────────────────── */

/* 顶部汇总指标行 */
.kboard-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.kboard-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.kboard-metric strong {
  font-size: 26px;
  line-height: 1;
  color: var(--text);
}

.kboard-metric span {
  font-size: 12px;
  color: var(--muted);
}

.kboard-metric--done   strong { color: #059669; }
.kboard-metric--active strong { color: #0284c7; }
.kboard-metric--pending strong { color: #94a3b8; }
.kboard-metric--pct    strong { color: var(--brand); }

/* 整体进度条 */
.kboard-overall-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  overflow: hidden;
}

.kboard-overall-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #34d399);
  transition: width 600ms ease;
}

/* 泳道容器 — 横向滚动，5 列等宽 */
.kboard-lanes {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

/* 单个泳道 */
.kboard-lane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  min-width: 0;
}

.kboard-lane__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.kboard-lane__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #ecfeff;
  background: linear-gradient(135deg, var(--brand), #115e59);
}

.kboard-lane__title h3 {
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.35;
}

.kboard-lane__title span {
  font-size: 12px;
  color: var(--muted);
}

/* 阶段进度条 */
.kboard-lane__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  overflow: hidden;
}

.kboard-lane__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #34d399);
  transition: width 600ms ease;
}

/* 任务卡片列表 */
.kboard-lane__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 单个任务卡片 */
.kboard-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: var(--surface-strong);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  outline-offset: 3px;
}

.kboard-card:hover,
.kboard-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

.kboard-card--done    { border-left: 3px solid #059669; }
.kboard-card--active  { border-left: 3px solid #0284c7; }
.kboard-card--pending { border-left: 3px solid #cbd5e1; }

.kboard-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.kboard-card__code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-strong);
}

.kboard-card__title {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.kboard-card__group {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* 卡片内进度条 */
.kboard-card__bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.10);
  overflow: hidden;
  margin-bottom: 6px;
}

.kboard-card__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #34d399);
}

.kboard-card--pending .kboard-card__bar-fill { background: #cbd5e1; }

.kboard-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kboard-card__pct {
  font-size: 11px;
  color: var(--muted);
}

.kboard-card__action {
  font-size: 11px;
  color: var(--brand);
  opacity: 0;
  transition: opacity 120ms ease;
}

.kboard-card:hover .kboard-card__action,
.kboard-card:focus-visible .kboard-card__action {
  opacity: 1;
}

/* 状态标签 */
.kboard-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-done    { color: #065f46; background: #d1fae5; }
.badge-active  { color: #075985; background: #e0f2fe; }
.badge-pending { color: #64748b; background: #f1f5f9; }

/* 响应式：小屏幕改为两列或单列 */
@media (max-width: 1100px) {
  .kboard-summary { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .kboard-summary { grid-template-columns: repeat(2, 1fr); }
  .kboard-lanes   { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

@media (max-width: 640px) {
  .kboard-lanes { grid-template-columns: minmax(180px, 1fr); }
}
