/* ============ 基础 ============ */
: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,
.drive-page {
  max-width: 720px;
  margin: clamp(30px, 7vh, 80px) auto 0;
}
.chrome-page h1,
.drive-page h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 54px);
  letter-spacing: -0.04em;
}
.chrome-head,
.drive-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,
.drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 26px 0 22px;
}
.chrome-item,
.drive-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.chrome-item span,
.drive-item span {
  display: block;
  margin-bottom: 5px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.chrome-item b,
.drive-item b { font-size: 14px; font-weight: 600; word-break: break-all; }
.chrome-note,
.drive-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,
.drive-note h3 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.chrome-note p,
.drive-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============ 网盘分享 ============ */
.drive-page.drive-wide { max-width: 1040px; }

.drive-page .admin-h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 14px;
}
.drive-count { font-size: 12px; font-weight: 400; color: var(--muted); }
.drive-list-title { margin-top: 30px; }

.share-form {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr) auto;
  gap: 14px;
  align-items: end;
  padding: 20px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.share-form .field-path { grid-column: span 1; }
.share-form .share-submit { height: 44px; white-space: nowrap; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; min-width: 0; }
.field-row select {
  flex: none;
  width: 82px;
  padding: 11px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.share-created {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(124, 240, 192, 0.07);
  border: 1px solid rgba(124, 240, 192, 0.32);
  border-radius: var(--radius);
}
.share-created-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.share-created-main span { font-size: 12px; letter-spacing: 0.06em; color: var(--brand); }
.share-created code {
  font-size: 13px;
  color: var(--brand);
  word-break: break-all;
}

.share-table-wrap { overflow-x: auto; }
.share-path { display: block; font-size: 14px; word-break: break-all; }
.share-url {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: #6d737b;
  word-break: break-all;
}

/* ============ 错误页 ============ */
.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; }
  .share-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-form .field-path,
  .share-form .share-submit { grid-column: 1 / -1; }
  .share-form .share-submit { width: 100%; }
}

@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; }
  .share-form { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 18px; }
  .share-created { flex-wrap: wrap; }
}

@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; }
.file-upload input[type="file"] { width: 230px; padding: 5px 8px; font-size: 12px; }
.file-upload input[type="file"]::file-selector-button {
  margin-right: 8px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

@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); }
}

/* ============ 公开状态页 ============ */
.status-hero .hero-title { font-size: clamp(36px, 7vw, 76px); }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  margin-bottom: 40px;
}
.chart-card .chart-box {
  position: relative;
  height: 160px;
  margin: 12px 0 10px;
}

.status-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ============ AI 对话 ============ */
.ai-page { --accent: #22d3ee; }

.ai-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 30px;
  margin-bottom: clamp(18px, 3vw, 30px);
}
.ai-hero-main h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.ai-hero-main h1 .mark {
  color: var(--accent);
  text-shadow: 0 0 44px rgba(34, 211, 238, 0.35);
}
.ai-hero-main .eyebrow { margin-bottom: 14px; }
.ai-hero-main .pulse { background: var(--accent); }
.ai-hero-sub {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.ai-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 14px;
  height: calc(100dvh - 360px);
  min-height: 520px;
}

.ai-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ai-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ai-side-head .btn {
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.3);
}
.ai-conv-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ai-conv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ai-conv:hover { background: var(--surface-2); }
.ai-conv.on {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.ai-conv-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-conv-meta { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ai-conv-del {
  flex: 0 0 auto;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.ai-conv:hover .ai-conv-del { opacity: 1; }
.ai-conv-del:hover { color: var(--danger); }
.ai-side-empty { padding: 30px 14px; color: var(--muted); font-size: 13px; text-align: center; }
.ai-side-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.ai-chat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(34, 211, 238, 0.07), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ai-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.ai-chat-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-chat-model {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  white-space: nowrap;
}
.ai-chat-model .state-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.ai-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px clamp(14px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overscroll-behavior: contain;
}

.ai-welcome { margin: auto; max-width: 520px; text-align: center; padding: 16px 0; }
.ai-orb { position: relative; width: 74px; height: 74px; margin: 0 auto 22px; }
.ai-orb span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.45);
  animation: aiRing 3.2s ease-out infinite;
}
.ai-orb span:nth-child(2) { animation-delay: 1.05s; }
.ai-orb span:nth-child(3) { animation-delay: 2.1s; }
.ai-orb::after {
  content: "";
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #c8faff, #22d3ee 58%, #0e7490);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.55);
  animation: aiBreathe 4s ease-in-out infinite;
}
@keyframes aiRing {
  from { transform: scale(0.6); opacity: 0.75; }
  to { transform: scale(1.55); opacity: 0; }
}
@keyframes aiBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.9); }
}
.ai-welcome h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.03em; }
.ai-welcome p { margin: 0 auto 20px; max-width: 30em; color: var(--muted); font-size: 14px; }
.ai-suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ai-suggest button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ai-suggest button:hover {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.06);
}

