/* ==========================================================================
   非官方 SCP 基金会创意平台 (scp.gyxkk.cc) 核心样式表
   ========================================================================== */

:root {
  color-scheme: dark;
  --ink: #f3efe7;
  --muted: #bdb5a9;
  --paper: #f7f3eb;
  --paper-ink: #24211d;
  --paper-muted: #675f55;
  --black: #0d0d0d;
  --panel: #171514;
  --line: rgba(243, 239, 231, .16);
  --red: #b30718;
  --red-dark: #6d0710;
  --amber: #d8bd72;
  --green: #2e7d32;
  --radius: 8px;
  --shadow: 0 20px 70px rgba(0, 0, 0, .34);
  font-family: "Microsoft YaHei", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 70% -20%, rgba(179,7,24,.18), transparent 45rem),
    linear-gradient(180deg, #070707 0%, #141211 48%, #0b0b0b 100%);
  background-size: 9px 9px, auto, auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* 通用布局 */
.site-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  padding: 0 28px;
  background: #070707;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.classification {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
}

.classification::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(179, 7, 24, .9);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 11, 10, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: invert(1) brightness(1.35) drop-shadow(0 5px 16px rgba(0,0,0,.55));
  flex: 0 0 auto;
}

.brand-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-title strong {
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
}

.brand-title span {
  color: #e5d8a6;
  font-weight: 700;
  letter-spacing: .1em;
  font-size: 13px;
  white-space: nowrap;
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.links a, .ghost-button, .menu-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.links a:hover, .ghost-button:hover, .menu-toggle:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  border-color: rgba(255,255,255,.18);
}

.ghost-button.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.menu-toggle {
  display: none;
}

/* 首页横幅 */
.hero {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 28px 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(179,7,24,.18), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "CLASSIFIED";
  position: absolute;
  right: -22px;
  top: 72px;
  max-width: 100%;
  overflow: hidden;
  color: rgba(179, 7, 24, .08);
  font-size: clamp(64px, 10vw, 130px);
  font-weight: 900;
  letter-spacing: .16em;
  transform: rotate(-6deg);
  pointer-events: none;
}

.foundation-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.foundation-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: invert(1) brightness(1.35) drop-shadow(0 10px 26px rgba(0,0,0,.58));
  flex: 0 0 auto;
}

.foundation-mark span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .12em;
}

.foundation-mark strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.1;
  letter-spacing: .06em;
}

.eyebrow {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 18px 0 16px;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.search-panel {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(5,5,5,.6);
}

.search-panel input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  padding: 0 12px;
  font-size: 16px;
}

