@charset "UTF-8";
/* ==========================================================
   备忘录 Memo —— Typecho 主题样式
   ========================================================== */
- { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Microsoft YaHei', Arial, sans-serif; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { color: #373e4e; background: #f5f5f5; margin: 50px 30px 150px; -webkit-font-smoothing: antialiased; }
::selection { color: #fff; background-color: #4f9552; }
a { color: #373e4e; text-decoration: none; }
a:hover { color: #57af4c; text-decoration: underline; }
img { max-width: 100%; height: auto; }
/* ---------- 顶部大标题 ---------- */
.title { text-align: center; font-size: 27px; margin-bottom: 20px; line-height: 1.4; font-weight: 400; word-break: break-all; }
.title a, .title a:link, .title a:visited, .title a:active, .title a:focus { color: inherit; text-decoration: none; cursor: pointer; }
.title a:hover { color: #4f9552; text-decoration: none; }
/* ---------- 容器 ---------- */
.note { width: 40%; margin: auto; }
/* ---------- 便签卡片 ---------- */
.tip { background: #fbfbfb; margin: 10px; margin-bottom: 30px; border-radius: 4px; padding: 0 10px; position: relative; }
.tip-title { padding: 15px 20px 10px 20px; white-space: nowrap; font-size: 16px; border-bottom: 1px solid #e1e1e1; margin-bottom: 15px; height: 50px; display: flex; align-items: center; font-weight: 700; }
.tip-title-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; color: #373e4e; text-decoration: none; }
.tip-title-text:hover { color: #57af4c; text-decoration: none; }
.tip-time { font-size: 12px; color: #aaa; font-weight: 400; margin-left: 10px; flex: 0 0 auto; }
.tip-content { padding: 0 20px 15px; color: #444; white-space: pre-wrap; word-break: break-all; line-height: 1.75; overflow: hidden; }
.tip-content p { margin: 3px 0; white-space: normal; }
.tip-meta { padding: 0 20px 15px; font-size: 12px; color: #aaa; line-height: 1.6; }
.tip-meta a { color: #aaa; }
.tip-meta a:hover { color: #57af4c; }
/* ---------- 正文内容（文章 / 独立页面） ---------- */
.post-content { white-space: normal; font-size: 16px; line-height: 28px; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 { margin: 18px 0 10px; font-weight: 700; line-height: 1.45; color: #2f3646; }
.post-content h1 { font-size: 22px; }
.post-content h2 { font-size: 19px; }
.post-content h3 { font-size: 17px; }
.post-content h4 { font-size: 15px; }
.post-content p { margin: 10px 0; }
.post-content ul, .post-content ol { margin: 10px 0 10px 25px; }
.post-content li { margin: 4px 0; }
.post-content blockquote { margin: 12px 0; padding: 8px 15px; border-left: 3px solid #4f9552; background: #f2f7f2; color: #5a6a5a; }
.post-content a { color: #4f9552; text-decoration: underline; }
.post-content a:hover { color: #318334; }
.post-content img { max-width: 100%; height: auto; border-radius: 3px; display: block; margin: 12px auto; }
.post-content code { background: #eef0f3; padding: 2px 5px; border-radius: 3px; font-family: 'SF Mono', 'Menlo', 'Consolas', 'Cascadia Code', 'Microsoft YaHei', 'PingFang SC', monospace; font-size: 14px; color: #c7254e; }
.post-content pre { background: #2d3138; color: #e6e6e6; padding: 12px 15px; border-radius: 4px; overflow: auto; margin: 12px 0; line-height: 1.6; white-space: pre; word-break: normal; }
.post-content pre code { background: none; color: inherit; padding: 0; font-size: 14px; }
.post-content table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 13px; }
.post-content th, .post-content td { border: 1px solid #e1e1e1; padding: 6px 10px; text-align: left; }
.post-content th { background: #f3f3f3; }
.post-content hr { border: none; border-top: 1px solid #e1e1e1; margin: 20px 0; }
/* ---------- 分页 ---------- */
.page-navigator { list-style: none; text-align: center; margin: 30px 0; padding: 0; }
.page-navigator li { display: inline-block; margin: 0 3px; }
.page-navigator li a, .page-navigator li span { display: inline-block; padding: 5px 12px; border-radius: 3px; color: #373e4e; font-size: 13px; text-decoration: none; }
.page-navigator li a:hover { background: #4caf50; color: #fff; text-decoration: none; }
.page-navigator li.current a, .page-navigator li.current span { background: #4caf50; color: #fff; }
.page-navigator li.prev a, .page-navigator li.next a { color: #373e4e; }
/* ---------- 侧边悬浮工具（顶部 / 首页 / 独立页面） ---------- */
.tool { position: fixed; top: 120px; left: calc(70% + 20px); z-index: 99; display: flex; flex-direction: column; align-items: flex-start; }
.tool-btn { background: #4caf50; color: #fff; min-width: 50px; min-height: 50px; padding: 6px 10px; border-radius: 25px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-family: initial; font-weight: 300; cursor: pointer; margin-bottom: 10px; text-decoration: none !important; user-select: none; transition: background .2s; text-align: center; line-height: 1.25; word-break: break-all; }
.tool-btn:hover { background: #318334; color: #fff; text-decoration: none; }
/* ---------- 页脚 ---------- */
.footer { text-align: center; font-size: 12px; color: #a5a5a5; margin-top: 50px; line-height: 2; padding: 0 15px; }
.footer a { color: #a5a5a5; }
.footer a:hover { color: #57af4c; }
/* ---------- 归档页面 ---------- */
.archived-posts { white-space: normal; }
.archive-year { margin: 0 0 25px; }
.archive-year:last-child { margin-bottom: 0; }
.archive-year-title { font-size: 22px; font-weight: 700; color: #2f3646; padding: 0 0 8px; margin: 0 0 12px; border-bottom: 2px solid #4caf5030; line-height: 1.3; }
.archive-month-title { font-size: 14px; font-weight: 700; color: #4caf50; margin: 15px 0 8px; line-height: 1.4; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-item { display: flex; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed #ececec; line-height: 1.6; }
.archive-item:last-child { border-bottom: none; }
.archive-date { flex: 0 0 45px; font-size: 12px; color: #aaa; font-family: Consolas, Monaco, 'Courier New', monospace; }
.archive-link { flex: 1 1 auto; min-width: 0; color: #373e4e; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-link:hover { color: #57af4c; text-decoration: underline; }
/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
    body { margin: 20px 0 150px; }
    .note { width: 100%; margin: auto; }
    .tip { margin: 10px 10px 20px; }
    .tip-title { padding: 12px 15px 8px 15px; }
    .tip-content { padding: 0 15px 15px; }
    .tip-meta { padding: 0 15px 15px; }
    .tool { top: auto; left: auto; bottom: 50px; right: 30px; align-items: flex-end; }
    .tool-btn { min-width: 44px; min-height: 44px; font-size: 12px; padding: 5px 8px; }
    .archive-year-title { font-size: 19px; }
    .archive-item { font-size: 13px; }
    .archive-date { flex: 0 0 40px; font-size: 11px; }
}