.ai-row { display: flex; align-items: flex-start; gap: 12px; animation: aiIn 0.2s ease-out; }
.ai-row.user { flex-direction: row-reverse; }
@keyframes aiIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.ai-avatar {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.ai-avatar.ai {
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.35);
}

.ai-bubble {
  max-width: min(760px, 86%);
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.72;
  word-break: break-word;
}
.ai-row.user .ai-bubble {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  border-color: rgba(34, 211, 238, 0.28);
  border-top-right-radius: 4px;
}
.ai-row.assistant .ai-bubble { border-top-left-radius: 4px; }

.ai-bubble p { margin: 0 0 0.65em; }
.ai-bubble p:last-child { margin-bottom: 0; }
.ai-bubble h3 { margin: 0.8em 0 0.4em; font-size: 16px; letter-spacing: -0.01em; color: var(--text); }
.ai-bubble h3:first-child { margin-top: 0; }
.ai-bubble ul { margin: 0.3em 0 0.7em; padding-left: 1.3em; }
.ai-bubble li + li { margin-top: 0.25em; }
.ai-bubble li::marker { color: var(--accent); }
.ai-bubble blockquote {
  margin: 0.6em 0;
  padding: 8px 14px;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(34, 211, 238, 0.05);
  color: var(--muted);
}
.ai-bubble blockquote p { margin: 0; }
.ai-bubble code {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(34, 211, 238, 0.08);
  color: var(--accent);
  font-size: 0.86em;
}
.ai-bubble a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.35);
  text-underline-offset: 3px;
}
.ai-bubble a:hover { text-decoration-color: var(--accent); }
.ai-code {
  margin: 0.7em 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0f12;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
}
.ai-code code {
  padding: 0;
  border: 0;
  background: none;
  color: #c8cdd4;
  font-size: inherit;
}

.ai-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent);
  border-radius: 2px;
  animation: aiBlink 1s steps(2, start) infinite;
}
@keyframes aiBlink { 50% { opacity: 0; } }

.ai-think {
  margin-bottom: 10px;
  border: 1px dashed rgba(34, 211, 238, 0.3);
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.05);
  overflow: hidden;
}
.ai-think-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.ai-think-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.ai-think-dot.done { background: var(--brand); box-shadow: none; animation: none; }
.ai-think-title { flex: 1; }
.ai-think-more { font-size: 11.5px; color: rgba(34, 211, 238, 0.85); }
.ai-think-body { max-height: 240px; overflow-y: auto; padding: 0 14px 10px; }
.ai-think-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.72;
  color: color-mix(in srgb, var(--accent) 30%, var(--muted));
}
.ai-notice { align-self: center; font-size: 12px; color: var(--muted); }
.ai-error { color: #ffb3b3; }
.ai-dim { color: var(--muted); }

.ai-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px clamp(12px, 2vw, 18px);
  border-top: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.35);
}
.ai-composer [hidden] { display: none !important; }
.ai-composer textarea {
  flex: 1;
  min-height: 46px;
  max-height: 160px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.55;
  resize: none;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ai-composer textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}
