/* ========================================
   任务悬赏插件 - 高级简约蓝色暖色调样式
   ======================================== */

/* CSS变量 - 蓝色暖色调主题 */
:root {
    --tr-primary: #4A90E2;
    --tr-primary-light: #6BA5F0;
    --tr-primary-dark: #357ABD;
    --tr-secondary: #FF8C42;
    --tr-secondary-light: #FFA66B;
    --tr-accent: #50C878;
    --tr-danger: #FF6B6B;
    --tr-warning: #FFD93D;
    --tr-success: #6BCB77;
    --tr-bg-primary: #FFFFFF;
    --tr-bg-secondary: #F8FAFC;
    --tr-bg-tertiary: #F1F5F9;
    --tr-border: #E2E8F0;
    --tr-border-light: #F1F5F9;
    --tr-text-primary: #1E293B;
    --tr-text-secondary: #64748B;
    --tr-text-muted: #94A3B8;
    --tr-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --tr-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --tr-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --tr-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --tr-radius-sm: 8px;
    --tr-radius: 12px;
    --tr-radius-lg: 16px;
    --tr-radius-xl: 20px;
    --tr-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
.tr-unified-page,
.tr-task-display,
.tr-user-panel,
.tr-task-card,
.tr-task-list-item {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========================================
   统一页面布局
   ======================================== */
.tr-unified-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 用户面板 */
.tr-user-panel {
    background: linear-gradient(135deg, var(--tr-primary) 0%, var(--tr-primary-dark) 100%);
    border-radius: var(--tr-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: var(--tr-shadow-md);
}

.tr-user-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tr-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tr-user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.tr-user-details h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.tr-user-balance {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.tr-balance-amount {
    font-size: 20px;
    font-weight: 700;
}

.tr-user-actions {
    display: flex;
    gap: 10px;
}

.tr-user-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.tr-user-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--tr-radius);
    padding: 16px;
    text-align: center;
    transition: var(--tr-transition);
}

.tr-user-stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.tr-user-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tr-user-stat-label {
    font-size: 12px;
    opacity: 0.85;
}

/* 简码页面横排统计 */
.tr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.tr-stat-box {
    background: linear-gradient(135deg, var(--tr-bg-primary) 0%, var(--tr-bg-secondary) 100%);
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius);
    padding: 14px 18px;
    transition: var(--tr-transition);
    position: relative;
    overflow: hidden;
}

.tr-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tr-primary) 0%, var(--tr-primary-light) 100%);
}

.tr-stat-box.tr-stat-open::before {
    background: linear-gradient(90deg, var(--tr-success) 0%, #8FD89E 100%);
}

.tr-stat-box.tr-stat-completed::before {
    background: linear-gradient(90deg, var(--tr-accent) 0%, #6BD88A 100%);
}

.tr-stat-box.tr-stat-reward::before {
    background: linear-gradient(90deg, var(--tr-secondary) 0%, var(--tr-secondary-light) 100%);
}

.tr-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--tr-shadow-md);
}

.tr-stat-box-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tr-stat-box-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tr-stat-box-icon i {
    font-size: 28px;
    line-height: 1;
}

.tr-stat-box.tr-stat-total .tr-stat-box-icon i {
    color: var(--tr-primary);
}

.tr-stat-box.tr-stat-open .tr-stat-box-icon i {
    color: var(--tr-success);
}

.tr-stat-box.tr-stat-completed .tr-stat-box-icon i {
    color: var(--tr-accent);
}

.tr-stat-box.tr-stat-reward .tr-stat-box-icon i {
    color: var(--tr-secondary);
}

.tr-stat-box-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--tr-text-primary);
    white-space: nowrap;
}

.tr-stat-box-label {
    font-size: 13px;
    color: var(--tr-text-secondary);
    white-space: nowrap;
}

/* 统计信息栏 */
.tr-stats-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--tr-bg-primary);
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius);
    padding: 14px 20px;
    margin-bottom: 24px;
}

.tr-stats-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.tr-stats-info-item i {
    color: var(--tr-primary);
    font-size: 16px;
}

.tr-stats-info-label {
    color: var(--tr-text-secondary);
}

.tr-stats-info-value {
    color: var(--tr-text-primary);
    font-weight: 600;
}

.tr-rating-stars .tr-star {
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
}

.tr-rating-stars .tr-star.active {
    color: #FFD93D;
}

