/* ============================================
   任务中心 - 专属样式
   设计理念：让用户立刻去做最快变快的任务
   ============================================ */

/* 推荐任务卡 - P0核心 */
.recommend-card {
    background: linear-gradient(135deg, #FFF8E6 0%, white 100%);
    border-radius: 12px;
    border: 1px solid #FFE4A0;
    padding: 20px;
    margin-bottom: 16px;
}

.recommend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.recommend-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommend-title .icon {
    font-size: 20px;
}

.recommend-hint {
    font-size: 12px;
    color: #92400E;
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 推荐任务条（紧凑版） */
.recommend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #E9EDF3;
    transition: all 0.2s;
}

.recommend-item:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.recommend-item-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-section);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

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

.recommend-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.recommend-item-desc {
    font-size: 12px;
    color: var(--text-gray);
}

.recommend-item-reward {
    font-family: "DIN Alternate", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--action-red);
    margin-right: 12px;
}

.btn-recommend {
    height: 30px;
    padding: 0 16px;
    background: var(--action-red);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-recommend:hover {
    background: var(--action-red-dark);
}

/* 任务分类 Tabs */
.task-tabs-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E9EDF3;
    overflow: hidden;
}

.task-tabs {
    display: flex;
    border-bottom: 1px solid #E9EDF3;
    padding: 0 20px;
}

.task-tab {
    position: relative;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-tab:hover {
    color: var(--text-dark);
}

.task-tab.active {
    color: var(--brand-blue);
    font-weight: 600;
}

.task-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 1px;
}

.task-tab-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--action-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-tab.active .task-tab-badge {
    background: var(--brand-blue);
}

/* 任务列表区 */
.task-list-wrap {
    padding: 16px 20px;
}

/* 标准任务行 */
.task-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #E9EDF3;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.task-item:last-child {
    margin-bottom: 0;
}

.task-item:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.task-item.completed {
    background: #FAFBFC;
    border-color: #F0F2F5;
}

.task-item.completed:hover {
    border-color: #E9EDF3;
    box-shadow: none;
}

.task-item-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-section);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.task-item.completed .task-item-icon {
    background: #E8F8EC;
}

.task-item-content {
    flex: 1;
    min-width: 0;
}

.task-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.task-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.task-item.completed .task-item-name {
    color: var(--text-gray);
}

.task-item-tag {
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
}

.task-item-tag.hot {
    background: var(--action-red-light);
    color: var(--action-red);
}

.task-item-tag.big {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.task-item-tag.new {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
}

.task-item-tag.done {
    background: #E8F8EC;
    color: var(--status-success);
}

.task-item-desc {
    font-size: 13px;
    color: var(--text-gray);
}

.task-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.task-item-reward {
    font-family: "DIN Alternate", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--action-red);
}

.task-item.completed .task-item-reward {
    color: var(--text-light);
}

.task-item-reward-desc {
    font-size: 11px;
    color: var(--text-light);
}

.task-item-actions {
    display: flex;
    gap: 8px;
}

.btn-task {
    height: 32px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border: none;
}

.btn-task.primary {
    background: var(--action-red);
    color: white;
}

.btn-task.primary:hover {
    background: var(--action-red-dark);
}

.btn-task.secondary {
    background: white;
    color: var(--text-body);
    border: 1px solid #E9EDF3;
}

.btn-task.secondary:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.btn-task.claim {
    background: var(--status-success);
    color: white;
}

.btn-task.claim:hover {
    background: #45B016;
}

.btn-task.done {
    background: #F5F7FA;
    color: var(--text-light);
    cursor: default;
}

.btn-task.disabled {
    background: #F5F7FA;
    color: var(--text-light);
    cursor: not-allowed;
}

/* 已完成折叠条 */
.completed-fold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #FAFBFC;
    border-radius: 8px;
    margin-top: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-gray);
    transition: all 0.2s;
}

.completed-fold:hover {
    background: #F0F2F5;
    color: var(--text-body);
}

.completed-fold .icon {
    font-size: 14px;
    transition: transform 0.3s;
}

