[v-cloak] {
    display: none;
}

body {
    background-color: #f1f5f9;
    font-family: 'Segoe UI', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* 卡片样式 */
.task-card {
    transition: all 0.2s ease;
    border-left-width: 4px;
    border-left-color: transparent;
}

    .task-card.active {
        border-left-color: #2563eb;
        background-color: #eff6ff;
        border-color: #bfdbfe;
        transform: scale-[1.005];
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

.future-card {
    border-style: dashed;
    border-left-style: solid;
    opacity: 0.8;
}

.template-card.active {
    border-left-color: #9333ea;
    background-color: #faf5ff;
    border-color: #e9d5ff;
}

.scheduled-card.active {
    border-left-color: #0d9488;
    background-color: #f0fdfa;
    border-color: #ccfbf1;
}

.scheduled-card.disabled {
    opacity: 0.6;
    background-color: #f8fafc;
    border-left-color: #cbd5e1;
}

/* 动画 */
.slide-enter-active, .slide-leave-active {
    transition: all 0.3s ease;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

.slide-enter-from, .slide-leave-to {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.dragging {
    opacity: 0.5;
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
}

/* 移动端底部导航 */
.mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.5rem;
    background-color: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 600;
    gap: 2px;
}

    .mobile-nav-item i {
        font-size: 1.5rem;
        margin-bottom: -2px;
    }

    .mobile-nav-item.active {
        color: #2563eb;
    }

/* 移动端优化 */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .mobile-pb {
        padding-bottom: 5rem !important;
    }
    /* 防止被底部导航遮挡 */

    /* 1. 移动端弹窗容器：强制改为底部对齐 */
    .mobile-modal-container {
        align-items: flex-end !important; /* 让内容沉底 */
    }

    /* 2. 底部滑出面板 (Bottom Sheet) */
    .mobile-bottom-sheet {
        width: 100% !important;
        max-width: 100% !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-top-left-radius: 1.5rem !important;
        border-top-right-radius: 1.5rem !important;
        max-height: 85vh !important; /* 最大高度85% */
        animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); /* 丝滑上滑动画 */
        margin: 0 !important;
    }

    /* 3. 移动端详情浮层 (全屏覆盖) */
    .mobile-detail-overlay {
        position: fixed;
        inset: 0;
        z-index: 50;
        background-color: white;
        display: flex;
        flex-direction: column;
        animation: slideInRight 0.25s ease-out;
    }

    /* 防止移动端背景滚动 */
    body.modal-open {
        overflow: hidden;
    }
}

/* 动画定义 */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}
