/* ==========================================================================
   学习生活工作台 - 样式表
   风格：儿童化、活泼、圆角、大按钮、明亮配色
   ========================================================================== */

/* ===== CSS 变量 ===== */
:root {
    /* 主色 */
    --color-primary: #6c5ce7;
    --color-primary-light: #a29bfe;
    --color-primary-dark: #5a4ad1;

    /* 辅色 */
    --color-yellow: #ffd93d;
    --color-mint: #55efc4;
    --color-peach: #ff7675;
    --color-blue: #74b9ff;
    --color-orange: #ff9f43;

    /* 中性色 */
    --color-bg: #f5f6fa;
    --color-card: #ffffff;
    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-text-muted: #b2bec3;
    --color-border: #dfe6e9;

    /* 状态色 */
    --color-success: #00b894;
    --color-danger: #d63031;
    --color-warning: #fdcb6e;

    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* 间距 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;

    /* 字号 */
    --font-sm: 13px;
    --font-base: 15px;
    --font-lg: 18px;
    --font-xl: 22px;
    --font-2xl: 28px;

    /* 布局 */
    --topbar-height: 60px;
    --sidebar-width: 90px;
    --bottom-tab-height: 64px;
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"], :root[data-theme="dark"] {
        --color-bg: #1e272e;
        --color-card: #2d3436;
        --color-text: #dfe6e9;
        --color-text-light: #b2bec3;
        --color-text-muted: #636e72;
        --color-border: #485460;
    }
}

/* ===== Reset ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    overflow: hidden;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ===== 顶部栏 ===== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4);
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo {
    font-size: 28px;
}

/* ===== 头像/图标（可点击更换） ===== */
.avatar-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s, border-color 0.2s;
    background: rgba(255, 255, 255, 0.15);
}

.avatar-wrap:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 首页问候区头像（较大） */
.avatar-greeting {
    width: 52px;
    height: 52px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.avatar-greeting:hover {
    transform: scale(1.1);
}

.avatar-greeting img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.user-info {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
}

.user-name {
    font-size: var(--font-lg);
    font-weight: 600;
}

.user-grade {
    font-size: var(--font-sm);
    opacity: 0.85;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.stat {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: transform 0.3s;
}

.stat.bump {
    transform: scale(1.2);
}

.stat-icon {
    font-size: 16px;
}

.stat-value {
    font-size: var(--font-base);
    min-width: 24px;
    text-align: center;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== 应用容器 ===== */
.app-container {
    display: flex;
    height: calc(100% - var(--topbar-height));
    margin-top: var(--topbar-height);
}

/* ===== 侧边栏（电脑端） ===== */
.sidebar {
    display: none;
    width: var(--sidebar-width);
    background: var(--color-card);
    border-right: 1px solid var(--color-border);
    padding: var(--space-3) 0;
    flex-shrink: 0;
    overflow-y: auto;
}

.nav-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3) 0;
    color: var(--color-text-light);
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: var(--color-bg);
}

.nav-item.active {
    color: var(--color-primary);
    background: rgba(108, 92, 231, 0.08);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-icon {
    font-size: 24px;
}

.nav-label {
    font-size: var(--font-sm);
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-4);
    -webkit-overflow-scrolling: touch;
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--color-text-muted);
    font-size: var(--font-lg);
}

/* ===== 底部 Tab（iPad 端） ===== */
.bottom-tab {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-tab-height);
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.tab-item.active {
    color: var(--color-primary);
}

.tab-icon {
    font-size: 20px;
}

.tab-label {
    font-size: 11px;
}

/* ===== 通用组件 ===== */
.card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-4);
}

.card-title {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: white;
    font-weight: 500;
    min-height: 44px;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--color-primary-dark);
}

.btn:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
}

.btn-danger {
    background: var(--color-danger);
}

