/* 昇腾任务广场 /tasks/ */
.tasks-content.site-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 60px;
}

.tasks-page {
  --tk-accent: #e8552f;
  --tk-accent-soft: #fff2ee;
  --tk-gold: #b97616;
  --tk-text: #2f3542;
  --tk-muted: #7b8494;
  --tk-line: #ececf1;
  --tk-bg: #ffffff;
  color: var(--tk-text);
}

.tk-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin: 18px 0 22px;
  padding: 34px 38px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 15%, rgba(232, 85, 47, 0.16), transparent 34%),
    linear-gradient(135deg, #fff7f3 0%, #fff 54%, #fff8f0 100%);
  border: 1px solid #f4e2d8;
  box-shadow: 0 18px 45px rgba(50, 60, 80, 0.08);
}

.tk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tk-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tk-hero h1 {
  margin: 10px 0 12px;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  color: #23262d;
}

.tk-hero p {
  max-width: 640px;
  margin: 0;
  color: #667082;
  font-size: 15px;
  line-height: 1.85;
}

.tk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.tk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tk-btn:hover {
  transform: translateY(-1px);
}

.tk-btn-primary {
  color: #fff;
  background: var(--tk-accent);
  box-shadow: 0 10px 22px rgba(232, 85, 47, 0.22);
}

.tk-btn-primary:hover {
  color: #fff;
  background: #d9481f;
}

.tk-btn-ghost {
  color: #4d5666;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #ecdfd8;
}

.tk-btn-ghost:hover {
  color: var(--tk-accent);
  background: #fff;
}

.tk-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px;
  min-width: 250px;
  align-content: center;
}

.tk-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(45, 55, 72, 0.05);
}

.tk-stat strong {
  display: block;
  color: #24272e;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
}

.tk-stat span {
  display: block;
  margin-top: 4px;
  color: #8a91a0;
  font-size: 12px;
}

.tk-stat-wide {
  grid-column: 1 / -1;
}

.tk-stat-wide strong {
  font-size: 20px;
}

.tk-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}

.tk-category-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #e7e7ed;
  background: #fff;
  color: #5b6270;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tk-category-btn:hover {
  border-color: #f0b8a5;
  color: #cf4520;
}

.tk-category-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--tk-accent);
  box-shadow: 0 8px 18px rgba(232, 85, 47, 0.22);
}

.tk-category-btn .tk-count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.tk-category-btn.is-active .tk-count {
  background: rgba(255, 255, 255, 0.24);
}

.tk-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #f6ddc7;
  border-left: 4px solid #e8a33d;
  border-radius: 12px;
  background: #fffaf1;
  color: #8a6321;
  font-size: 13px;
  line-height: 1.7;
}

.tk-notice[hidden] {
  display: none;
}

.tk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--tk-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(40, 50, 70, 0.04);
}

.tk-result {
  margin: 0;
  color: #6d7482;
  font-size: 13px;
}

.tk-result strong {
  color: var(--tk-accent);
}

.tk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tk-field {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #7d8492;
  font-size: 12px;
  white-space: nowrap;
}

.tk-field select,
.tk-field input {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid #e1e3e9;
  border-radius: 9px;
  background: #fff;
  color: #4e5665;
  font-size: 13px;
  outline: none;
}

.tk-field input {
  width: 168px;
  padding: 0 10px;
}

.tk-field select:focus,
.tk-field input:focus {
  border-color: #f0b8a5;
  box-shadow: 0 0 0 3px rgba(232, 85, 47, 0.1);
}

.tk-list {
  display: grid;
  gap: 10px;
}

.tk-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--tk-line);
  border-left: 4px solid #e5e6ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(40, 50, 70, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tk-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(40, 50, 70, 0.08);
}

.tk-item.is-open {
  border-left-color: var(--tk-accent);
  background: linear-gradient(90deg, #fff8f5, #fff 42%);
}

.tk-item.is-closed {
  border-left-color: #cfd3da;
  opacity: 0.82;
}

.tk-item-left {
  min-width: 0;
}

.tk-category-name {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tk-accent-soft);
  color: #c24527;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tk-prize {
  margin-top: 9px;
  color: var(--tk-gold);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-all;
}

.tk-prize small {
  margin-left: 3px;
  color: #a99172;
  font-size: 11px;
  font-weight: 600;
}

.tk-prize-none {
  color: #a4a9b3;
  font-size: 13px;
  font-weight: 600;
}

.tk-item-main {
  min-width: 0;
}

.tk-item-title {
  display: inline-block;
  margin: 0 0 6px;
  color: #252932;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 750;
  word-break: break-word;
}

.tk-item-title:hover {
  color: var(--tk-accent);
}

.tk-item-intro {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #868d9a;
  font-size: 12px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tk-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: #858c99;
  font-size: 12px;
}

.tk-item-meta i {
  margin-right: 4px;
  color: #b4bac4;
}

.tk-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4f5f7;
  color: #7c8391;
  font-size: 10px;
  font-weight: 600;
}

.tk-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 124px;
  flex: 0 0 124px;
}

.tk-status {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tk-status-open {
  color: #c24527;
  background: #ffede8;
}

.tk-status-closed {
  color: #8b919c;
  background: #f3f4f6;
}

.tk-left {
  color: #6d7482;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.tk-left strong {
  color: #2f3542;
  font-size: 15px;
  font-weight: 800;
}

.tk-left.is-urgent strong {
  color: #d2401e;
}

.tk-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #f0d3c7;
  color: #c24527;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.tk-go:hover {
  color: #fff;
  background: var(--tk-accent);
  border-color: var(--tk-accent);
}

.tk-empty {
  padding: 64px 20px;
  border: 1px dashed #e4e5ea;
  border-radius: 20px;
  text-align: center;
  background: #fff;
}

.tk-empty i {
  color: #d7dae1;
  font-size: 42px;
}

.tk-empty h2 {
  margin: 14px 0 6px;
  color: #3a3f49;
  font-size: 18px;
  font-weight: 700;
}

.tk-empty p {
  margin: 0;
  color: #9aa0ab;
  font-size: 13px;
}

.tk-page-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #f0f0f4;
  color: #9aa0ab;
  font-size: 12px;
  line-height: 1.9;
}

.tk-page-foot p {
  margin: 0 0 6px;
}

.tk-data-stamp {
  color: #7d8492;
}

.tk-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tk-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f6f7f9;
  color: #757d8b;
  font-size: 11px;
}

.tk-source-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4bbf8c;
}

.tk-source.is-cached .tk-source-dot {
  background: #e8a33d;
}

.tk-source.is-failed .tk-source-dot {
  background: #e05252;
}

@media (max-width: 900px) {
  .tk-hero {
    flex-direction: column;
    padding: 26px 22px;
  }

  .tk-hero h1 {
    font-size: 30px;
  }

  .tk-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
  }

  .tk-stat-wide {
    grid-column: auto;
  }

  .tk-stat-wide strong {
    font-size: 15px;
  }

  .tk-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tk-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tk-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .tk-prize {
    margin-top: 0;
    font-size: 15px;
  }

  .tk-item-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .tasks-content.site-content {
    padding: 0 14px 40px;
  }

  .tk-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-field input {
    width: 100%;
  }

  .tk-field-search {
    width: 100%;
  }

  .tk-field-search input {
    flex: 1;
  }
}