/* 标签导航 */
.tr-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--tr-bg-secondary);
    padding: 6px;
    border-radius: var(--tr-radius);
    overflow-x: auto;
}

.tr-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--tr-radius-sm);
    text-decoration: none;
    color: var(--tr-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--tr-transition);
    white-space: nowrap;
}

.tr-tab:hover {
    color: var(--tr-primary);
    background: var(--tr-bg-tertiary);
}

.tr-tab.active {
    background: var(--tr-primary);
    color: #fff;
    box-shadow: var(--tr-shadow-sm);
}

.tr-tab span {
    font-size: 16px;
}

/* 内容区域 */
.tr-page-content {
    background: var(--tr-bg-primary);
    border-radius: var(--tr-radius-lg);
    padding: 24px;
    box-shadow: var(--tr-shadow);
}

/* ========================================
   搜索和筛选
   ======================================== */
.tr-list-header {
    margin-bottom: 24px;
}

.tr-search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tr-search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--tr-border);
    border-radius: var(--tr-radius-sm);
    font-size: 14px;
    transition: var(--tr-transition);
}

.tr-search-form input[type="text"]:focus {
    border-color: var(--tr-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.tr-search-form select {
    padding: 12px 16px;
    border: 2px solid var(--tr-border);
    border-radius: var(--tr-radius-sm);
    font-size: 14px;
    background: var(--tr-bg-primary);
    cursor: pointer;
    transition: var(--tr-transition);
}

.tr-search-form select:focus {
    border-color: var(--tr-primary);
    outline: none;
}

/* ========================================
   高级筛选器 - 参考威客平台
   ======================================== */
.tr-advanced-filters {
    background: var(--tr-bg-primary);
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius);
    padding: 20px;
    box-shadow: var(--tr-shadow-sm);
}

.tr-filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tr-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.tr-filter-row-search {
    border-bottom: 1px solid var(--tr-border);
    padding-bottom: 16px;
    margin-bottom: 4px;
}

.tr-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}

.tr-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--tr-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tr-filter-group label i {
    font-size: 14px;
}

.tr-filter-input,
.tr-filter-select {
    padding: 10px 14px;
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius-sm);
    font-size: 14px;
    background: var(--tr-bg-secondary);
    color: var(--tr-text-primary);
    transition: var(--tr-transition);
    width: 100%;
}

.tr-filter-input:focus,
.tr-filter-select:focus {
    border-color: var(--tr-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
    background: var(--tr-bg-primary);
}

.tr-filter-search {
    flex: 2;
    min-width: 280px;
}

.tr-filter-search .tr-filter-input {
    padding-left: 36px;
    position: relative;
}

.tr-filter-search label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: var(--tr-text-secondary);
    font-size: 14px;
}

.tr-filter-price {
    min-width: 200px;
}

.tr-price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tr-price-input {
    width: 80px;
    text-align: center;
}

.tr-price-separator {
    color: var(--tr-text-secondary);
    font-weight: 600;
}

.tr-filter-checkboxes {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.tr-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tr-text-primary);
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius-sm);
    transition: var(--tr-transition);
    background: var(--tr-bg-secondary);
}

.tr-checkbox-label:hover {
    border-color: var(--tr-primary-light);
    background: var(--tr-bg-tertiary);
}

.tr-checkbox-label input[type="checkbox"] {
    margin: 0;
    accent-color: var(--tr-primary);
}

.tr-checkbox-label input[type="checkbox"]:checked + i,
.tr-checkbox-label:has(input:checked) {
    border-color: var(--tr-primary);
    background: rgba(74, 144, 226, 0.08);
}

.tr-filter-sort {
    min-width: 140px;
}

