﻿/* ============================================================
   四明论坛 · NEO UI
   一套独立于旧版纸张界面的现代化二次元 BBS 主题
   保留：校徽、BBS、像素字、校园论坛的旧记忆
   ============================================================ */

:root {
  --neo-bg: #070b14;
  --neo-bg-2: #0b1220;
  --neo-panel: rgba(15, 23, 42, 0.78);
  --neo-panel-solid: #101827;
  --neo-paper: #f4ead7;
  --neo-paper-2: #fffaf0;
  --neo-ink: #141b2b;
  --neo-line: rgba(255, 255, 255, 0.11);
  --neo-line-strong: rgba(255, 255, 255, 0.18);
  --neo-text: #edf4ff;
  --neo-muted: #96a5bb;
  --neo-cyan: #6ee7ff;
  --neo-blue: #7fb8ff;
  --neo-pink: #ff9ac8;
  --neo-violet: #b69cff;
  --neo-gold: #f5d58b;
  --neo-green: #8de4b5;
  --neo-danger: #ff8b9a;
  --neo-radius: 14px;
  --neo-shadow: 0 24px 65px -28px rgba(0, 0, 0, 0.9);
  --neo-font-display: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', ui-rounded, system-ui, sans-serif;
  --neo-font-pixel: 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--neo-text);
  background:
    radial-gradient(ellipse 60% 45% at 12% -5%, rgba(110, 231, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 40% at 92% 4%, rgba(255, 154, 200, 0.13), transparent 62%),
    radial-gradient(ellipse 50% 45% at 55% 100%, rgba(182, 156, 255, 0.09), transparent 65%),
    linear-gradient(180deg, #070b14 0%, #08101c 48%, #070b14 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 170, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 170, 235, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 10%, transparent 80%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.6px, transparent 0.8px);
  background-size: 6px 6px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
a { color: var(--neo-cyan); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden], .hidden { display: none !important; }
::selection { background: rgba(110, 231, 255, 0.25); color: #fff; }

.neo-shell {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: min(1400px, 100%); min-height: 100vh;
  margin: 0 auto;
}

/* ===== 顶部 ===== */
.neo-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 20px;
  min-height: 68px; padding: 10px 28px;
  border-bottom: 1px solid var(--neo-line);
  background: rgba(7, 11, 20, 0.74);
  backdrop-filter: blur(18px) saturate(1.35);
}
.neo-brand { display: flex; align-items: center; gap: 11px; flex: none; color: inherit; }
.neo-brand-logo {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.07), 0 0 24px rgba(255, 154, 200, 0.18);
}
.neo-brand-name { display: block; font-family: var(--neo-font-display); font-size: 23px; line-height: 1; letter-spacing: 0.04em; }
.neo-brand-sub {
  display: block; margin-top: 4px; color: var(--neo-muted);
  font-family: var(--neo-font-pixel); font-size: 7px; letter-spacing: 0.17em;
}
.neo-brand-sub b { color: var(--neo-cyan); font-weight: 400; }
.neo-nav { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.neo-nav-link {
  position: relative; padding: 7px 12px; border-radius: 8px;
  color: var(--neo-muted); font-size: 12.5px; transition: 150ms;
}
.neo-nav-link:hover { color: var(--neo-text); background: rgba(255, 255, 255, 0.05); }
.neo-nav-link.active { color: var(--neo-cyan); background: rgba(110, 231, 255, 0.09); }
.neo-nav-link.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 1px; background: linear-gradient(90deg, var(--neo-cyan), var(--neo-pink));
}
button.neo-nav-link { border: 0; background: transparent; font: inherit; cursor: pointer; }
.neo-header-spacer { flex: 1; }
.neo-header-label {
  color: var(--neo-muted); font-family: var(--neo-font-pixel);
  font-size: 8px; letter-spacing: 0.13em; white-space: nowrap;
}
.neo-user { display: flex; align-items: center; gap: 8px; margin-left: 9px; }
.neo-user-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 31px; height: 31px; border-radius: 50%;
  border: 1px solid rgba(110, 231, 255, 0.35);
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.22), rgba(255, 154, 200, 0.22));
  color: #fff; font-weight: 700; font-size: 11px;
}
.neo-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 29px; height: 29px; padding: 0;
  border: 1px solid var(--neo-line); border-radius: 7px;
  background: transparent; color: var(--neo-muted); font-size: 14px;
}
.neo-icon-btn:hover { border-color: rgba(255, 154, 200, 0.45); color: var(--neo-pink); }

