/* =========================================================
   工作流程追踪 - 个人项目作战板
   设计语言：纸张米色底 + 匠人感阴影 + 木尺刻度进度
   ========================================================= */

:root {
  /* 颜色 */
  --bg-page: #faf8f3;
  --bg-card: #ffffff;
  --bg-emphasis: #fff8e7;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #9ca3af;
  --divider: #e8e3d8;
  --divider-soft: #f0ebe0;

  /* 分类色 */
  --c-education: #6366f1;
  --c-education-soft: #eef2ff;
  --c-tool: #0891b2;
  --c-tool-soft: #ecfeff;
  --c-business: #d97706;
  --c-business-soft: #fef3c7;
  --c-uncat: #94a3b8;
  --c-uncat-soft: #f1f5f9;

  /* 状态色 */
  --s-progress: #3b82f6;
  --s-progress-soft: #dbeafe;
  --s-idle: #9ca3af;
  --s-idle-soft: #f3f4f6;
  --s-done: #10b981;
  --s-done-soft: #d1fae5;

  /* 进度条 */
  --track: #f0ebe0;

  /* 阴影 */
  --shadow-soft: 0 2px 8px rgba(40, 30, 20, 0.05);
  --shadow-hover: 0 6px 20px rgba(40, 30, 20, 0.1);
  --shadow-modal: 0 20px 60px rgba(40, 30, 20, 0.15);

  /* 字体 */
  --font-title: "Noto Serif SC", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* 圆角 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

/* 纸张纹理：非常微弱的噪点 */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.82 0 0 0 0 0.75 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

.app {
  position: relative;
  z-index: 1;
}

/* ===== Header ===== */
.header {
  padding: 40px 32px 28px;
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(180deg, #fefdfa 0%, var(--bg-page) 100%);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.title-block {
  flex: 1;
  min-width: 0;
}

.title {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.title-emoji {
  font-size: 32px;
  line-height: 1;
  filter: grayscale(0.1);
}

.title-text {
  outline: none;
  border-radius: 4px;
  padding: 0 4px;
  margin: 0 -4px;
  transition: background 150ms ease;
}

.title-text:hover {
  background: rgba(99, 102, 241, 0.06);
}

.title-text:focus {
  background: #fff;
  box-shadow: 0 0 0 2px var(--c-education);
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  color: var(--s-done);
  transition: opacity 200ms ease;
}

.save-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s-done);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.save-indicator.saving {
  color: var(--s-progress);
}

.save-indicator.saving::before {
  background: var(--s-progress);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.today {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-education);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 250ms ease-out;
}

.stat-card:hover .stat-accent {
  transform: scaleX(1);
}

.stat-card[data-key="total"] .stat-accent {
  background: var(--c-uncat);
}
.stat-card[data-key="progress"] .stat-accent {
  background: var(--s-progress);
}
.stat-card[data-key="done"] .stat-accent {
  background: var(--s-done);
}
.stat-card[data-key="percent"] .stat-accent {
  background: var(--c-business);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* ===== Tabs ===== */
.tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 0;
}

.tab {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  padding: 10px 16px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 200ms ease;
  font-weight: 500;
  border-radius: 6px 6px 0 0;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--text-primary);
  font-weight: 600;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--c-education);
  border-radius: 2px;
}

.tab .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--divider-soft);
  color: var(--text-secondary);
  border-radius: 10px;
}

.tab.active .tab-count {
  background: var(--c-education);
  color: #fff;
}

.tab[data-cat="教育"].active .tab-count {
  background: var(--c-education);
}
.tab[data-cat="工具"].active .tab-count {
  background: var(--c-tool);
}
.tab[data-cat="商业"].active .tab-count {
  background: var(--c-business);
}
.tab[data-cat="未分类"].active .tab-count {
  background: var(--c-uncat);
}

.tab[data-cat="教育"].active::after {
  background: var(--c-education);
}
.tab[data-cat="工具"].active::after {
  background: var(--c-tool);
}
.tab[data-cat="商业"].active::after {
  background: var(--c-business);
}
.tab[data-cat="未分类"].active::after {
  background: var(--c-uncat);
}

