/* ==============================================================
   common.css — Face's World 维基公共样式
   说明：所有页面共享的样式（主题变量、侧栏、头部、弹窗、页脚等）
   月之明板式专用样式已移至 moonlight.css
   ============================================================== */

/* ===== CSS 变量（主题） ===== */
html {
  font-size: 125%;
}

/* ===== 默认主题（深色） ===== */
:root {
  --sidebar-width: 280px;
  --sidebar-gap: 20px;

  --bg-body: #0b0b0b;
  --bg-wrapper: #141414;
  --bg-content: #141414;
  --bg-sidebar: #111;
  --bg-nav: #1a1a1a;
  --bg-placeholder: #1a1a1a;
  --bg-module: #1a1a1a;
  --bg-feature: #1a1a1a;
  --bg-card: #1a1a1a;

  --text-primary: #d4d4d4;
  --text-secondary: #c0c0c0;
  --text-muted: #888;
  --text-link: #b0b0b0;
  --text-link-hover: #e0e0e0;
  --text-placeholder: #777;
  --text-module: #777;

  --border-main: #3a3a3a;
  --border-light: #2a2a2a;
  --border-dashed: #444;
  --border-dotted: #333;
  --border-hover: #7a7a7a;

  --shadow-wrapper: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 10px #2a2a2a;
  --link-hover-border: #666;
  --shadow-title: 1px 2px 3px rgba(255, 255, 255, 0.5);

  --toggle-bg: #2a2a2a;
  --toggle-color: #d4d4d4;
  --toggle-hover-bg: #3a3a3a;

  --nav-hover-bg: #2d2d2d;
  --nav-active-bg: #3a3a3a;

  --switch-bg: #1a1a1a;
  --switch-border: #3a3a3a;
  --switch-option-bg: transparent;
  --switch-option-active-bg: #3d3d3d;
  --switch-option-color: #777;
  --switch-option-active-color: #e0e0e0;
  --switch-option-hover-bg: #2d2d2d;

  --modal-bg: #141414;
  --modal-border: #3a3a3a;
  --modal-text: #c0c0c0;
  --modal-title: #d4d4d4;
  --modal-btn-bg: #1a1a1a;
  --modal-btn-hover: #2d2d2d;
  --modal-btn-border: #3a3a3a;
  --modal-btn-text: #b0b0b0;
  --modal-btn-hover-text: #e0e0e0;
  --modal-overlay: rgba(0, 0, 0, 0.75);
}

/* ===== 亮色主题 ===== */
[data-theme="light"] {
  --bg-body: #e8e8e8;
  --bg-wrapper: #d0d0d0;
  --bg-content: #d0d0d0;
  --bg-sidebar: #dcdcdc;
  --bg-nav: #c0c0c0;
  --bg-placeholder: #c0c0c0;
  --bg-module: #c0c0c0;
  --bg-feature: #c0c0c0;
  --bg-card: #d8d8d8;

  --text-primary: #222222;
  --text-secondary: #333333;
  --text-muted: #555555;
  --text-link: #444444;
  --text-link-hover: #1a1a1a;
  --text-placeholder: #4a4a4a;
  --text-module: #4a4a4a;

  --border-main: #888888;
  --border-light: #aaaaaa;
  --border-dashed: #959595;
  --border-dotted: #999999;
  --border-hover: #707070;

  --shadow-wrapper: 0 0 20px rgba(0, 0, 0, 0.08);
  --link-hover-border: #555555;
  --shadow-title: 1px 2px 3px rgba(0, 0, 0, 0.35);

  --toggle-bg: #d0d0d0;
  --toggle-color: #333333;
  --toggle-hover-bg: #c0c0c0;

  --nav-hover-bg: #b0b0b0;
  --nav-active-bg: #a0a0a0;

  --switch-bg: #d8d8d8;
  --switch-border: #bbbbbb;
  --switch-option-bg: transparent;
  --switch-option-active-bg: #b8b8b8;
  --switch-option-color: #888;
  --switch-option-active-color: #222;
  --switch-option-hover-bg: #c8c8c8;

  --modal-bg: #dcdcdc;
  --modal-border: #aaaaaa;
  --modal-text: #333333;
  --modal-title: #222222;
  --modal-btn-bg: #c8c8c8;
  --modal-btn-hover: #b8b8b8;
  --modal-btn-border: #aaaaaa;
  --modal-btn-text: #444444;
  --modal-btn-hover-text: #1a1a1a;
  --modal-overlay: rgba(0, 0, 0, 0.4);
}