.tr-filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.tr-filter-submit,
.tr-filter-reset {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tr-filter-submit i,
.tr-filter-reset i {
    font-size: 14px;
}

/* 筛选器响应式 */
@media (max-width: 768px) {
    .tr-filter-row {
        flex-direction: column;
    }
    
    .tr-filter-group {
        min-width: 100%;
    }
    
    .tr-filter-search {
        min-width: 100%;
    }
    
    .tr-filter-actions {
        width: 100%;
    }
    
    .tr-filter-submit,
    .tr-filter-reset {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================
   任务卡片网格 - 高级版
   ======================================== */
.tr-task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.tr-task-card {
    background: var(--tr-bg-primary);
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius);
    padding: 0;
    transition: var(--tr-transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tr-task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tr-primary) 0%, var(--tr-primary-light) 100%);
    opacity: 0;
    transition: var(--tr-transition);
}

.tr-task-card:hover {
    border-color: var(--tr-primary-light);
    box-shadow: var(--tr-shadow-lg);
    transform: translateY(-6px);
}

.tr-task-card:hover::before {
    opacity: 1;
}

.tr-task-card.tr-featured {
    border-color: var(--tr-secondary);
}

.tr-task-card.tr-featured::before {
    background: linear-gradient(90deg, var(--tr-secondary) 0%, var(--tr-secondary-light) 100%);
    opacity: 1;
}

.tr-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.tr-badge-urgent {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: #fff;
}

.tr-badge-featured {
    background: linear-gradient(135deg, var(--tr-secondary) 0%, var(--tr-secondary-light) 100%);
    color: #fff;
}

.tr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 20px 20px 0 20px;
}

.tr-card-mode {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.tr-mode-reward {
    background: linear-gradient(135deg, var(--tr-secondary) 0%, var(--tr-secondary-light) 100%);
    color: #fff;
}

.tr-mode-bid {
    background: linear-gradient(135deg, var(--tr-primary) 0%, var(--tr-primary-light) 100%);
    color: #fff;
}

.tr-mode-assign {
    background: linear-gradient(135deg, var(--tr-accent) 0%, #6BD88A 100%);
    color: #fff;
}

.tr-card-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--tr-text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 20px;
}

.tr-card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--tr-transition);
}

.tr-card-title a:hover {
    color: var(--tr-primary);
}

.tr-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--tr-text-muted);
}

.tr-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tr-card-meta-item i {
    font-size: 14px;
}

.tr-card-body {
    padding: 0 20px;
    flex: 1;
}

.tr-card-description {
    font-size: 13px;
    color: var(--tr-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tr-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tr-card-skill {
    padding: 3px 8px;
    background: var(--tr-bg-secondary);
    border-radius: 12px;
    font-size: 11px;
    color: var(--tr-text-secondary);
}

.tr-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--tr-bg-secondary);
    border-top: 1px solid var(--tr-border-light);
}

.tr-card-reward {
    display: flex;
    flex-direction: column;
}

.tr-reward-label {
    font-size: 11px;
    color: var(--tr-text-muted);
    margin-bottom: 2px;
}

.tr-reward-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--tr-secondary);
}

.tr-card-actions {
    display: flex;
    gap: 8px;
}

.tr-card-btn {
    padding: 8px 16px;
    border-radius: var(--tr-radius-sm);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--tr-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tr-card-btn-primary {
    background: var(--tr-primary);
    color: #fff;
}

.tr-card-btn-primary:hover {
    background: var(--tr-primary-dark);
    transform: translateY(-1px);
}

.tr-card-btn-outline {
    border: 1px solid var(--tr-border);
    color: var(--tr-text-secondary);
}

.tr-card-btn-outline:hover {
    border-color: var(--tr-primary);
    color: var(--tr-primary);
}

/* 任务列表项 - 列表模式 */
.tr-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tr-task-list-item {
    background: var(--tr-bg-primary);
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--tr-transition);
}

.tr-task-list-item:hover {
    border-color: var(--tr-primary-light);
    box-shadow: var(--tr-shadow);
}

.tr-list-item-mode {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--tr-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tr-list-item-content {
    flex: 1;
    min-width: 0;
}

.tr-list-item-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.tr-list-item-title a {
    color: var(--tr-text-primary);
    text-decoration: none;
}

.tr-list-item-title a:hover {
    color: var(--tr-primary);
}

.tr-list-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--tr-text-muted);
}

.tr-list-item-reward {
    flex-shrink: 0;
    text-align: right;
}

.tr-list-reward-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--tr-secondary);
}

.tr-list-reward-label {
    font-size: 11px;
    color: var(--tr-text-muted);
}

.tr-list-item-actions {
    flex-shrink: 0;
}

.tr-card-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.tr-status-open,
.tr-status-progress {
    background: rgba(107, 203, 119, 0.1);
    color: var(--tr-success);
}

.tr-status-completed {
    background: rgba(74, 144, 226, 0.1);
    color: var(--tr-primary);
}

.tr-status-cancelled {
    background: rgba(255, 107, 107, 0.1);
    color: var(--tr-danger);
}

