/* ============================================================
   个人主页样式
   - 全部用 CSS 变量控制，改顶部几个颜色就能换风格
   - 深色模式通过 html[data-theme="dark"] 切换
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --card: #ffffff;
  --text: #101828;
  --muted: #5b6472;
  --border: #e6e8ee;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
  --accent-2: #06b6d4;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 6px 24px -8px rgba(16, 24, 40, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1040px;
  /* 动态配图的尺寸上限：想更大/更小，只改这两个数字 */
  --feed-img-w: 320px;
  --feed-img-h: 240px;
  --font: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0a0e16;
  --bg-soft: #0f1522;
  --card: #121a28;
  --text: #e8eefb;
  --muted: #97a3b6;
  --border: #202c3e;
  --accent: #8b8bff;
  --accent-soft: #1b2140;
  --accent-2: #38e1f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 34px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* 让 hidden 属性永远有效（.btn 有自己的 display，会盖掉浏览器默认规则） */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.02em; }

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  font-size: .9em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: .1em .4em;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  font-size: 14.5px;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
  text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 550;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--muted); }

.btn-sm { padding: 6px 13px; font-size: 13.5px; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.icon-btn:hover { background: var(--bg-soft); transform: translateY(-1px); }

/* ---------------- 首屏 ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 76px;
}
.hero-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 460px;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%) 20% 40%/520px 420px no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%) 78% 20%/460px 380px no-repeat;
  filter: blur(6px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
}

.avatar {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-md);
  overflow: hidden;
  user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero-eyebrow {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  font-weight: 720;
}
.hero-role {
  margin: 10px 0 0;
  font-size: 1.06rem;
  color: var(--text);
  opacity: .86;
}
.hero-tagline {
  margin: 14px 0 0;
  max-width: 46ch;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero-actions .chip {
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease;
}
.hero-actions .chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  text-decoration: none;
}

/* ---------------- 区块通用 ---------------- */

.section { padding: 62px 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 30px;
}
.section-kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--accent);
  padding-top: 2px;
}
.section-head h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 680; }
.section-note {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.05em; color: var(--text); opacity: .9; }
.prose p:last-child { margin-bottom: 0; }

/* ---------------- 项目卡片 ---------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.card-cover {
  margin: -22px -22px 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.card h3 { font-size: 1.04rem; font-weight: 640; }
.card-year {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13.5px;
  font-weight: 550;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.empty {
  padding: 26px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
}

/* ---------------- 动态时间线 ---------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--border));
  border-radius: 2px;
}

.entry {
  position: relative;
  padding: 0 0 30px;
}
.entry:last-child { padding-bottom: 0; }
.entry::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 11px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.entry-date {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.entry h3 { font-size: 1.06rem; font-weight: 620; margin: 4px 0 8px; }
.entry-body { margin: 0; color: var(--text); opacity: .88; white-space: pre-wrap; }
.entry-img {
  margin: 12px 0 0;
  display: block;
  width: fit-content;      /* 图框跟着图片走，不留空白 */
  max-width: min(var(--feed-img-w), 100%);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  line-height: 0;
  cursor: zoom-in;
  transition: max-width .2s ease;
}
/* 缩略状态：宽高都受限，竖屏截图/长图不会顶满一屏；小图不放大（width:auto），避免糊 */
.entry-img img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--feed-img-h);
}
/* 点击后放大：铺满正文宽度、高度放开 */
.entry-img.is-zoomed {
  max-width: 100%;
  cursor: zoom-out;
}
.entry-img.is-zoomed img { max-height: none; }
.entry-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.entry-link { font-size: 13.5px; font-weight: 550; }

/* ---------------- 联系 ---------------- */

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--card);
  box-shadow: var(--shadow-sm);
}
.contact-line { margin: 0 0 8px; color: var(--muted); }
.contact-mail {
  font-size: 1.22rem;
  font-weight: 620;
  color: var(--text);
  word-break: break-all;
}
.contact-mail:hover { color: var(--accent); text-decoration: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------- 每周复盘 ---------------- */

.week-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.week-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}

