/* 任务悬赏插件主样式 */

/* 任务大厅样式 */
.task-hall-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* 任务大厅头部 */
.task-hall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.task-hall-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

.task-hall-title h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.task-hall-title .c-gold {
    color: #ffd700 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.task-hall-title .text-white {
    color: #ffffff !important;
    opacity: 0.95;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.task-hall-actions {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.task-hall-actions .but {
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 15px;
}

.task-hall-actions .but:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.task-recent-completed {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.marquee-box {
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    white-space: nowrap;
    margin-right: 30px;
    font-size: 14px;
    color: #6c757d;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.task-filter-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.task-filter-header h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.task-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tab {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-tab:hover {
    background: #e9ecef;
}

.filter-tab.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.task-list-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.task-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.task-empty i {
    font-size: 48px;
    margin-bottom: 15px;
}

.task-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.task-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.task-card-header {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-official-badge {
    background: #28a745;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.task-type-badge {
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.task-card-body {
    padding: 15px;
}

.task-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.task-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.task-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reward-item {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.task-card-footer {
    padding: 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #6c757d;
}

.task-publisher {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 我的任务页面样式 */
.my-tasks-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* 顶部统计信息行样式 */
.my-tasks-header {
    margin-bottom: 40px;
}

.my-tasks-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px 30px;
    color: white;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.my-tasks-stats-row::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

.stat-item-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.stat-item-inline:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.stat-icon {
    font-size: 32px;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.user-earnings-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 40px;
    color: white;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.user-earnings-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 35px 25px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-item:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.my-tasks-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.my-tasks-tab {
    padding: 18px 35px;
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    color: #6c757d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.my-tasks-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: left 0.6s;
}

.my-tasks-tab:hover::before {
    left: 100%;
}

.my-tasks-tab.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0,123,255,0.4);
    transform: translateY(-2px);
}

.my-tasks-tab:hover:not(.active) {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.my-tasks-content {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.05);
}

.accepted-tasks-list,
.published-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.accepted-task-item,
.published-task-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 6px solid #007bff;
    position: relative;
    overflow: hidden;
}

.accepted-task-item::before,
.published-task-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.05), transparent);
    transition: left 0.5s;
}

.accepted-task-item:hover::before,
.published-task-item:hover::before {
    left: 100%;
}

.accepted-task-item:hover,
.published-task-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.task-info h4 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.task-meta {
    display: flex;
    gap: 25px;
    font-size: 15px;
    color: #7f8c8d;
}

.task-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.task-status {
    margin-top: 15px;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 2px solid #ffeaa7;
}

.status-submitted {
    background: linear-gradient(135deg, #d1ecf1 0%, #a8e6cf 100%);
    color: #0c5460;
    border: 2px solid #a8e6cf;
}

.status-completed {
    background: linear-gradient(135deg, #d4edda 0%, #a3e4d7 100%);
    color: #155724;
    border: 2px solid #a3e4d7;
}

.status-rejected {
    background: linear-gradient(135deg, #f8d7da 0%, #f5b7b1 100%);
    color: #721c24;
    border: 2px solid #f5b7b1;
}

.task-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.task-empty {
    text-align: center;
    padding: 80px 20px;
    color: #7f8c8d;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.task-empty i {
    font-size: 64px;
    margin-bottom: 25px;
    opacity: 0.7;
}

.task-empty p {
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 500;
}

.task-empty .but {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .accepted-task-item,
    .published-task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .task-actions {
        align-self: stretch;
        justify-content: flex-end;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}

/* 任务发布页面样式 */
.task-publish-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.task-publish-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 40px;
    color: white;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.task-publish-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

.header-content h1 {
    margin: 0 0 15px 0;
    font-size: 42px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.header-content p {
    font-size: 18px;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 2;
}

.task-publish-form {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.task-publish-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.task-publish-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 30px;
}

.publish-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.publish-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.form-tip {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.task-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.task-type-option {
    cursor: pointer;
}

.task-type-option input {
    display: none;
}

.task-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.task-type-card i {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

.task-type-card span {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.task-type-option input:checked + .task-type-card {
    border-color: #3498db;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.task-type-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.form-label-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-unit input {
    flex: 1;
}

.unit {
    font-weight: 600;
    color: #6c757d;
    min-width: 40px;
}

.balance-info {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

.reward-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #856404;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.publish-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.publish-tips {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: #0c5460;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-publish-button-container {
    text-align: center;
    margin: 20px 0;
}

.task-login-required,
.task-no-permission {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    margin: 20px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .task-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .task-filter-tabs {
        justify-content: center;
    }
    
    .accepted-task-item,
    .published-task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .task-actions {
        align-self: flex-end;
    }
    
    /* 我的任务页面移动端适配 */
    .my-tasks-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 25px 20px;
    }
    
    .stat-item-inline {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 10px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .stat-icon {
        font-size: 24px;
    }
    
    /* 发布任务页面移动端适配 */
    .task-publish-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .task-publish-header {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .header-content h1 {
        font-size: 28px;
    }
    
    .card-header {
        padding: 20px 25px;
    }
    
    .card-body {
        padding: 20px 25px;
    }
    
    .task-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .task-type-card {
        padding: 15px 10px;
    }
    
    .publish-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.task-card {
    animation: fadeIn 0.5s ease;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}