/* ===== v2.0 便签页样式 — 瀑布流 + 多彩卡片 ===== */

.memo_page {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px;
    animation: memoPageIn 0.4s ease-out;
}

@keyframes memoPageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 顶部标语 ===== */
.memo_page_slogan {
    text-align: center;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-primary);
    padding: 32px 0 28px;
    background: linear-gradient(135deg, var(--accent-color), var(--mc-rose-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sloganIn 0.6s ease-out;
}

@keyframes sloganIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 仪表盘 ===== */
.memo_page_dashboard {
    margin-bottom: 28px;
    animation: dashIn 0.5s ease-out 0.1s backwards;
}

@keyframes dashIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.memo_page_dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.memo_page_dash-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    transition: all var(--transition);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(var(--glass-blur));
    position: relative;
    overflow: hidden;
}

.memo_page_dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--mc-rose-dark));
    opacity: 0;
    transition: opacity var(--transition);
}

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

.memo_page_dash-card:hover::before {
    opacity: 1;
}

.memo_page_dash-label {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.memo_page_dash-label svg {
    width: 14px;
    height: 14px;
}

.memo_page_dash-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--accent-color), var(--mc-blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.memo_page_dash-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.memo_page_dash-sub b {
    color: var(--accent-color);
    font-weight: 600;
}

/* 待办进度条 */
.memo_page_dash-progress-wrap {
    display: block;
    margin-top: 10px;
}

.memo_page_dash-progress-bar {
    display: block;
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.memo_page_dash-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--mc-rose-dark));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.memo_page_dash-progress-text {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ===== 分类 Tab ===== */
.memo_page_tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(var(--glass-blur));
    animation: tabIn 0.5s ease-out 0.15s backwards;
}

@keyframes tabIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.memo_page_tabs::-webkit-scrollbar {
    display: none;
}

.memo_page_tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    flex-shrink: 0;
    font-weight: 500;
}

.memo_page_tab:hover {
    background: var(--sidebar-hover);
    color: var(--text-primary);
}

.memo_page_tab.is-active {
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(51, 65, 85, 0.3);
}

.memo_page_tab-count {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-weight: 500;
}

.memo_page_tab.is-active .memo_page_tab-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ===== 待办状态二级导航 ===== */
.memo_page_status-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    padding-left: 8px;
}

.memo_page_status-tab {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    background: transparent;
    border: 1px solid transparent;
}

.memo_page_status-tab:hover {
    background: var(--sidebar-hover);
    color: var(--text-primary);
}

.memo_page_status-tab.is-active {
    background: var(--sidebar-active);
    color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 600;
}

/* ===== 瀑布流 ===== */
.memo_page_cards {
    column-count: 3;
    column-gap: 16px;
    animation: cardsIn 0.5s ease-out;
}

@keyframes cardsIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.memo_page_cards .loading,
.memo_page_cards .empty {
    column-span: all;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== 便签卡片 ===== */
.memo_page_card {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    padding: 18px;
    cursor: pointer;
    position: relative;
    min-height: 80px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease,
                opacity 0.3s ease;
    animation: memoCardEnter 0.45s ease-out backwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.memo_page_card:nth-child(1) { animation-delay: 0.04s; }
.memo_page_card:nth-child(2) { animation-delay: 0.08s; }
.memo_page_card:nth-child(3) { animation-delay: 0.12s; }
.memo_page_card:nth-child(4) { animation-delay: 0.16s; }
.memo_page_card:nth-child(5) { animation-delay: 0.2s; }
.memo_page_card:nth-child(6) { animation-delay: 0.24s; }
.memo_page_card:nth-child(7) { animation-delay: 0.28s; }
.memo_page_card:nth-child(8) { animation-delay: 0.32s; }
.memo_page_card:nth-child(9) { animation-delay: 0.36s; }

@keyframes memoCardEnter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.memo_page_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.memo_page_card:active {
    transform: scale(0.98);
}

.memo_page_card.is-done {
    opacity: 0.6;
}

.memo_page_card.is-done:hover {
    opacity: 0.8;
}

.memo_page_card.is-done .memo_page_card-title {
    text-decoration: line-through;
}

/* 便签颜色变体 — 统一白色背景 + 轻微遮罩，文字统一深灰确保可读性 */
.memo_page_color-default,
.memo_page_color-pink,
.memo_page_color-slate,
.memo_page_color-blue,
.memo_page_color-green,
.memo_page_color-yellow,
.memo_page_color-orange,
.memo_page_color-teal {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

/* 马卡龙风下的便签卡片 — 统一白色毛玻璃 */
[data-theme="macaron"] .memo_page_card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #0f172a;
}

[data-theme="macaron"] .memo_page_color-pink,
[data-theme="macaron"] .memo_page_color-slate,
[data-theme="macaron"] .memo_page_color-blue,
[data-theme="macaron"] .memo_page_color-green,
[data-theme="macaron"] .memo_page_color-yellow,
[data-theme="macaron"] .memo_page_color-orange,
[data-theme="macaron"] .memo_page_color-teal {
    background: rgba(255, 255, 255, 0.85);
}

/* 卡片头部 */
.memo_page_card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.memo_page_card-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: auto;
}

.memo_page_card:hover .memo_page_card-actions {
    opacity: 1;
}

.memo_page_card-action-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.06);
    color: currentColor;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
    font-size: 12px;
}