.btn-success {
    background: var(--color-success);
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.input {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    font-size: var(--font-base);
}

.input:focus {
    border-color: var(--color-primary);
    background: var(--color-card);
}

.input-group {
    display: flex;
    gap: var(--space-2);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    background: var(--color-bg);
    color: var(--color-text-light);
}

.tag-primary { background: rgba(108, 92, 231, 0.12); color: var(--color-primary); }
.tag-success { background: rgba(0, 184, 148, 0.12); color: var(--color-success); }
.tag-warn { background: rgba(253, 203, 110, 0.2); color: #b88a00; }
.tag-danger { background: rgba(214, 48, 49, 0.12); color: var(--color-danger); }

/* ===== 任务列表 ===== */
.task-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--color-card);
    margin-bottom: var(--space-2);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.task-item:hover {
    border-color: var(--color-border);
}

.task-item.done {
    opacity: 0.55;
}

.task-item.done .task-title {
    text-decoration: line-through;
}

.task-check {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 18px;
}

.task-check.checked {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.task-title {
    flex: 1;
    font-size: var(--font-base);
}

.task-meta {
    font-size: var(--font-sm);
    color: var(--color-text-muted);
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.task-actions {
    display: flex;
    gap: var(--space-1);
}

.task-actions button {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
}

.task-actions button:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* ===== 课程表 ===== */
.tt-wrap {
    overflow-x: auto;
}

.tt {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-base);
    min-width: 480px;
}

.tt th, .tt td {
    border: 1px solid var(--color-border);
    padding: var(--space-2);
    text-align: center;
    min-height: 44px;
}

.tt thead th {
    background: rgba(108, 92, 231, 0.08);
    color: var(--color-primary);
    font-weight: 600;
}

.tt-corner {
    background: var(--color-bg);
}

.tt-period {
    background: var(--color-bg);
    font-size: var(--font-sm);
    color: var(--color-text-light);
    white-space: nowrap;
    width: 64px;
}

.tt-cell {
    cursor: pointer;
    transition: background 0.15s;
    min-width: 80px;
    min-height: 52px;
    vertical-align: middle;
}

.tt-cell:hover {
    background: rgba(108, 92, 231, 0.06);
}

.tt-cell.empty {
    color: var(--color-text-muted);
}

.tt-plus {
    font-size: var(--font-lg);
    color: var(--color-text-muted);
}

.tt-cell.filled {
    color: var(--color-text);
    font-weight: 600;
}

/* ===== 日历 ===== */
/* 计划页：日历与日程内容并排（左日历右日程） */
.plan-layout {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.plan-left {
    flex: 0 0 auto;
    width: 50%;
    min-width: 300px;
}

.plan-left .cal {
    max-width: 100%;
    min-width: 0;
}

.plan-right {
    flex: 1;
    min-width: 0;
}

.cal {
    user-select: none;
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
}

.cal-title {
    font-size: var(--font-base);
    font-weight: 700;
    min-width: 88px;
    text-align: center;
}

.cal-nav {
    min-width: 30px;
    padding: 2px var(--space-2);
    font-size: var(--font-base);
    min-height: 30px;
}

.cal-today {
    min-height: 30px;
    padding: 2px var(--space-3);
    font-size: var(--font-sm);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-dow {
    text-align: center;
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 600;
    padding: 2px;
}

.cal-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.cal-cell:hover {
    background: var(--color-bg);
}

.cal-cell.muted {
    color: var(--color-text-muted);
    opacity: 0.45;
}

.cal-cell.today {
    border: 2px solid var(--color-primary-light);
    font-weight: 700;
}

.cal-cell.selected {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.cal-cell.today.selected {
    border-color: var(--color-primary);
}

/* ===== 打卡项 ===== */
.checkin-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--color-card);
    margin-bottom: var(--space-2);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.checkin-toggle {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    border: 3px solid var(--color-border);
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s;
    cursor: pointer;
}

.checkin-toggle:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.checkin-toggle.checked {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
    animation: pop 0.3s;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.checkin-info {
    flex: 1;
}

.checkin-name {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: 2px;
}

/* ===== 奖励卡片 ===== */
.reward-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.reward-card:hover {
    transform: translateY(-2px);
}

.reward-card.locked {
    opacity: 0.6;
}

.reward-icon {
    font-size: 48px;
    margin-bottom: var(--space-2);
}

.reward-name {
    font-size: var(--font-base);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.reward-stars {
    font-size: var(--font-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    font-weight: 700;
}

/* ===== 进度环 ===== */
.progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-track {
    fill: none;
    stroke: var(--color-border);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.4s;
}

.progress-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-base);
}

/* ===== 模态框 ===== */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    animation: fade-in 0.2s;
}

.modal {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slide-up 0.3s;
}

.modal-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-lg);
    font-weight: 600;
}

.modal-body {
    padding: var(--space-4);
}

.modal-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(45, 52, 54, 0.92);
    color: white;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    animation: slide-down 0.3s;
    font-size: var(--font-sm);
    max-width: 80vw;
}

/* ===== 撒星动画 ===== */
.star-burst {
    position: absolute;
    pointer-events: none;
    z-index: 999;
    font-size: 24px;
    animation: burst 0.8s ease-out forwards;
}

@keyframes burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx, 0), var(--dy, -100px)) scale(1.2);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-down {
    from { transform: translate(-50%, -20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ===== 响应式 ===== */
/* 电脑端：≥1024px 显示侧边栏，隐藏底部 Tab */
@media (min-width: 1024px) {
    .sidebar {
        display: flex;
        flex-direction: column;
    }

    .bottom-tab {
        display: none;
    }

    .main-content {
        padding: var(--space-5);
    }
}

/* iPad/平板：<1024px 显示底部 Tab，隐藏侧边栏 */
@media (max-width: 1023px) {
    .sidebar {
        display: none;
    }

    .bottom-tab {
        display: flex;
    }

    .main-content {
        padding-bottom: calc(var(--bottom-tab-height) + var(--space-4));
    }
}

/* 窄屏：日历与日程纵向堆叠 */
@media (max-width: 900px) {
    .plan-layout {
        flex-direction: column;
    }

    .plan-left {
        width: 100%;
        min-width: 0;
    }

    /* 堆叠时日历保持半宽（维持缩小一半的观感） */
    .plan-left .cal {
        max-width: 50%;
        min-width: 300px;
    }
}

/* 小屏幕：手机（如果有） */
@media (max-width: 640px) {
    :root {
        --font-base: 14px;
        --font-lg: 16px;
        --font-xl: 20px;
    }

    .topbar {
        padding: 0 var(--space-3);
    }

    .stat {
        padding: var(--space-1) var(--space-2);
    }

    .user-grade {
        display: none;
    }

    /* 小屏日历恢复全宽 */
    .cal {
        max-width: 100%;
        min-width: 0;
    }
}

/* ===== 模块容器 ===== */
.module-container {
    max-width: 1200px;
    margin: 0 auto;
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.module-title {
    font-size: var(--font-2xl);
    font-weight: 700;
}

.module-subtitle {
    color: var(--color-text-light);
    font-size: var(--font-sm);
    margin-top: var(--space-1);
}

/* ===== 空状态 ===== */
.empty {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    color: var(--color-text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: var(--space-3);
}

.empty-text {
    font-size: var(--font-base);
    margin-bottom: var(--space-4);
}

/* ===== 工具类 ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.text-sm { font-size: var(--font-sm); }
.text-lg { font-size: var(--font-lg); }
.text-xl { font-size: var(--font-xl); }
.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ===== 摘要卡片 ===== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.summary-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.summary-card-icon {
    font-size: 36px;
    margin-bottom: var(--space-2);
}

.summary-card-title {
    font-size: var(--font-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-1);
}

.summary-card-value {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-primary);
}

/* ===== Tab 切换 ===== */
.tabs {
    display: flex;
    gap: var(--space-1);
    background: var(--color-bg);
    padding: var(--space-1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    overflow-x: auto;
}

.tab {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s;
    color: var(--color-text-light);
    min-width: 80px;
}

.tab.active {
    background: var(--color-card);
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ===== 计划分组 ===== */
.plan-group {
    margin-bottom: var(--space-4);
}

.plan-group:last-child {
    margin-bottom: 0;
}

.plan-group-title {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: var(--space-2);
    padding-left: var(--space-2);
    border-left: 4px solid var(--color-primary);
}

.task-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.task-meta-time {
    font-size: var(--font-sm);
    color: var(--color-text-muted);
}

/* ===== 备忘录 ===== */
.memo-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.memo-item:last-child {
    border-bottom: none;
}

.memo-text {
    flex: 1;
    font-size: var(--font-base);
    word-break: break-all;
}

.memo-time {
    font-size: var(--font-sm);
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.memo-del {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    flex-shrink: 0;
}

.memo-del:hover {
    background: var(--color-bg);
    color: var(--color-danger);
}