/* ===== 主体 ===== */
.neo-main { flex: 1 0 auto; width: 100%; padding: 24px 28px 40px; }
.neo-view { display: none; }
.neo-view.active { display: block; animation: neoViewIn 260ms ease-out; }
@keyframes neoViewIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.neo-hero {
  position: relative; overflow: hidden;
  margin-bottom: 18px; padding: 30px 32px;
  border: 1px solid var(--neo-line); border-radius: var(--neo-radius);
  background:
    radial-gradient(ellipse 40% 70% at 85% 25%, rgba(255, 154, 200, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 80% at 70% 100%, rgba(110, 231, 255, 0.13), transparent 64%),
    linear-gradient(120deg, rgba(20, 32, 54, 0.92), rgba(12, 18, 32, 0.86));
  box-shadow: var(--neo-shadow);
}
.neo-hero::before {
  content: ''; position: absolute; right: -50px; top: -80px;
  width: 290px; height: 290px; border: 1px solid rgba(110, 231, 255, 0.18); border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(110, 231, 255, 0.025), 0 0 0 52px rgba(255, 154, 200, 0.025);
}
.neo-hero::after {
  content: 'アニメ / セイシュン / BBS';
  position: absolute; right: 29px; bottom: 16px;
  color: rgba(255, 255, 255, 0.17); font-family: var(--neo-font-pixel);
  font-size: 10px; letter-spacing: 0.18em;
}
.neo-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.neo-kicker {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 9px;
  color: var(--neo-cyan); font-family: var(--neo-font-pixel);
  font-size: 8px; letter-spacing: 0.17em;
}
.neo-kicker::before { content: ''; width: 17px; height: 1px; background: var(--neo-cyan); box-shadow: 0 0 9px var(--neo-cyan); }
.neo-hero-title {
  margin: 0; color: #fff;
  font-family: var(--neo-font-display); font-size: clamp(30px, 4vw, 50px);
  font-weight: 400; line-height: 1.14; letter-spacing: 0.02em;
}
.neo-hero-title em {
  color: transparent; font-style: normal;
  background: linear-gradient(100deg, var(--neo-cyan), var(--neo-pink) 65%, var(--neo-violet));
  -webkit-background-clip: text; background-clip: text;
}
.neo-hero-desc { max-width: 590px; margin: 10px 0 0; color: #b8c8dd; font-size: 13px; }
.neo-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.neo-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border: 1px solid var(--neo-line); border-radius: 4px;
  background: rgba(255, 255, 255, 0.035); color: #c6d7eb;
  font-family: var(--neo-font-pixel); font-size: 8px; letter-spacing: 0.08em;
}
.neo-badge.pink { border-color: rgba(255, 154, 200, 0.28); color: var(--neo-pink); }
.neo-badge.gold { border-color: rgba(245, 213, 139, 0.25); color: var(--neo-gold); }
.neo-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.neo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 18px; align-items: start; }
.neo-feed-column, .neo-side-column { display: grid; gap: 16px; min-width: 0; }

.neo-panel {
  overflow: hidden; border: 1px solid var(--neo-line); border-radius: var(--neo-radius);
  background: var(--neo-panel); box-shadow: var(--neo-shadow); backdrop-filter: blur(15px);
}
.neo-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--neo-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}
.neo-panel-title { display: flex; align-items: center; gap: 7px; color: #eaf4ff; font-size: 13px; font-weight: 700; }
.neo-panel-title::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--neo-cyan); box-shadow: 0 0 9px var(--neo-cyan);
}
.neo-panel-en { color: #64778e; font-family: var(--neo-font-pixel); font-size: 8px; letter-spacing: 0.14em; }
.neo-panel-body { padding: 14px; }
.neo-panel-body.flush { padding: 0; }

.neo-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--neo-line);
  color: var(--neo-muted); font-size: 11px;
}
.neo-toolbar .neo-count b { color: var(--neo-cyan); }
.neo-toolbar-actions { display: flex; gap: 6px; }