.memo_page_card-action-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.1);
}

.memo_page_card-action-btn.memo_page_del-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
}

.memo_page_card-tag {
    font-size: 11px;
    color: currentColor;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.05);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.memo_page_card-priority {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* 卡片内容 */
.memo_page_card-title {
    font-size: 15px;
    font-weight: 600;
    color: currentColor;
    margin-bottom: 8px;
    word-break: break-word;
    line-height: 1.4;
}

.memo_page_card-content {
    font-size: 13px;
    color: currentColor;
    opacity: 0.85;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
    margin-bottom: 12px;
}

/* 卡片底部 */
.memo_page_card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: currentColor;
    opacity: 0.6;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 10px;
}

.memo_page_card-spacer {
    flex: 1;
}

.memo_page_card-due {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.memo_page_card-due.is-done {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted);
}

.memo_page_card-due.is-overdue {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
}

.memo_page_card-time {
    margin-left: auto;
    opacity: 0.7;
}

/* ===== 卡片内编辑 ===== */
.memo_page_card-edit {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.memo_page_edit-title {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: all var(--transition);
}

.memo_page_edit-title:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--input-ring);
}

.memo_page_edit-content {
    width: 100%;
    min-height: 60px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
    box-sizing: border-box;
    transition: all var(--transition);
}

.memo_page_edit-content:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--input-ring);
}

.memo_page_edit-char {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted);
}

.memo_page_edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ===== 待办复选框 ===== */
.memo_page_todo-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 8px;
}

.memo_page_todo-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
}

.memo_page_todo-check input[type="checkbox"]:hover {
    border-color: var(--accent-color);
}

.memo_page_todo-check input[type="checkbox"]:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.memo_page_todo-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ===== 待办子项输入行 ===== */
.memo_page_todo-input {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.memo_page_todo-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    transition: all var(--transition);
}

.memo_page_todo-input input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--input-ring);
}

.memo_page_todo-input button {
    padding: 8px 14px;
    border-radius: var(--radius);
    background: var(--accent-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.memo_page_todo-input button:hover {
    background: var(--accent-hover);
}

/* ===== 过期提醒闪烁 ===== */
.memo_page_card.is-blink {
    animation: reminderBlink 1.5s ease-in-out infinite;
}

@keyframes reminderBlink {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3), 0 4px 16px rgba(245, 158, 11, 0.2);
    }
}

.memo_page_card.is-blink-urgent {
    animation: reminderUrgent 0.8s ease-in-out infinite;
}

@keyframes reminderUrgent {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.4), 0 4px 16px rgba(239, 68, 68, 0.25);
    }
}

/* ===== 颜色圆点 ===== */
.memo_page_color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.2s,
                box-shadow 0.2s;
    flex-shrink: 0;
}