html.sidebar-collapsed {
  --sidebar-width: 0px;
  --sidebar-gap: 0px;
}

/* ===== 全局重置与布局 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-body);
  color: var(--text-secondary);
  font-family: 'Courier New', Courier, 'Lucida Sans Typewriter', monospace;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;

  /* ★ 字体平滑（替代各页面的 ClearType hack） ★ */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.wiki-wrapper {
  max-width: 1100px;
  width: 100%;
  margin: 20px auto;
  background: var(--bg-wrapper);
  border: 2px solid var(--border-main);
  box-shadow: var(--shadow-wrapper);
  padding: 30px 25px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, padding 0.3s;
  z-index: 1;
}

/* ===== 侧栏（fixed） ===== */
.left-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right-width: 2px;
  border-right-style: solid;
  border-right-color: var(--border-light);
  padding: 0;
  overflow: hidden;
  z-index: 100;
  white-space: nowrap;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              background 0.3s;
}

html.sidebar-collapsed .left-sidebar {
  width: 0px;
  border-right-width: 0;
  border-right-color: transparent;
}

.left-sidebar .sidebar-section {
  margin-top: 25px;
  margin-bottom: 25px;
  padding: 0 15px;
  margin-left: -250px;
  transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.left-sidebar .sidebar-section:first-child { margin-top: 25px; }
.left-sidebar .sidebar-section:last-child { margin-bottom: 25px; }

html:not(.sidebar-collapsed) .left-sidebar .sidebar-section {
  margin-left: 0;
}
html.sidebar-collapsed .left-sidebar .sidebar-section {
  margin-left: -250px;
}

.left-sidebar .section-title {
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-dashed);
  padding-bottom: 6px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.left-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.left-sidebar ul li { margin-bottom: 4px; }
.left-sidebar ul li a {
  color: var(--text-link);
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 3px 0;
  border-bottom: 1px dotted var(--border-dotted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.left-sidebar ul li a:hover {
  color: var(--text-link-hover);
  border-bottom-color: var(--link-hover-border);
}
.left-sidebar ul li a.active {
  color: var(--text-link-hover);
  border-bottom-color: var(--border-hover);
}

.left-sidebar .sidebar-section:nth-child(2) ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.left-sidebar .sidebar-section:nth-child(2) ul li {
  margin-bottom: 0;
  border-bottom: none;
}
.left-sidebar .sidebar-section:nth-child(2) ul li a {
  font-size: 0.95rem;
  padding: 4px 6px;
  border-bottom: 1px dotted var(--border-dotted);
  text-align: left;
}
.left-sidebar .sidebar-section:nth-child(2) ul li a:hover {
  background: var(--nav-hover-bg);
}
.left-sidebar .sidebar-section:not(:nth-child(2)) ul {
  display: block;
}
.left-sidebar .sidebar-section:not(:nth-child(2)) ul li a {
  font-size: 0.95rem;
  padding: 3px 0;
  text-align: left;
}

/* ===== 汉堡按钮 ===== */
.sidebar-toggle {
  position: fixed;
  top: 14px;
  z-index: 200;
  background: var(--toggle-bg);
  border: 1px solid var(--border-light);
  color: var(--toggle-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s, left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  user-select: none;
  touch-action: manipulation;
  padding: 8px;
}
.sidebar-toggle:hover { background: var(--toggle-hover-bg); }

.hamburger-box {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--toggle-color);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

html:not(.sidebar-collapsed) .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
html:not(.sidebar-collapsed) .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
html:not(.sidebar-collapsed) .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

html:not(.sidebar-collapsed) .sidebar-toggle {
  left: calc(var(--sidebar-width) + 8px);
}
html.sidebar-collapsed .sidebar-toggle {
  left: 12px;
}

/* ===== 头部（含默认头图） ===== */
.site-header {
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 25px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  flex-direction: column;
  transition: border-color 0.3s;
}

.header-center {
  text-align: center;
  width: 100%;
  position: relative;
}

/* ★ 默认头图（所有默认板式页面共享） ★ */
.header-center::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 100%;
  background-image: url('themes/Face\'s World板式头图.PNG');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  padding-bottom: 15%;
}

.site-header h1 {
  font-size: 3.2rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(0,0,0,0.3);
  font-weight: normal;
  word-spacing: 10px;
  transition: color 0.3s;
  position: relative;
  z-index: 1;
}
.site-header h1 a {
  color: inherit !important;
  text-decoration: none !important;
  display: inline-block;
  font-family: serif;
  text-transform: none;
  transition: transform 0.3s ease, text-shadow 0.4s ease;
  position: relative;
  z-index: 1;
}
.site-header h1 a:hover {
  transform: translate(-1px, -2px);
  text-shadow: var(--shadow-title);
}

.site-header .subtitle {
  font-size: 1.4rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  margin-top: 10px;
  padding-top: 10px;
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

.theme-toggle-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  z-index: 2;
}

.theme-switch {
  display: flex;
  width: 68px;
  height: 34px;
  border: 1px solid var(--switch-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--switch-bg);
  transition: border-color 0.3s, background 0.3s;
}
.theme-switch .option {
  flex: 1;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.3s, color 0.3s;
  user-select: none;
  background: var(--switch-option-bg);
  color: var(--switch-option-color);
}
.theme-switch .option:hover { background: var(--switch-option-hover-bg); }
.theme-switch .option.active {
  background: var(--switch-option-active-bg);
  color: var(--switch-option-active-color);
}

/* ===== 模态弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal-overlay.show { display: flex; }

.modal-box {
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  padding: 40px 48px 32px 48px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn {
  0% { opacity: 0; transform: scale(0.94) translateY(-6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-box .modal-title {
  font-size: 1.4rem;
  color: var(--modal-title);
  font-weight: normal;
  letter-spacing: 4px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--modal-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.modal-box .modal-message {
  color: var(--modal-text);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  padding: 8px 0;
}
.modal-box .modal-btn {
  background: var(--modal-btn-bg);
  border: 1px solid var(--modal-btn-border);
  color: var(--modal-btn-text);
  padding: 10px 40px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.modal-box .modal-btn:hover {
  background: var(--modal-btn-hover);
  color: var(--modal-btn-hover-text);
  border-color: var(--border-hover);
}
.modal-box .modal-btn:active { transform: scale(0.96); }

/* ===== 页面容器 ===== */
.page-container {
  background: var(--bg-content);
  padding: 12px 22px 20px 22px;
  transition: background 0.3s;
  min-height: 300px;
}

/* ================================================================
   ★ 占位内容（所有占位页面共享） ★
   ================================================================ */
.placeholder-content {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}
.placeholder-content h2 {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.placeholder-content p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 2;
  font-size: 1rem;
}

/* ================================================================
   ★ 内容组件（引用块、区块、表格、折叠块、标题、分隔线） ★
   所有内容页面（区域、实体、故事等）共享的基础组件。
   颜色全部走 CSS 变量，板式差异通过变量覆盖实现。
   ================================================================ */

/* 分隔线 */
.hr-divider {
  border: none;
  border-top: 1px solid var(--border-dashed);
  margin: 24px 0;
  opacity: 0.5;
}

/* 内容标题 */
.h3-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-top: 28px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-dashed);
  padding-bottom: 6px;
}
.h3-title:first-of-type { margin-top: 0; }

.sub-head {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-top: 20px;
  margin-bottom: 6px;
}

/* 引用块 */
.styled-quote {
  background: var(--bg-card);
  border-left: 4px solid var(--border-hover);
  border-radius: 0 4px 4px 0;
  padding: 12px 18px;
  margin: 12px 0;
  color: var(--text-secondary);
}
.styled-quote p { margin-bottom: 0; }

.dark-styled-quote {
  background: var(--bg-sidebar);
  border-left: 4px solid var(--border-hover);
  border-radius: 0 4px 4px 0;
  padding: 12px 18px;
  margin: 12px 0;
  color: var(--text-secondary);
}
.dark-styled-quote p { margin-bottom: 0; }

/* 区块 */
.lightblock {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 12px 18px;
  margin: 12px 0;
  color: var(--text-secondary);
}
.darkblock {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 12px 18px;
  margin: 12px 0;
  color: var(--text-secondary);
}

/* 表格 */
.wiki-content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.9rem;
}
.wiki-content-table th,
.wiki-content-table td {
  border: 1px solid var(--border-main);
  padding: 8px 12px;
  text-align: left;
  color: var(--text-secondary);
}
.wiki-content-table th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: bold;
}