.add-project-btn {
  background: var(--bg-card);
  border: 1px dashed var(--divider);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 200ms ease;
  white-space: nowrap;
}

.add-project-btn:hover {
  border-style: solid;
  border-color: var(--c-education);
  color: var(--c-education);
  background: var(--c-education-soft);
}

.add-project-btn .plus {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

/* ===== Projects Grid ===== */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
  user-select: none;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.project-card.pressing {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  20% {
    transform: translateY(-1px) rotate(-0.5deg);
  }
  40% {
    transform: translateY(-1px) rotate(0.5deg);
  }
  60% {
    transform: translateY(-1px) rotate(-0.4deg);
  }
  80% {
    transform: translateY(-1px) rotate(0.3deg);
  }
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.project-title {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
  outline: none;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
  cursor: text;
  transition: background 150ms ease;
}

.project-title:hover {
  background: rgba(99, 102, 241, 0.05);
}

.project-title:focus {
  background: #fff;
  box-shadow: 0 0 0 2px var(--c-education);
}

.badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 60%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1.4;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* 分类徽章 */
.badge.cat-教育 {
  background: var(--c-education-soft);
  color: var(--c-education);
}
.badge.cat-教育 .dot {
  background: var(--c-education);
}

.badge.cat-工具 {
  background: var(--c-tool-soft);
  color: var(--c-tool);
}
.badge.cat-工具 .dot {
  background: var(--c-tool);
}

.badge.cat-商业 {
  background: var(--c-business-soft);
  color: var(--c-business);
}
.badge.cat-商业 .dot {
  background: var(--c-business);
}

.badge.cat-未分类 {
  background: var(--c-uncat-soft);
  color: var(--c-uncat);
}
.badge.cat-未分类 .dot {
  background: var(--c-uncat);
}

/* 类型徽章 - 低调 */
.badge.type {
  background: var(--divider-soft);
  color: var(--text-secondary);
}

/* 状态徽章 */
.badge.status-进行中 {
  background: var(--s-progress-soft);
  color: var(--s-progress);
}
.badge.status-进行中 .dot {
  background: var(--s-progress);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.badge.status-未开始 {
  background: var(--s-idle-soft);
  color: var(--s-idle);
}
.badge.status-未开始 .dot {
  background: var(--s-idle);
}

.badge.status-已完成 {
  background: var(--s-done-soft);
  color: var(--s-done);
}
.badge.status-已完成 .dot {
  background: var(--s-done);
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0);
  }
}

.project-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 6px 0 16px;
  outline: none;
  border-radius: 4px;
  padding: 2px 4px;
  margin-left: -4px;
  margin-right: -4px;
  cursor: text;
  transition: background 150ms ease;
  white-space: pre-wrap;
}

.project-desc:hover {
  background: rgba(99, 102, 241, 0.04);
}

.project-desc:focus {
  background: #fff;
  box-shadow: 0 0 0 2px var(--c-education);
}

.project-desc:empty::before {
  content: "（点击添加项目描述）";
  color: var(--text-tertiary);
  font-style: italic;
}

/* ===== Progress ===== */
.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: var(--track);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--s-progress);
  width: 0%;
  transition: width 800ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill.done {
  background: var(--s-done);
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.progress-text .num-done {
  color: var(--text-primary);
  font-weight: 600;
}

.progress-text .num-percent {
  color: var(--text-primary);
  font-weight: 600;
}

.progress-text .num-done.all {
  color: var(--s-done);
}

/* ===== Tasks ===== */
.tasks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  transition: background 150ms ease;
  position: relative;
}

.task:hover {
  background: var(--bg-emphasis);
}

.task-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--text-tertiary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #fff;
  position: relative;
}

.task-check:hover {
  border-color: var(--s-progress);
  transform: scale(1.1);
}

.task-check.checked {
  background: var(--s-progress);
  border-color: var(--s-progress);
  transform: scale(1.05);
}

.task-check.checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  animation: tick 200ms ease-out;
}

