/*
 * 需求详情页（/task/t{id}）
 * 统一为主题色 + 企业级卡片式版式；仅作用于 .task-detail 容器
 */

/* 面包屑 */
.task-detail .g-tit1 {
  padding: 18px 0 0;
  border-bottom: 0;
  margin-bottom: -6px;
}
.task-detail .g-tit1 h3 {
  font-size: 14px;
  font-weight: 400;
  color: #8a94a6;
  letter-spacing: 0;
}
.task-detail .g-tit1 h3 a {
  color: #8a94a6;
}
.task-detail .g-tit1 h3 a:hover {
  color: #c91d39;
}

/* 需求概要卡片 */
.task-detail .y-con1 {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-top: 18px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 12px;
}
.task-detail .y-con1 .img {
  float: none;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f6fa;
}
.task-detail .y-con1 .img img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}
.task-detail .y-con1 .c1-txt {
  padding-left: 0;
  flex: 1;
  min-width: 0;
}
.task-detail .c1-txt h3 {
  font-size: 22px;
  line-height: 32px;
  color: #1f2a3d;
  font-weight: 600;
}
.task-detail .c1-txt h3 span {
  color: #8a94a6;
  font-weight: 400;
}
.task-detail .c1-txt .t2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.task-detail .c1-txt .t2 p {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 7px 12px;
  background: #f6f7fa;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  color: #33415c;
}
.task-detail .c1-txt .t2 p span {
  color: #8a94a6;
}
.task-detail .c1-txt .t2 strong {
  font-size: 18px;
  font-weight: 600;
  color: #c91d39;
}
.task-detail .c1-txt .t2 .f-btn {
  margin-left: 4px;
  width: auto;
  min-width: 68px;
  height: 26px;
  line-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #c91d39;
  background: rgba(201, 29, 57, 0.08);
  box-shadow: none;
  border-radius: 999px;
}
.task-detail .c1-txt .t2 .f-btn:hover {
  background: rgba(201, 29, 57, 0.14);
}
.task-detail .c1-txt .t3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
}
.task-detail .c1-txt .t3 p {
  float: none;
  font-size: 14px;
  color: #8a94a6;
}
.task-detail .c1-txt .t3 p span {
  color: #c91d39;
  font-weight: 600;
}
.task-detail .c1-txt .t3 ul {
  float: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.task-detail .c1-txt .t3 li {
  float: none;
  width: auto;
  padding: 0 10px;
  height: 24px;
  line-height: 22px;
  font-size: 12px;
  color: #c91d39;
  background: #fff;
  border: 1px solid rgba(201, 29, 57, 0.25);
  border-radius: 999px;
  margin-right: 0;
}

/* 流程步骤条 */
.task-detail .num-list {
  margin-top: 18px;
  padding: 34px 26px 22px;
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 12px;
}
.task-detail .num-list ul {
  display: flex;
  align-items: flex-start;
}
.task-detail .num-list li {
  float: none;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
}
.task-detail .num-list li:first-child,
.task-detail .num-list li:last-child {
  width: auto;
  flex: 1 1 0;
}
.task-detail .num-list li:first-child .cir,
.task-detail .num-list li:last-child .cir {
  float: none;
}
.task-detail .num-list li:first-child h4,
.task-detail .num-list li:last-child h4 {
  padding-left: 0;
  text-align: center;
}
.task-detail .num-list li:last-child .line {
  display: none;
}
.task-detail .num-list .cir {
  width: 26px;
  height: 26px;
  line-height: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #9aa4b2;
  background: #fff;
  border: 3px solid #e3e7ef;
  box-sizing: border-box;
  transition: all 0.2s;
}
.task-detail .num-list li h4 {
  margin-top: 6px;
  padding-top: 0;
  font-size: 13px;
  color: #9aa4b2;
}
.task-detail .num-list li .line {
  top: 11px;
  left: 50%;
  width: 100%;
  height: 4px;
  background: #eef1f6;
}
.task-detail .num-list li .line-on span {
  width: 100%;
  height: 4px;
  background: #c91d39;
  background-image: none;
}
.task-detail .num-list li.ok .cir {
  color: #fff;
  background: #c91d39;
  border-color: #c91d39;
}
.task-detail .num-list li.on .cir {
  color: #c91d39;
  background: #fff;
  border-color: #c91d39;
  box-shadow: 0 0 0 4px rgba(201, 29, 57, 0.1);
}
.task-detail .num-list li.ok .line {
  background: #c91d39;
}
.task-detail .num-list li.ok h4 {
  color: #33415c;
}
.task-detail .num-list li.on h4 {
  color: #c91d39;
  font-weight: 600;
}

/* 需求详情正文 */
.task-detail .TxtBox {
  margin-top: 18px;
  padding: 4px 26px 10px;
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 12px;
}
.task-detail .TxtBox .txt-list {
  padding: 22px 0;
  border-bottom: 1px dashed #eef1f6;
  font-size: 14px;
  line-height: 26px;
  color: #33415c;
}
.task-detail .TxtBox .txt-list:last-child {
  border-bottom: 0;
}
.task-detail .TxtBox .txt-list > p {
  margin: 0 0 6px;
}
.task-detail .TxtBox .txt-list span {
  color: #8a94a6;
  line-height: 26px;
}

/* 需求基本信息：类目 / 工作量 / 完成时间 / 具体要求 */
.task-detail .TxtBox .txt-list.txt-list1 > p {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 8px 0;
}
.task-detail .TxtBox .txt-list.txt-list1 > p + p {
  border-top: 1px solid #f4f6fa;
}
.task-detail .TxtBox .txt-list.txt-list1 > p > span {
  flex: 0 0 84px;
  font-size: 13px;
  color: #8a94a6;
  line-height: 26px;
}
.task-detail .TxtBox .txt-list.txt-list1 > p.txt-list1-h {
  padding-bottom: 0;
}
.task-detail .TxtBox .txt-list1-detail {
  margin-top: 6px;
  padding: 14px 16px;
  background: #f8f9fb;
  border-radius: 10px;
  font-size: 14px;
  line-height: 26px;
  color: #33415c;
  word-break: break-word;
}
.task-detail .TxtBox .txt-list h3 {
  position: relative;
  margin: 0 0 10px;
  padding-left: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2a3d;
  line-height: 20px;
}
.task-detail .TxtBox .txt-list h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: #c91d39;
}
.task-detail .TxtBox .txt-list2 ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.task-detail .TxtBox .txt-list2 ul li a {
  display: block;
  border: 1px solid #eceef3;
  border-radius: 8px;
  overflow: hidden;
  padding: 4px;
}
.task-detail .TxtBox .txt-list2 ul li a:hover {
  border-color: rgba(201, 29, 57, 0.4);
}
.task-detail .cred {
  padding: 16px 18px;
  background: #fff7f8;
  border: 1px solid rgba(201, 29, 57, 0.12);
  border-radius: 10px;
}
.task-detail .cred h3 {
  color: #c91d39;
}