/* 折叠块 */
.collapsible-block { margin: 12px 0; }
.collapsible-block-link {
  color: var(--text-link);
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
}
.collapsible-block-link:hover { color: var(--text-link-hover); }
.collapsible-block-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 6px;
  color: var(--text-secondary);
}
.collapsible-block-content p { margin-bottom: 0; }
/* ================================================================
   ★ 区域内容容器（区域页面共享） ★
   ================================================================ */
.region-content { max-width: 100%; }

.region-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* 列表（内容容器共享） */
:is(.region-content, .showcase-content) ul,
:is(.region-content, .showcase-content) ol {
  margin: 8px 0 14px 0;
  color: var(--text-secondary);
}
:is(.region-content, .showcase-content) ul {
  padding-left: 24px;
}
:is(.region-content, .showcase-content) ol {
  padding-left: 32px;
}
:is(.region-content, .showcase-content) li {
  padding: 3px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
:is(.region-content, .showcase-content) li strong {
  color: var(--text-primary);
}

.region-content a {
  color: var(--text-link);
  text-decoration: none;
}
.region-content a:hover {
  color: var(--text-link-hover);
}

.region-content .notice-box {
  background: var(--bg-card);
  border-left: 4px solid #f44336;
  border-radius: 0 4px 4px 0;
  padding: 14px 18px;
  margin: 16px 0;
}
.region-content .notice-box .text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.region-content .notice-box .text strong {
  color: var(--text-primary);
}

/* ================================================================
   ★ 区域页面主标题（Region =) -1 这类） ★
   ================================================================ */
.level-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-primary);
  letter-spacing: 4px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.level-title .smile-icon {
  font-size: 2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 1.2em;
  width: 0.8em;
}
.level-title .smile-icon .eq {
  display: block;
  transform: rotate(90deg);
  transform-origin: center center;
  line-height: 1;
  margin-bottom: -0.25em;
}
.level-title .smile-icon .paren {
  display: block;
  transform: rotate(90deg);
  transform-origin: center center;
  line-height: 1;
  margin-top: -0.25em;
}