.neo-post {
  position: relative; padding: 15px 16px 13px 19px;
  border-bottom: 1px solid var(--neo-line); transition: background 160ms;
}
.neo-post:last-child { border-bottom: 0; }
.neo-post:hover { background: rgba(110, 231, 255, 0.035); }
.neo-post::before {
  content: ''; position: absolute; left: 8px; top: 18px; bottom: 18px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--neo-cyan), var(--neo-violet), var(--neo-pink));
  opacity: 0.6;
}
.neo-post:nth-child(3n+2)::before { background: linear-gradient(180deg, var(--neo-pink), var(--neo-gold)); }
.neo-post:nth-child(3n+3)::before { background: linear-gradient(180deg, var(--neo-green), var(--neo-cyan)); }
.neo-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 4px; }
.neo-tag {
  display: inline-flex; align-items: center; padding: 1px 5px; border: 1px solid rgba(110, 231, 255, 0.22);
  border-radius: 3px; color: var(--neo-cyan); font-family: var(--neo-font-pixel); font-size: 7px; letter-spacing: 0.1em;
}
.neo-time { color: #72839a; font-family: var(--neo-font-pixel); font-size: 8px; }
.neo-post h3 { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 650; }
.neo-post h3 a { color: #f0f7ff; }
.neo-post h3 a:hover { color: var(--neo-cyan); }
.neo-excerpt {
  display: -webkit-box; margin: 5px 0 0; overflow: hidden;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  color: #9fb0c5; font-size: 12px; line-height: 1.7;
}
.neo-post-footer { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: #8192a9; font-size: 10px; }
.neo-author { color: #a9bed7; }
.neo-author:hover { color: var(--neo-cyan); }
.neo-dot { color: #405067; }
.neo-read { margin-left: auto; color: var(--neo-cyan); font-size: 10.5px; }

.neo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 0 13px; border: 1px solid var(--neo-line); border-radius: 8px;
  background: rgba(255, 255, 255, 0.04); color: #dcebff; font-size: 12px;
  text-decoration: none; transition: 160ms;
}
.neo-btn:hover { border-color: rgba(110, 231, 255, 0.42); background: rgba(110, 231, 255, 0.08); color: #fff; }
.neo-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.neo-btn-primary {
  border-color: rgba(110, 231, 255, 0.4);
  background: linear-gradient(120deg, rgba(65, 180, 220, 0.9), rgba(126, 114, 224, 0.9));
  color: #fff; box-shadow: 0 8px 24px -13px rgba(110, 231, 255, 0.7);
}
.neo-btn-primary:hover { filter: brightness(1.12); background: linear-gradient(120deg, rgba(65, 180, 220, 0.95), rgba(126, 114, 224, 0.95)); }
.neo-btn-ghost { border-color: var(--neo-line); background: transparent; color: #b7c8dc; }
.neo-btn-danger { border-color: rgba(255, 139, 154, 0.32); background: rgba(255, 139, 154, 0.08); color: var(--neo-danger); }
.neo-btn-danger:hover { border-color: rgba(255, 139, 154, 0.58); background: rgba(255, 139, 154, 0.15); }
.neo-btn-sm { min-height: 28px; padding: 0 9px; font-size: 10.5px; }

.neo-side-card .neo-panel-body { padding: 13px; }
.neo-side-card h3 { margin: 0; color: #eaf4ff; font-size: 13px; }
.neo-side-card p { margin: 6px 0 0; color: #8294aa; font-size: 11px; line-height: 1.75; }
.neo-side-stat { display: flex; gap: 10px; margin-top: 12px; }
.neo-side-stat div { flex: 1; padding: 8px; border: 1px solid var(--neo-line); border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.neo-side-stat b { display: block; color: var(--neo-cyan); font-family: var(--neo-font-pixel); font-size: 16px; font-weight: 400; }
.neo-side-stat span { color: #70829a; font-size: 9px; }
.neo-link-list { display: grid; gap: 2px; margin: 8px 0 0; padding: 0; list-style: none; }
.neo-link-list a {
  display: flex; align-items: center; gap: 7px; padding: 7px 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055); color: #aebfd2; font-size: 11px;
}
.neo-link-list li:last-child a { border-bottom: 0; }
.neo-link-list a:hover { color: var(--neo-cyan); }
.neo-link-list small { margin-left: auto; color: #64778e; font-family: var(--neo-font-pixel); font-size: 7px; }

.neo-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 260px; padding: 28px 18px; text-align: center; color: #8294aa; font-size: 12px;
}
.neo-state-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 10px;
  border: 1px solid var(--neo-line); border-radius: 12px;
  background: rgba(110, 231, 255, 0.055); color: var(--neo-cyan);
}
.neo-state-icon svg { width: 19px; height: 19px; }
.neo-state-title { margin: 0; color: #dceaff; font-size: 13px; font-weight: 650; }
.neo-state-desc { margin: 4px 0 0; color: #72849c; font-size: 11px; }
.neo-state-actions { margin-top: 12px; }
.neo-skeleton { padding: 14px; }
.neo-sk-row { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--neo-line); }
.neo-sk-row:last-child { border-bottom: 0; }
.neo-sk-lines { flex: 1; display: grid; gap: 7px; }
.neo-sk-line { height: 9px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.11), rgba(255,255,255,.055)); background-size: 200% 100%; animation: neoShimmer 1.6s infinite; }
.neo-sk-line.short { width: 43%; }
.neo-sk-line.tiny { width: 22%; height: 7px; }
@keyframes neoShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== 个人主页 / 帖子管理 ===== */
.neo-profile-hero {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; gap: 17px;
  margin-bottom: 16px; padding: 22px 24px;
  border: 1px solid var(--neo-line); border-radius: var(--neo-radius);
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 154, 200, 0.13), transparent 36%),
    radial-gradient(circle at 8% 80%, rgba(110, 231, 255, 0.13), transparent 38%),
    linear-gradient(120deg, rgba(18, 30, 50, 0.92), rgba(11, 17, 30, 0.88));
  box-shadow: var(--neo-shadow);
}
.neo-profile-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; flex: none; border-radius: 50%;
  border: 1px solid rgba(110, 231, 255, 0.4);
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.19), rgba(255, 154, 200, 0.19));
  color: #fff; font-family: var(--neo-font-display); font-size: 29px;
  box-shadow: 0 0 0 6px rgba(110, 231, 255, 0.055), 0 0 35px rgba(255, 154, 200, 0.15);
}
.neo-profile-copy { min-width: 0; flex: 1; }
.neo-profile-kicker { margin: 0; color: var(--neo-cyan); font-family: var(--neo-font-pixel); font-size: 8px; letter-spacing: 0.15em; }
.neo-profile-name { margin: 3px 0 0; color: #fff; font-family: var(--neo-font-display); font-size: 30px; font-weight: 400; line-height: 1.2; }
.neo-profile-meta { margin: 4px 0 0; color: #91a3ba; font-size: 11px; }
.neo-profile-stats { display: flex; gap: 18px; margin-left: auto; text-align: right; }
.neo-profile-stats b { display: block; color: var(--neo-cyan); font-family: var(--neo-font-pixel); font-size: 20px; font-weight: 400; }
.neo-profile-stats span { color: #7789a0; font-size: 9px; }

.neo-manage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.neo-manage-note { margin: 0; color: #71839a; font-size: 10px; }
.neo-manage-list { display: block; }
.neo-manage-row {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-bottom: 1px solid var(--neo-line);
}
.neo-manage-row:last-child { border-bottom: 0; }
.neo-manage-index { width: 22px; flex: none; color: #53657d; font-family: var(--neo-font-pixel); font-size: 9px; }
.neo-manage-main { min-width: 0; flex: 1; }
.neo-manage-main h3 { margin: 0; overflow: hidden; color: #eaf4ff; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.neo-manage-main p { margin: 2px 0 0; color: #71839a; font-size: 10px; }
.neo-status {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px;
  border: 1px solid rgba(141, 228, 181, 0.25); border-radius: 4px;
  color: var(--neo-green); font-family: var(--neo-font-pixel); font-size: 8px;
}
.neo-status::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.neo-manage-actions { display: flex; gap: 5px; flex: none; }

/* ===== 文章 ===== */
.neo-article-shell { max-width: 900px; margin: 0 auto; }
.neo-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px; color: #899bb0; font-size: 11px; }
.neo-back:hover { color: var(--neo-cyan); }
.neo-article {
  padding: 28px 30px;
  border: 1px solid var(--neo-line); border-radius: var(--neo-radius);
  background: linear-gradient(180deg, rgba(17, 27, 46, 0.9), rgba(10, 17, 30, 0.86));
  box-shadow: var(--neo-shadow);
}
.neo-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #8799b0; font-size: 11px; }
.neo-article-title { margin: 11px 0 0; color: #fff; font-family: var(--neo-font-display); font-size: clamp(27px, 4vw, 39px); font-weight: 400; line-height: 1.35; }
.neo-article-divider { height: 1px; margin: 18px 0; background: linear-gradient(90deg, rgba(110,231,255,.45), rgba(255,154,200,.25), transparent); }
.neo-article-body { color: #c7d6e8; font-size: 14.5px; line-height: 2; overflow-wrap: break-word; }
.neo-article-body p { margin: 0 0 14px; white-space: pre-wrap; }
.neo-article-body p:last-child { margin-bottom: 0; }
.neo-comments { margin-top: 16px; }
.neo-comment { display: flex; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--neo-line); }
.neo-comment:last-child { border-bottom: 0; }
.neo-comment-avatar { display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; flex: none; border-radius: 50%; background: rgba(110,231,255,.1); color: var(--neo-cyan); font-size: 10px; font-weight: 700; }
.neo-comment-main { min-width: 0; flex: 1; }
.neo-comment-head { display: flex; gap: 6px; color: #74869d; font-size: 9.5px; }
.neo-comment-author { color: #b8c9dd; font-weight: 600; }
.neo-comment-body { margin-top: 2px; color: #b1c2d5; font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: break-word; }

/* ===== 卡片式个人资料 / 管理 ===== */
.neo-side-note { color: #71839a; font-size: 10px; line-height: 1.75; }
.neo-empty-line { padding: 19px 14px; color: #71839a; font-size: 11px; }

/* ===== 移动端 ===== */
.neo-dock { display: none; }
@media (max-width: 980px) {
  .neo-header { padding: 10px 18px; gap: 12px; }
  .neo-nav { margin-left: 2px; }
  .neo-main { padding: 18px 18px 30px; }
  .neo-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 13px; }
  .neo-header-label { display: none; }
}
@media (max-width: 767px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body::before, body::after { opacity: 0.55; }
  .neo-header { min-height: 58px; padding: 9px 13px; gap: 8px; }
  .neo-brand-logo { width: 33px; height: 33px; }
  .neo-brand-name { font-size: 20px; }
  .neo-brand-sub { font-size: 6px; }
  .neo-nav { display: none; }
  .neo-user { margin-left: auto; }
  .neo-user-avatar { width: 27px; height: 27px; }
  .neo-main { padding: 12px 12px 20px; }
  .neo-hero { padding: 20px 16px; margin-bottom: 12px; }
  .neo-hero-title { font-size: 30px; }
  .neo-hero-desc { font-size: 11.5px; }
  .neo-hero::after { display: none; }
  .neo-layout { display: block; }
  .neo-side-column { display: none; }
  .neo-feed-column { gap: 12px; }
  .neo-panel { border-radius: 11px; }
  .neo-toolbar { padding: 9px 11px; }
  .neo-toolbar-actions { display: none; }
  .neo-post { padding: 13px 12px 11px 17px; }
  .neo-post h3 { font-size: 14px; }
  .neo-excerpt { font-size: 11.5px; }
  .neo-mobile-post { display: block; }
  .neo-desktop-post { display: none; }
  .neo-profile-hero { padding: 16px; gap: 12px; }
  .neo-profile-avatar { width: 54px; height: 54px; font-size: 23px; }
  .neo-profile-name { font-size: 24px; }
  .neo-profile-stats { width: 100%; margin: 2px 0 0; padding-top: 9px; border-top: 1px solid var(--neo-line); text-align: left; }
  .neo-profile-stats b { font-size: 17px; }
  .neo-manage-row { flex-wrap: wrap; padding: 11px 11px; }
  .neo-manage-index { display: none; }
  .neo-manage-actions { width: 100%; justify-content: flex-end; }
  .neo-article { padding: 20px 16px; }
  .neo-article-title { font-size: 26px; }
  .neo-article-body { font-size: 13.5px; }
  .neo-comment-form { margin: 10px; padding: 10px; }
  .neo-comment-form-foot { align-items: flex-end; }
  .neo-comment-form-foot > span { max-width: 58%; font-size: 8.5px; line-height: 1.5; }
  .neo-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; gap: 3px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--neo-line);
    background: rgba(9, 15, 27, 0.94); backdrop-filter: blur(18px);
    box-shadow: 0 -10px 34px -20px #000;
  }
  .neo-dock a, .neo-dock button {
    display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; min-height: 43px; padding: 2px; border: 0; border-radius: 7px;
    background: transparent; color: #7c8da4; font-size: 9px;
  }
  .neo-dock a::before, .neo-dock button::before { font-family: var(--neo-font-pixel); font-size: 15px; line-height: 1; }
  .neo-dock .dock-home::before { content: '⌂'; }
  .neo-dock .dock-compose::before { content: '✎'; }
  .neo-dock .dock-profile::before { content: '◉'; }
  .neo-dock .dock-admin::before { content: '✧'; }
  .neo-dock .dock-legal::before { content: '§'; }
  .neo-dock .dock-logout::before { content: '↪'; }
  .neo-dock .active { color: var(--neo-cyan); background: rgba(110, 231, 255, 0.08); }
}

/* ===== 登录 / 法律页 ===== */
.neo-auth {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  width: min(1080px, calc(100% - 40px)); min-height: 610px;
  margin: 7vh auto 30px; overflow: hidden;
  border: 1px solid var(--neo-line); border-radius: 18px;
  background: rgba(12, 19, 33, 0.82); box-shadow: var(--neo-shadow);
}
.neo-auth-visual {
  position: relative; overflow: hidden; padding: 42px;
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 154, 200, 0.2), transparent 37%),
    radial-gradient(circle at 24% 84%, rgba(110, 231, 255, 0.18), transparent 42%),
    linear-gradient(145deg, #0d1a2b, #0a101e 70%);
}
.neo-auth-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(126, 170, 235, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 170, 235, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, #000, transparent 86%);
}
.neo-auth-visual::after {
  content: 'セイシュン / ANIME BBS';
  position: absolute; left: 42px; bottom: 27px; color: rgba(255,255,255,.18);
  font-family: var(--neo-font-pixel); font-size: 9px; letter-spacing: .18em;
}
.neo-auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.neo-auth-brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(110,231,255,.07); }
.neo-auth-brand strong { display: block; font-family: var(--neo-font-display); font-size: 29px; font-weight: 400; }
.neo-auth-brand span { display: block; margin-top: 4px; color: var(--neo-muted); font-family: var(--neo-font-pixel); font-size: 7px; letter-spacing: .16em; }
.neo-auth-copy { position: relative; z-index: 1; margin-top: 9vh; }
.neo-auth-copy h1 { margin: 0; font-family: var(--neo-font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1.1; }
.neo-auth-copy h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--neo-cyan), var(--neo-pink)); -webkit-background-clip: text; background-clip: text; }
.neo-auth-copy p { max-width: 380px; margin: 14px 0 0; color: #9fb1c7; font-size: 12px; line-height: 1.8; }
.neo-auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 20px; }
.neo-auth-mobile-brand img { width: 38px; height: 38px; border-radius: 50%; }
.neo-auth-mobile-brand strong { display: block; font-family: var(--neo-font-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.neo-auth-mobile-brand small { display: block; margin-top: 2px; color: var(--neo-muted); font-family: var(--neo-font-pixel); font-size: 7px; letter-spacing: .13em; }
.neo-auth-form-wrap { display: flex; flex-direction: column; justify-content: center; padding: 36px 40px; }
.neo-auth-form-wrap h2 { margin: 0; font-family: var(--neo-font-display); font-size: 28px; font-weight: 400; }
.neo-auth-form-wrap .neo-auth-sub { margin: 5px 0 20px; color: #8294aa; font-size: 11px; }
.neo-auth-tabs { display: flex; padding: 3px; margin-bottom: 18px; border: 1px solid var(--neo-line); border-radius: 8px; background: rgba(255,255,255,.035); }
.neo-auth-tabs button { flex: 1; min-height: 31px; border: 0; border-radius: 6px; background: transparent; color: #8ea1b8; font-size: 11px; }
.neo-auth-tabs button.active { background: rgba(110,231,255,.11); color: var(--neo-cyan); }
.neo-field { margin-bottom: 12px; }
.neo-field label { display: block; margin-bottom: 5px; color: #93a5ba; font-size: 10px; }
.neo-input {
  display: block; width: 100%; min-height: 38px; padding: 8px 10px;
  border: 1px solid var(--neo-line); border-radius: 7px;
  outline: none; background: rgba(255,255,255,.035); color: #edf4ff; font-size: 12px;
}
.neo-input:focus { border-color: rgba(110,231,255,.48); box-shadow: 0 0 0 3px rgba(110,231,255,.08); }
.neo-form-error { min-height: 17px; margin: 2px 0 8px; color: var(--neo-danger); font-size: 10.5px; }
.neo-check {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 3px 0 10px; color: #8fa2b8; font-size: 10px; line-height: 1.6;
}
.neo-check input { flex: none; margin-top: 3px; accent-color: #6ee7ff; }
.neo-check a { color: #a9c9e5; text-decoration: underline; text-underline-offset: 2px; }
.neo-auth-submit { width: 100%; min-height: 39px; }
.neo-auth-foot { margin-top: 15px; color: #65778e; font-size: 9.5px; text-align: center; }
.neo-auth-foot a { color: #9bb2ca; }

.neo-legal-shell { width: min(900px, calc(100% - 32px)); margin: 34px auto 60px; }
.neo-legal-card { padding: 30px; border: 1px solid var(--neo-line); border-radius: var(--neo-radius); background: var(--neo-panel); box-shadow: var(--neo-shadow); }
.neo-legal-card h1 { margin: 0; font-family: var(--neo-font-display); font-size: 32px; font-weight: 400; }
.neo-legal-card h2 { margin: 23px 0 7px; color: var(--neo-cyan); font-size: 14px; }
.neo-legal-card p, .neo-legal-card li { color: #aebfd2; font-size: 12px; line-height: 1.9; }
.neo-legal-card ul { padding-left: 18px; }
.neo-legal-note { margin-top: 24px; padding: 12px; border: 1px dashed rgba(245,213,139,.3); border-radius: 7px; background: rgba(245,213,139,.04); color: #bca97d; font-size: 10.5px; }

/* ===== 页脚 / 弹窗 / 提示 ===== */
.neo-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 16px;
  padding: 14px 28px 18px; border-top: 1px solid var(--neo-line);
  color: #64768c; font-size: 9.5px;
}
.neo-footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.neo-footer a { color: #8499b1; }
.neo-footer a:hover { color: var(--neo-cyan); }
.neo-footer-legal { width: 100%; color: #53657d; font-size: 8.5px; }
.neo-footer-legal a { color: #71839a; }

.neo-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 18px; }
.neo-modal.open { display: flex; }
.neo-modal-backdrop { position: absolute; inset: 0; background: rgba(1, 5, 12, 0.72); backdrop-filter: blur(5px); }
.neo-modal-panel {
  position: relative; width: min(440px, 100%);
  border: 1px solid var(--neo-line-strong); border-radius: 12px;
  background: #0e1727; box-shadow: 0 30px 90px -24px #000;
}
.neo-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; border-bottom: 1px solid var(--neo-line); color: #eaf4ff; font-size: 12px; }
.neo-modal-close { width: 24px; height: 24px; border: 0; border-radius: 5px; background: transparent; color: #7e91a8; }
.neo-modal-close:hover { background: rgba(255,255,255,.06); color: var(--neo-pink); }
.neo-modal-body { padding: 16px; color: #b5c6d9; font-size: 12px; line-height: 1.8; }
.neo-modal-body strong { color: #fff; }
.neo-modal-body > p:first-child { margin-top: 0; }
.neo-form-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.neo-form-label label { color: #93a5ba; font-size: 10px; }
.neo-form-label span { color: #71839a; font-family: var(--neo-font-pixel); font-size: 8px; }
.neo-textarea {
  display: block; width: 100%; min-height: 100px; resize: vertical;
  padding: 9px 10px; border: 1px solid var(--neo-line); border-radius: 7px;
  outline: none; background: rgba(255,255,255,.035); color: #edf4ff;
  font-size: 12px; line-height: 1.75;
}
.neo-textarea:focus { border-color: rgba(110,231,255,.48); box-shadow: 0 0 0 3px rgba(110,231,255,.08); }
.neo-textarea::placeholder, .neo-input::placeholder { color: #6d8099; }
.neo-preview-title { margin: 8px 0 6px; color: #eaf4ff; font-family: var(--neo-font-display); font-size: 20px; font-weight: 400; line-height: 1.4; }
.neo-preview-body {
  max-height: 220px; overflow-y: auto; padding: 10px;
  border: 1px dashed var(--neo-line); border-radius: 6px;
  background: rgba(255,255,255,.025); color: #b7c9dc; font-size: 12px; line-height: 1.8;
  white-space: pre-wrap; overflow-wrap: break-word;
}
.neo-comment-form {
  margin: 14px; padding: 12px;
  border: 1px solid var(--neo-line); border-radius: 9px;
  background: rgba(255,255,255,.025);
}
.neo-comment-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.neo-comment-form-head label { color: #dbe8f8; font-size: 12px; font-weight: 600; }
.neo-comment-form-head span { color: #71839a; font-family: var(--neo-font-pixel); font-size: 8px; }
.neo-comment-form .neo-textarea { min-height: 84px; }
.neo-comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.neo-comment-form-foot > span { color: #71839a; font-size: 9.5px; }
.neo-comment-form .neo-form-error { min-height: 0; margin: 3px 0 0; }
.neo-modal-foot { display: flex; justify-content: flex-end; gap: 7px; padding: 10px 13px; border-top: 1px solid var(--neo-line); }
.neo-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 150;
  padding: 8px 13px; border: 1px solid var(--neo-line-strong); border-radius: 8px;
  background: #101b2c; color: #dbeaff; font-size: 11px;
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: 180ms;
}
.neo-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .neo-auth { grid-template-columns: 1fr; width: min(520px, calc(100% - 24px)); margin: 18px auto 22px; min-height: 0; flex: 1 0 auto; }
  .neo-auth-visual { display: none; }
  .neo-auth-form-wrap { padding: 26px 22px; }
  .neo-auth-mobile-brand { display: flex; }
  .neo-legal-card { padding: 20px; }
  .neo-shell { min-height: 100vh; }
  .neo-footer { padding: 12px 14px 76px; margin-top: auto; }
  .neo-footer-legal { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
  }
}
