:root {
  --ink: #17202a;
  --muted: #65717d;
  --paper: #f7f7f4;
  --white: #ffffff;
  --line: #dce1e5;
  --night: #101417;
  --night-soft: #1a2025;
  --amber: #d29b44;
  --danger: #a93c36;
  --charity: #4a90d9;
  --charity-accent: #f5a623;
  --noodle: #d4a574;
  --noodle-dark: #6f3d23;
  --forum: #34495e;
  --forum-accent: #e67e22;
  --care: #27ae60;
  --care-accent: #2ecc71;
  --hr: #2980b9;
  --hr-accent: #3498db;
  --radius: 6px;
  --shadow: 0 18px 50px rgba(8, 14, 18, .18);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--night);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { min-width: 320px; overflow-x: hidden; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(245, 166, 35, .55);
  outline-offset: 2px;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.icon { width: 18px; height: 18px; stroke-width: 1.8; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid transparent; border-radius: 5px; background: transparent; color: inherit;
}
.icon-btn:hover { background: rgba(255,255,255,.09); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.primary-btn, .secondary-btn, .text-btn, .site-btn {
  min-height: 42px; border-radius: 5px; padding: 0 18px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 650;
}
.primary-btn { color: #12171a; background: #e4b35c; border-color: #efc675; }
.primary-btn:hover { background: #efc675; }
.primary-btn:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.25); }
.secondary-btn { color: #f5f6f7; background: transparent; border-color: rgba(255,255,255,.35); }
.secondary-btn:hover { background: rgba(255,255,255,.1); }
.text-btn { color: inherit; background: transparent; padding-inline: 8px; }
.site-btn { color: white; background: var(--site-color, #3c6c98); }
.site-btn:hover { filter: brightness(.94); }

.intro {
  min-height: 100vh; color: #fff; background: #111 url('../assets/images/intro-desk.jpg') center/cover fixed;
  position: relative; display: grid; grid-template-rows: minmax(78vh, auto) auto;
}
.intro::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,11,14,.91) 0%, rgba(7,11,14,.76) 44%, rgba(7,11,14,.18) 78%),
              linear-gradient(0deg, rgba(7,11,14,.86) 0%, transparent 45%);
}
.intro-nav, .intro-hero, .notice-band { position: relative; z-index: 1; }
.intro-nav {
  position: absolute; inset: 0 0 auto; min-height: 68px; padding: 0 clamp(22px, 5vw, 76px);
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.15);
}
.wordmark { font-family: "SimSun", serif; font-size: 18px; letter-spacing: 4px; font-weight: 700; }
.intro-nav small { color: rgba(255,255,255,.62); letter-spacing: 0; }
.intro-hero {
  align-self: end; padding: 136px clamp(22px, 7vw, 104px) 72px; max-width: 880px;
}
.intro-hero h1 {
  margin: 0 0 22px; font-family: "SimSun", serif; font-size: clamp(54px, 8vw, 112px);
  line-height: .95; font-weight: 500; letter-spacing: 0;
}
.intro-hero .lede { max-width: 610px; margin: 0 0 34px; font-size: clamp(17px, 2vw, 21px); line-height: 1.8; color: rgba(255,255,255,.82); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.save-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: rgba(255,255,255,.58); font-size: 13px; }
.notice-band { background: rgba(9,13,16,.94); border-top: 1px solid rgba(255,255,255,.12); }
.notice-inner {
  max-width: 1180px; margin: 0 auto; padding: 34px 26px 40px;
  display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 34px;
}
.notice-inner h2 { margin: 0; font-family: "SimSun", serif; font-size: 28px; font-weight: 500; }
.notice-item { border-left: 1px solid rgba(255,255,255,.18); padding-left: 20px; }
.notice-item strong { display: block; margin-bottom: 8px; font-size: 14px; }
.notice-item p { margin: 0; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.7; }

.game-shell { min-height: 100vh; background: #151a1e; display: grid; grid-template-rows: 48px 50px minmax(0,1fr); color: #e9edf0; }
.casebar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 14px 0 18px;
  background: #0f1316; border-bottom: 1px solid #2a3136; color: #d9dee1;
}
.case-id { display: flex; min-width: 0; align-items: center; gap: 11px; }
.case-id strong { font-family: "SimSun", serif; letter-spacing: 2px; white-space: nowrap; }
.chapter-chip { color: #9ea9b0; font-size: 12px; padding-left: 10px; border-left: 1px solid #384047; white-space: nowrap; }
.case-tools { display: flex; align-items: center; gap: 2px; }
.progress-mini { width: 96px; height: 3px; background: #2d353a; margin-right: 10px; }
.progress-mini span { display: block; height: 100%; background: var(--amber); transition: width .5s ease; }
.browserbar {
  display: grid; grid-template-columns: auto minmax(180px, 1fr) minmax(180px, 360px) auto;
  align-items: center; gap: 10px; padding: 6px 12px; background: #20262b; border-bottom: 1px solid #353d43;
}
.nav-controls { display: flex; }
.address {
  height: 36px; background: #12171a; border: 1px solid #343d43; border-radius: 5px;
  display: flex; align-items: center; min-width: 0; padding: 0 12px; gap: 9px; color: #adb7bd;
}
.address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Consolas, monospace; font-size: 12px; }
.global-search { display: flex; position: relative; }
.global-search input {
  width: 100%; height: 36px; border: 1px solid #3a444b; border-radius: 5px 0 0 5px; padding: 0 12px;
  background: #141a1e; color: #f4f6f7; outline: none;
}
.global-search button { width: 42px; border: 1px solid #3a444b; border-left: 0; border-radius: 0 5px 5px 0; background: #2c353b; color: #e8ecee; }
.browser-actions { display: flex; }
.game-stage { min-height: 0; overflow: auto; background: var(--paper); color: var(--ink); position: relative; }
.stage-loading::after {
  content: ""; position: fixed; inset: 98px 0 0; background: #0d1114; z-index: 40;
  animation: page-flicker .65s ease forwards;
}
@keyframes page-flicker { 0%{opacity:0} 22%{opacity:1} 42%{opacity:.2;filter:brightness(2)} 66%{opacity:1} 100%{opacity:0;visibility:hidden} }

.site-page { min-height: 100%; background: var(--site-bg, #fff); }
.site-header { background: #fff; border-bottom: 1px solid rgba(23,32,42,.13); position: sticky; top: 0; z-index: 5; }
.site-header-inner { min-height: 74px; max-width: 1180px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 30px; }
.site-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--site-color); }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--site-color) 14%, white); }
.site-brand strong { font-size: 18px; }
.site-brand small { display: block; color: #7a858c; font-size: 10px; margin-top: 2px; }
.site-nav { display: flex; gap: 22px; }
.site-nav button { border: 0; background: none; color: #43505a; padding: 27px 0 24px; border-bottom: 3px solid transparent; }
.site-nav button:hover, .site-nav button.active { color: var(--site-color); border-color: var(--site-color); }
.site-hero { min-height: 430px; position: relative; display: flex; align-items: center; background: #23313a center/cover; color: white; overflow: hidden; }
.site-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,22,29,.75), rgba(11,22,29,.2)); }
.site-hero-content { position: relative; max-width: 1180px; width: 100%; margin: auto; padding: 70px 24px; }
.site-hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 650px; margin: 0 0 16px; line-height: 1.16; }
.site-hero p { font-size: 17px; line-height: 1.8; max-width: 590px; margin: 0 0 28px; color: rgba(255,255,255,.86); }
.site-section { max-width: 1180px; margin: auto; padding: 54px 24px; }
.site-section.compact { padding-block: 30px; }
.scene-kicker { margin: 0 0 8px; color: #9b7a42; font: 700 11px/1.4 Consolas, monospace; text-transform: uppercase; }
.search-match { animation: search-match 1.8s ease; box-shadow: inset 4px 0 #d5a14c; }
@keyframes search-match { 0%,45% { background-color: #fff3cf; } 100% { background-color: transparent; } }
.site-section h2 { margin: 0 0 10px; font-size: 28px; color: #1f2a31; }
.section-intro { color: #74808a; margin: 0 0 30px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: #fff; padding: 26px; min-height: 160px; }
.feature .icon { color: var(--site-color); width: 24px; height: 24px; margin-bottom: 22px; }
.feature h3 { margin: 0 0 9px; font-size: 17px; }
.feature p { margin: 0; color: #6e7981; line-height: 1.7; font-size: 14px; }
.news-list { border-top: 1px solid var(--line); }
.news-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 18px 4px; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 20px; text-align: left; color: inherit; }
.news-row:hover { background: rgba(0,0,0,.025); }
.news-row time { color: #89939a; font-family: Consolas, monospace; font-size: 12px; }
.news-row .icon { color: #8f999f; }
.article { max-width: 820px; margin: 0 auto; padding: 56px 24px 90px; }
.article h1 { margin: 0 0 14px; font-size: 36px; line-height: 1.3; }
.article-meta { color: #8b959b; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-body { font-family: "SimSun", serif; font-size: 17px; line-height: 2.05; }
.article-body p { margin: 24px 0; }
.article-sign { text-align: right; margin-top: 42px; }
.article-action { display:flex;justify-content:flex-end;margin-top:34px;padding-top:24px;border-top:1px solid var(--line);font-family:"Segoe UI","Microsoft YaHei",sans-serif; }
.archive-status { display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:32px;color:#49765a;font:600 13px/1.5 "Segoe UI","Microsoft YaHei",sans-serif; }
.chairman-note { border-top:1px solid var(--line);border-bottom:1px solid var(--line); }
.chairman-note p { max-width:760px;color:#68747c;line-height:1.8; }
.chairman-note strong { color:#49575f;font-size:13px; }

.project-list, .elder-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 130px 1fr 210px; gap: 22px; padding: 18px 10px; align-items: center; border-bottom: 1px solid var(--line); background: #fff; }
.project-code { font-family: Consolas, monospace; color: #75808a; font-size: 12px; }
.project-person strong { display:block; margin-bottom: 4px; }
.project-person small { color:#7a858d; }
.status { display: inline-flex; align-items: center; gap: 7px; color: #5e6b72; font-size: 13px; }
.status img { width: 26px; height: 26px; object-fit: cover; border-radius: 3px; }
.source-pulse { box-shadow: inset 3px 0 var(--danger); background: #fff7f6; }

.food-hero { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 360px; background: #fff7e9; }
.food-photo { background: #8c5638 center/cover; }
.food-copy { padding: clamp(36px,6vw,78px); display: flex; flex-direction: column; justify-content: center; }
.food-copy h1 { font-family: "KaiTi", "SimSun", serif; font-size: 48px; margin: 0 0 14px; color: #5f3520; }
.rating { color: #8a5c31; font-size: 14px; }
.menu-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 24px; }
.menu-item { padding: 18px 0; border-bottom: 1px dashed #d8c1a7; display: flex; justify-content: space-between; }
.review-tabs { display: flex; border-bottom: 1px solid #ddc8ae; gap: 18px; }
.review-tabs button { border: 0; background: transparent; padding: 12px 0; color: #74543a; }
.review-tabs .active { border-bottom: 2px solid #8b4513; font-weight: 700; }
.review { padding: 24px 0; border-bottom: 1px solid #e9ddce; }
.review-head { display: flex; justify-content: space-between; margin-bottom: 10px; color: #7b6652; font-size: 13px; }
.review blockquote { margin: 0; line-height: 1.8; }
.odd-caption { display:block;width:100%;margin-top:48px;padding:8px 0;border:0;background:transparent;color:#999;font-size:12px;text-align:left;transition:color .2s; }
.odd-caption:hover, .odd-caption.recorded { color:#5d4a3a; }
.odd-caption.recorded::after { content:" · 已记录";font-family:Consolas,monospace;color:#877462; }

.forum-page { background: #ecf0f1; min-height: 100%; }
.forum-top { background: var(--forum); color: white; }
.forum-top-inner { max-width: 1120px; margin: auto; padding: 16px 22px; display:flex; align-items:center; justify-content:space-between; }
.forum-top strong { font-size: 22px; }
.forum-wrap { max-width: 1120px; margin: 22px auto; padding: 0 20px 60px; }
.forum-crumb { color: #6b7881; font-size: 13px; margin-bottom: 12px; }
.forum-profile { background: #fff; border: 1px solid #d5dce0; padding: 22px; display: flex; align-items: center; gap: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display:grid;place-items:center;background:#dbe2e6;color:var(--forum); }
.forum-profile h1 { font-size: 20px; margin: 0 0 6px; }
.signature { color: #7c878e; font-size: 13px; }
.post { margin-top: 12px; background: #fff; border: 1px solid #d5dce0; display: grid; grid-template-columns: 150px 1fr; }
.post-side { padding: 20px; background: #f6f7f8; border-right: 1px solid #e1e5e8; font-size: 12px; color: #7a858c; }
.post-body { padding: 20px 24px 24px; }
.post-body h3 { margin: 0 0 18px; color: #2d4252; }
.post-body p { line-height: 2; color: #4a565e; }
.cipher-char { border:0;background:transparent;color:inherit;padding:0;font-weight:800; }
.cipher-char.found { background:transparent;color:#315f73;text-decoration:underline;text-decoration-thickness:2px; }
.cipher-strip { position: sticky; bottom: 12px; margin-top: 18px; padding: 13px 18px; background: #253746; color: white; box-shadow: var(--shadow); display:flex; align-items:center; gap:14px; }
.cipher-strip output { font-family: "SimSun", serif; font-size: 20px; letter-spacing: 8px; }
.cipher-strip .secondary-btn { margin-left:auto; }

.care-page { --site-color: var(--care); --site-bg: #fff; }
.rule-list { counter-reset: rules; border-top: 1px solid var(--line); }
.rule { counter-increment: rules; display: grid; grid-template-columns: 46px 1fr; padding: 18px 4px; border-bottom: 1px solid var(--line); line-height: 1.8; }
.rule::before { content: counter(rules, decimal-leading-zero); font-family: Consolas, monospace; color: #9aa4aa; }
.rule.suspicious { background:transparent; }
.care-footer { padding: 28px 24px; border-top: 1px solid #dfe6e1; text-align:center; color:#8b9790; font-size:12px; }
.care-footer button { border:0; background:none;color:#a3aaa6;font-size:10px;padding:6px; }
.elder-profile { display:grid; grid-template-columns: minmax(220px,360px) 1fr; gap:42px; align-items:start; }
.photo-unavailable { width:100%;aspect-ratio:4/5;background:#e8eee9;color:#6f7d74;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:1px solid #d6dfd8; }
.photo-unavailable .icon { width:38px;height:38px;opacity:.55; }
.photo-unavailable small { font-family:Consolas,monospace;color:#929d96; }
.elder-profile h1 { font-size: 38px; margin: 10px 0; }
.elder-meta { display:grid; grid-template-columns:repeat(2,1fr); gap:1px;background:var(--line);border:1px solid var(--line);margin:28px 0; }
.elder-meta div { background:white;padding:16px; }
.elder-meta small { display:block;color:#849088;margin-bottom:5px; }

.hr-page { --site-color: var(--hr); --site-bg:#f5f5f5; }
.hr-hero { min-height:350px; }
.jobs { background:#fff;border:1px solid #dce1e4; }
.job-row { display:grid;grid-template-columns:1fr 150px 140px auto;gap:18px;align-items:center;padding:20px;border-bottom:1px solid #e5e8ea; }
.job-row:last-child { border-bottom:0; }
.job-row small { color:#7b858c; }
.partner-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:12px; }
.partner { min-height:90px;background:#fff;border:1px solid #dde2e5;display:grid;place-items:center;color:#6d7780;font-weight:700; }
.internal-entry { margin-top:42px;border-top:1px solid #d7dde0;padding-top:22px;display:flex;justify-content:flex-end; }
.internal-entry button { color:#888;border:1px solid #ccc;background:#eee;padding:8px 14px;border-radius:3px; }
.password-panel { max-width:520px;margin:40px auto;background:#fff;border:1px solid #d8dee2;padding:34px;box-shadow:0 10px 30px rgba(18,31,41,.08); }
.password-panel h2 { margin-top:0; }
.field-row { display:flex;gap:8px; }
.field-row input, .tool-panel textarea { width:100%;border:1px solid #cbd3d8;border-radius:4px;padding:12px;background:#fff;color:#24323a; }
.data-table-wrap { overflow:auto; border:1px solid #d9dfe2; background:#fff; }
.data-table { width:100%; border-collapse:collapse; min-width:760px; }
.data-table th { text-align:left;background:#e8edf0;color:#53616a;font-size:12px;padding:12px;position:sticky;top:0; }
.data-table td { padding:12px;border-top:1px solid #edf0f2;font-size:13px; }
.data-table tr:nth-child(even) td { background:#fafbfb; }
.danger-text { color:var(--danger);font-weight:700; }

.compare-layout { display:grid;grid-template-columns:1fr 1fr;gap:18px; }
.compare-panel { min-width:0; }
.compare-panel h3 { margin:0 0 10px;display:flex;justify-content:space-between;align-items:center; }
.select-row { display:grid;grid-template-columns:30px 1fr 100px;gap:10px;padding:12px;border-bottom:1px solid #e6eaec;background:#fff;align-items:center; }
.select-row.selected { background:#fff7e4; }
.compare-action { margin:24px 0 0;display:flex;align-items:center;justify-content:center;gap:14px; }

.room-scene { min-height:calc(100vh - 98px); background:#111820 url('../assets/images/intro-desk.jpg') center/cover; position:relative;display:grid;place-items:center;padding:30px;color:white; }
.room-scene::before { content:"";position:absolute;inset:0;background:rgba(5,9,11,.62); }
.desk-evidence { position:relative;width:min(900px,100%);min-height:520px;border:1px solid rgba(255,255,255,.16);background:rgba(13,18,21,.78);box-shadow:var(--shadow);padding:clamp(24px,5vw,54px);display:grid;grid-template-columns:1fr 1fr;gap:20px; }
.desk-copy { grid-column:1/-1; }
.desk-copy h1 { font-family:"SimSun",serif;font-size:36px;margin:0 0 10px; }
.desk-copy p { color:#aeb8be;line-height:1.8;max-width:650px; }
.evidence-object { border:1px solid #3c464d;background:#171e22;color:#f1f3f4;padding:24px;text-align:left;min-height:160px;position:relative;border-radius:4px; }
.evidence-object:hover { border-color:#bd985c;background:#1b2328; }
.evidence-object .icon { width:28px;height:28px;color:#d6ad68;margin-bottom:26px; }
.evidence-object strong { display:block;font-size:18px;margin-bottom:7px; }
.evidence-object span { color:#919da4;font-size:13px;line-height:1.7; }
.evidence-object.done::after { content:"已查阅";position:absolute;right:12px;top:12px;font-size:11px;color:#d8b26d; }
.room-continue { grid-column:1/-1;justify-self:end; }
.sealed-package-view { grid-template-columns:1fr;align-content:center; }
.sealed-package { width:min(420px,100%);min-height:210px;justify-self:center;border:1px solid #6c5a3f;background:#2a241b;color:#f3eadb;padding:30px;text-align:left;box-shadow:0 18px 40px rgba(0,0,0,.35); }
.sealed-package:hover { border-color:#d0aa68;background:#30281d; }
.sealed-package .icon { width:34px;height:34px;color:#d6ad68;margin-bottom:34px; }
.sealed-package strong { display:block;font:500 25px/1.3 "SimSun",serif;margin-bottom:10px; }
.sealed-package span { display:block;color:#aaa091;font-size:13px;line-height:1.7; }

.modal-backdrop { position:fixed;inset:0;background:rgba(4,7,9,.72);z-index:100;display:grid;place-items:center;padding:20px; }
.modal { width:min(680px,100%);max-height:min(82vh,820px);overflow:auto;background:#f7f7f4;color:#202a30;border-radius:6px;box-shadow:0 30px 90px rgba(0,0,0,.4); }
.modal.dark { background:#171d21;color:#e8ecee; }
.modal-head { min-height:62px;padding:0 20px 0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(127,139,147,.24); }
.modal-head h2 { font-size:18px;margin:0; }
.modal-body { padding:24px; }
.modal-body p { line-height:1.85; }
.notice-modal { width:min(760px,100%); }
.notice-modal .modal-body { padding:0; }
.user-notice { padding:28px; }
.notice-lead { margin:0 0 22px;color:#66737b; }
.notice-rules { border-top:1px solid #dce2e5; }
.notice-rules section { display:grid;grid-template-columns:28px 1fr;gap:14px;padding:18px 0;border-bottom:1px solid #dce2e5; }
.notice-rules section > .icon { color:#9b7436;margin-top:2px; }
.notice-rules strong { display:block;margin-bottom:5px;font-size:14px; }
.notice-rules p { margin:0;color:#69757d;font-size:13px;line-height:1.7; }
.notice-consent { display:flex;align-items:flex-start;gap:11px;margin-top:22px;padding:15px;background:#eceeea;border:1px solid #d9ddda;color:#3e4a50;font-size:13px;line-height:1.65;cursor:pointer; }
.notice-consent input { width:18px;height:18px;margin:2px 0 0;accent-color:#9b7436;flex:0 0 auto; }
.notice-actions { display:flex;justify-content:flex-end;margin-top:20px; }
.search-result-card { border:1px solid #d8dfe3;background:#fff;padding:20px; }
.search-result-card small { display:block;color:#7c8991;font:11px/1.5 Consolas,monospace;margin-bottom:7px; }
.search-result-card strong { display:block;font-size:18px;margin-bottom:6px; }
.search-result-card p { margin:0 0 18px;color:#748087;font-size:13px; }
.decoded-statement { padding:22px;background:#10171b;color:#f3d18a;font:500 24px/1.5 "SimSun",serif;text-align:center; }
.letter-paper { background:#ece4d1;color:#2d2a25;padding:40px;box-shadow:inset 0 0 40px rgba(94,70,33,.08);font-family:"KaiTi","SimSun",serif;font-size:20px;line-height:2; }
.letter-sign { text-align:right;margin-top:30px; }
.file-list { border:1px solid #394249; }
.file-row { padding:14px;border-bottom:1px solid #394249;display:flex;align-items:center;gap:12px; }
.file-row:last-child { border:0; }
.corrupt { font-family:Consolas,"Microsoft YaHei",monospace;color:#b9c1c6;background:#101518;padding:18px;line-height:1.9;margin-top:18px; }
.corrupt mark { background:#664d27;color:#ffe7b5;padding:2px 4px; }
.source-modal { width:min(900px,100%); }
.source-code { margin:0;background:#0c1114;color:#b7c4cb;padding:22px;overflow:auto;font:13px/1.8 Consolas,monospace;white-space:pre-wrap;word-break:break-all; }
.source-code .source-clue { display:block;background:transparent;color:inherit;padding:4px 8px;margin:5px -8px;border-left:0;cursor:text; }
.tool-panel label { display:block;font-size:12px;color:#829097;margin-bottom:8px; }
.tool-panel textarea { min-height:120px;resize:vertical;font-family:Consolas,monospace; }
.tool-result { margin-top:14px;padding:15px;background:#101619;color:#e8edf0;min-height:56px;line-height:1.8; }
.clue-list { display:grid;gap:0;border-top:1px solid rgba(126,139,148,.24); }
.clue-item { padding:16px 0;border-bottom:1px solid rgba(126,139,148,.24); }
.clue-item strong { display:block;margin-bottom:6px; }
.clue-item p { margin:0;color:#7a878e;font-size:13px;line-height:1.65; }
.clue-record { margin-top:8px;color:#6f7980; }
.setting-row { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #dde2e4; }
.save-status { display:flex;align-items:center;gap:14px;padding:0 0 20px;border-bottom:1px solid #dce1e3; }
.save-status > .icon { width:28px;height:28px;color:#3f7b5c; }
.save-status strong { display:block;margin-bottom:5px; }
.save-status span { color:#758087;font-size:13px;line-height:1.6; }
.save-summary { border-bottom:1px solid #dce1e3; }
.save-row { min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e7eaec; }
.save-row:last-child { border-bottom:0; }
.save-row span { color:#748087;font-size:13px; }
.save-row strong { text-align:right;font-size:14px; }
.save-actions { display:flex;justify-content:flex-end;padding-top:22px; }
.confirm-actions { display:flex;justify-content:flex-end;gap:10px;margin-top:24px; }
.danger-btn { min-height:40px;border:1px solid #a84b46;border-radius:5px;background:#a13f3a;color:white;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:650; }
.danger-btn:hover { background:#8f3531; }
.switch { width:46px;height:26px;border-radius:13px;border:0;background:#a9b1b6;padding:3px; }
.switch span { display:block;width:20px;height:20px;background:#fff;border-radius:50%;transition:transform .2s; }
.switch.on { background:#4f7b63; }
.switch.on span { transform:translateX(20px); }

.clueboard { min-height:calc(100vh - 98px);background:#302c27;color:#2a2926;padding:30px; }
.board-inner { max-width:1200px;margin:auto; }
.board-head { display:flex;align-items:flex-start;justify-content:space-between;color:#f3eee5;margin-bottom:24px; }
.board-head h1 { font-family:"SimSun",serif;font-size:34px;margin:0 0 6px; }
.board-head p { color:#bbb3a8;margin:0; }
.board-progress { font-family:Consolas,monospace;font-size:12px;color:#d6c5a9; }
.board-grid { display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:20px; }
.evidence-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-content:start; }
.clue-card { background:#f2ead7;min-height:150px;padding:17px;box-shadow:0 7px 18px rgba(0,0,0,.2);position:relative;transform:rotate(var(--tilt,0deg)); }
.clue-card::before { content:"";position:absolute;width:12px;height:12px;border-radius:50%;background:#8f2f2b;top:8px;left:50%;box-shadow:0 2px 3px rgba(0,0,0,.3); }
.clue-card.draggable { cursor:grab;user-select:none;transition:transform .16s ease,box-shadow .16s ease; }
.clue-card.draggable:hover { transform:rotate(0deg) translateY(-3px);box-shadow:0 12px 24px rgba(0,0,0,.28); }
.clue-card.draggable:active { cursor:grabbing; }
.clue-card.selected { outline:3px solid #d2aa50;outline-offset:2px; }
.clue-drag-handle { position:absolute;right:8px;top:8px;color:#8b8172; }
.clue-drag-handle .icon { width:16px;height:16px; }
.clue-card small { display:block;margin-top:12px;color:#786f62;font-size:10px;text-transform:uppercase; }
.clue-card h3 { font-size:15px;margin:14px 0 8px; }
.clue-card p { font-family:"SimSun",serif;margin:0;color:#5d574e;font-size:13px;line-height:1.65; }
.reason-panel { background:rgba(28,27,25,.93);color:#eee8de;border:1px solid #5c554b;padding:22px; }
.reason-panel h2 { margin:0 0 8px;font-size:20px; }
.reason-panel > p { color:#a9a198;font-size:13px;line-height:1.7; }
.org-pool { display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0; }
.org-card { padding:12px;background:#eee6d6;color:#282621;border:0;border-radius:3px;font-size:12px;font-weight:700;min-height:70px; }
.org-card[draggable="true"] { cursor:grab; }
.org-card.used { opacity:.3;pointer-events:none; }
.org-card.selected { outline:3px solid #d2aa50;outline-offset:2px; }
.reason-slots { display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:6px; }
.reason-slot { min-height:112px;border:1px dashed #82796d;display:grid;place-items:center;text-align:center;padding:9px;color:#aaa197;font-size:12px; }
.reason-slot.filled { border-style:solid;border-color:#c8a95f;background:#3b352b;color:#fff; }
.reason-arrow { color:#c8a95f; }
.reason-arrow .icon { width:16px; }
.confirm-chain { width:100%;margin-top:20px; }

.story-panel { position:fixed;inset:auto 18px 18px auto;width:min(420px,calc(100vw - 36px));z-index:60;background:#12181c;color:#edf1f3;border:1px solid #3c464d;box-shadow:var(--shadow); }
.story-panel .modal-head { min-height:50px; }
.story-panel .modal-body { padding:18px 22px;max-height:44vh;overflow:auto; }
.story-panel p { color:#b8c1c6;font-family:"SimSun",serif;line-height:1.9;margin:0 0 12px; }
.story-panel .story-action { display:flex;justify-content:flex-end;margin-top:14px; }

.toast-region { position:fixed;right:18px;top:112px;z-index:200;display:grid;gap:8px;width:min(360px,calc(100vw - 36px));pointer-events:none; }
.toast { background:#182126;color:#f1f4f5;border-left:3px solid #d6a84f;box-shadow:var(--shadow);padding:15px 18px;animation:toast-in .25s ease; }
.toast strong { display:block;margin-bottom:4px; }
.toast span { color:#aeb8be;font-size:13px;line-height:1.6; }
@keyframes toast-in { from{opacity:0;transform:translateY(-8px)} }
.breakthrough { position:fixed;inset:0;z-index:300;background:#0e1418;color:white;display:grid;place-items:center;text-align:center;padding:28px;animation:breakthrough-in .8s ease; }
.breakthrough-content { max-width:760px; }
.breakthrough .icon { width:52px;height:52px;color:#dcb55f;margin-bottom:24px; }
.breakthrough h1 { font-family:"SimSun",serif;font-size:clamp(40px,7vw,78px);margin:0 0 20px; }
.breakthrough p { color:#aeb8be;font-size:17px;line-height:1.9; }
@keyframes breakthrough-in { from{opacity:0;filter:brightness(2)} }

@media (max-width: 900px) {
  .notice-inner { grid-template-columns: 1fr; gap: 22px; }
  .notice-item { border-left:0;border-top:1px solid rgba(255,255,255,.18);padding:18px 0 0; }
  .browserbar { grid-template-columns:auto 1fr auto; }
  .global-search { grid-column:1/-1; grid-row:2; }
  .game-shell { grid-template-rows:48px auto minmax(0,1fr); }
  .site-nav { display:none; }
  .site-header-inner { min-height:60px; }
  .feature-grid { grid-template-columns:1fr; }
  .food-hero { grid-template-columns:1fr; }
  .food-photo { min-height:260px; grid-row:1; }
  .post { grid-template-columns:1fr; }
  .post-side { border-right:0;border-bottom:1px solid #e1e5e8;padding:12px 20px; }
  .compare-layout, .board-grid { grid-template-columns:1fr; }
  .evidence-grid { grid-template-columns:repeat(2,1fr); }
  .elder-profile { grid-template-columns:1fr; }
  .partner-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 600px) {
  .intro { background-attachment:scroll; }
  .intro-nav { padding-inline:18px; }
  .intro-nav small { display:none; }
  .intro-hero { padding:120px 20px 52px; }
  .intro-hero h1 { font-size:54px; }
  .intro-actions { flex-direction:column;align-items:stretch; }
  .case-id strong { font-size:14px; }
  .chapter-chip { max-width:150px;overflow:hidden;text-overflow:ellipsis; }
  .progress-mini { display:none; }
  .browserbar { padding:6px;gap:5px; }
  .nav-controls .icon-btn:nth-child(2) { display:none; }
  .address { padding-inline:8px; }
  .browser-actions .icon-btn:first-child { display:none; }
  .site-hero { min-height:380px; }
  .site-hero-content { padding:54px 20px; }
  .site-section { padding:38px 18px; }
  .news-row { grid-template-columns:86px 1fr; }
  .news-row .icon { display:none; }
  .project-row { grid-template-columns:1fr;gap:7px; }
  .menu-list { grid-template-columns:1fr; }
  .forum-wrap { padding-inline:10px; }
  .post-body { padding-inline:16px; }
  .cipher-strip { margin-inline:0; }
  .job-row { grid-template-columns:1fr 1fr; }
  .job-row .site-btn { grid-column:1/-1; }
  .compare-layout { gap:28px; }
  .desk-evidence { grid-template-columns:1fr;min-height:0; }
  .desk-copy, .room-continue { grid-column:1; }
  .modal-backdrop { padding:8px; }
  .letter-paper { padding:26px 20px;font-size:18px; }
  .clueboard { padding:18px 10px 30px; }
  .board-head { display:block; }
  .board-progress { margin-top:12px; }
  .evidence-grid { grid-template-columns:1fr; }
  .reason-slots { grid-template-columns:1fr; }
  .reason-arrow { transform:rotate(90deg);justify-self:center; }
  .org-pool { grid-template-columns:1fr; }
  .story-panel { inset:auto 8px 8px; width:calc(100vw - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important;animation-iteration-count:1 !important;scroll-behavior:auto !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration:.01ms !important;animation-iteration-count:1 !important;scroll-behavior:auto !important; }
