/* Note —— note.ms 风格极简主题 */
:root {
  --bg: #ebeef2; --card: #fff; --text: #333; --muted: #8a919c;
  --accent: #ff6b9d; --accent-dark: #f04e86; --border: #dde2e9;
  --err: #e05c5c; --ok: #3cb371;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  display: flex; flex-direction: column; min-height: 100vh;
}
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; gap: 12px;
}
.brand { font-weight: 800; color: var(--text); text-decoration: none; font-size: 17px; }
.crumb { font-size: 12px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.save-status { font-size: 12px; color: var(--muted); margin-right: 4px; }
.save-status.ok { color: var(--ok); }
.save-status.err { color: var(--err); }

.btn {
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  padding: 7px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; }

.hero { text-align: center; padding: 64px 20px 40px; }
.logo { font-size: 44px; font-weight: 800; }
.tagline { color: var(--muted); margin: 14px 0 30px; font-size: 15px; }
.goto {
  display: flex; align-items: center; justify-content: center;
  max-width: 560px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 6px 6px 6px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.goto-prefix { color: var(--muted); font-size: 14px; white-space: nowrap; }
.goto input {
  flex: 1; border: 0; outline: 0; padding: 10px 8px; font-size: 15px;
  background: transparent; color: var(--text); min-width: 0;
}
.home-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }

.recent { max-width: 640px; margin: 10px auto 40px; padding: 0 20px; width: 100%; }
.recent h2 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.recent ul { list-style: none; }
.recent li { margin-bottom: 6px; }
.recent a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; text-decoration: none; color: var(--text); transition: all .15s;
}
.recent a:hover { border-color: var(--accent); }
.recent-path { font-weight: 600; font-size: 14px; word-break: break-all; }
.recent-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.muted { color: var(--muted); }
.muted-link { color: var(--muted); }

.note-wrap { flex: 1; display: flex; flex-direction: column; padding: 16px 18px; max-width: 1000px; width: 100%; margin: 0 auto; }
.note-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.note-path { font-size: 18px; word-break: break-all; }
.note-meta { color: var(--muted); font-size: 12px; }
#editor {
  flex: 1; min-height: 62vh; resize: none; outline: none;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  color: var(--text); padding: 18px; font-size: 15px; line-height: 1.7;
  font-family: "SF Mono", Consolas, "Courier New", monospace;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
#editor:focus { border-color: var(--accent); }

.footer { text-align: center; padding: 18px; color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .logo { font-size: 32px; }
  .goto { flex-wrap: wrap; padding: 10px; }
  .goto input { width: 100%; }
  .topbar { padding: 8px 12px; }
  #btnCopy { display: none; }
}
