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

.task-notice-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.notice-scroll {
    display: flex;
    animation: scroll-notice 20s linear infinite;
}

.notice-item {
    white-space: nowrap;
    padding: 0 50px;
    color: #fff;
    font-size: 14px;
}

@keyframes scroll-notice {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.task-recommend-section {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    gap: 20px;
    margin-bottom: 30px;
}

.recommend-left,
.recommend-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.task-badge-area {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    z-index: 1;
}

.task-official-badge img {
    width: 28px;
    height: 28px;
}

.task-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-waiting {
    background: #e3f2fd;
    color: #1976d2;
}

.status-progress {
    background: #fff3e0;
    color: #f57c00;
}

.status-completed {
    background: #e8f5e9;
    color: #388e3c;
}

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

.task-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.task-author {
    flex: 1;
}

.author-name {
    display: block;
    font-weight: 500;
    font-size: 14px;
}

.task-category {
    font-size: 12px;
    color: #999;
}

.task-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}

.task-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-reward {
    color: #ff6b00;
    font-weight: 600;
    font-size: 16px;
}

.task-time {
    color: #999;
    font-size: 13px;
}

.recommend-center {
    display: flex;
    align-items: stretch;
}

.task-ad-banner {
    width: 100%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    text-align: center;
    color: #fff;
}

.ad-text {
    font-size: 24px;
    font-weight: 600;
}

.task-main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.task-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
}

.filter-tabs {
    display: flex;
    gap: 20px;
}

.filter-tab {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    color: #666;
}

.filter-tab.active {
    background: #667eea;
    color: #fff;
}

.filter-search input {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 240px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card.list-card {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.task-card-content {
    flex: 1;
}

.task-meta-row {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.task-card-action {
    display: flex;
    align-items: center;
}

.btn-accept-task,
.btn-accept-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-accept-task:hover,
.btn-accept-large:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.task-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-page {
    padding: 8px 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-page:hover {
    border-color: #667eea;
    color: #667eea;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-num.active {
    background: #667eea;
    color: #fff;
}

.task-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-publish-task,
.btn-my-tasks {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-publish-task {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-my-tasks {
    background: #f5f5f5;
    color: #333;
}

.widget-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
}

.stat-label {
    color: #999;
    font-size: 14px;
}

.hot-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-task-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.hot-task-item:nth-child(2) .hot-rank {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.hot-task-item:nth-child(3) .hot-rank {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

.hot-title {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.hot-reward {
    color: #ff6b00;
    font-weight: 500;
    font-size: 13px;
}

.my-tasks-header {
    margin-bottom: 30px;
}

.my-tasks-header h1 {
    margin: 0 0 20px 0;
    font-size: 28px;
}

.my-tasks-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    display: block;
    margin-bottom: 8px;
}

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

.my-tasks-tabs {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}

.tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-item {
    padding: 15px 0;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-item.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-item {
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 20px;
    color: #666;
    transition: all 0.3s;
}

.filter-item.active {
    background: #667eea;
    color: #fff;
}

.my-task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.my-task-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.my-task-main {
    flex: 1;
}

.my-task-title {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.my-task-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
}

.my-task-actions {
    display: flex;
    gap: 10px;
}

.btn-view,
.btn-cancel,
.btn-submit {
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

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

.publish-task-header h1 {
    margin: 0 0 10px 0;
}

.header-desc {
    color: #999;
}

.publish-task-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 18px;
    margin: 0 0 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.reward-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reward-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.reward-input {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-cancel {
    padding: 12px 30px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.btn-submit {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.task-detail-header {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.task-detail-main {
    flex: 1;
}

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

.task-detail-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.task-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-author-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.task-detail-reward {
    text-align: center;
    padding: 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.reward-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.task-detail-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.task-info-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.task-description ul {
    padding-left: 20px;
}

.task-requirements {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.requirement-item {
    display: flex;
    justify-content: space-between;
}

.req-label {
    color: #999;
}

.req-value {
    font-weight: 500;
}

.task-action-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.action-hint {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 15px;
}

.task-progress-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

.task-card-body {
    flex: 1;
}

.task-publish-time {
    color: #999;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.task-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-detail-main-left {
    flex: 1;
}

.progress-label {
    color: #666;
}

.progress-value {
    font-weight: 500;
}

.reward-label {
    font-size: 14px;
    opacity: 0.9;
}

.task-type {
    color: #666;
}

.task-accepts {
    color: #666;
    font-size: 14px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.my-task-status {
    display: flex;
    align-items: center;
}

.btn-cancel-form {
    padding: 12px 30px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.btn-submit-form {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .task-recommend-section,
    .task-main-content,
    .task-detail-content {
        grid-template-columns: 1fr;
    }
    
    .my-tasks-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   加载动画
   ======================================== */
.zibll-task-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    display: none;
}

.zibll-task-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.zibll-task-loading .loading-text {
    margin-top: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   按钮状态
   ======================================== */
.btn-success {
    background: #48bb78 !important;
    color: #fff !important;
}

.btn-success:hover {
    background: #38a169 !important;
}

.task-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.task-title {
    cursor: pointer;
}

.task-title:hover {
    color: #667eea;
}
