/* ============ 基础 ============ */
:root {
  --bg: #0a0b0d;
  --surface: #121417;
  --surface-2: #17191d;
  --line: #26292f;
  --text: #edeff2;
  --muted: #8b9199;
  --brand: #7cf0c0;
  --brand-ink: #06231a;
  --danger: #ff7a7a;
  --radius: 14px;
  --gap: 14px;
  --maxw: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 0.86em;
  color: var(--muted);
}

/* ============ 顶栏 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
  white-space: nowrap;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
}

.nav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  white-space: nowrap;
}
.who { color: var(--muted); }
.nav-admin { color: var(--brand); }
.inline-form { margin: 0; }
.link-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 4px 0;
}
.link-btn:hover { color: var(--text); }

/* ============ 容器 ============ */
.main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px) 72px;
}

/* ============ 首页 Hero ============ */
.hero { margin-bottom: clamp(36px, 6vw, 68px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.82); }
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(40px, 8.2vw, 92px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero-title span { display: block; }
.hero-title .dim { color: var(--muted); }
.hero-title .mark {
  color: var(--brand);
  text-shadow: 0 0 60px rgba(124, 240, 192, 0.28);
}

.hero-sub {
  max-width: 34em;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(32px, 5vw, 52px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #93f7cf; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #3a3f47; background: var(--surface); }
.btn-block { width: 100%; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 56px);
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.stats li { display: flex; align-items: baseline; gap: 9px; }
.stats .num { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.stats .lab { color: var(--muted); font-size: 13px; }
.stats .num.warn { color: var(--danger); }

/* ============ Bento 网格 ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(158px, auto);
  gap: var(--gap);
}

.card {
  --accent: var(--brand);
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 0.28;
  transition: opacity 0.18s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--surface-2);
  transform: translateY(-2px);
}
.card:hover::after { opacity: 1; }

.card.wide { grid-column: span 8; }
.card.tall { grid-row: span 2; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-index { color: var(--accent); font-weight: 700; }
.card-group { opacity: 0.7; }

.card h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 32em;
}
.card-state {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.card-soon { opacity: 0.62; }
.card-soon .card-state { color: var(--muted); }
.card-soon:hover { opacity: 0.92; }

/* ============ 登录 / 注册 ============ */
.auth-wrap {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.auth-card h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -0.03em; }
.auth-sub { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

.stack { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 13px; color: var(--muted); }
.field em { font-style: normal; font-size: 12px; color: #6d737b; }
.field input {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 0 0 3px rgba(124, 240, 192, 0.1);
}

.alert {
  padding: 10px 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 122, 122, 0.35);
  background: rgba(255, 122, 122, 0.08);
  border-radius: 10px;
  color: #ffb3b3;
  font-size: 14px;
}

.auth-foot { margin: 20px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--brand); }

/* ============ 占位页 ============ */
.soon {
  --accent: var(--brand);
  max-width: 620px;
  margin: clamp(30px, 8vh, 90px) auto 0;
}
.soon-tag {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.soon h1 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 54px); letter-spacing: -0.04em; }
.soon-desc { margin: 0 0 26px; color: var(--muted); }
.soon-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.soon-bar span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: var(--accent);
  animation: slide 3.2s ease-in-out infinite alternate;
}
@keyframes slide {
  from { transform: translateX(-20%); }
  to { transform: translateX(180%); }
}
.soon-meta { margin: 22px 0 18px; color: var(--muted); font-size: 14px; }
.soon-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ 远程 Chrome ============ */
.chrome-page {
  max-width: 720px;
  margin: clamp(30px, 7vh, 80px) auto 0;
}
.chrome-page h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 54px);
  letter-spacing: -0.04em;
}
.chrome-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}
.state-dot.on {
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.state-text { font-size: 13px; color: var(--muted); }
.chrome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 26px 0 22px;
}
.chrome-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.chrome-item span {
  display: block;
  margin-bottom: 5px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.chrome-item b { font-size: 14px; font-weight: 600; word-break: break-all; }
.chrome-note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.chrome-note h3 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.chrome-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============ 错误页 ============ */
.error-wrap {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.error-code {
  margin: 0;
  font-size: clamp(76px, 16vw, 150px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  line-height: 1;
}
.error-wrap h1 { margin: 6px 0 0; font-size: clamp(20px, 3vw, 28px); }
.error-hint { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* ============ 后台 ============ */
.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.admin-head h1 { margin: 0; font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.04em; }
.admin-sub { margin: 0; color: var(--muted); font-size: 14px; max-width: 24em; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gap);
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.admin-stats li {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-stats .num { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.admin-stats .lab { color: var(--muted); font-size: 13px; }

.admin-h2 { margin: 0 0 14px; font-size: 18px; letter-spacing: -0.02em; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
.table thead th {
  text-align: left;
  padding: 12px 16px;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.table tbody td { padding: 12px 16px; border-bottom: 1px solid #1c1f24; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: middle;
}
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
}
.pill-on { color: var(--brand); border-color: rgba(124, 240, 192, 0.3); background: rgba(124, 240, 192, 0.08); }
.pill-off { color: var(--muted); border-color: var(--line); }

/* ============ 页脚 ============ */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 40px) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .card { grid-column: span 6; }
  .card.wide { grid-column: span 12; }
  .card.tall { grid-row: span 1; }
}

@media (max-width: 620px) {
  .nav { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .nav-links { order: 3; width: 100%; }
  .card, .card.wide { grid-column: span 12; }
  .hero-title { letter-spacing: -0.03em; }
  .table { font-size: 13px; }
  .table thead th, .table tbody td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .soon-bar span { animation: none; }
  .card, .btn { transition: none; }
}

/* ============ 博客列表 ============ */
.muted { color: var(--muted); }

.blog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(26px, 4vw, 42px);
}
.blog-head h1 {
  margin: 0 0 6px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.blog-head .muted { margin: 0; font-size: 15px; }

.search {
  display: flex;
  gap: 8px;
  flex: 0 1 380px;
  min-width: 240px;
}
.search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search input:focus {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 0 0 3px rgba(124, 240, 192, 0.1);
}
.search .btn { padding: 10px 16px; font-size: 14px; }

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.post-list { display: flex; flex-direction: column; }

.post-item {
  position: relative;
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
  transition: padding-left 0.2s;
}
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 28px;
  width: 2px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0;
  transition: opacity 0.2s;
}
.post-item:hover { padding-left: 16px; }
.post-item:hover::before { opacity: 1; }

.post-meta-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.chip {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--text); border-color: #3a3f47; }
.chip-hot {
  color: var(--brand);
  border-color: rgba(124, 240, 192, 0.32);
  background: rgba(124, 240, 192, 0.07);
}

.post-title {
  display: inline-block;
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.28;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: background-size 0.25s, color 0.15s;
}
.post-title:hover { color: var(--brand); background-size: 100% 1px; }

.post-sum {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 46em;
}

.post-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.post-foot .tag-row { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.post-foot .tag-row a { color: var(--muted); }
.post-foot .tag-row a:hover { color: var(--brand); }

.empty {
  padding: 40px 0;
  color: var(--muted);
  font-size: 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.empty a { color: var(--brand); }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
}
.pager a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.pager a:hover { border-color: #3a3f47; background: var(--surface); }

.blog-side {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.side-block {
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.side-block h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.side-block ul { margin: 0; padding: 0; list-style: none; }
.side-block li + li { margin-top: 2px; }
.side-block li a,
.side-block p a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.side-block p { margin: 0; }
.side-block p + p { margin-top: 2px; }
.side-block li a span { color: var(--muted); font-size: 12px; }
.side-block li a:hover,
.side-block p a:hover { background: var(--surface-2); color: var(--brand); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.tag-cloud a:hover { color: var(--brand); border-color: rgba(124, 240, 192, 0.35); }

/* ============ 文章详情 ============ */
.article { max-width: 760px; }
.article-head { margin-bottom: clamp(24px, 4vw, 38px); }
.article-head h1 {
  margin: 12px 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.article-meta .edit-link { color: var(--brand); }

.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 30px;
  border: 1px solid var(--line);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.article-tags a { font-size: 13px; color: var(--muted); }
.article-tags a:hover { color: var(--brand); }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 34px;
}
.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
}
.article-nav a span { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.article-nav a:hover { border-color: #3a3f47; background: var(--surface-2); }
.article-nav .next { text-align: right; grid-column: 2; }

/* ============ Markdown 正文 ============ */
.prose { font-size: 16.5px; line-height: 1.82; color: #d8dce1; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text);
}
.prose h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 0.82em;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--brand);
  vertical-align: baseline;
}
.prose h3 {
  margin-top: 1.9em;
  margin-bottom: 0.5em;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.prose p { margin: 0; }
.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(124, 240, 192, 0.35);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { margin: 0; padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--brand); }

.prose img {
  width: auto;
  max-width: 100%;
  margin: 1.6em auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 2px solid var(--brand);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}
.prose blockquote p { margin: 0; }

.prose pre {
  margin: 1.6em 0;
  padding: 16px 18px;
  background: #0e1013;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
}
.prose pre code {
  color: #c8cdd4;
  background: none;
  padding: 0;
  font-size: inherit;
}
.prose code {
  padding: 2px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--brand);
  font-size: 0.86em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.6em 0;
}
.prose table th,
.prose table td {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.prose table th { background: var(--surface); color: var(--text); font-weight: 600; }

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ============ 编辑器 ============ */
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.row-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.row-actions a { color: var(--brand); }
.row-actions .danger { color: var(--danger); }

.editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 980px;
}
.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field-wide { grid-column: 1 / -1; }
.field select {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.field select:focus { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: 13px;
}
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

.editor-area {
  width: 100%;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.75;
  tab-size: 2;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.editor-area:focus {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 0 0 3px rgba(124, 240, 192, 0.08);
}

.editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

/* ============ 博客响应式 ============ */
@media (max-width: 1020px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .side-block { flex: 1 1 240px; }
}

@media (max-width: 620px) {
  .blog-head { align-items: stretch; }
  .search { flex: 1 1 100%; }
  .post-item:hover { padding-left: 0; }
  .post-item::before { display: none; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { grid-column: 1; text-align: left; }
  .editor-grid { grid-template-columns: 1fr; }
  .blog-side { flex-direction: column; }
}

/* ============ 公告栏 ============ */
.notice-head { margin-bottom: clamp(24px, 4vw, 40px); }
.notice-head h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.notice-head .muted { margin: 0; font-size: 15px; }

.notice-list { display: flex; flex-direction: column; gap: 18px; }

.notice-item {
  position: relative;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s;
}
.notice-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fbbf24;
  opacity: 0.55;
}
.notice-item:hover {
  border-color: rgba(251, 191, 36, 0.4);
  background: var(--surface-2);
}
.notice-item h2 {
  margin: 10px 0 14px;
  font-size: clamp(20px, 2.4vw, 25px);
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.notice-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.notice-id { margin-left: auto; opacity: 0.55; font-family: ui-monospace, Consolas, monospace; }

.prose-sm { font-size: 15px; line-height: 1.75; }
.prose-sm h2 { font-size: 19px; margin-top: 1.6em; }
.prose-sm h2::before { height: 0.75em; width: 4px; }

/* ============ 留言墙 ============ */
.wall-head { margin-bottom: clamp(22px, 4vw, 36px); }
.wall-head h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.wall-head .muted { margin: 0; font-size: 15px; }

.wall-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: clamp(30px, 5vw, 50px);
}
.wall-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.wall-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.field textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.65;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea:focus {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 0 0 3px rgba(124, 240, 192, 0.1);
}

.color-row { display: flex; gap: 10px; padding-top: 3px; }
.color-dot { position: relative; cursor: pointer; }
.color-dot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.color-dot span {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--note);
  transition: transform 0.15s, border-color 0.15s;
}
.color-dot input:checked + span {
  border-color: var(--text);
  transform: scale(1.08);
}
.color-mint { --note: #7cf0c0; }
.color-violet { --note: #a78bfa; }
.color-amber { --note: #fbbf24; }
.color-rose { --note: #f472b6; }
.color-sky { --note: #38bdf8; }

.alert-ok {
  border-color: rgba(124, 240, 192, 0.35);
  background: rgba(124, 240, 192, 0.08);
  color: #a8f5d4;
}

.wall-grid {
  columns: 3;
  column-gap: 14px;
}
.note {
  --note: var(--brand);
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--note) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--note) 30%, var(--line));
  border-radius: 12px;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s, border-color 0.2s;
}
.note:hover {
  transform: rotate(0deg) translateY(-2px);
  border-color: color-mix(in srgb, var(--note) 55%, var(--line));
}
.note-mint { --note: #7cf0c0; }
.note-violet { --note: #a78bfa; }
.note-amber { --note: #fbbf24; }
.note-rose { --note: #f472b6; }
.note-sky { --note: #38bdf8; }

.note-text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: #d8dce1;
  white-space: pre-wrap;
  word-break: break-word;
}
.note-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: color-mix(in srgb, var(--note) 55%, var(--muted));
}

/* ============ 审核列表 / 标签页 ============ */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tabs a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.tabs a span { margin-left: 4px; font-size: 12px; opacity: 0.7; }
.tabs a:hover { color: var(--text); border-color: #3a3f47; }
.tabs a.on {
  color: var(--brand);
  border-color: rgba(124, 240, 192, 0.4);
  background: rgba(124, 240, 192, 0.07);
}

.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.review-main { flex: 1; min-width: 0; }
.review-main header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}
.review-main p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #d8dce1;
  white-space: pre-wrap;
  word-break: break-word;
}
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.review-actions form { margin: 0; }
.danger-text { color: var(--danger); }
.danger-text:hover { color: #ff9a9a; }

.field.field-check { justify-content: flex-end; }
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0 0;
  font-size: 14px;
}
.check-row input { width: 16px; height: 16px; accent-color: var(--brand); }
.check-row em { font-style: normal; color: var(--muted); font-size: 13px; }

@media (max-width: 1020px) {
  .wall-grid { columns: 2; }
}

@media (max-width: 620px) {
  .wall-grid { columns: 1; }
  .wall-form-row { grid-template-columns: 1fr; }
  .review-item { flex-direction: column; gap: 12px; }
  .review-actions { width: 100%; }
}

/* ============ 论坛 ============ */
.forum-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 42px);
}
.forum-head h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.forum-head .muted { margin: 0; font-size: 15px; }
.forum-head .eyebrow a { color: var(--muted); }
.forum-head .eyebrow a:hover { color: var(--brand); }

.board-list {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.board-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
  padding: 22px 6px 22px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.2s, background 0.2s;
}
.board-row:last-child { border-bottom: 1px solid var(--line); }
.board-row:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(74, 222, 128, 0.05), transparent 65%); }

.board-no {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #343a41;
  transition: color 0.2s, -webkit-text-stroke-color 0.2s;
}
.board-row:hover .board-no { color: rgba(74, 222, 128, 0.18); -webkit-text-stroke-color: #4ade80; }

.board-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.board-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.board-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.board-meta b { color: var(--text); font-weight: 600; }
.board-last { opacity: 0.65; }
.board-arrow { color: var(--muted); font-size: 18px; transition: color 0.2s, transform 0.2s; }
.board-row:hover .board-arrow { color: #4ade80; transform: translateX(4px); }

.latest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.latest-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.latest-head h2 span { font-size: 13px; font-weight: 400; }
.latest-head .muted { font-size: 13px; }

.topic-rows { display: flex; flex-direction: column; }

.topic-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 6px 20px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.2s;
}
.topic-row:last-child { border-bottom: 1px solid var(--line); }
.topic-row:hover { padding-left: 12px; }
.topic-row-main { flex: 1; min-width: 0; }
.topic-meta-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.topic-row-title {
  display: inline-block;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  background-image: linear-gradient(#4ade80, #4ade80);
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: background-size 0.25s, color 0.15s;
}
.topic-row-title:hover { color: #4ade80; background-size: 100% 1px; }
.topic-row-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 9px;
  font-size: 13px;
  color: var(--muted);
}
.topic-row-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.topic-row-stats b { color: var(--text); font-weight: 600; }

.topic-head { align-items: flex-start; }
.topic-head h1 {
  margin: 12px 0 14px;
  font-size: clamp(26px, 4.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.topic-body { max-width: 820px; }

.topic-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 26px 0 clamp(30px, 5vw, 44px);
  font-size: 13px;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.12s;
}
.like-btn span { font-size: 15px; line-height: 1; }
.like-btn:hover { color: #ff8fa3; border-color: rgba(244, 114, 182, 0.4); }
.like-btn:active { transform: scale(0.97); }
.like-btn.on {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(244, 114, 182, 0.09);
}
.like-sm { padding: 3px 10px; font-size: 12px; border-radius: 8px; }
.like-sm span { font-size: 12px; }

.reply-block { margin-bottom: 34px; }
.reply-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.reply {
  padding: 18px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  scroll-margin-top: 90px;
}
.reply-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}
.floor {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 6px;
  padding: 1px 7px;
}
.reply-author { color: var(--text); font-size: 13px; font-weight: 600; }
.reply-like { margin-left: auto; }
.reply .prose-sm { font-size: 15px; }

.reply-form-block { max-width: 820px; }

.forum-admin {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}
.forum-admin .wall-form { margin-bottom: 0; }
.forum-admin-table { min-width: 0; }

@media (max-width: 900px) {
  .forum-admin { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .board-row { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .board-meta { grid-column: 2; }
  .board-arrow { display: none; }
  .topic-row { flex-direction: column; gap: 10px; }
  .topic-row-stats { flex-direction: row; align-items: center; gap: 16px; }
  .topic-row:hover { padding-left: 0; }
  .board-no { font-size: 24px; }
}

/* ============ 服务器状态 / 文件管理 ============ */
.alert-ok {
  border-color: rgba(124, 240, 192, 0.35);
  background: rgba(124, 240, 192, 0.08);
  color: #a9f7d6;
}

.sys-live { font-size: 12px; font-weight: 400; margin-left: 10px; }

.sys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--gap);
  margin-bottom: 40px;
}
.sys-card {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sys-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.sys-top b { font-size: 22px; color: var(--text); letter-spacing: -0.03em; }
.meter {
  height: 6px;
  margin: 12px 0 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.4s ease;
}
.meter span.warn { background: var(--danger); }
.sys-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crumbs { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--brand); }
.crumbs a:hover { color: #a9f7d6; }
.crumbs span { color: #5d636b; padding: 0 6px; }

.file-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.file-tools form { display: flex; gap: 8px; }
.file-tools input {
  width: 190px;
  padding: 7px 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.file-tools input:focus { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.file-name { color: var(--text); }
.file-name:hover { color: var(--brand); }
.file-name.is-dir { color: var(--brand); }
.file-note { margin: 12px 0 0; font-size: 13px; }

@media (max-width: 620px) {
  .file-tools form { flex: 1 1 100%; }
  .file-tools input { flex: 1; width: auto; }
  .sys-grid { grid-template-columns: minmax(0, 1fr); }
}