.tr-card-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.tr-card-title a {
    color: var(--tr-text-primary);
    text-decoration: none;
    transition: var(--tr-transition);
}

.tr-card-title a:hover {
    color: var(--tr-primary);
}

.tr-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--tr-bg-tertiary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--tr-text-secondary);
    margin-bottom: 10px;
}

.tr-card-excerpt {
    color: var(--tr-text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tr-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tr-border-light);
}

.tr-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--tr-text-muted);
}

.tr-meta-icon {
    font-size: 14px;
}

.tr-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tr-card-reward {
    display: flex;
    flex-direction: column;
}

.tr-reward-label {
    font-size: 11px;
    color: var(--tr-text-muted);
    margin-bottom: 2px;
}

.tr-reward-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--tr-secondary);
}

/* ========================================
   按钮样式
   ======================================== */
.tr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--tr-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--tr-transition);
    text-decoration: none;
    white-space: nowrap;
}

.tr-btn span {
    font-size: 16px;
}

.tr-btn-primary {
    background: linear-gradient(135deg, var(--tr-primary) 0%, var(--tr-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.tr-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.tr-btn-success {
    background: linear-gradient(135deg, var(--tr-success) 0%, #5AB868 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(107, 203, 119, 0.3);
}

.tr-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 203, 119, 0.4);
}

.tr-btn-danger {
    background: linear-gradient(135deg, var(--tr-danger) 0%, #FF8E8E 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.tr-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.tr-btn-outline {
    background: transparent;
    border: 2px solid var(--tr-border);
    color: var(--tr-text-secondary);
}

.tr-btn-outline:hover {
    border-color: var(--tr-primary);
    color: var(--tr-primary);
    background: rgba(74, 144, 226, 0.05);
}

.tr-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.tr-btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.tr-btn-disabled {
    background: var(--tr-bg-tertiary);
    color: var(--tr-text-muted);
    cursor: not-allowed;
}

/* ========================================
   任务详情页面
   ======================================== */
.tr-task-display {
    background: var(--tr-bg-primary);
    border-radius: var(--tr-radius-lg);
    padding: 32px;
    box-shadow: var(--tr-shadow);
}

.tr-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--tr-border-light);
}

.tr-task-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tr-task-mode-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tr-task-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tr-badge-urgent {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: #fff;
}

.tr-badge-featured {
    background: linear-gradient(135deg, var(--tr-secondary) 0%, var(--tr-secondary-light) 100%);
    color: #fff;
}

.tr-task-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--tr-text-primary);
}

.tr-task-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.tr-task-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tr-stat-card {
    background: var(--tr-bg-secondary);
    border-radius: var(--tr-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--tr-transition);
}

.tr-stat-card:hover {
    background: var(--tr-bg-tertiary);
    transform: translateY(-2px);
}

.tr-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--tr-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tr-icon-reward {
    background: linear-gradient(135deg, var(--tr-secondary) 0%, var(--tr-secondary-light) 100%);
}

.tr-icon-applicants {
    background: linear-gradient(135deg, var(--tr-primary) 0%, var(--tr-primary-light) 100%);
}

.tr-icon-submissions {
    background: linear-gradient(135deg, var(--tr-accent) 0%, #6BD88A 100%);
}

.tr-icon-deadline {
    background: linear-gradient(135deg, var(--tr-warning) 0%, #FFE66D 100%);
}

.tr-icon-winners {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.tr-stat-content {
    flex: 1;
}

.tr-stat-label {
    font-size: 12px;
    color: var(--tr-text-muted);
    margin-bottom: 4px;
}

.tr-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--tr-text-primary);
}

.tr-reward-amount {
    color: var(--tr-secondary);
}

.tr-reward-amount small {
    font-size: 12px;
    font-weight: 400;
    color: var(--tr-text-muted);
}

/* 任务区块 */
.tr-task-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--tr-border-light);
}

.tr-task-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tr-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tr-text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tr-section-title i {
    color: var(--tr-primary);
    font-size: 18px;
}

.tr-section-content {
    color: var(--tr-text-secondary);
    line-height: 1.8;
}

/* 技能标签 */
.tr-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tr-skill-tag {
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.05) 100%);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--tr-primary);
    transition: var(--tr-transition);
}

.tr-skill-tag:hover {
    background: var(--tr-primary);
    color: #fff;
}