.week-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.week-head h3 {
  font-size: 1.04rem;
  font-weight: 660;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.week-badge {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.week-range {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.week-spacer { flex: 1 1 auto; }
.week-mood {
  font-size: 1.2rem;
  line-height: 1;
}

.week-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.week-progress-track {
  width: 84px;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}
.week-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.week-progress-text {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.week-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.week-col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}
.week-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.week-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.week-col li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}
.week-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 700;
}
.week-col--done li::before {
  content: "✓";
  color: var(--accent);
}
.week-col--next li {
  color: var(--muted);
}
.week-col--next li::before {
  content: "○";
  color: var(--muted);
}
.week-empty {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  opacity: .7;
}

.week-card .tags { margin-top: 14px; }

.week-more { margin-top: 4px; }
.week-more > summary {
  cursor: pointer;
  list-style: none;
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--muted);
  user-select: none;
  transition: color .15s ease, border-color .15s ease;
}
.week-more > summary::-webkit-details-marker { display: none; }
.week-more > summary:hover { color: var(--accent); border-color: var(--accent); }
.week-more-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

/* ---------------- 留言板 ---------------- */

.gb-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.gb-form .field:last-of-type { margin-bottom: 4px; }

.gb-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.gb-status { font-size: 13.5px; color: var(--muted); }
.gb-status.is-ok { color: var(--accent); }
.gb-status.is-err { color: #e11d48; }

.gb-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gb-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}
.gb-item.is-pending {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.gb-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.gb-name { font-weight: 600; font-size: 14px; }
.gb-time { font-size: 12.5px; color: var(--muted); }
.gb-badge {
  font-size: 11.5px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.gb-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.gb-item-actions { display: flex; gap: 8px; margin-top: 10px; }
.gb-item-actions button {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.gb-item-actions button:hover { background: var(--bg-soft); }
.gb-item-actions button[data-gb-act="approve"]:hover { color: var(--accent); border-color: var(--accent); }
.gb-item-actions button[data-gb-act="delete"]:hover { color: #e11d48; border-color: #e11d48; }

.gb-empty {
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.gb-admin {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.gb-admin-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gb-admin-head strong { font-size: 14px; }
.gb-hint { font-size: 12.5px; color: var(--muted); margin-right: auto; }
.gb-admin .gb-list { margin-top: 12px; }

/* ---------------- 页脚 ---------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.footer-inner p { margin: 0; }

/* ---------------- 草稿提示条 ---------------- */

.draft-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  color: var(--muted);
}
.draft-banner[hidden] { display: none; }

/* ---------------- 编辑面板 ---------------- */

.editor {
  width: min(900px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.editor::backdrop {
  background: rgba(10, 14, 22, .55);
  backdrop-filter: blur(3px);
}
.editor[open] { display: flex; flex-direction: column; }

.editor-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--border);
}
.editor-head h2 { font-size: 1.15rem; font-weight: 680; }
.editor-hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 62ch;
}
.editor-head .icon-btn { margin-left: auto; flex: 0 0 auto; }

.tabs {
  display: flex;
  gap: 4px;
  padding: 10px 20px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  padding: 8px 14px 11px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.editor-body {
  padding: 20px 24px 26px;
  overflow-y: auto;
  flex: 1 1 auto;
  background: var(--bg-soft);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-top: 16px;
}
.form-card:first-child { margin-top: 0; }
.form-card h3 {
  font-size: .95rem;
  font-weight: 620;
  margin-bottom: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
.field > span { color: var(--muted); font-weight: 550; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { height: 40px; }
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field input[type="file"] { padding: 7px; font-size: 13px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-row > .field { margin-bottom: 12px; }

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.preview {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.preview-round { width: 56px; height: 56px; border-radius: 50%; }

/* 编辑面板里的条目列表 */
.list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.list-empty {
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  background: var(--card);
}
.list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.li-main { min-width: 0; flex: 1 1 auto; }
.li-main strong { font-size: 14px; font-weight: 600; display: block; }
.li-meta { font-size: 12px; color: var(--muted); }
.li-main p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.li-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.li-actions button {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.li-actions button:hover { background: var(--bg-soft); }
.li-actions button[data-act="delete"]:hover {
  color: #e11d48;
  border-color: #e11d48;
}

.editor-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-wrap: wrap;
}
.draft-state { font-size: 12.5px; color: var(--muted); margin-right: auto; }

/* ---------------- 进场动画 ---------------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .8, .24, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------- 小屏适配 ---------------- */

@media (max-width: 760px) {
  .nav { display: none; }
  .hero { padding: 56px 0 52px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .avatar { width: 96px; height: 96px; border-radius: 26px; font-size: 34px; }
  .section { padding: 46px 0; }
  .section-head { flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .week-card { padding: 18px; }
  .week-cols { grid-template-columns: 1fr; gap: 16px; }
  .week-head { align-items: flex-start; }
  .week-progress-track { width: 64px; }
  .editor { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .editor-head, .editor-body, .editor-foot { padding-left: 16px; padding-right: 16px; }
  .draft-banner { left: 12px; right: 12px; transform: none; border-radius: 14px; }
}