.memo_page_color-dot:hover {
    transform: scale(1.2);
    border-color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.memo_page_color-dot:active {
    transform: scale(0.9);
}

.memo_page_color-dot.is-active {
    border-color: var(--accent-color);
    transform: scale(1.15);
    box-shadow: 0 0 0 3px var(--accent-light), 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 编辑模式颜色选择器 */
.memo_page_edit-colors {
    display: flex;
    gap: 10px;
    margin: 12px 0;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.memo_page_edit-colors .memo_page_color-dot {
    width: 22px;
    height: 22px;
    border-width: 2px;
    position: relative;
}

.memo_page_edit-colors .memo_page_color-dot.is-active {
    border-color: var(--accent-color);
    transform: scale(1.15);
    box-shadow: 0 0 0 3px var(--accent-light), 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== 模板选择 ===== */
.memo_page_template-select {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.memo_page_template-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    white-space: nowrap;
}

.memo_page_template-chip:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.memo_page_template-chip.is-active {
    border-color: var(--accent-color);
    background: var(--accent-lighter);
    color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 0 0 3px var(--accent-light);
}

.memo_page_template-chip svg {
    opacity: 0.6;
    width: 16px;
    height: 16px;
}

.memo_page_template-chip.is-active svg {
    opacity: 1;
    color: var(--accent-color);
}

/* ===== FAB 浮动按钮 ===== */
.memo_page_fab {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--mc-rose-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(51, 65, 85, 0.35);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                background 0.3s ease;
    z-index: 100;
    animation: fabIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
    font-size: 24px;
}

@keyframes fabIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.memo_page_fab:hover {
    transform: scale(1.12) rotate(90deg);
    box-shadow: 0 8px 28px rgba(51, 65, 85, 0.45);
}

.memo_page_fab:active {
    transform: scale(0.95);
}

/* ===== 待办状态切换器 ===== */
.memo_page_status-switcher {
    position: relative;
}

.memo_page_card-status {
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.memo_page_card-status.status-new {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
}

.memo_page_card-status.status-progress {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.memo_page_card-status.status-done {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.memo_page_card-status.status-cancel {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted);
}

.memo_page_status-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: var(--card-shadow-hover);
    z-index: 10;
    min-width: 100px;
}

.memo_page_status-switcher:hover .memo_page_status-dropdown {
    display: block;
}

.memo_page_status-option {
    display: block;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.memo_page_status-option:hover {
    background: var(--sidebar-hover);
    color: var(--text-primary);
}

.memo_page_status-option.is-active {
    background: var(--sidebar-active);
    color: var(--accent-color);
    font-weight: 500;
}

.memo_page_status-dropdown-portal {
    position: fixed;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: var(--card-shadow-hover);
    z-index: 1000;
    min-width: 100px;
    animation: popIn 0.2s ease-out;
}

/* ===== 待办进度条（卡片内） ===== */
.memo_page_progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0 4px;
}

.memo_page_progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--mc-rose-dark));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.memo_page_progress-text {
    font-size: 11px;
    color: currentColor;
    opacity: 0.7;
    margin-bottom: 8px;
}

/* ===== 待办子项预览（卡片内） ===== */
.memo_page_todo-items-preview {
    margin: 8px 0;
}

.memo_page_todo-item-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: currentColor;
    cursor: pointer;
}

.memo_page_todo-item-preview input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
}

.memo_page_todo-item-preview input[type="checkbox"]:hover {
    border-color: var(--accent-color);
}

.memo_page_todo-item-preview input[type="checkbox"]:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.memo_page_todo-item-preview input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.memo_page_todo-item-preview .todo-item-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.memo_page_todo-item-preview .todo-item-text.is-done {
    text-decoration: line-through;
    opacity: 0.5;
}

.memo_page_todo-more {
    font-size: 12px;
    color: currentColor;
    opacity: 0.6;
    padding: 4px 0;
    text-align: center;
}

/* ===== 模板特定样式 ===== */
.memo_page_tpl-todo .memo_page_todo-title {
    font-size: 15px;
    font-weight: 600;
    color: currentColor;
    margin-bottom: 8px;
    word-break: break-word;
    line-height: 1.4;
}

.memo_page_tpl-inspiration .memo_page_inspiration-first {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: currentColor;
    opacity: 0.15;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.memo_page_tpl-inspiration .memo_page_inspiration-title {
    font-size: 16px;
    font-weight: 600;
    color: currentColor;
    margin-bottom: 8px;
    line-height: 1.4;
}

.memo_page_tpl-inspiration .memo_page_inspiration-content {
    font-size: 14px;
    color: currentColor;
    opacity: 0.85;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 12px;
}

.memo_page_tpl-note .memo_page_note-content {
    font-size: 14px;
    color: currentColor;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.memo_page_tpl-note .memo_page_note-empty {
    font-size: 14px;
    color: currentColor;
    opacity: 0.5;
    margin-bottom: 12px;
}

/* ===== 4种状态的卡片视觉 ===== */
.memo_page_card.memo_page_status-new {
    border-left: 3px solid var(--color-primary);
}

.memo_page_card.memo_page_status-progress {
    border-left: 3px solid var(--color-warning);
}

.memo_page_card.memo_page_status-done {
    opacity: 0.55;
}

.memo_page_card.memo_page_status-cancel {
    filter: grayscale(30%);
}

.memo_page_card.memo_page_status-done .memo_page_card-title,
.memo_page_card.memo_page_status-done .memo_page_todo-title {
    text-decoration: line-through;
}

/* ===== 动画 ===== */
@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .memo_page_dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .memo_page_cards {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .memo_page {
        padding: 0 16px 80px;
    }
    
    .memo_page_slogan {
        font-size: 18px;
        padding: 24px 0 20px;
    }
    
    .memo_page_dash-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .memo_page_dash-card {
        padding: 14px 16px;
    }
    
    .memo_page_dash-value {
        font-size: 22px;
    }
    
    .memo_page_cards {
        column-count: 1;
    }
    
    .memo_page_fab {
        width: 50px;
        height: 50px;
        bottom: 24px;
        right: 24px;
        font-size: 20px;
    }
    
    .memo_page_tabs {
        margin-bottom: 16px;
    }
    
    .memo_page_tab {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .memo_page_dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .memo_page_dash-card {
        padding: 12px;
    }
    
    .memo_page_dash-value {
        font-size: 20px;
    }
    
    .memo_page_slogan {
        font-size: 16px;
    }
}

/* ============================================================
   补充：JS 使用但 CSS 未定义的孤儿类名补充定义
   ============================================================ */

/* ===== 仪表盘卡片颜色修饰类 — 统一白色背景 ===== */
.memo_page_dash-total,
.memo_page_dash-inspiration,
.memo_page_dash-note,
.memo_page_dash-todo {
    background: #ffffff;
    color: #0f172a;
}

.memo_page_dash-total .memo_page_dash-label,
.memo_page_dash-total .memo_page_dash-sub,
.memo_page_dash-inspiration .memo_page_dash-label,
.memo_page_dash-todo .memo_page_dash-label,
.memo_page_dash-note .memo_page_dash-label {
    color: #64748b;
}

.memo_page_dash-total .memo_page_dash-sub b,
.memo_page_dash-inspiration .memo_page_dash-value,
.memo_page_dash-todo .memo_page_dash-value,
.memo_page_dash-note .memo_page_dash-value {
    color: #0f172a;
}

.memo_page_dash-total::before,
.memo_page_dash-inspiration::before,
.memo_page_dash-note::before,
.memo_page_dash-todo::before {
    background: linear-gradient(90deg, #334155, #1e293b);
}

/* ===== 待办子项输入区 ===== */
.memo_page_todo-item-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.memo_page_todo-item-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.memo_page_todo-item-input {
    padding-right: 50px;
}

.memo_page_todo-item-char-count {
    position: absolute;
    right: 8px;
    bottom: 50%;
    transform: translateY(50%);
    font-size: 11px;
    color: var(--text-muted);
    background: var(--card-bg);
    padding: 0 4px;
    pointer-events: none;
}

.memo_page_todo-item-del {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.memo_page_todo-item-del:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.memo_page_add-todo-item-btn {
    width: 100%;
    border: 1px dashed var(--border-color);
    justify-content: center;
}

.memo_page_add-todo-item-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ===== 便签编辑模式按钮修饰类 ===== */
.memo_page_edit-btn {
    /* 编辑按钮修饰类，继承基础按钮样式 */
}

.memo_page_edit-title-char {
    /* 标题字数容器，继承 edit-char 基础样式 */
}

.memo_page_edit-todo-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.memo_page_edit-cancel {
    /* 取消按钮修饰类，继承基础按钮样式 */
}

.memo_page_edit-save {
    /* 保存按钮修饰类，继承基础按钮样式 */
}

.memo_page_edit-content-only {
    /* 纯内容编辑文本域修饰类 */
    min-height: 100px;
}

.memo_page_edit-char-count {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