@keyframes tick {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(1px, -1px) scale(0.3);
  }
  100% {
    opacity: 1;
    transform: rotate(-45deg) translate(1px, -1px) scale(1);
  }
}

.task-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.task-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  outline: none;
  border-radius: 3px;
  padding: 0 2px;
  margin: 0 -2px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
  text-decoration: none;
  text-decoration-color: transparent;
  white-space: pre-wrap;
  cursor: text;
}

.task-text:hover {
  background: rgba(99, 102, 241, 0.04);
}

.task-text:focus {
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--c-education);
}

.task.done {
  opacity: 0.55;
}

.task.done .task-text {
  text-decoration: line-through;
  text-decoration-color: var(--text-tertiary);
  color: var(--text-tertiary);
}

.task-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--s-done);
  background: var(--s-done-soft);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.task-date::before {
  content: "✓";
  font-size: 9px;
}

.task-delete {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 16px;
  line-height: 1;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: all 150ms ease;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task:hover .task-delete {
  opacity: 1;
}

.task-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.add-task {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px dashed var(--divider);
  border-radius: 6px;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 150ms ease;
}

.add-task:hover {
  border-style: solid;
  border-color: var(--c-education);
  color: var(--c-education);
  background: var(--c-education-soft);
}

.add-task .plus {
  font-size: 15px;
  line-height: 1;
}

/* ===== Footer ===== */
.footer {
  margin-top: 48px;
  padding: 24px 0 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.beian {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
}

.beian-link {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px;
  border-radius: 3px;
}

.beian-link::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'><path d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  transition: opacity 200ms ease;
}

.beian-link:hover {
  color: var(--c-education);
}

.beian-link:hover::before {
  opacity: 1;
}

.footer-slogan {
  font-family: var(--font-title);
  font-size: 12.5px;
  color: var(--text-tertiary);
  letter-spacing: 2px;
}

/* ===== Modal ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(40, 30, 20, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-mask.show {
  display: flex;
  animation: fadeIn 200ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 28px;
  width: min(90vw, 380px);
  box-shadow: var(--shadow-modal);
  animation: modalIn 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.modal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.modal-option {
  background: #fff;
  border: 1.5px solid var(--divider);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 150ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-option:hover {
  border-color: var(--c-education);
  background: var(--c-education-soft);
  transform: translateY(-1px);
}

.modal-option .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.modal-cancel {
  width: 100%;
  background: var(--divider-soft);
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 150ms ease;
}

.modal-cancel:hover {
  background: var(--divider);
  color: var(--text-primary);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  box-shadow: var(--shadow-modal);
  z-index: 200;
  display: none;
}

.toast.show {
  display: block;
  animation: toastIn 250ms ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 24px;
  }
  .header {
    padding: 32px 24px 24px;
  }
  .title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 18px 16px;
  }
  .stat-value {
    font-size: 28px;
  }
  .container {
    padding: 16px;
  }
  .header {
    padding: 24px 16px 20px;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .title {
    font-size: 24px;
  }
  .title-emoji {
    font-size: 24px;
  }
  .project-card {
    padding: 18px 18px 16px;
  }
  .project-title {
    font-size: 17px;
  }
  .badges {
    max-width: 100%;
  }
  .tab {
    padding: 8px 12px;
    font-size: 14px;
  }
  .add-project-btn .add-text {
    display: none;
  }
  .add-project-btn {
    padding: 9px 12px;
  }
  .footer {
    margin-top: 32px;
    font-size: 11.5px;
  }
}

/* 进度条在 0% 时的状态 */
.progress-fill.zero {
  background: var(--track);
}

/* 让项目卡保持"便签纸"质感的小细节 */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--divider-soft);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  opacity: 0;
  transition: opacity 200ms ease, background 200ms ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card[data-cat="教育"]:hover::before {
  background: var(--c-education);
}
.project-card[data-cat="工具"]:hover::before {
  background: var(--c-tool);
}
.project-card[data-cat="商业"]:hover::before {
  background: var(--c-business);
}
.project-card[data-cat="未分类"]:hover::before {
  background: var(--c-uncat);
}