.completed-fold.expanded .icon {
    transform: rotate(180deg);
}

.completed-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.completed-list.show {
    max-height: 500px;
    margin-top: 10px;
}

/* 限时任务卡（特殊样式） */
.limited-task-card {
    background: linear-gradient(135deg, #EBF5FF 0%, white 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 20px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.limited-task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.limited-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.limited-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.limited-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.limited-tag {
    padding: 3px 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.limited-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-body);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.limited-timer .icon {
    color: #3b82f6;
}

.limited-timer .time {
    font-family: "DIN Alternate", monospace;
    font-weight: 600;
    color: #3b82f6;
}

.limited-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.limited-info {
    flex: 1;
}

.limited-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.limited-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.limited-progress-bar {
    width: 200px;
    height: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.limited-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

.limited-progress-text {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 600;
}

.limited-right {
    text-align: center;
}

.limited-reward {
    font-family: "DIN Alternate", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 8px;
}

.limited-reward .prefix {
    font-size: 16px;
}

.btn-limited {
    height: 36px;
    padding: 0 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-limited:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ============================================
   右侧：加速钱包卡（核心）
   ============================================ */
.wallet-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E9EDF3;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.wallet-header {
    padding: 16px 20px;
    border-bottom: 1px solid #E9EDF3;
}

.wallet-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-main {
    padding: 24px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--action-red-light) 0%, white 100%);
}

.wallet-balance-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.wallet-balance {
    font-family: "DIN Alternate", sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--action-red);
    line-height: 1;
    margin-bottom: 4px;
}

.wallet-balance .currency {
    font-size: 24px;
}

.wallet-balance-unit {
    font-size: 13px;
    color: var(--text-gray);
}

.wallet-stats {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-section);
}

.wallet-stat {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    background: white;
    border-radius: 8px;
}

.wallet-stat-value {
    font-family: "DIN Alternate", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.wallet-stat-label {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 2px;
}

.wallet-action {
    padding: 16px 20px;
}

.btn-wallet {
    width: 100%;
    height: 44px;
    background: var(--action-red);
    color: white;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-wallet:hover {
    background: var(--action-red-dark);
}

.btn-wallet.disabled {
    background: #E8E8E8;
    color: var(--text-light);
    cursor: not-allowed;
}

.wallet-hint {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--bg-section);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-hint .icon {
    font-size: 14px;
}

.wallet-hint .highlight {
    color: var(--brand-blue);
    font-weight: 500;
}

.wallet-hint .amount {
    color: var(--action-red);
    font-weight: 600;
}

/* 当前可用对象卡 */
.target-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E9EDF3;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.target-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-gray);
}

.target-header .icon {
    font-size: 14px;
}

.target-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-section);
    border-radius: 8px;
    margin-bottom: 12px;
}

.target-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-blue-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.target-content {
    flex: 1;
}

.target-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.target-gap {
    font-size: 12px;
    color: var(--text-gray);
}

.target-gap .amount {
    color: var(--action-red);
    font-weight: 600;
}

.target-gap .people {
    color: var(--brand-blue);
    font-weight: 600;
}

.target-actions {
    display: flex;
    gap: 8px;
}

.btn-target {
    flex: 1;
    height: 36px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-target.primary {
    background: var(--action-red);
    color: white;
}

.btn-target.primary:hover {
    background: var(--action-red-dark);
}

.btn-target.secondary {
    background: white;
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue);
}

.btn-target.secondary:hover {
    background: var(--brand-blue-light);
}

/* 任务说明折叠卡 */
.help-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E9EDF3;
    overflow: hidden;
}

.help-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.help-toggle:hover {
    background: var(--bg-section);
}

.help-toggle-text {
    font-size: 13px;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-toggle-arrow {
    color: var(--text-light);
    transition: transform 0.3s;
}

.help-toggle.active .help-toggle-arrow {
    transform: rotate(180deg);
}

.help-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.help-content.show {
    max-height: 200px;
}

.help-inner {
    padding: 0 20px 16px;
    font-size: 12px;
    color: var(--text-gray);
    line-height: 2;
}