/* 分类标签 */
.tr-category-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--tr-bg-secondary);
    border-radius: var(--tr-radius-sm);
    font-size: 14px;
    color: var(--tr-text-secondary);
}

/* 指定用户 */
.tr-assign-users {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tr-assign-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--tr-bg-secondary);
    border-radius: var(--tr-radius-sm);
}

.tr-assign-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* 奖金区块 */
.tr-section-bonus {
    background: linear-gradient(135deg, #FFF9F5 0%, #FFFFFF 100%);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: var(--tr-radius);
    padding: 20px;
}

.tr-bonus-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--tr-secondary);
}

/* 任务操作按钮 */
.tr-task-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--tr-border-light);
}

/* 投稿列表 */
.tr-submissions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tr-submission-item {
    background: var(--tr-bg-secondary);
    border-radius: var(--tr-radius);
    padding: 20px;
    transition: var(--tr-transition);
}

.tr-submission-item:hover {
    background: var(--tr-bg-tertiary);
}

.tr-submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tr-submission-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tr-submission-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.tr-submission-time {
    font-size: 12px;
    color: var(--tr-text-muted);
}

.tr-submission-content {
    color: var(--tr-text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.tr-submission-actions {
    display: flex;
    gap: 10px;
}

/* 中标者列表 */
.tr-section-winners {
    background: linear-gradient(135deg, #F0FFF4 0%, #FFFFFF 100%);
    border: 1px solid rgba(107, 203, 119, 0.2);
    border-radius: var(--tr-radius);
    padding: 20px;
}

.tr-winners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tr-winner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--tr-bg-primary);
    border-radius: var(--tr-radius-sm);
    box-shadow: var(--tr-shadow-sm);
}

.tr-winner-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--tr-success);
}

.tr-winner-name {
    font-weight: 600;
    color: var(--tr-text-primary);
}

.tr-winner-reward {
    font-size: 14px;
    color: var(--tr-secondary);
    font-weight: 600;
}

/* ========================================
   用户任务列表
   ======================================== */
.tr-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tr-task-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--tr-bg-secondary);
    border-radius: var(--tr-radius-sm);
    transition: var(--tr-transition);
}

.tr-task-list-item:hover {
    background: var(--tr-bg-tertiary);
    transform: translateX(4px);
}

.tr-task-list-info h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.tr-task-list-info h4 a {
    color: var(--tr-text-primary);
    text-decoration: none;
    transition: var(--tr-transition);
}

.tr-task-list-info h4 a:hover {
    color: var(--tr-primary);
}

.tr-task-list-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--tr-text-muted);
}

/* ========================================
   交易记录
   ======================================== */
.tr-transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tr-transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--tr-bg-secondary);
    border-radius: var(--tr-radius-sm);
}

.tr-transaction-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tr-transaction-type {
    font-weight: 500;
    color: var(--tr-text-primary);
}

.tr-transaction-time {
    font-size: 12px;
    color: var(--tr-text-muted);
}

.tr-transaction-amount {
    font-size: 18px;
    font-weight: 700;
}

.tr-amount-positive {
    color: var(--tr-success);
}

.tr-amount-negative {
    color: var(--tr-danger);
}

/* ========================================
   空状态
   ======================================== */
.tr-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--tr-text-muted);
}

.tr-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--tr-primary);
    opacity: 0.6;
}

.tr-empty-icon i {
    font-size: 64px;
}

.tr-empty-state h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--tr-text-secondary);
}

.tr-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* ========================================
   登录提示
   ======================================== */
.tr-login-prompt {
    text-align: center;
    padding: 60px 20px;
    background: var(--tr-bg-primary);
    border-radius: var(--tr-radius-lg);
    box-shadow: var(--tr-shadow);
}

.tr-login-prompt-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.tr-login-prompt h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--tr-text-primary);
}

.tr-login-prompt p {
    margin: 0 0 24px 0;
    color: var(--tr-text-secondary);
}

/* ========================================
   分页
   ======================================== */
.tr-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.tr-pagination a,
.tr-pagination span {
    padding: 8px 14px;
    border-radius: var(--tr-radius-sm);
    text-decoration: none;
    font-size: 14px;
    transition: var(--tr-transition);
}

.tr-pagination a {
    background: var(--tr-bg-secondary);
    color: var(--tr-text-secondary);
}

.tr-pagination a:hover {
    background: var(--tr-primary);
    color: #fff;
}

