/* 悬赏系统前端样式 */

.bounty-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 通用按钮 */
.bounty-btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.5;
}

.bounty-btn:hover {
    opacity: 0.9;
}

.bounty-btn-primary {
    background: #2271b1;
    color: #fff;
}

.bounty-btn-secondary {
    background: #f0f0f1;
    color: #1d2327;
}

.bounty-btn-success {
    background: #00a32a;
    color: #fff;
}

.bounty-btn-danger {
    background: #d63638;
    color: #fff;
}

.bounty-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.bounty-btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* 头部 */
.bounty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bounty-header h2 {
    margin: 0;
}

/* 筛选器 */
.bounty-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bounty-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bounty-filter-group label {
    font-weight: 500;
    color: #666;
}

.bounty-filter-group select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 任务卡片 */
.bounty-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.bounty-task-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.bounty-task-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bounty-task-card.highlighted {
    border-color: #f0c33c;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

.bounty-task-header {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.bounty-task-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.bounty-task-type.unique {
    background: #e8f4ff;
    color: #0066cc;
}

.bounty-task-type.shared {
    background: #e8fff0;
    color: #00994d;
}

.bounty-task-category {
    padding: 2px 8px;
    background: #f0f0f1;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.bounty-task-title {
    margin: 0 0 15px;
    font-size: 18px;
}

.bounty-task-title a {
    color: #1d2327;
    text-decoration: none;
}

.bounty-task-title a:hover {
    color: #2271b1;
}

.bounty-task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.bounty-task-publisher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bounty-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.bounty-task-points {
    font-weight: 600;
    color: #f59e0b;
}

.bounty-task-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* 徽章 */
.bounty-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.bounty-badge-pending { background: #f0c33c; color: #614600; }
.bounty-badge-active { background: #00a32a; color: #fff; }
.bounty-badge-completed { background: #2271b1; color: #fff; }
.bounty-badge-expired { background: #dcdcde; color: #50575e; }
.bounty-badge-cancelled { background: #dcdcde; color: #50575e; }
.bounty-badge-locked { background: #d63638; color: #fff; }
.bounty-badge-cooldown { background: #8c8f94; color: #fff; }

.bounty-badge-type-unique { background: #e8f4ff; color: #0066cc; }
.bounty-badge-type-shared { background: #e8fff0; color: #00994d; }
.bounty-badge-category { background: #f0f0f1; color: #666; }

.bounty-badge-success { background: #dcfce7; color: #166534; }
.bounty-badge-warning { background: #fef3c7; color: #92400e; }
.bounty-badge-danger { background: #fee2e2; color: #991b1b; }
.bounty-badge-default { background: #f3f4f6; color: #374151; }

/* 任务详情 */
.bounty-task-detail {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bounty-task-detail-header {
    margin-bottom: 30px;
}

.bounty-task-detail .bounty-task-title {
    font-size: 24px;
    margin: 15px 0;
}

.bounty-task-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bounty-task-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bounty-task-publisher-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bounty-task-publisher-info img {
    border-radius: 50%;
}

.bounty-task-date {
    display: block;
    font-size: 13px;
    color: #666;
}

.bounty-task-stats {
    display: flex;
    gap: 30px;
}

.bounty-stat {
    text-align: center;
}

.bounty-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

.bounty-stat-label {
    font-size: 12px;
    color: #666;
}

.bounty-task-content h3 {
    margin: 20px 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.bounty-task-description {
    line-height: 1.8;
    color: #333;
}

.bounty-extra-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bounty-extra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.bounty-extra-points {
    color: #f59e0b;
    font-weight: 600;
}

/* 操作区域 */
.bounty-task-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.bounty-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* 提交表单 */
.bounty-submit-form {
    margin-top: 20px;
}

.bounty-submit-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 15px;
}

/* 提交列表 */
.bounty-submissions {
    margin-top: 30px;
}

.bounty-submission-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.bounty-submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bounty-submission-content {
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 15px;
}

.bounty-submission-actions {
    display: flex;
    gap: 10px;
}

/* 用户信息 */
.bounty-user-info {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bounty-info-item {
    display: flex;
    flex-direction: column;
}

.bounty-info-label {
    font-size: 12px;
    color: #666;
}

.bounty-info-value {
    font-size: 18px;
    font-weight: 600;
}

/* 表单 */
.bounty-form-group {
    margin-bottom: 20px;
}

.bounty-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.bounty-form-group input[type="text"],
.bounty-form-group input[type="number"],
.bounty-form-group select,
.bounty-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.bounty-form-group .required {
    color: #d63638;
}

.bounty-form-row {
    display: flex;
    gap: 20px;
}

.bounty-form-half {
    flex: 1;
}

/* 费用预览 */
.bounty-form-summary {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.bounty-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.bounty-summary-total {
    border-top: 2px solid #ddd;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 600;
    font-size: 16px;
}

.bounty-form-actions {
    margin-top: 30px;
    text-align: center;
}

/* 统计卡片 */
.bounty-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bounty-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.bounty-stat-icon {
    font-size: 32px;
}

.bounty-stat-content {
    display: flex;
    flex-direction: column;
}

.bounty-stat-card .bounty-stat-value {
    font-size: 28px;
    font-weight: 600;
}

.bounty-stat-card .bounty-stat-value.warning {
    color: #f59e0b;
}

.bounty-stat-card .bounty-stat-value.danger {
    color: #d63638;
}

.bounty-stat-card .bounty-stat-label {
    font-size: 14px;
    color: #666;
}

/* 商店 */
.bounty-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.bounty-shop-balance {
    font-size: 18px;
}

.bounty-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.bounty-shop-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.bounty-shop-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.bounty-item-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bounty-item-icon svg {
    width: 36px;
    height: 36px;
}

.bounty-item-name {
    margin: 0 0 10px;
    font-size: 18px;
}

.bounty-item-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    min-height: 40px;
}

.bounty-item-effect {
    font-size: 12px;
    color: #2271b1;
    margin-bottom: 10px;
}

.bounty-item-price {
    font-size: 20px;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 15px;
}

.bounty-item-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.bounty-item-quantity {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* 通知 */
.bounty-notice {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.bounty-notice-info {
    background: #e8f4ff;
    color: #0066cc;
}

.bounty-notice-success {
    background: #dcfce7;
    color: #166534;
}

.bounty-notice-warning {
    background: #fef3c7;
    color: #92400e;
}

.bounty-notice-error {
    background: #fee2e2;
    color: #991b1b;
}

.bounty-alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.bounty-alert-warning {
    background: #fef3c7;
    color: #92400e;
}

/* 空状态 */
.bounty-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.bounty-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* 模态框 */
.bounty-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bounty-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
}

.bounty-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.bounty-modal-header h3 {
    margin: 0;
}

.bounty-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.bounty-modal-body {
    padding: 20px;
}

.bounty-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* 任务列表项 */
.bounty-task-item,
.bounty-acceptance-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.bounty-task-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.bounty-task-info h3 {
    margin: 10px 0 0;
}

.bounty-task-meta span {
    display: inline-block;
    margin-right: 15px;
    font-size: 13px;
    color: #666;
}

.bounty-task-acceptances {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.bounty-task-acceptances h4 {
    margin: 0 0 10px;
    font-size: 14px;
}

.bounty-task-acceptances ul {
    margin: 0;
    padding-left: 20px;
}

.bounty-task-acceptances li {
    margin-bottom: 5px;
}

.status-approved { color: #00a32a; }
.status-submitted { color: #f59e0b; }
.status-rejected { color: #d63638; }

/* 答案区域 */
.bounty-answer-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.bounty-answer-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bounty-rating {
    color: #f59e0b;
}

/* 信息卡片 */
.bounty-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.bounty-info-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bounty-info-card h4 {
    margin: 0 0 15px;
}

.bounty-info-card ul {
    margin: 0;
    padding-left: 20px;
}

.bounty-info-card li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* 库存 */
.bounty-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.bounty-inventory-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.bounty-inventory-item .bounty-item-quantity {
    margin: 15px 0;
    font-size: 16px;
}

/* 兑换 */
.bounty-exchange-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 30px 0;
}

.bounty-exchange-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.bounty-exchange-form input {
    flex: 1;
    max-width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 额外奖励编辑 */
.bounty-extra-rewards-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

#bounty-extra-rewards-list .bounty-extra-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#bounty-extra-rewards-list .bounty-extra-name {
    flex: 1;
}

#bounty-extra-rewards-list .bounty-extra-points {
    width: 100px;
}

/* 响应式 */
@media (max-width: 768px) {
    .bounty-filters {
        flex-direction: column;
    }
    
    .bounty-form-row {
        flex-direction: column;
    }
    
    .bounty-task-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bounty-task-stats {
        flex-wrap: wrap;
    }
    
    .bounty-user-info {
        flex-wrap: wrap;
    }
}

/* 文字颜色 */
.text-success { color: #00a32a; }
.text-danger { color: #d63638; }

/* ========================================
   小工具样式
   ======================================== */

/* 导航小工具 */
.bounty-nav-widget {
    padding: 0;
}

/* 用户统计区域（导航小工具内） */
.bounty-widget-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 15px;
}

.bounty-widget-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bounty-widget-stat-icon {
    font-size: 18px;
}

.bounty-widget-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.bounty-widget-stat-value.danger {
    color: #d63638;
}

.bounty-widget-stat-label {
    font-size: 11px;
    color: #666;
    margin-left: auto;
}

/* 导航按钮 - 列表样式 */
.bounty-widget-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bounty-widget-nav-list .bounty-widget-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #1d2327;
    transition: all 0.2s;
}

.bounty-widget-nav-list .bounty-widget-nav-item:hover {
    background: #2271b1;
    color: #fff;
}

.bounty-widget-nav-icon {
    font-size: 18px;
}

.bounty-widget-nav-label {
    font-size: 14px;
    font-weight: 500;
}

/* 导航按钮 - 网格样式 */
.bounty-widget-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bounty-widget-nav-grid .bounty-widget-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #1d2327;
    transition: all 0.2s;
    text-align: center;
}

.bounty-widget-nav-grid .bounty-widget-nav-item:hover {
    background: #2271b1;
    color: #fff;
    transform: translateY(-2px);
}

.bounty-widget-nav-grid .bounty-widget-nav-icon {
    font-size: 24px;
}

.bounty-widget-nav-grid .bounty-widget-nav-label {
    font-size: 12px;
}

/* 导航按钮 - 按钮组样式 */
.bounty-widget-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bounty-widget-nav-buttons .bounty-widget-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #2271b1;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.bounty-widget-nav-buttons .bounty-widget-nav-item:hover {
    background: #135e96;
    transform: scale(1.05);
}

.bounty-widget-nav-buttons .bounty-widget-nav-icon {
    font-size: 14px;
}

/* 登录提示 */
.bounty-widget-login-hint {
    margin-top: 12px;
    padding: 10px;
    background: #fff8e6;
    border-radius: 6px;
    font-size: 13px;
    color: #996800;
    text-align: center;
}

.bounty-widget-login-hint a {
    color: #2271b1;
    font-weight: 500;
}

/* 导航分组样式 v1.6.0 */
.bounty-widget-nav-group {
    margin-bottom: 15px;
}

.bounty-widget-nav-group:last-child {
    margin-bottom: 0;
}

.bounty-widget-nav-group-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* 导航徽章（未读数量等） */
.bounty-widget-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    margin-left: auto;
}

/* 紧凑模式 */
.bounty-widget-nav-compact .bounty-widget-nav-item {
    padding: 6px 10px !important;
}

.bounty-widget-nav-compact .bounty-widget-nav-icon {
    font-size: 14px !important;
}

.bounty-widget-nav-compact .bounty-widget-nav-label {
    font-size: 12px !important;
}

.bounty-widget-nav-compact.bounty-widget-nav-grid {
    gap: 6px;
}

.bounty-widget-nav-compact.bounty-widget-nav-grid .bounty-widget-nav-item {
    padding: 10px 5px !important;
}

/* 网格布局下的分组 */
.bounty-widget-nav-grid .bounty-widget-nav-group {
    grid-column: 1 / -1;
}

.bounty-widget-nav-grid .bounty-widget-nav-group > .bounty-widget-nav-item {
    display: inline-flex;
}

/* 按钮样式下的徽章 */
.bounty-widget-nav-buttons .bounty-widget-nav-badge {
    background: #fff;
    color: #d63638;
}

/* 用户数据小工具 */
.bounty-user-stats-widget {
    padding: 0;
}

/* 垂直布局 */
.bounty-stats-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bounty-stats-vertical .bounty-stats-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 水平布局 */
.bounty-stats-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.bounty-stats-horizontal .bounty-stats-widget-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 网格布局 */
.bounty-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bounty-stats-grid .bounty-stats-widget-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.bounty-stats-grid .bounty-stats-widget-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.bounty-stats-widget-icon {
    font-size: 20px;
}

.bounty-stats-widget-content {
    display: flex;
    flex-direction: column;
}

.bounty-stats-widget-value {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.bounty-stats-widget-value.warning {
    color: #f59e0b;
}

.bounty-stats-widget-value.danger {
    color: #d63638;
}

.bounty-stats-widget-label {
    font-size: 12px;
    color: #666;
}

/* 状态警告 */
.bounty-stats-widget-warnings {
    margin-top: 12px;
}

.bounty-stats-widget-warning {
    padding: 8px 12px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 8px;
}

.bounty-stats-widget-warning:last-child {
    margin-bottom: 0;
}

/* ========================================
   用户链接样式
   ======================================== */
   
.bounty-user-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.bounty-user-link:hover {
    color: #2271b1;
}

.bounty-user-link img {
    transition: transform 0.2s, box-shadow 0.2s;
}

.bounty-user-link:hover img {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bounty-task-publisher.bounty-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bounty-task-publisher.bounty-user-link:hover {
    color: #2271b1;
}

/* ========================================
   用户卡片小工具样式
   ======================================== */

.bounty-user-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 未登录提示样式 */
.bounty-user-card-guest {
    text-align: center;
    padding: 25px 15px;
}

.bounty-user-card-guest-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bounty-user-card-guest-icon {
    font-size: 48px;
    opacity: 0.5;
}

.bounty-user-card-guest p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.bounty-user-card-guest .bounty-btn {
    margin-top: 5px;
}

.bounty-user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.bounty-user-card-avatar img {
    border-radius: 50%;
    transition: transform 0.2s;
}

.bounty-user-card-avatar:hover img {
    transform: scale(1.05);
}

.bounty-user-card-info {
    flex: 1;
}

.bounty-user-card-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    text-decoration: none;
    margin-bottom: 4px;
}

.bounty-user-card-name:hover {
    color: #2271b1;
}

.bounty-user-card-self-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    background: #2271b1;
    color: #fff;
    border-radius: 8px;
    margin-left: 5px;
    vertical-align: middle;
}

/* 积分显示 */
.bounty-user-card-points {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff8e6 0%, #fef3c7 100%);
    border-radius: 8px;
}

.bounty-user-card-point-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bounty-user-card-point-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.bounty-user-card-point-value {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
}

.bounty-user-card-point-label {
    font-size: 11px;
    color: #92400e;
}

.bounty-user-card-reputation {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.bounty-user-card-reputation.bounty-reputation-excellent {
    background: #fef3c7;
    color: #92400e;
}

.bounty-user-card-reputation.bounty-reputation-good {
    background: #d1fae5;
    color: #065f46;
}

.bounty-user-card-reputation.bounty-reputation-normal {
    background: #f3f4f6;
    color: #4b5563;
}

.bounty-user-card-reputation.bounty-reputation-poor {
    background: #fee2e2;
    color: #991b1b;
}

.bounty-user-card-values {
    margin-bottom: 15px;
}

.bounty-user-card-value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bounty-user-card-value-label {
    font-size: 12px;
    color: #666;
    width: 70px;
}

.bounty-user-card-value-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.bounty-user-card-value-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.bounty-user-card-value-fill.good { background: #10b981; }
.bounty-user-card-value-fill.warning { background: #f59e0b; }
.bounty-user-card-value-fill.danger { background: #ef4444; }

.bounty-user-card-value-num {
    font-size: 13px;
    font-weight: 600;
    width: 30px;
    text-align: right;
}

.bounty-user-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

.bounty-user-card-stat {
    text-align: center;
}

.bounty-user-card-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
}

.bounty-user-card-stat-label {
    font-size: 11px;
    color: #666;
}

.bounty-user-card-link {
    display: block;
    text-align: center;
    color: #2271b1;
    text-decoration: none;
    font-size: 13px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s;
}

.bounty-user-card-link:hover {
    background: #e9ecef;
}

/* 用户卡片警告 */
.bounty-user-card-warnings {
    margin: 12px 0;
}

.bounty-user-card-warning {
    padding: 8px 10px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 6px;
}

.bounty-user-card-warning:last-child {
    margin-bottom: 0;
}

/* 紧凑样式 */
.bounty-user-card-compact {
    padding: 12px;
}

.bounty-user-card-compact .bounty-user-card-header {
    margin-bottom: 10px;
}

.bounty-user-card-compact .bounty-user-card-stats {
    padding: 8px 0;
}

/* 渐变样式 */
.bounty-user-card-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.bounty-user-card-gradient .bounty-user-card-name {
    color: #fff;
}

.bounty-user-card-gradient .bounty-user-card-name:hover {
    color: #e0e0e0;
}

.bounty-user-card-gradient .bounty-user-card-value-label,
.bounty-user-card-gradient .bounty-user-card-stat-label {
    color: rgba(255,255,255,0.8);
}

.bounty-user-card-gradient .bounty-user-card-stat-value,
.bounty-user-card-gradient .bounty-user-card-value-num {
    color: #fff;
}

.bounty-user-card-gradient .bounty-user-card-stats {
    border-color: rgba(255,255,255,0.2);
}

.bounty-user-card-gradient .bounty-user-card-link {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.bounty-user-card-gradient .bounty-user-card-link:hover {
    background: rgba(255,255,255,0.3);
}

.bounty-user-card-gradient .bounty-user-card-value-bar {
    background: rgba(255,255,255,0.3);
}

/* ========================================
   排行榜小工具样式
   ======================================== */

.bounty-leaderboard {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bounty-leaderboard-list {
    padding: 10px 0;
}

.bounty-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.bounty-leaderboard-item:hover {
    background: #f8f9fa;
}

.bounty-leaderboard-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: #e5e7eb;
    border-radius: 50%;
    color: #666;
}

.bounty-leaderboard-rank.top-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #7c4a00;
}

.bounty-leaderboard-rank.top-2 {
    background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 100%);
    color: #555;
}

.bounty-leaderboard-rank.top-3 {
    background: linear-gradient(135deg, #e6a87c 0%, #cd7f32 100%);
    color: #5c3a1e;
}

.bounty-leaderboard-avatar img {
    border-radius: 50%;
    vertical-align: middle;
}

.bounty-leaderboard-name {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bounty-leaderboard-score {
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
    min-width: 45px;
    text-align: right;
}

.bounty-leaderboard-count {
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
}

.bounty-leaderboard-detail {
    display: flex;
    justify-content: space-around;
    padding: 6px 15px 10px;
    font-size: 11px;
    color: #888;
    border-bottom: 1px solid #f0f0f0;
}

.bounty-leaderboard-detail span {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bounty-leaderboard-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: right;
}

.bounty-leaderboard-label {
    font-size: 12px;
    color: #666;
}

/* 发布/接取限制提示 */
.bounty-publish-restrictions,
.bounty-accept-restrictions {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.bounty-publish-restrictions h4,
.bounty-accept-restrictions h4 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 16px;
}

.bounty-error-list {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.bounty-error-list li {
    margin: 8px 0;
    line-height: 1.5;
}

.bounty-notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.bounty-notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.bounty-notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.bounty-notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 发布信息提示 */
.bounty-publish-info {
    background: #e7f3ff;
    border: 1px solid #2271b1;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.bounty-publish-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.bounty-publish-info-item {
    display: flex;
    flex-direction: column;
}

.bounty-publish-info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.bounty-publish-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

/* ==========================================================================
   v1.4.8: 新增功能样式
   ========================================================================== */

/* 套餐价值统计 */
.bounty-bundle-value-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.bounty-bundle-value-info .value-stat {
    display: block;
    color: #0369a1;
    margin-bottom: 4px;
}

.bounty-bundle-value-info .value-save {
    display: block;
    color: #059669;
}

.bounty-bundle-item-subtotal {
    margin-left: auto;
    padding-left: 8px;
}

/* 任务进度条 */
.bounty-task-progress-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bounty-task-progress-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1d2327;
}

.bounty-progress-container {
    position: relative;
}

.bounty-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.bounty-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bounty-progress-stages {
    display: flex;
    justify-content: space-between;
}

.bounty-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.bounty-stage.active {
    opacity: 1;
}

.bounty-stage.current .stage-icon {
    transform: scale(1.2);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    padding: 8px;
}

.bounty-stage .stage-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.bounty-stage .stage-label {
    font-size: 12px;
    color: #666;
}

/* 道具快捷使用 */
.bounty-quick-items-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.bounty-quick-items-section h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #92400e;
}

.bounty-quick-items-tip {
    font-size: 13px;
    color: #a16207;
    margin: 0 0 15px 0;
}

.bounty-quick-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.bounty-quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-item-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.quick-item-info {
    flex: 1;
    min-width: 0;
}

.quick-item-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

.quick-item-desc {
    display: block;
    font-size: 11px;
    color: #666;
    margin: 2px 0;
}

.quick-item-qty {
    display: block;
    font-size: 11px;
    color: #999;
}

.bounty-quick-use-btn {
    flex-shrink: 0;
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* 费用透明度 */
.bounty-summary-row {
    position: relative;
}

.bounty-info-icon {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.bounty-info-icon:hover {
    opacity: 1;
}

.bounty-fee-breakdown {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 8px 0;
    font-size: 12px;
}

.bounty-fee-breakdown .fee-item {
    padding: 4px 0;
    color: #666;
}

.bounty-fee-penalty {
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

.bounty-tip-highlight {
    color: #059669 !important;
    font-weight: 500;
}

.bounty-insufficient-notice {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.bounty-insufficient-notice .notice-content {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bounty-insufficient-notice .notice-icon {
    font-size: 20px;
}

.bounty-insufficient-notice .notice-text {
    color: #991b1b;
    font-size: 14px;
}

.bounty-insufficient-notice .notice-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 评价标签 */
.bounty-review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.bounty-review-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #666;
}

.bounty-review-tag:hover {
    border-color: #667eea;
    color: #667eea;
}

.bounty-review-tag.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.bounty-review-tag.positive {
    border-color: #86efac;
    color: #059669;
}

.bounty-review-tag.positive.selected {
    background: #059669;
    color: #fff;
}

.bounty-review-tag.negative {
    border-color: #fca5a5;
    color: #dc2626;
}

.bounty-review-tag.negative.selected {
    background: #dc2626;
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .bounty-quick-items-grid {
        grid-template-columns: 1fr;
    }
    
    .bounty-progress-stages {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .bounty-stage {
        flex: 0 0 auto;
    }
}