/* 交稿列表 */
.task-detail .draft-list {
  margin-top: 18px;
  padding-bottom: 40px;
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 12px;
  overflow: hidden;
}
.task-detail .draft-list .tit {
  padding: 0 26px;
}
.task-detail .draft-list .tit h3 {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  color: #1f2a3d;
  line-height: 52px;
  border-bottom: 2px solid #c91d39;
}
.task-detail .draft-list .tab {
  height: 46px;
  line-height: 46px;
  background: #f7f8fb;
  border-top: 1px solid #eef1f6;
  padding: 0 14px;
  font-size: 14px;
}
.task-detail .draft-list .tab li {
  margin: 0 6px;
}
.task-detail .draft-list .tab li a {
  display: inline-block;
  padding: 0 14px;
  line-height: 30px;
  border-radius: 999px;
  color: #4a5568;
  cursor: pointer;
}
.task-detail .draft-list .tab li a:hover {
  color: #c91d39;
  background: rgba(201, 29, 57, 0.06);
}
.task-detail #proposals {
  padding: 0 26px;
}

/* 底部主按钮 */
.task-detail .btns {
  margin-top: 30px;
}
.task-detail .btns button {
  width: 176px;
  height: 44px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(201, 29, 57, 0.25);
  transition: background 0.2s;
  margin-bottom: 30px;
}
.task-detail .btns button:hover {
  background: #e0354f;
}

/* 交稿表单 */
.task-detail .draft-con {
  margin-top: 18px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 12px;
}
.task-detail .draft-con > h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1f2a3d;
}

@media (max-width: 760px) {
  .task-detail .y-con1 {
    flex-direction: column;
    padding: 18px;
  }
  .task-detail .num-list {
    padding: 20px 10px 12px;
  }
  .task-detail .num-list li {
    width: auto;
    flex: 1 1 0;
    margin-bottom: 0;
  }
  .task-detail .num-list .cir {
    width: 22px;
    height: 22px;
    line-height: 16px;
    font-size: 11px;
  }
  .task-detail .num-list li .line {
    top: 9px;
  }
  .task-detail .num-list li h4 {
    font-size: 11px;
    line-height: 16px;
    word-break: break-all;
  }
  .task-detail .TxtBox {
    padding: 4px 16px 10px;
  }
}