.tr-pagination .current {
    background: var(--tr-primary);
    color: #fff;
}

/* ========================================
   用户中心入口按钮
   ======================================== */
.tr-user-center-entry {
    display: inline-block;
}

.tr-entry-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--tr-primary) 0%, var(--tr-primary-dark) 100%);
    color: #fff;
    border-radius: var(--tr-radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--tr-transition);
    position: relative;
}

.tr-entry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.tr-entry-icon {
    font-size: 18px;
}

.tr-entry-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--tr-danger);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ========================================
   消息提示
   ======================================== */
.tr-messages {
    margin-top: 20px;
}

.tr-message {
    padding: 12px 16px;
    border-radius: var(--tr-radius-sm);
    font-size: 14px;
    margin-bottom: 10px;
}

.tr-message-success {
    background: rgba(107, 203, 119, 0.1);
    color: var(--tr-success);
    border: 1px solid rgba(107, 203, 119, 0.2);
}

.tr-message-error {
    background: rgba(255, 107, 107, 0.1);
    color: var(--tr-danger);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.tr-message-warning {
    background: rgba(255, 217, 61, 0.1);
    color: #B8860B;
    border: 1px solid rgba(255, 217, 61, 0.2);
}

/* ========================================
   加载动画
   ======================================== */
.tr-loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--tr-border);
    border-top-color: var(--tr-primary);
    border-radius: 50%;
    animation: tr-spin 0.8s linear infinite;
}

@keyframes tr-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .tr-unified-page {
        padding: 12px;
    }

    .tr-user-panel {
        padding: 16px;
    }

    .tr-user-panel-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .tr-user-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .tr-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tr-stat-box-row {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .tr-stat-box-value {
        font-size: 18px;
    }

    .tr-stats-info-bar {
        flex-direction: column;
        gap: 12px;
    }

    .tr-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tr-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .tr-task-grid {
        grid-template-columns: 1fr;
    }

    .tr-search-form {
        flex-direction: column;
    }

    .tr-search-form input[type="text"],
    .tr-search-form select {
        width: 100%;
    }

    .tr-task-header {
        flex-direction: column;
        gap: 12px;
    }

    .tr-task-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tr-task-actions {
        flex-direction: column;
    }

    .tr-task-actions .tr-btn {
        width: 100%;
    }

    .tr-task-list-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .tr-transaction-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .tr-user-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tr-stats-grid {
        grid-template-columns: 1fr;
    }

    .tr-task-stats {
        grid-template-columns: 1fr;
    }

    .tr-task-display {
        padding: 20px;
    }

    .tr-page-content {
        padding: 16px;
    }
}

/* ========================================
   接单记录页面样式
   ======================================== */
.tr-orders {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tr-order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tr-order-card {
    background: var(--tr-bg-primary);
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius);
    padding: 20px;
    transition: var(--tr-transition);
    position: relative;
    overflow: hidden;
}

.tr-order-card:hover {
    border-color: var(--tr-primary-light);
    box-shadow: var(--tr-shadow-md);
    transform: translateY(-2px);
}

.tr-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tr-border-light);
}

.tr-order-title a {
    font-size: 16px;
    font-weight: 600;
    color: var(--tr-text-primary);
    text-decoration: none;
    transition: var(--tr-transition);
}

.tr-order-title a:hover {
    color: var(--tr-primary);
}

.tr-order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.tr-status-pending {
    background: rgba(255, 217, 61, 0.15);
    color: #B8860B;
}

.tr-status-won {
    background: rgba(107, 203, 119, 0.15);
    color: var(--tr-success);
}

.tr-status-completed {
    background: rgba(74, 144, 226, 0.15);
    color: var(--tr-primary);
}

.tr-status-cancelled {
    background: rgba(255, 107, 107, 0.15);
    color: var(--tr-danger);
}

.tr-order-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.tr-order-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tr-order-label {
    font-size: 12px;
    color: var(--tr-text-muted);
}

.tr-order-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--tr-text-primary);
}

.tr-order-reward {
    color: var(--tr-secondary);
    font-weight: 700;
    font-size: 16px;
}

