/* ==================== 任务大厅列表页 ==================== */

/* 任务大厅-筛选 */
.task-filters { background: #fff; border: 1px solid #EBEEF5; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.filter-row { margin-bottom: 8px; display: flex; align-items: center; flex-wrap: wrap; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { flex-shrink: 0; font-size: 13px; color: #909399; margin-right: 10px; font-weight: 500; width: 44px; }
.task-filters .filter-row a { display: inline-block; font-size: 13px; color: #606266; text-decoration: none; padding: 4px 12px; margin-right: 6px; margin-bottom: 3px; border-radius: 16px; transition: all 0.2s; }
.task-filters .filter-row a:hover { color: #F56C6C; background: #fef0f0; }
.task-filters .filter-row a.cur { color: #fff; background: #F56C6C; }

/* 任务列表 */
.task-list { margin-bottom: 16px; }
.task-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    position: relative;
}
.task-item:hover {
    box-shadow: 0 4px 20px rgba(245,108,108,0.1);
    transform: translateX(4px);
    border-color: #fbc4c4;
    text-decoration: none;
    color: inherit;
}
.task-item:last-child { margin-bottom: 0; }
.tk-body { flex: 1; min-width: 0; }
.tk-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tk-type { flex-shrink: 0; font-size: 12px; color: #F56C6C; border: 1px solid #fbc4c4; background: #fef0f0; padding: 2px 10px; border-radius: 10px; line-height: 20px; font-weight: 500; }
.tk-type i { margin-right: 2px; opacity: 0.8; }
.tk-status { flex-shrink: 0; font-size: 12px; padding: 2px 10px; border-radius: 10px; line-height: 20px; font-weight: 500; }
.tk-status-open { color: #67C23A; border: 1px solid #c2e7b0; background: #f0f9eb; }
.tk-status-ing { color: #409EFF; border: 1px solid #b3d8ff; background: #ecf5ff; }
.tk-name { font-size: 15px; color: #303133; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.task-item:hover .tk-name { color: #F56C6C; }
.tk-meta { display: flex; gap: 8px; }
.meta-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #909399; background: #f5f7fa; padding: 2px 8px; border-radius: 4px; }
.meta-tag i { font-size: 11px; }
.tk-right { flex-shrink: 0; text-align: right; margin: 0 24px; }
.tk-price { font-size: 18px; font-weight: 700; color: #F56C6C; white-space: nowrap; }
.tk-info { font-size: 13px; color: #909399; margin-top: 4px; }
.tk-info i { margin-right: 3px; opacity: 0.7; }
.tk-shop { flex-shrink: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #909399; border-left: 1px solid #f0f0f0; padding-left: 20px; }
.tk-shop img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }

/* 侧边卡片 */
.side-card { background: #fff; border: 1px solid #EBEEF5; border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
.side-card h4 { margin: 0 0 12px; font-size: 15px; color: #303133; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.side-btn { display: block; text-align: center; background: #F56C6C; color: #fff; font-size: 14px; padding: 8px 0; border-radius: 4px; text-decoration: none; }
.side-btn:hover { background: #e85454; color: #fff; }
.side-desc { font-size: 13px; color: #909399; margin: 0 0 12px; }
.sb-mb { margin-bottom: 16px; }

/* 空状态 */
.empty-state { padding: 60px 20px; text-align: center; color: #909399; background: #fff; border: 1px solid #EBEEF5; border-radius: 8px; }
.empty-state i { font-size: 56px; display: block; margin-bottom: 16px; color: #DCDFE6; }
.empty-state p { margin: 0; font-size: 14px; }

/* 任务详情 */
.task-detail { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 28px 30px; margin-bottom: 16px; }
.td-header { padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.td-type-status { margin-bottom: 8px; }
.td-type { display: inline-block; font-size: 12px; color: #F56C6C; border: 1px solid #fbc4c4; background: #fef0f0; padding: 1px 8px; border-radius: 2px; margin-right: 8px; }
.td-status { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 2px; }
.td-status.open { color: #67C23A; border: 1px solid #c2e7b0; background: #f0f9eb; }
.td-status.ing { color: #409EFF; border: 1px solid #b3d8ff; background: #ecf5ff; }
.td-status.done { color: #aaa; border: 1px solid #ddd; background: #fafafa; }
.td-title { margin: 0 0 14px; font-size: 20px; font-weight: 600; color: #222; line-height: 1.5; }
.td-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.td-price { font-size: 22px; font-weight: 700; color: #F56C6C; }
.td-tag { font-size: 12px; color: #888; background: #f5f5f5; padding: 2px 8px; border-radius: 3px; }
.td-info-item { font-size: 13px; color: #bbb; }
.td-section { margin-bottom: 22px; }
.td-section h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #333; padding-left: 8px; border-left: 3px solid #F56C6C; }
.td-content { font-size: 14px; color: #555; line-height: 1.8; }
.td-content p { margin-bottom: 12px; }
.td-content img { max-width: 100%; height: auto; margin: 8px 0; }
.td-images { display: flex; flex-wrap: wrap; gap: 8px; }
.td-images img { width: 120px; height: 80px; object-fit: cover; border-radius: 3px; border: 1px solid #eee; cursor: pointer; }
.td-publisher { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 14px 18px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.pub-left { display: flex; align-items: center; gap: 10px; }
.pub-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.pub-name { font-size: 14px; color: #333; margin-right: 8px; }
.pub-level { font-size: 11px; color: #d46b08; border: 1px solid #ffd591; background: #fffbe6; padding: 0 6px; border-radius: 2px; }
.pub-level-urgent { color: #F56C6C; border-color: #fbc4c4; background: #fef0f0; }
.pub-level-normal { color: #67C23A; border-color: #c2e7b0; background: #f0f9eb; }
.td-applies { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 20px 24px; }
.td-applies h3 { margin: 0 0 14px; font-size: 16px; font-weight: 600; color: #333; }
.td-applies h3 .badge { background: #F56C6C; margin-left: 4px; }

/* 报名卡片 */
.apply-card { border: 1px solid #f0f0f0; border-radius: 6px; margin-bottom: 12px; overflow: hidden; }
.apply-card:last-child { margin-bottom: 0; }
.apply-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #fafafa; }
.apply-card-user { display: flex; align-items: center; gap: 10px; }
.apply-card-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #eee; }
.apply-card-user-info { display: flex; flex-direction: column; gap: 2px; }
.apply-card-name { font-size: 14px; font-weight: 600; color: #333; }
.apply-card-shop { font-size: 12px; color: #999; }
.apply-card-shop .fa { margin-right: 2px; }
.apply-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.apply-card-price { font-size: 16px; color: #F56C6C; font-weight: 700; }
.apply-card-cycle { font-size: 13px; color: #666; }
.apply-card-cycle .fa { margin-right: 2px; color: #999; }
.apply-card-status { font-size: 12px; }
.apply-card-time { font-size: 13px; color: #bbb; }
.apply-card-body { padding: 12px 16px; border-top: 1px solid #f5f5f5; }
.apply-card-label { font-size: 12px; color: #999; margin-bottom: 6px; font-weight: 500; }
.apply-card-text { font-size: 14px; color: #555; line-height: 1.7; white-space: pre-wrap; }
.apply-card-footer { padding: 10px 16px; border-top: 1px solid #f5f5f5; background: #fafafa; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apply-card-link { display: inline-block; padding: 3px 10px; font-size: 13px; color: #409eff; background: #ecf5ff; border: 1px solid #d9ecff; border-radius: 3px; }
.apply-card-link:hover { color: #fff; background: #409eff; text-decoration: none; }

/* 任务侧栏 */
.side-task-list { margin: 0; padding: 0; list-style: none; }
.side-task-list li { padding: 8px 0; border-bottom: 1px dashed #f5f5f5; }
.side-task-list li:last-child { border-bottom: 0; }
.side-task-list li a { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: #606266; font-size: 13px; }
.side-task-list li a:hover { color: #F56C6C; }
.st-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 8px; }
.st-title em { color: #F56C6C; font-style: normal; font-size: 12px; }
.st-price { flex-shrink: 0; color: #F56C6C; font-weight: 500; }

/* 我的任务 */
.mytask-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid var(--c-border-lighter);
    transition: .2s;
}
.mytask-card:hover { box-shadow: 0 2px 12px 0 rgba(0,0,0,.06); }
.mytask-card:last-child { margin-bottom: 0; }
.mtk-info { flex: 1; min-width: 0; }
.mtk-title {
    display: block;
    font-size: 14px;
    color: var(--c-text);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mtk-title:hover { color: var(--c-primary); text-decoration: none; }
.mtk-meta { font-size: 12px; color: var(--c-text-secondary); margin-bottom: 4px; }
.mtk-divide { margin: 0 10px; color: var(--c-border); }
.mtk-bottom .label { font-size: 11px; padding: 2px 8px; }
.mtk-actions { flex-shrink: 0; margin-left: 24px; display: flex; gap: 8px; }
.mtk-actions .btn { font-size: 12px; padding: 3px 12px; border-radius: 4px; }
.mtk-price { font-weight: 700; color: var(--c-danger); }
.mtk-count { color: var(--c-text-secondary); }
.mtk-selected { color: var(--c-success); }

/* ========== 任务侧栏推广卡片 ========== */
.task-promo-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #EBEEF5;
  padding: 0;
  overflow: hidden;
  margin-bottom: 16px;
}
.task-promo-title {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  border-bottom: 1px solid #EBEEF5;
  background: #fff;
}
.task-promo-steps { padding: 14px 16px 10px; }
.tps-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.tps-num {
  width: 22px; height: 22px;
  line-height: 22px;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #F56C6C;
  flex-shrink: 0;
}
.tps-text { font-size: 14px; color: #606266; }
.task-promo-btn {
  display: block;
  margin: 4px 16px 14px;
  padding: 9px 0;
  text-align: center;
  background: linear-gradient(135deg, #F56C6C, #e85454);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .2s;
  letter-spacing: 2px;
}
.task-promo-btn:hover { color: #fff; opacity: .9; text-decoration: none; }
.task-promo-divider {
  height: 1px;
  background: #EBEEF5;
  margin: 0 16px;
}
.task-promo-merchant { padding: 14px 16px; text-align: center; }
.tpm-title { font-size: 14px; font-weight: 600; color: #303133; margin-bottom: 6px; }
.tpm-desc { font-size: 12px; color: #909399; margin-bottom: 10px; line-height: 1.6; }
.tpm-link {
  display: inline-block;
  padding: 6px 20px;
  font-size: 13px;
  color: #F56C6C;
  border: 1px solid #F56C6C;
  border-radius: 20px;
  text-decoration: none;
  transition: all .2s;
}
.tpm-link:hover { background: #F56C6C; color: #fff; text-decoration: none; }
.task-promo-footer {
  padding: 10px 16px;
  font-size: 12px;
  color: #909399;
  text-align: center;
  background: #f5f7fa;
  border-top: 1px solid #EBEEF5;
}
.task-promo-footer .fa { margin-right: 4px; color: #909399; }

/* 排名列表 */
.rank-list { margin: 0; padding: 0; list-style: none; }
.rank-list li { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px dashed #f5f5f5; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li .rn { width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 12px; color: #fff; background: #c0c4cc; border-radius: 4px; flex-shrink: 0; margin-right: 10px; }
.rank-list li:nth-child(1) .rn,
.rank-list li:nth-child(2) .rn,
.rank-list li:nth-child(3) .rn { background: #F56C6C; }
.rank-list li a { flex: 1; text-decoration: none; color: #606266; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-list li a:hover { color: #F56C6C; }
.rank-list li .rp { flex-shrink: 0; color: #F56C6C; font-weight: 500; margin-left: 8px; font-size: 13px; }

@media (max-width: 768px) {
  .task-item { flex-direction: column; align-items: flex-start; }
  .tk-right { margin: 8px 0; text-align: left; }
  .tk-shop { border-left: 0; padding-left: 0; margin-top: 6px; }
  .task-detail { padding: 16px; }
  .td-title { font-size: 17px; }
  .td-price { font-size: 18px; }
}
