/* 子比任务系统 - 前端样式 */

/* 任务信息面板 */
.task-info-box .task-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px 16px;
}
.task-info-box .task-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}
.task-info-box .task-meta-item b {
    font-size: 15px;
}
.task-pay-preview {
    max-height: 160px;
    overflow: auto;
}

/* 任务进度条 */
.task-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 99px;
    overflow: hidden;
}
.task-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f43f5e, #fb7185);
    border-radius: 99px;
    transition: width .3s;
}

/* 列表任务角标（跟随主题 badge 样式，颜色由 jb-red/jb-green 工具类控制） */
.badge-task {
    padding: 0 6px;
    line-height: 1.5em;
}

/* 发帖页侧边栏任务模块 */
.task-publish-widget .task-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.task-publish-widget .task-switch input {
    display: none;
}
.task-publish-widget .task-switch .switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 99px;
    transition: background .2s;
    flex-shrink: 0;
}
.task-publish-widget .task-switch .switch::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.task-publish-widget .task-switch input:checked + .switch {
    background: #f43f5e;
}
.task-publish-widget .task-switch input:checked + .switch::after {
    transform: translateX(16px);
}
.task-publish-widget .task-fields {
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    padding-top: 10px;
}
.task-publish-widget .form-group > label {
    display: block;
}
.task-publish-widget .task-field-row .form-group {
    margin-bottom: 10px;
}
.task-meta-table {
    width: 100%;
    border-collapse: collapse;
}
.task-meta-table td {
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}
.task-meta-table tr:last-child td {
    border-bottom: none;
}

/* 独立发布页 */
.task-publish-box .form-group label b {
    font-size: 14px;
}
.task-publish-box .task-currency-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 申诉审核面板（任务帖信息面板内） */
.task-appeal-panel {
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 12px;
}
.task-appeal-item {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}
.task-appeal-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.task-appeal-reason {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    padding: 8px 10px;
}
.task-appeal-form .form-control {
    max-width: 100%;
    font-size: 12px;
}

/* 不可回复时的提示（替代回复表单） */
.task-reply-closed .box-body {
    padding: 24px 16px;
    text-align: center;
}