.tr-order-submission {
    background: var(--tr-bg-secondary);
    border-radius: var(--tr-radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.tr-order-submission-label {
    font-size: 12px;
    color: var(--tr-text-muted);
    margin-bottom: 8px;
}

.tr-order-submission-content {
    font-size: 14px;
    color: var(--tr-text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.tr-order-submission-time {
    font-size: 12px;
    color: var(--tr-text-muted);
}

.tr-order-reward-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(107, 203, 119, 0.1) 0%, rgba(107, 203, 119, 0.05) 100%);
    border: 1px solid rgba(107, 203, 119, 0.2);
    border-radius: var(--tr-radius-sm);
    margin-bottom: 16px;
}

.tr-order-reward-label {
    font-size: 14px;
    color: var(--tr-text-secondary);
}

.tr-order-reward-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--tr-success);
}

.tr-order-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 推荐任务 */
.tr-recommended-tasks {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--tr-border-light);
}

.tr-recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tr-empty-small {
    padding: 30px 20px;
}

.tr-empty-small p {
    font-size: 13px;
}

/* 响应式 - 接单记录 */
@media (max-width: 768px) {
    .tr-order-info {
        grid-template-columns: 1fr;
    }

    .tr-recommended-grid {
        grid-template-columns: 1fr;
    }

    .tr-order-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .tr-order-actions {
        flex-direction: column;
    }

    .tr-order-actions .tr-btn {
        width: 100%;
    }
}

/* ========================================
   子比主题用户中心入口样式
   ======================================== */
.icon-but-task-reward {
    cursor: pointer;
    transition: var(--tr-transition);
    padding: 8px;
    border-radius: var(--tr-radius-sm);
    position: relative;
    text-align: center;
}

.icon-but-task-reward:hover {
    background: rgba(74, 144, 226, 0.08);
    transform: translateY(-2px);
}

.icon-but-task-reward .em16 {
    font-size: 22px;
    margin-bottom: 4px;
    color: var(--tr-primary);
}

.icon-but-task-reward .em16 i {
    color: var(--tr-primary);
}

.icon-but-task-reward .px12 {
    font-size: 12px;
    color: var(--tr-text-secondary);
}

.icon-but-task-reward:hover .px12 {
    color: var(--tr-primary);
}

.icon-but-task-reward .tr-entry-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--tr-danger);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1;
}

/* ========================================
   发帖页侧边栏悬赏设置样式（与投票模块完全一致）
   ======================================== */
.task-reward-sidebar-box {
    /* 使用zib-widget的默认样式，移除自定义边框 */
}

.task-reward-sidebar-box .task-reward-content {
    padding: 10px 0 0;
}

/* ========================================
   任务统计简码样式
   ======================================== */
.tr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tr-stat-box {
    background: var(--tr-bg-primary);
    border-radius: var(--tr-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--tr-shadow);
    transition: var(--tr-transition);
    border: 1px solid var(--tr-border-light);
}

.tr-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--tr-shadow-md);
}

.tr-stat-box-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.tr-stat-box-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--tr-primary);
    margin-bottom: 8px;
}

.tr-stat-box-label {
    font-size: 14px;
    color: var(--tr-text-secondary);
}

.tr-stat-box.tr-stat-total .tr-stat-box-icon {
    color: var(--tr-primary);
}

.tr-stat-box.tr-stat-open .tr-stat-box-icon {
    color: var(--tr-success);
}

.tr-stat-box.tr-stat-completed .tr-stat-box-icon {
    color: var(--tr-accent);
}

.tr-stat-box.tr-stat-reward .tr-stat-box-icon {
    color: var(--tr-secondary);
}

/* ========================================
   任务模式按钮样式
   ======================================== */
.tr-mode-btn {
    background: var(--tr-bg-secondary);
    color: var(--tr-text-secondary);
    border: 1px solid var(--tr-border);
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.tr-mode-btn:hover {
    color: var(--tr-primary);
    border-color: var(--tr-primary-light);
}

.tr-mode-btn.active {
    background: var(--tr-primary);
    color: #fff;
    border-color: var(--tr-primary);
    font-weight: 600;
}

/* ========================================
   支付方式按钮样式
   ======================================== */
.tr-payment-btn {
    background: var(--tr-bg-secondary);
    color: var(--tr-text-secondary);
    border: 1px solid var(--tr-border);
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.tr-payment-btn:hover {
    color: var(--tr-primary);
    border-color: var(--tr-primary-light);
}

.tr-payment-btn.active {
    background: var(--tr-primary);
    color: #fff;
    border-color: var(--tr-primary);
    font-weight: 600;
}

/* ========================================
   支付信息框样式 - 美化
   ======================================== */
.tr-payment-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border: 1px solid #C8E6C9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tr-payment-info-box:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
    transform: translateY(-1px);
}

.tr-payment-info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.tr-payment-info-text {
    flex: 1;
}

.tr-payment-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 2px;
}