.search-panel button, .primary-action, .btn-submit {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: white;
  background: linear-gradient(180deg, #c0091c, #820812);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(179, 7, 24, 0.4);
}

.search-panel button:hover, .primary-action:hover, .btn-submit:hover {
  background: linear-gradient(180deg, #d90b20, #9a0a16);
  transform: translateY(-1px);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.secondary-action, .btn-secondary {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255,255,255,.05);
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-action:hover, .btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}

.status-rail {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
}

.status-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: .12em;
}

.status-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* 主内容区（纸质白底模式） */
main {
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 1px solid rgba(255,255,255,.12);
  flex: 1;
}

.content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 28px 68px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin: 0 0 24px;
  border-bottom: 2px solid rgba(36, 33, 29, .22);
  padding-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
  color: var(--paper-ink);
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.5;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(36, 33, 29, .18);
  border-radius: 999px;
  color: var(--paper-muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}

.filter:hover {
  background: rgba(36, 33, 29, 0.05);
  color: var(--paper-ink);
}

.filter.active {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

/* 特色文档网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.entry {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(36, 33, 29, .16);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(51, 42, 33, .06);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(51, 42, 33, .12);
}

.entry-label {
  padding: 10px 14px;
  color: white;
  background: linear-gradient(90deg, #7e2e32, #a53a42);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.entry-label.class-safe { background: linear-gradient(90deg, #2e7d32, #4caf50); }
.entry-label.class-euclid { background: linear-gradient(90deg, #b8860b, #d8bd72); }
.entry-label.class-keter { background: linear-gradient(90deg, #b30718, #d32f2f); }
.entry-label.class-thaumiel { background: linear-gradient(90deg, #303f9f, #3f51b5); }

.entry-body {
  padding: 18px 16px 16px;
  flex: 1;
}

.entry h3 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 22px;
  line-height: 1.1;
}

.byline {
  margin: 0 0 14px;
  color: var(--paper-muted);
  font-size: 13px;
}

.quote {
  color: #3d3832;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(36, 33, 29, .1);
  color: var(--paper-muted);
  font-size: 13px;
  background: rgba(36, 33, 29, 0.01);
}

.read-link {
  color: var(--red);
  font-weight: 900;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.read-link:hover {
  text-decoration: underline;
}

/* 列表栏布局 */
.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.archive-list {
  border: 1px solid rgba(36, 33, 29, .14);
  border-radius: var(--radius);
  background: #fffdf8;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
}

.archive-list h3 {
  margin: 0;
  padding: 16px;
  color: var(--red);
  border-bottom: 1px solid rgba(36, 33, 29, .12);
  font-size: 17px;
  background: rgba(36, 33, 29, 0.02);
}

.archive-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(36, 33, 29, .08);
  color: var(--paper-ink);
}

.archive-list a:hover {
  background: rgba(36, 33, 29, 0.03);
}

.archive-list a:last-child {
  border-bottom: 0;
}

.archive-list span {
  color: var(--paper-muted);
  font-size: 13px;
  white-space: nowrap;
}

/* SCP文档详情布局 */
.scp-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.scp-article {
  background: #fffdf8;
  border: 1px solid rgba(36, 33, 29, .14);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.scp-meta-info {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px dashed rgba(36, 33, 29, .15);
}

.class-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
}

.class-badge.safe { background-color: var(--green); }
.class-badge.euclid { background-color: #d88b0b; }
.class-badge.keter { background-color: var(--red); }
.class-badge.thaumiel { background-color: #3f51b5; }
.class-badge.other { background-color: #607d8b; }

.scp-item-title {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  color: var(--paper-ink);
}

.scp-section-title {
  font-size: 18px;
  font-weight: 800;
  border-left: 4px solid var(--red);
  padding-left: 10px;
  margin: 28px 0 12px;
  color: var(--paper-ink);
}

.scp-content {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.scp-content p {
  margin: 0 0 16px;
}

/* SCP图像侧边栏 */
.scp-image-card {
  border: 1px solid rgba(36, 33, 29, .14);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
  text-align: center;
  margin-bottom: 20px;
}

.scp-image-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(36, 33, 29, .1);
}

.scp-image-caption {
  font-size: 12px;
  color: var(--paper-muted);
  margin-top: 8px;
  font-style: italic;
}

/* 投票小部件 */
.vote-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 12px 18px;
  background: rgba(36, 33, 29, 0.04);
  border-radius: 6px;
  border-left: 3px solid var(--red);
  width: fit-content;
}

.vote-widget span {
  font-weight: bold;
}

.vote-btn {
  border: 1px solid rgba(36, 33, 29, .16);
  background: white;
  border-radius: 4px;
  padding: 4px 10px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  color: var(--paper-ink);
}

.vote-btn:hover {
  background: #f0ece1;
}

.vote-btn.up.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.vote-btn.down.active {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.vote-rating {
  font-size: 18px;
  font-weight: 900;
  min-width: 30px;
  text-align: center;
}

.vote-rating.positive { color: var(--green); }
.vote-rating.negative { color: var(--red); }

/* 评论模块 */
.comments-section {
  margin-top: 40px;
  border-top: 2px dashed rgba(36, 33, 29, 0.16);
  padding-top: 28px;
}

.comment-list {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.comment-item {
  background: #fffdf8;
  border: 1px solid rgba(36, 33, 29, .1);
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--paper-muted);
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(36, 33, 29, .06);
  padding-bottom: 6px;
}

.comment-author {
  font-weight: bold;
  color: var(--paper-ink);
}

.comment-author.admin-author::after {
  content: "管理员";
  font-size: 10px;
  background: var(--red);
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 6px;
}

.comment-content {
  font-size: 14px;
  line-height: 1.5;
  color: #3d3832;
  word-break: break-all;
}

.comment-form textarea {
  width: 100%;
  height: 100px;
  border: 1px solid rgba(36, 33, 29, .18);
  border-radius: 6px;
  padding: 12px;
  background: white;
  color: var(--paper-ink);
  margin-bottom: 12px;
  resize: vertical;
  outline: none;
}

.comment-form textarea:focus {
  border-color: var(--red);
}

/* 编号列表页面 list.php */
.series-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.series-btn {
  background: #fffdf8;
  border: 1px solid rgba(36, 33, 29, .14);
  color: var(--paper-muted);
  border-radius: 4px;
  padding: 8px 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.series-btn:hover {
  background: rgba(36, 33, 29, 0.05);
}

.series-btn.active {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(36, 33, 29, .12);
  background: #fffdf8;
  font-size: 14px;
}

.slot-item.empty {
  background: rgba(36, 33, 29, 0.02);
  border-style: dashed;
}

.slot-number {
  font-weight: bold;
  font-family: monospace;
  font-size: 15px;
}

.slot-title {
  color: var(--paper-ink);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 110px;
}

.slot-title.empty {
  color: var(--paper-muted);
  font-style: italic;
}

.slot-action {
  font-size: 12px;
  font-weight: bold;
}

.slot-action.claim {
  color: var(--red);
}

.slot-action.view {
  color: var(--green);
}

/* 经典表单容器 (登录、注册、编写文档) */
.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: #fffdf8;
  border: 1px solid rgba(36, 33, 29, .14);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.form-card h2 {
  margin: 0 0 24px;
  text-align: center;
  color: var(--red);
  font-size: 26px;
  border-bottom: 1px solid rgba(36, 33, 29, .1);
  padding-bottom: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--paper-ink);
}

.form-control {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(36, 33, 29, .18);
  border-radius: 6px;
  padding: 8px 12px;
  background: white;
  color: var(--paper-ink);
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--red);
}

textarea.form-control {
  height: 180px;
  resize: vertical;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid transparent;
}

.alert-danger {
  background: #ffebee;
  color: #c62828;
  border-color: #ef5350;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #66bb6a;
}

.form-text {
  font-size: 12px;
  color: var(--paper-muted);
  margin-top: 4px;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--paper-muted);
}

.form-footer a {
  color: var(--red);
  font-weight: bold;
}

/* 分页组件 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 34px;
}

.page-link {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 33, 29, .14);
  background: #fffdf8;
  color: var(--paper-muted);
  border-radius: 4px;
  font-weight: bold;
}

.page-link:hover {
  background: rgba(36, 33, 29, 0.05);
  color: var(--paper-ink);
}

.page-link.active {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

/* 页脚样式 */
footer {
  padding: 34px 28px;
  color: var(--muted);
  background: #070707;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

footer p {
  margin: 0 0 8px;
}

/* 管理后台通用样式 */
.admin-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

.admin-sidebar {
  background: #fffdf8;
  border: 1px solid rgba(36, 33, 29, .14);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: var(--paper-muted);
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 4px;
}

.admin-sidebar a:hover {
  background: rgba(36, 33, 29, 0.04);
  color: var(--paper-ink);
}

.admin-sidebar a.active {
  background: var(--red);
  color: white;
}

.admin-content {
  background: #fffdf8;
  border: 1px solid rgba(36, 33, 29, .14);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.admin-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.admin-card {
  padding: 20px;
  background: rgba(36, 33, 29, 0.03);
  border-radius: 6px;
  border-top: 3px solid var(--red);
  text-align: center;
}

.admin-card .num {
  font-size: 32px;
  font-weight: 900;
  color: var(--paper-ink);
  margin-top: 8px;
}

/* 表格样式 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(36, 33, 29, .08);
}

.admin-table th {
  background: rgba(36, 33, 29, 0.03);
  font-weight: bold;
  color: var(--paper-ink);
}

.admin-table tr:hover td {
  background: rgba(36, 33, 29, 0.01);
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-danger { background: #ffebee; color: #c62828; }
.badge-info { background: #e3f2fd; color: #1565c0; }

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-danger-sm {
  background: #ffebee;
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.2);
}

.btn-danger-sm:hover {
  background: #ef5350;
  color: white;
}

.btn-edit-sm {
  background: #e3f2fd;
  color: #1565c0;
  border-color: rgba(21, 101, 192, 0.2);
}

.btn-edit-sm:hover {
  background: #42a5f5;
  color: white;
}

/* 响应式媒体查询 */
@media (max-width: 960px) {
  .top-strip { padding: 0 18px; }
  .nav {
    grid-template-columns: 1fr auto;
    padding: 14px 18px;
  }
  .links {
    grid-column: 1 / -1;
    display: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .links.open { display: flex; }
  .ghost-button { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .hero { padding: 34px 18px 28px; }
  .hero-grid { grid-template-columns: 1fr; }
  .status-rail { grid-template-columns: repeat(3, 1fr); }
  .lower-grid { grid-template-columns: 1fr; }
  .scp-container { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .top-strip { display: none; }
  .brand img { width: 44px; height: 44px; }
  .brand-title strong { font-size: 20px; }
  .brand-title span { font-size: 11px; }
  .foundation-mark { gap: 14px; }
  .foundation-mark img { width: 56px; height: 56px; }
  h1 { font-size: 32px; }
  .lead { font-size: 15px; }
  .search-panel { grid-template-columns: 1fr; }
  .status-rail { grid-template-columns: 1fr; }
  .section-head { display: grid; align-items: start; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .admin-dashboard-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   极简全屏 SCP 标志转场过渡画面 (Minimalist Logo Transition Screen)
   ========================================================================== */
#scp-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background: #070707;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out, visibility 0.3s;
}

#scp-transition-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.transition-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.transition-logo {
  width: 100px;
  height: 100px;
  /* 将黑色 logo 反转为高亮白色，并赋予强烈的红色霓虹发光，确保在纯黑背景中清晰可见 */
  filter: invert(1) brightness(1.5) drop-shadow(0 0 20px rgba(179, 7, 24, 0.95));
  animation: logo-pulse-simple 1.4s infinite ease-in-out;
}

@keyframes logo-pulse-simple {
  0%, 100% {
    transform: scale(1);
    filter: invert(1) brightness(1.5) drop-shadow(0 0 15px rgba(179, 7, 24, 0.7));
  }
  50% {
    transform: scale(1.06);
    filter: invert(1) brightness(1.7) drop-shadow(0 0 30px rgba(179, 7, 24, 1));
  }
}




