#taskContainer {
    flex: 1;
    min-height: 0;
    overflow: visible;
    margin-bottom: 1rem;
}

.task-row {
    background: linear-gradient(145deg, #1e2a3a, #0f172a);
    border-radius: 2rem;
    padding: 1.4rem 1.8rem;
    border: 2px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 4rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.7), inset 0 0 15px rgba(255,215,0,0.2);
    margin-bottom: 1.4rem;
}

/* 飞入动画 */
.task-enter {
    animation-name: slideInRight;
    animation-duration: 0.6s;
    animation-timing-function: ease;
    animation-fill-mode: backwards;
}

/* 飞出动画 */
.task-leave {
    animation-name: slideOutLeft;
    animation-duration: 0.6s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

/* 任务更新高亮动画：缓慢闪烁2次，总时长1秒 */
.task-update {
    animation: taskUpdate 1s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes taskUpdate {
    0% {
        background: linear-gradient(145deg, #1e2a3a, #0f172a);
        box-shadow: 0 0 0 0 rgba(255,215,0,0.5);
    }
    25% {
        background: linear-gradient(145deg, #3b4b5e, #2d3a4f);
        box-shadow: 0 0 20px 5px rgba(255,215,0,0.8);
    }
    50% {
        background: linear-gradient(145deg, #1e2a3a, #0f172a);
        box-shadow: 0 0 0 0 rgba(255,215,0,0.5);
    }
    75% {
        background: linear-gradient(145deg, #3b4b5e, #2d3a4f);
        box-shadow: 0 0 20px 5px rgba(255,215,0,0.8);
    }
    100% {
        background: linear-gradient(145deg, #1e2a3a, #0f172a);
        box-shadow: 0 0 0 0 rgba(255,215,0,0.5);
    }
}

/* 优先级边框颜色 */
.task-row.priority-high {
    border-color: #ef4444;
}
.task-row.priority-medium {
    border-color: #00ffff;
}
.task-row.priority-low {
    border-color: #00ff00;
}

.task-title {
    font-size: 4.2rem;
    font-weight: 700;
    color: #fde68a;
    word-break: break-word;
    flex: 1;
}

.task-date {
    font-size: 3.2rem;
    background: #1e2a3a;
    padding: 0.6rem 1.5rem;
    border-radius: 4rem;
    color: #6ee7b7;
    white-space: nowrap;
    flex-shrink: 0;
}

.empty-message {
    font-size: 5rem;
    text-align: center;
    padding: 6rem;
    border: 8px dashed #4b5563;
    border-radius: 6rem;
    color: #6b7280;
}

.error-message {
    font-size: 3rem;
    background: #7f1d1d;
    padding: 2rem;
    border-radius: 3rem;
    border: 4px solid red;
}

.loading-message {
    font-size: 3rem;
    text-align: center;
    padding: 4rem;
    color: #94a3b8;
}

/* 分页控件 */
.pagination-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 2rem;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 4rem;
    cursor: move;
    user-select: none;
    z-index: 1000;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.pagination-btn {
    background: #1e293b;
    border: 2px solid #fbbf24;
    border-radius: 3rem;
    color: #e2e8f0;
    font-size: 1.8rem;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
}
.pagination-btn:hover:not(:disabled) {
    background: #2d3a4f;
}
.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.page-info {
    font-size: 2rem;
    color: #fbbf24;
    font-weight: 500;
    min-width: 5rem;
    text-align: center;
}
/* ---------- 大屏授权码输入面板（触屏数字键盘） ---------- */
.board-code-panel {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, .92);
    backdrop-filter: blur(4px);
}
.board-code-box {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 28px 32px 24px;
    width: min(400px, 92vw);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.board-code-box h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #fbbf24;
}
.board-code-box p {
    margin: 0 0 18px;
    font-size: 14px;
    color: #94a3b8;
    min-height: 18px;
}
.board-code-digits {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}
.bcd-digit {
    width: 44px;
    height: 56px;
    border: 2px solid #334155;
    border-radius: 10px;
    background: #1e293b;
    color: #f8fafc;
    font-size: 28px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, transform .1s ease;
}
.bcd-digit.current { border-color: #fbbf24; }
.bcd-digit.filled { border-color: #64748b; transform: scale(1.04); }
.board-code-error {
    min-height: 20px;
    font-size: 14px;
    color: #f87171;
    margin-bottom: 8px;
}
.board-code-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.bck-key {
    height: 64px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 26px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s ease, transform .08s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.bck-key:active { background: #334155; transform: scale(.96); }
.bck-fn { font-size: 22px; color: #cbd5e1; }
.bck-ok { background: #166534; border-color: #16a34a; color: #fff; }
.bck-ok:active { background: #15803d; }
