/* 个人站 · 简洁阅读向 */
:root {
  --bg: #0f1419;
  --card: #1a2332;
  --muted: #8b9cb3;
  --text: #e8edf5;
  --accent: #3d8bfd;
  --accent2: #22c55e;
  --danger: #f87171;
  --border: #2a3647;
  --radius: 10px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --maxw: 880px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #1a2a44 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.75);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}
nav.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.95rem;
}
nav.nav a {
  color: var(--muted);
}
nav.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 2.5rem 0 1rem;
}
.hero h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.hero p.lead {
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}
.tagline {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.card h2,
.card h3 {
  margin-top: 0;
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.row-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  background: #243044;
  color: var(--muted);
  border: 1px solid var(--border);
}
.badge.accent {
  color: #fff;
  background: #2e4a7a;
  border-color: #3d5a8f;
}
.badge.ok {
  color: #b6f3c8;
  background: #143422;
  border-color: #1f4a2e;
}

.list-articles .item {
  margin-bottom: 0.5rem;
}
.list-articles h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.list-articles h3 a {
  color: var(--text);
  text-decoration: none;
}
.list-articles h3 a:hover {
  color: var(--accent);
}

footer.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
footer.site-footer a {
  color: var(--muted);
  text-decoration: underline;
}
footer.site-footer a:hover {
  color: var(--text);
}

form.compact .field {
  margin-bottom: 1rem;
}
form.compact label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0e1520;
  color: var(--text);
  font: inherit;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
textarea.tall {
  min-height: 360px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
}
.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #24314a;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.btn:hover {
  background: #2c3b58;
  text-decoration: none;
}
.btn.primary {
  background: #1e3a5f;
  border-color: #2d4f7a;
  color: #fff;
}
.btn.primary:hover {
  background: #24456f;
}
.btn.danger {
  background: #3f1e24;
  border-color: #5c2a32;
  color: #fecaca;
}
.btn.small {
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
}
.actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th,
table.data td {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.4rem;
  text-align: left;
  vertical-align: top;
}
table.data th {
  color: var(--muted);
  font-weight: 600;
}

.msg {
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.msg.ok {
  background: #102318;
  border: 1px solid #1f4a2e;
  color: #b6f3c8;
}
.msg.err {
  background: #2a1012;
  border: 1px solid #5c2a32;
  color: #fecaca;
}

.prose {
  max-width: 100%;
  overflow-wrap: break-word;
}
.prose p {
  margin: 0.75em 0;
}
.prose pre,
.prose code {
  font-family: Consolas, "Courier New", monospace;
  background: #0e1520;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.prose pre {
  padding: 0.75rem 1rem;
  overflow: auto;
}
.prose code {
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}
.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.5rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.layout-admin {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}
@media (max-width: 800px) {
  .layout-admin {
    grid-template-columns: 1fr;
  }
}
.admin-menu {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  align-self: start;
}
.admin-menu a {
  display: block;
  padding: 0.35rem 0;
  color: var(--muted);
}
.admin-menu a:hover,
.admin-menu a.active {
  color: var(--text);
  text-decoration: none;
}
.admin-content h1 {
  margin-top: 0;
  font-size: 1.4rem;
}

hr.soft {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.comment-block {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 0.5rem;
}
.comment-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child {
  border-bottom: 0;
}