@media (max-width: 768px) {
  .level-title { font-size: 1.5rem; }
}

/* ================================================================
   ★ 笑脸/哭脸/平脸/笑哭 内联装饰 ★
   ================================================================ */
.inline-smile, .inline-cry, .inline-flat, .inline-joycry {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  line-height: 1;
  vertical-align: middle;
  height: 0.9em;
  margin: 0 2px;
}
.inline-smile, .inline-cry, .inline-flat { width: 0.6em; }
.inline-joycry { width: 1.2em; }

.inline-smile .eq, .inline-cry .eq, .inline-flat .eq, .inline-joycry .eq {
  display: block;
  transform: rotate(90deg);
  transform-origin: center center;
  line-height: 1;
  margin-bottom: -0.2em;
}
.inline-smile .paren, .inline-cry .paren {
  display: block;
  transform: rotate(90deg);
  transform-origin: center center;
  line-height: 1;
  margin-top: -0.2em;
}
.inline-flat .pipe {
  display: block;
  transform: rotate(90deg);
  transform-origin: center center;
  line-height: 1;
  margin-top: -0.2em;
}
.inline-joycry .mouth-char {
  display: block;
  font-size: inherit;
  line-height: 1;
  transform: rotate(90deg);
  transform-origin: center center;
  margin-top: -0.2em;
  font-family: serif;
}