.tr-payment-info-desc {
    font-size: 12px;
    color: #689F38;
    line-height: 1.4;
}

/* ========================================
   任务模式按钮美化
   ======================================== */
.tr-mode-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tr-mode-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.tr-mode-btn:active::before {
    width: 100px;
    height: 100px;
}

.tr-mode-btn.active {
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
    transform: translateY(-1px);
}

/* ========================================
   任务模式按钮美化
   ======================================== */
.tr-mode-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tr-mode-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.tr-mode-btn:active::before {
    width: 100px;
    height: 100px;
}

.tr-mode-btn.active {
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
    transform: translateY(-1px);
}

/* ========================================
   费用明细框样式
   ======================================== */
.tr-total-fee-box {
    background: #FFF3E0;
    border-radius: 8px;
    border: 1px solid #FFE0B2;
    padding: 10px;
    margin-top: 10px;
}

/* ========================================
   发帖页侧边栏 - 高级简约样式优化
   ======================================== */

/* 服务费说明区域 */
.task-reward-sidebar-box .tr-fee-info-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.task-reward-sidebar-box .tr-fee-info-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.task-reward-sidebar-box .tr-fee-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E2E8F0;
}

.task-reward-sidebar-box .tr-fee-info-header i {
    color: #4A90E2;
    font-size: 16px;
}

.task-reward-sidebar-box .tr-fee-info-header span {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
}

.task-reward-sidebar-box .tr-fee-info-desc {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* 服务费承担方选项卡 */
.task-reward-sidebar-box .tr-fee-bearer-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 10px;
    position: relative;
}

.task-reward-sidebar-box .tr-fee-bearer-option:last-child {
    margin-bottom: 0;
}

.task-reward-sidebar-box .tr-fee-bearer-option:hover {
    border-color: #4A90E2;
    background: #F8FAFC;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.task-reward-sidebar-box .tr-fee-bearer-option input[type="radio"] {
    margin-top: 2px;
    accent-color: #4A90E2;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.task-reward-sidebar-box .tr-fee-bearer-option input[type="radio"]:checked + div {
    color: #1E293B;
}

.task-reward-sidebar-box .tr-fee-bearer-option:has(input[type="radio"]:checked) {
    border-color: #4A90E2;
    background: linear-gradient(135deg, #EFF6FF 0%, #F0F7FF 100%);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}

.task-reward-sidebar-box .tr-fee-bearer-option .bearer-title {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.task-reward-sidebar-box .tr-fee-bearer-option .bearer-desc {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.task-reward-sidebar-box .tr-fee-bearer-option:has(input[type="radio"]:checked) .bearer-desc {
    color: #64748B;
}

/* 底部复选框组美化 */
.task-reward-sidebar-box .tr-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
}

.task-reward-sidebar-box .tr-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.task-reward-sidebar-box .tr-checkbox-item:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.task-reward-sidebar-box .tr-checkbox-item input[type="checkbox"] {
    accent-color: #4A90E2;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.task-reward-sidebar-box .tr-checkbox-item span {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
}

.task-reward-sidebar-box .tr-checkbox-item input[type="checkbox"]:checked + span {
    color: #4A90E2;
    font-weight: 600;
}

.task-reward-sidebar-box .tr-checkbox-item:has(input[type="checkbox"]:checked) {
    background: #EFF6FF;
    border-color: #4A90E2;
}

/* 复选框图标样式 */
.task-reward-sidebar-box .tr-checkbox-item i {
    font-size: 14px;
    flex-shrink: 0;
}

.task-reward-sidebar-box .tr-checkbox-item .fa-fire {
    color: #EF4444;
}

.task-reward-sidebar-box .tr-checkbox-item .fa-star {
    color: #F59E0B;
}

.task-reward-sidebar-box .tr-checkbox-item .fa-gift {
    color: #10B981;
}

/* 悬赏有效期下拉框美化 */
.task-reward-sidebar-box select[name="task_reward_duration"] {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .task-reward-sidebar-box .tr-fee-bearer-option {
        padding: 12px;
    }
    
    .task-reward-sidebar-box .tr-checkbox-item {
        min-width: 100%;
    }
}