.ai-composer textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.ai-composer .btn { height: 46px; border-radius: 12px; white-space: nowrap; }
.ai-composer .btn-primary { background: var(--accent); color: #04222a; }
.ai-composer .btn-primary:hover { background: #67e8f9; }

@media (max-width: 900px) {
  .ai-shell { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ai-chat { height: 68vh; min-height: 460px; }
  .ai-side { max-height: 200px; }
  .ai-conv-del { opacity: 1; }
}
@media (max-width: 620px) {
  .ai-hero-sub { display: none; }
  .ai-bubble { max-width: 100%; }
  .ai-avatar { flex-basis: 26px; width: 26px; height: 26px; font-size: 11px; }
  .ai-chat { height: 72vh; }
  .ai-side { max-height: 168px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-orb span, .ai-orb::after, .ai-cursor, .ai-think-dot, .ai-row { animation: none; }
}

/* ============ 视觉升级：深色氛围感 ============ */
:root {
  --glass-line: rgba(255, 255, 255, 0.075);
  --glass-bg: linear-gradient(180deg, rgba(24, 27, 31, 0.82) 0%, rgba(16, 18, 21, 0.9) 100%);
}
body { position: relative; }

/* 顶部光晕与背景网格 */
body::before {
  content: "";
  position: fixed;
  inset: -18% -10% auto -10%;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 62% at 22% 6%, rgba(124, 240, 192, 0.13), transparent 70%),
    radial-gradient(42% 58% at 78% 0%, rgba(34, 211, 238, 0.11), transparent 72%),
    radial-gradient(50% 50% at 50% 100%, rgba(99, 102, 241, 0.06), transparent 70%);
  filter: blur(2px);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(80% 55% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(80% 55% at 50% 0%, #000 0%, transparent 78%);
}

/* 浮动玻璃顶栏 */
.nav {
  top: 12px;
  width: min(calc(var(--maxw) + 16px), calc(100% - 20px));
  margin: 12px auto 0;
  padding: 10px clamp(12px, 2.2vw, 22px);
  background: linear-gradient(180deg, rgba(20, 23, 27, 0.72), rgba(12, 14, 17, 0.78));
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 18px 40px -26px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.brand-dot {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 30% 30%, #d8fff0, var(--brand) 55%, #2fb98b 100%);
  box-shadow:
    0 0 0 3px rgba(124, 240, 192, 0.12),
    0 0 18px rgba(124, 240, 192, 0.7);
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Hero 光晕与渐变标题 */
.main { position: relative; }
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  left: -8%;
  width: min(640px, 90%);
  height: 380px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 240, 192, 0.12), rgba(34, 211, 238, 0.05) 55%, transparent 75%);
}
.eyebrow {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--glass-line);
  backdrop-filter: blur(8px);
}
.hero-title .mark {
  color: transparent;
  background: linear-gradient(96deg, #a7f3d0 0%, var(--brand) 42%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 26px rgba(124, 240, 192, 0.22));
}
.hero-sub { color: color-mix(in srgb, var(--muted) 86%, #fff); }

/* 按钮 */
.btn {
  border-radius: 12px;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #a2f6d6 0%, #7cf0c0 45%, #45cfa4 100%);
  color: var(--brand-ink);
  box-shadow:
    0 10px 26px -14px rgba(124, 240, 192, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #b7f9e0 0%, #93f7cf 45%, #55ddb2 100%);
  box-shadow:
    0 16px 34px -14px rgba(124, 240, 192, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, 0.035);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

/* 统计数字：玻璃砖块 */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 0;
  border-top: 0;
}
.stats li {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.stats li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}
.stats li:hover { border-color: rgba(255, 255, 255, 0.13); }
.stats .num {
  font-size: clamp(22px, 2.4vw, 27px);
  font-variant-numeric: tabular-nums;
}
.stats .lab { font-size: 12.5px; }

/* Bento 卡片：玻璃、强调色氛围光、悬停上浮 */
.card {
  border-radius: 16px;
  background: var(--glass-bg);
  border-color: var(--glass-line);
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 18px 40px -34px rgba(0, 0, 0, 0.9);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%);
  transition: opacity 0.28s ease;
}
.card::after {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--glass-line));
  background: linear-gradient(180deg, rgba(30, 34, 39, 0.86), rgba(18, 20, 23, 0.92));
  transform: translateY(-3px);
  box-shadow:
    0 26px 50px -34px color-mix(in srgb, var(--accent) 45%, #000),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }

/* 系统指标卡与进度条 */
.sys-card {
  position: relative;
  background: var(--glass-bg);
  border-color: var(--glass-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 0.2s ease;
}
.sys-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}
.sys-card:hover { border-color: rgba(255, 255, 255, 0.14); }
.sys-top b { font-variant-numeric: tabular-nums; }
.meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}
.meter span {
  background: linear-gradient(90deg, #3fcf9f, var(--brand) 60%, #b6fbe3);
  box-shadow: 0 0 14px rgba(124, 240, 192, 0.45);
}
.meter span.warn {
  background: linear-gradient(90deg, #ff5e5e, var(--danger) 60%, #ffb0b0);
  box-shadow: 0 0 14px rgba(255, 122, 122, 0.45);
}

/* 状态页脚注与页脚 */
.status-note {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.foot {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #6d737b;
}

/* 选中与键盘聚焦 */
::selection { background: rgba(124, 240, 192, 0.28); color: #f4fffb; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 60%, transparent);
  outline-offset: 2px;
}

/* 入场动画 */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
}
.hero > * { animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero > *:nth-child(2) { animation-delay: 0.05s; }
.hero > *:nth-child(3) { animation-delay: 0.1s; }
.hero > *:nth-child(4) { animation-delay: 0.15s; }
.hero > *:nth-child(5) { animation-delay: 0.2s; }

.bento .card,
.sys-grid > *,
.chart-grid > * { animation: fadeIn 0.5s ease backwards; }
.bento .card:nth-child(2),
.sys-grid > *:nth-child(2),
.chart-grid > *:nth-child(2) { animation-delay: 0.05s; }
.bento .card:nth-child(3),
.sys-grid > *:nth-child(3) { animation-delay: 0.1s; }
.bento .card:nth-child(4),
.sys-grid > *:nth-child(4) { animation-delay: 0.15s; }
.bento .card:nth-child(5) { animation-delay: 0.2s; }
.bento .card:nth-child(6) { animation-delay: 0.25s; }
.bento .card:nth-child(n+7) { animation-delay: 0.3s; }

@media (max-width: 620px) {
  .nav {
    top: 8px;
    margin-top: 8px;
    width: calc(100% - 16px);
    padding: 10px 14px;
    border-radius: 14px;
  }
  .main { padding-top: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero::before { top: -100px; left: -30%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *,
  .bento .card,
  .sys-grid > *,
  .chart-grid > * { animation: none; }
  .card,
  .stats li,
  .btn { transition: none; }
}

/* ============ 整体改版：编辑式暗色风 ============ */
:root {
  --bg: #0a0a0b;
  --surface: #101113;
  --surface-2: #15161a;
  --line: #24251f;
  --text: #f4f1ea;
  --muted: #8b877d;
  --brand: #d5f26a;
  --brand-ink: #10130a;
  --danger: #ff6b5e;
  --radius: 8px;
  --maxw: 1180px;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* 背景：顶部青柠微光 + 点阵纸纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  height: auto;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% -12%, rgba(213, 242, 106, 0.08), transparent 72%),
    radial-gradient(40% 30% at 92% 4%, rgba(255, 178, 107, 0.05), transparent 70%);
  filter: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}

/* 顶栏：贴边细线，不再做玻璃胶囊 */
.nav {
  top: 0;
  width: 100%;
  margin: 0;
  padding: 16px max(clamp(20px, 4vw, 40px), calc((100% - var(--maxw)) / 2 + 32px));
  background: rgba(10, 10, 11, 0.78);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: none;
}
.brand {
  font-size: 16px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: none;
  transform: rotate(45deg);
}
.nav-links { gap: 2px; }
.nav-links a {
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 -1px 0 var(--brand);
}
.nav-admin { color: var(--brand); }
.who { color: var(--muted); font-size: 13px; }

/* 内容更宽松的留白 */
.main {
  padding: clamp(40px, 7vw, 92px) clamp(20px, 4vw, 40px) 90px;
}

/* Hero：抬头行 + 描边字 + 数据条 */
.hero {
  margin-bottom: clamp(44px, 7vw, 88px);
}
.hero::before {
  content: none;
}
.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0;
  padding: 0;
  gap: 10px;
  border: 0;
  background: none;
  border-radius: 0;
  backdrop-filter: none;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--brand);
  box-shadow: none;
  animation: pulse 2.4s ease-in-out infinite;
}
.hero-code {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(46px, 8.6vw, 98px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
}
.hero-title span { display: block; }
.hero-title .dim {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.34);
}
.hero-title .mark {
  color: transparent;
  background: linear-gradient(98deg, #efffa8 0%, var(--brand) 52%, #9fd63a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: none;
}
.hero-sub {
  max-width: 31em;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
}

/* 数据条：一条横线分区，而不是四块砖 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats li {
  position: static;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
  transition: none;
}
.stats li:first-child { padding-left: 0; }
.stats li:last-child { border-right: 0; }
.stats li::before { content: none; }
.stats li:hover { border-color: var(--line); }
.stats .num {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats .lab {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* 按钮：锐利、克制 */
.btn {
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: none;
}
.btn-primary:hover {
  background: #e2ff86;
  box-shadow: none;
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover {
  border-color: #3b3c33;
  background: rgba(255, 255, 255, 0.035);
}

/* 区块标题 */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text);
}
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: var(--brand);
  vertical-align: 1px;
}
.section-sub {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}
.admin-h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.admin-h2::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--brand);
  align-self: center;
}
.admin-h2 .sys-live {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* 卡片：数据表式，编号作为背景幽灵数字 */
.card {
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 22px 16px;
  isolation: auto;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.card::before { content: none; }
.card::after {
  inset: 0 0 auto 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  opacity: 0.18;
  transition: opacity 0.18s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: none;
}
.card:hover::after { opacity: 1; }
.card-top {
  justify-content: flex-start;
  margin-bottom: 30px;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.card-index {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 62px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--accent);
  opacity: 0.1;
  transition: opacity 0.18s ease;
}
.card:hover .card-index { opacity: 0.24; }
.card-group {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 1;
}
.card h2 {
  margin: 0 0 9px;
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.card-state {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 500;
}
.card:hover .card-state { color: var(--accent); }
.card-soon { opacity: 0.55; }
.card-soon:hover { opacity: 0.9; }
.card-soon::after { opacity: 0.08; }

/* 系统指标：细线面板 + 细进度条 */
.sys-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 44px;
}
.sys-card {
  position: relative;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.18s ease;
}
.sys-card::before {
  inset: 0 auto auto 0;
  width: 34px;
  height: 2px;
  background: var(--brand);
  opacity: 0.55;
}
.sys-card:hover { border-color: #34352d; }
.sys-top {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.sys-top b {
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.meter {
  height: 4px;
  margin: 15px 0 10px;
  background: #1c1d18;
  box-shadow: none;
}
.meter span {
  background: var(--brand);
  box-shadow: none;
}
.meter span.warn {
  background: var(--danger);
  box-shadow: none;
}
.sys-meta {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
}

/* 状态页图表 */
.chart-grid { gap: 12px; margin-bottom: 44px; }
.chart-card { padding: 18px 20px 14px; }
.chart-card .chart-box { height: 168px; margin: 14px 0 8px; }

/* 网络吞吐：占满整行，下行 / 上行双曲线 */
.chart-wide { grid-column: 1 / -1; }
.chart-net .chart-box { height: 210px; }
.net-read {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.net-read b {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.net-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  font-style: normal;
}
.net-dot-down { background: #d5f26a; }
.net-dot-up { background: #ffb26b; }

/* 状态页脚注 / 页脚 */
.status-note {
  margin: 30px 0 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.9;
  color: var(--muted);
}
.foot {
  border-top: 1px solid var(--line);
  color: #6f6c64;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding-top: 22px;
}

/* 登录/注册与其它面板统一为锐利面板 */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}
.alert { border-radius: 6px; }

/* 选中与聚焦 */
::selection { background: var(--brand); color: var(--brand-ink); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* 入场动效 */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
}
.hero > * { animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero > *:nth-child(2) { animation-delay: 0.06s; }
.hero > *:nth-child(3) { animation-delay: 0.12s; }
.hero > *:nth-child(4) { animation-delay: 0.18s; }
.hero > *:nth-child(5) { animation-delay: 0.24s; }

.bento .card,
.sys-grid > *,
.chart-grid > * { animation: fadeIn 0.45s ease backwards; }
.bento .card:nth-child(2),
.sys-grid > *:nth-child(2),
.chart-grid > *:nth-child(2) { animation-delay: 0.04s; }
.bento .card:nth-child(3),
.sys-grid > *:nth-child(3) { animation-delay: 0.08s; }
.bento .card:nth-child(4),
.sys-grid > *:nth-child(4) { animation-delay: 0.12s; }
.bento .card:nth-child(5) { animation-delay: 0.16s; }
.bento .card:nth-child(6) { animation-delay: 0.2s; }
.bento .card:nth-child(n+7) { animation-delay: 0.24s; }

@media (max-width: 760px) {
  .nav {
    padding: 14px 18px;
    border-radius: 0;
    margin: 0;
    width: 100%;
  }
  .nav-links a { padding: 6px 9px; }
  .hero-code { display: none; }
  .hero-head { margin-bottom: 24px; }
  .hero-title { font-size: clamp(42px, 12vw, 68px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li { padding: 15px 14px; border-bottom: 1px solid var(--line); }
  .stats li:nth-child(odd) { padding-left: 0; }
  .stats li:nth-child(even) { border-right: 0; }
  .stats li:nth-last-child(-n + 2) { border-bottom: 0; }
  .stats .num { font-size: 28px; }
  .main { padding-top: 30px; }
  .card { padding: 18px 18px 14px; }
  .card-index { font-size: 52px; top: 8px; right: 12px; }
  .chart-net .sys-top { flex-wrap: wrap; row-gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *,
  .bento .card,
  .sys-grid > *,
  .chart-grid > * { animation: none; }
  .card,
  .btn { transition: none; }
}

/* ============ 站点账号统一登录（授权确认页） ============ */
.consent-who {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 14px;
  color: var(--muted);
}
.consent-who b { color: var(--text); }
.consent-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.consent-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 14px;
  color: var(--text);
}
.consent-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; }

/* ============ 资源库 ============ */
.res-hero { margin-bottom: clamp(28px, 4vw, 44px); }
.res-title {
  margin: 0 0 10px;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.res-sub { margin: 0 0 24px; color: var(--muted); font-size: 15px; }

.res-search {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-bottom: 18px;
}
.res-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: var(--surface);
  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;
}
.res-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.08);
}
.res-search .btn { padding: 0 26px; }

.res-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.res-chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.res-chip:hover { color: var(--text); border-color: #3a3f47; }
.res-chip.on {
  color: var(--brand-ink);
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
}
.res-chip span { margin-left: 6px; font-size: 11px; opacity: 0.65; }
.res-filter-sep { width: 1px; height: 16px; margin: 0 6px; background: var(--line); }

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--gap);
}

.res-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.res-card:hover {
  border-color: #3a3f47;
  background: var(--surface-2);
  transform: translateY(-2px);
}

.res-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #14161a;
}
.res-cover img { width: 100%; height: 100%; object-fit: cover; }
.res-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #15181c, #0e1013);
  font-size: 54px;
  font-weight: 800;
  color: #2c3038;
}
.res-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(10, 11, 13, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: var(--text);
  backdrop-filter: blur(6px);
}
.res-pin {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--brand);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-ink);
}

.res-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}
.res-card-body h2 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.res-card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.res-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: #6d737b;
}
.res-meta b { font-weight: 500; }

.res-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
.res-crumb a:hover { color: var(--brand); }
.res-crumb b { color: var(--text); font-weight: 500; }

.res-detail { margin-bottom: 46px; }
.res-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
  gap: clamp(20px, 4vw, 44px);
  padding-bottom: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.res-detail-text h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.res-detail-sum { margin: 0; max-width: 38em; color: var(--muted); font-size: 15.5px; }
.res-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}
.res-facts li { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.res-facts li b { font-size: 14px; font-weight: 600; color: var(--text); }

.res-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.res-dl-btn { padding: 13px 28px; }
.res-dl-note { font-size: 12.5px; color: var(--muted); }

.res-detail-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #14161a;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.res-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.res-detail-cover .res-cover-empty { font-size: 76px; }

.res-body { max-width: 860px; margin-top: clamp(24px, 4vw, 40px); }

/* 后台资源管理 */
.admin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.admin-search input {
  flex: 0 1 280px;
  min-width: 0;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.admin-search input:focus { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }

.admin-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 38px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cover-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cover-preview { margin-top: 10px; }
.cover-preview img {
  max-width: 260px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.field.field-check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 22px;
}
.field.field-check input { width: 16px; height: 16px; accent-color: var(--brand); }

@media (max-width: 820px) {
  .res-detail-head { grid-template-columns: minmax(0, 1fr); }
  .res-detail-cover { order: -1; }
}

/* ============ 后台：站点入口 / 用户管理 ============ */
.site-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 0 0 36px;
}
.site-links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.site-links a:hover { border-color: #3a3f47; background: var(--surface-2); }
.site-links a b { font-weight: 600; font-size: 15px; }
.site-links a small { color: var(--muted); font-size: 12px; word-break: break-all; }

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
  margin: 0 0 36px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.admin-form-actions { display: flex; align-items: flex-end; }
.admin-form-actions .btn { width: 100%; }

.admin-h2-gap { margin-top: 36px; }

.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;
  appearance: none;
}
.field select: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-ok {
  border-color: rgba(124, 240, 192, 0.35);
  background: rgba(124, 240, 192, 0.08);
  color: var(--brand);
}

.pw-form { display: flex; gap: 8px; align-items: center; }
.input-sm {
  width: 130px;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.input-sm:focus { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