/* ===== 页脚 ===== */
.site-footer {
  border-top: 2px solid var(--border-light);
  padding-top: 20px;
  margin-top: 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: border-color 0.3s, color 0.3s;
}
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.site-footer .footer-links a {
  color: var(--text-link);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-dotted);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.site-footer .footer-links a:hover { color: var(--text-link-hover); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  body { padding: 0; background: var(--bg-wrapper); }
  .wiki-wrapper { margin: 0; border: 2px solid transparent; box-shadow: none; padding: 15px 12px; border-radius: 0; background: var(--bg-wrapper); }
  .site-header h1 { font-size: 2rem; letter-spacing: 4px; }
  .site-header { flex-direction: column; align-items: center; min-height: auto; padding-bottom: 15px; }
  .theme-toggle-wrapper { position: static; transform: none; margin-top: 10px; }
  .sidebar-toggle { top: 12px; width: 36px; height: 36px; padding: 6px; border-radius: 3px; }
  .hamburger-box { width: 20px; height: 15px; }
  .hamburger-line { width: 20px; height: 2px; }
  html:not(.sidebar-collapsed) .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  html:not(.sidebar-collapsed) .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .page-container { padding: 8px 12px 16px 12px; }
  .left-sidebar { padding: 20px 12px; }
  .left-sidebar .section-title { font-size: 1rem; }
  :root { --sidebar-width: 220px; }
  .left-sidebar .sidebar-section:nth-child(2) ul { grid-template-columns: 1fr; }
  .left-sidebar .sidebar-section:nth-child(2) ul li a { font-size: 0.9rem; padding: 3px 0; text-align: left; }
  .header-center::after { padding-bottom: 15%; }
}

/* ================================================================
   ★ 生存难度卡片 ★
   ================================================================ */
.survival-card {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 0;
  border: 2px solid var(--border-main);
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0 24px 0;
  background: var(--bg-card);
}
.survival-card .level-badge {
  background: var(--bg-sidebar);
  padding: 8px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 2px solid var(--border-main);
}
.survival-card .level-badge .number {
  font-size: 3.04rem;
  font-weight: bold;
  color: var(--text-primary);
  line-height: 1.2;
}
.survival-card .level-badge .level-label {
  font-size: 1.6rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.survival-card .level-badge .level-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-primary);
  letter-spacing: 1px;
}
.survival-card .indicators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}
.survival-card .indicators .indicator {
  padding: 6px 12px;
  border-left: 1px solid var(--border-main);
  border-bottom: 1px solid var(--border-main);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.survival-card .indicators .indicator:nth-child(2) { border-right: none; }
.survival-card .indicators .indicator:nth-last-child(1),
.survival-card .indicators .indicator:nth-last-child(2) { border-bottom: none; }
.survival-card .indicators .indicator .label {
  font-size: 0.96rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.survival-card .indicators .indicator .value {
  font-size: 1.04rem;
  font-weight: bold;
  color: var(--text-primary);
}
.survival-card .indicators .indicator .sub {
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* ================================================================
   ★ 图片块（带说明文字） ★
   ================================================================ */
.scp-image-block {
  border: 1px solid var(--border-light);
  border-radius: 0;
  overflow: visible;
  background: var(--bg-card);
  max-width: 300px;
  margin-bottom: 12px;
  position: relative;
}
.scp-image-block .image-wrap {
  overflow: visible;
  position: relative;
  z-index: 1;
  display: block;
  transition: transform 0.3s ease 0.12s;
}
.scp-image-block .image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease 0.12s;
  position: relative;
  z-index: 1;
}
.scp-image-block .image-wrap:hover { z-index: 10; }
.scp-image-block .image-wrap:hover img {
  transform: scale(1.20);
  z-index: 10;
}
.scp-image-block .image-wrap:not(:hover) img {
  transition: transform 0.3s ease 0s;
}
.scp-image-block .scp-image-caption {
  padding: 8px 12px;
  font-size: 1.0625rem;
  color: var(--text-primary);
  text-align: center;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 0;
}
.scp-image-block.block-left {
  float: left;
  margin: 0 16px 12px 0;
}
.scp-image-block.block-right {
  float: right;
  margin: 0 0 12px 16px;
}
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* ===== 亮色模式：图片块说明文字 ===== */
[data-theme="light"] .scp-image-block .scp-image-caption {
  color: #222222;
}