/* ============================================================
   memo.css — 备忘录App
   便签风格：温暖纸感 + 程澈的推理笔记高亮
   ============================================================ */

.memo-app {
    width: 100%;
    height: 100%;
    background: #fbf8ef;
    color: #3a3630;
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.memo-header {
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    background: #f3edda;
    border-bottom: 1px solid #e5dcc0;
}
.memo-title {
    font-size: 17px;
    font-weight: 600;
    color: #6b5d3a;
}
.memo-count {
    font-size: 12px;
    color: #a89c7a;
}

.memo-list {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.memo-list::-webkit-scrollbar { width: 7px; }
.memo-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }

.memo-entry {
    background: #fff;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(107,93,58,0.06);
    border-left: 4px solid #d9c98a;
    animation: memoIn 0.35s ease;
}
@keyframes memoIn {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 程澈的推理笔记：强调蓝，带脉冲提示 */
.memo-note {
    border-left-color: #4da6ff;
    background: linear-gradient(180deg, #f5faff 0%, #fff 40%);
    box-shadow: 0 2px 12px rgba(77,166,255,0.12);
}
.memo-note .memo-entry-title { color: #2c6fc4; }
.memo-note .memo-entry-title::before {
    content: '✎ ';
    color: #4da6ff;
}

/* 红线置顶：紧急/重要条目 */
.memo-urgent {
    border-left-color: #e81123;
    background: rgba(232, 17, 35, 0.03);
    box-shadow: 0 2px 12px rgba(232,17,35,0.08);
}
.memo-urgent .memo-entry-title { color: #c50f1f; }
.memo-urgent .memo-entry-title::before {
    content: '📌 ';
}

.memo-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    gap: 12px;
}
.memo-entry-title {
    font-size: 15px;
    font-weight: 600;
    color: #5a4f38;
    line-height: 1.4;
}
.memo-entry-time {
    font-size: 12px;
    color: #b0a585;
    flex-shrink: 0;
}
.memo-entry-body {
    font-size: 14px;
    line-height: 1.8;
    color: #4a4438;
    word-break: break-word;
}

/* ============================================================
   移动端适配（html.mobile）：全屏窗口内容触控放大
   ============================================================ */
html.mobile .memo-header { height: 54px; padding: 0 18px; }
html.mobile .memo-title { font-size: 18px; }
html.mobile .memo-list { padding: 16px 18px 30px; gap: 14px; }
html.mobile .memo-entry { padding: 18px 18px; }
html.mobile .memo-entry-title { font-size: 16px; }
html.mobile .memo-entry-body { font-size: 15px; }
