
:root {
  font-family: "Inter", "SF Pro Display", "PingFang TC", "Noto Sans CJK", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f172a 0%, #020617 55%, #000 100%);
  color: #e2e8f0;
  line-height: 1.55;
}
a { color: #7dd3fc; text-decoration: none; }
a:hover { text-decoration: underline; }
header {
  padding: 1.5rem 1rem 0.75rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 500;
}
.list-header h1 {
  color: #cbd5f5;
  font-weight: 400;
}
main {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
}
.note-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.2rem;
  box-shadow: 0 15px 30px rgba(2, 6, 23, 0.35);
}
.note-card:hover { transform: translateY(-2px); border-color: rgba(125, 211, 252, 0.4); }
.note-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #f8fafc;
  font-weight: 400;
}
.note-card time { font-size: 0.85rem; color: #94a3b8; }
.note-card p {
  margin: 0.35rem 0 0;
  color: #cbd5f5;
  font-size: 0.95rem;
}
.note-list { display: flex; flex-direction: column; gap: 0.2rem; }
.pager, .article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  gap: 1rem;
}
.pager span.disabled,
.article-nav span.disabled {
  color: #475569;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.pager a,
.article-nav a {
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.pager a:hover,
.article-nav a:hover { background: rgba(125, 211, 252, 0.2); }
.lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5f5;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.lang-toggle:hover { transform: translateY(-1px); border-color: rgba(125, 211, 252, 0.9); }
.lang-toggle[hidden] { display: none; }
.note-entry header h1 {
  font-size: 1rem;
  font-weight: 500;
  color: #e2e8f0;
}
.note-body {
  font-size: 1rem;
  color: #e2e8f0;
}
.note-body h1,
.note-body h2,
.note-body h3,
.note-body h4 { color: #f8fafc; }
.note-body pre,
.note-body code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  background: rgba(15, 118, 110, 0.2);
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
}
.note-body img {
  max-width: 100%;
  border-radius: 0.75rem;
  margin: 0.5rem 0;
  background: #020617;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 840px;
  margin: 0.8rem auto 1.2rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}
.search-bar input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 1rem;
  outline: none;
}
.search-bar button {
  border: none;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  color: #0b1224;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}
.search-icon {
  width: 18px;
  height: 18px;
  fill: #7dd3fc;
  flex-shrink: 0;
}
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(6px);
  z-index: 50;
  overflow-y: auto;
  padding: 1.25rem;
  display: none;
}
.search-modal[aria-hidden="false"] { display: block; }
.search-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.search-modal__back {
  border: 1px solid rgba(125, 211, 252, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5f5;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.search-modal__home {
  color: #7dd3fc;
  text-decoration: none;
}
.search-modal__home:hover { text-decoration: underline; }
.search-modal__body {
  width: min(840px, 100%);
  margin: 0 auto;
}
.search-results {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.search-results .note-card {
  margin: 0;
}
.search-results .note-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.4rem 0;
}
.search-meta {
  font-size: 0.85rem;
  color: #94a3b8;
}
.search-heat {
  margin-left: 0.35rem;
  letter-spacing: 1px;
  color: #cbd5f5;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0 2rem;
  color: #94a3b8;
  font-size: 0.95rem;
}
.attachments {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.7);
}
.attachments ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.attachments li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.attachments li:last-child { border-bottom: none; }
footer {
  text-align: center;
  padding: 1rem 1rem 2rem;
  color: #7dd3fc;
  font-size: 0.9rem;
}
.note-entry header {
  padding-bottom: 0;
  text-align: left;
}
.note-entry main {
  width: min(860px, 100%);
}
.note-meta-line {
  font-size: 0.95rem;
  color: #cbd5f5;
  margin: 0.6rem 0;
}
.live-clock {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color: #7dd3fc;
}
body.search-open { overflow: hidden; }
@media (max-width: 720px) {
  .meta-grid { flex-direction: column; gap: 0.75rem; }
  .note-card { padding: 1.15rem; }
}
