:root {
  --blue: #0c5fa3;
  --blue-bright: #1683c8;
  --blue-deep: #0a4d86;
  --blue-soft: #e8f4fb;
  --qq-link: #336699;
  --qq-bg: #d4e9f2;
  --qq-panel: #f4f9fc;
  --qq-tab: #eef6fb;
  --qq-border: #b9d2dc;
  --qq-border-soft: #d7e2e9;
  --line: #d7e2e9;
  --ink: #2f3b43;
  --muted: #81909a;
  --paper: #fff;
  --page: #edf4f7;
  --accent: #f29836;
  --danger: #a24747;
  --shadow: 0 10px 28px rgba(38, 67, 84, .14);
  --radius: 3px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #c8dde6; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(255,255,255,.95), transparent 25rem),
    linear-gradient(#c8dde6 0, #e0ecf2 28rem, #e8eff2 100%);
  font: 12px/1.65 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(242, 152, 54, .38);
  outline-offset: 2px;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* Story guide */
.prologue-screen {
  position: relative; z-index: 300; min-height: 100vh; color: #eef6f8; background: #0c1b24;
  overflow: hidden;
}
.prologue-screen::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .055;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #fff 4px);
}
.prologue-nav {
  position: absolute; z-index: 2; top: 0; left: 50%; width: min(1160px,calc(100% - 40px)); height: 72px;
  display: flex; align-items: center; justify-content: space-between; transform: translateX(-50%);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.prologue-nav > span { font-size: 13px; letter-spacing: .22em; }
.prologue-nav > span i { width: 7px; height: 7px; margin-right: 8px; display: inline-block; border-radius: 50%; background: #e5ad58; box-shadow: 0 0 12px #e5ad58; }
.prologue-resume { padding: 7px 0; color: rgba(255,255,255,.76); border: 0; border-bottom: 1px solid rgba(255,255,255,.42); background: transparent; cursor: pointer; font-size: 12px; }
.prologue-resume:hover { color: #fff; }
.prologue-hero {
  position: relative; min-height: 100vh; padding: 132px max(28px,calc((100vw - 1160px)/2)) 100px; display: flex; align-items: center;
  background:
    linear-gradient(90deg,rgba(5,16,23,.92) 0%,rgba(6,19,28,.72) 46%,rgba(7,22,31,.2) 76%),
    linear-gradient(0deg,#0c1b24 0%,transparent 26%),
    url("../images/space-skin-campus.webp") center/cover no-repeat;
}
.prologue-hero-copy { width: min(650px,100%); }
.prologue-kicker { margin: 0 0 25px; color: #e4b468; font: 12px/1.4 Consolas,monospace; letter-spacing: .24em; }
.prologue-hero h1 { margin: 0 0 28px; font: 500 clamp(42px,5.3vw,72px)/1.22 "STKaiti","KaiTi",serif; letter-spacing: .02em; text-shadow: 0 8px 28px rgba(0,0,0,.42); }
.prologue-hero-copy > p:not(.prologue-kicker) { width: min(590px,100%); margin: 0; color: rgba(229,240,244,.76); font-size: 16px; line-height: 2; }
.prologue-visitor { width: min(430px,100%); margin-top: 36px; padding: 13px 17px; display: flex; align-items: center; gap: 13px; color: #425865; background: rgba(250,253,254,.94); border-left: 3px solid #da5858; box-shadow: 0 12px 35px rgba(0,0,0,.3); }
.prologue-visitor .avatar { flex: 0 0 auto; }
.prologue-visitor small,.prologue-visitor b,.prologue-visitor span { display: block; }
.prologue-visitor small { color: #91a0a8; font-size: 10px; }
.prologue-visitor b { color: #263e49; }
.prologue-visitor span { margin-top: 1px; color: #758992; font-size: 11px; }
.prologue-visitor > i { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #dd5353; box-shadow: 0 0 0 0 rgba(221,83,83,.5); animation: pulse 1.8s infinite; }
.prologue-scroll { position: absolute; left: 50%; bottom: 24px; display: grid; justify-items: center; gap: 8px; color: rgba(255,255,255,.5); transform: translateX(-50%); font-size: 10px; letter-spacing: .22em; }
.prologue-scroll span { width: 1px; height: 38px; background: linear-gradient(transparent,#fff); animation: guideScroll 1.8s ease-in-out infinite; }
@keyframes guideScroll { 0%,100% { opacity: .35; transform: scaleY(.65); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
.prologue-content { color: #dfeaed; background: linear-gradient(135deg,#0c1b24,#102936 54%,#0b1820); }
.prologue-story,.prologue-play,.prologue-mission { width: min(1080px,calc(100% - 48px)); margin: auto; padding: 118px 0; }
.prologue-section-title > span { display: block; margin-bottom: 14px; color: #d8a85d; font: 11px/1.4 Consolas,monospace; letter-spacing: .18em; }
.prologue-section-title h2 { margin: 0; color: #f1f6f7; font: 400 clamp(30px,4vw,48px)/1.3 "STKaiti","KaiTi",serif; }
.prologue-section-title > p { max-width: 660px; margin: 18px 0 0; color: #8fa4ad; line-height: 1.9; }
.prologue-timeline { margin: 62px 0 45px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.17); }
.prologue-timeline article { position: relative; padding: 31px 36px 0 0; }
.prologue-timeline article::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #708792; box-shadow: 0 0 0 5px #102630; }
.prologue-timeline article.now::before { background: #e0a957; box-shadow: 0 0 0 5px #102630,0 0 15px #d89e48; }
.prologue-timeline time { color: #d8a85d; font: 12px/1.4 Consolas,monospace; }
.prologue-timeline p { color: #a9bbc2; line-height: 1.9; }
.prologue-story blockquote { margin: 0; padding: 18px 0 18px 30px; color: #dbe6e9; border-left: 2px solid #d2a45f; font: 20px/1.9 "STKaiti","KaiTi",serif; }
.prologue-play { border-top: 1px solid rgba(255,255,255,.1); }
.prologue-methods { margin-top: 50px; display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.prologue-methods article { min-height: 210px; padding: 28px 30px; border: 1px solid rgba(151,188,202,.18); background: rgba(255,255,255,.035); }
.prologue-methods article > b { color: rgba(216,168,93,.56); font: 11px/1 Consolas,monospace; }
.prologue-methods h3 { margin: 40px 0 13px; color: #eef5f7; font-size: 18px; font-weight: 500; letter-spacing: .22em; }
.prologue-methods p { margin: 0; color: #91a8b1; line-height: 1.9; }
.prologue-mission { padding-top: 105px; padding-bottom: 120px; text-align: center; border-top: 1px solid rgba(255,255,255,.1); }
.prologue-mission > span { color: #d9ad68; font-size: 11px; letter-spacing: .2em; }
.prologue-mission h2 { margin: 20px 0 23px; color: #f4f7f8; font: 400 clamp(32px,4.8vw,58px)/1.45 "STKaiti","KaiTi",serif; }
.prologue-mission p { max-width: 680px; margin: 0 auto; color: #879da6; line-height: 1.9; }
.prologue-enter { min-width: 240px; min-height: 56px; margin-top: 38px; padding: 0 27px; color: #132733; border: 0; background: #e8bb74; box-shadow: 0 8px 28px rgba(0,0,0,.25); cursor: pointer; font-weight: 700; letter-spacing: .08em; }
.prologue-enter i { margin-left: 26px; font-style: normal; font-size: 18px; }
.prologue-enter:hover { background: #f2c985; transform: translateY(-2px); }
.prologue-screen > footer { padding: 22px; color: rgba(255,255,255,.34); background: #08141a; text-align: center; font-size: 11px; }

/* Entry */
.entry-screen {
  min-height: 100vh;
  padding: 7vh 24px 32px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #eaf6fb;
  background:
    linear-gradient(rgba(7,26,43,.44), rgba(5,19,33,.82)),
    radial-gradient(circle at 50% 20%, #4b829f, #182c3c 58%, #0a1722);
  overflow: hidden;
  position: relative;
}
.entry-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: .14;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #fff 4px);
}
.entry-window {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  background: #f8fbfc;
  color: #354650;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 34px 90px rgba(0,0,0,.48);
  position: relative;
}
.window-bar {
  grid-column: 1 / -1;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(#2597d5, #0874b6);
  font-size: 13px;
}
.window-logo {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue);
  border-radius: 50%;
  font-weight: 800;
}
.window-controls { margin-left: auto; letter-spacing: 8px; opacity: .8; }
.entry-visual {
  min-height: 610px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(20,81,115,.18), rgba(8,30,47,.4)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 7px),
    #274e66;
  position: relative;
  overflow: hidden;
}
.entry-visual::after {
  content: "2014";
  position: absolute;
  left: 28px;
  bottom: 16px;
  font: 700 96px/1 Arial;
  color: rgba(255,255,255,.05);
}
.old-monitor {
  width: 230px;
  height: 176px;
  border: 14px solid #c8c6b8;
  border-bottom-width: 28px;
  border-radius: 9px;
  background: #0d2230;
  box-shadow: 0 18px 0 -8px #a7a494, 0 26px 0 -10px #77786f, 0 30px 50px rgba(0,0,0,.4);
  display: grid;
  place-items: center;
  position: relative;
  transform: perspective(700px) rotateY(4deg) translateY(-22px);
}
.old-monitor::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #80b969;
  box-shadow: 0 0 9px #8ccc73;
}
.monitor-glow { position: absolute; inset: 0; box-shadow: inset 0 0 35px #2c718e; }
.login-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background-color: #2e7190;
  background-image: url("../images/profile-avatars.webp");
  background-position: 0 0;
  background-size: 300% 200%;
  background-repeat: no-repeat;
  box-shadow: 0 0 20px rgba(88,180,220,.32);
  transform: translateY(-20px);
}
.login-lines { position: absolute; left: 58px; right: 58px; bottom: 10px; }
.login-lines i { display: block; height: 5px; margin-top: 8px; border-radius: 6px; background: rgba(255,255,255,.15); }
.login-lines i:last-child { width: 65%; }
.monitor-account {
  position: absolute; bottom: 41px; color: rgba(220,244,255,.72);
  font-size: 10px; letter-spacing: .08em;
}
.recovery-source {
  position: absolute; top: 24px; left: 26px; right: 26px; padding-bottom: 11px;
  border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(220,241,250,.52);
  font: 9px/1.5 Consolas,monospace; letter-spacing: .08em;
}
.recovery-source span,.recovery-source b { display: block; }
.recovery-source b { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(225,245,253,.75); font-weight: 400; letter-spacing: 0; }
.recovery-log {
  position: absolute; left: 28px; right: 28px; bottom: 30px; padding: 13px 14px;
  border: 1px solid rgba(153,212,236,.16); color: rgba(222,241,249,.72);
  background: rgba(5,25,38,.32); font: 10px/1.5 Consolas,monospace;
}
.recovery-log p { margin: 0; padding: 4px 0; display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.recovery-log i { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #e3b55d; box-shadow: 0 0 6px rgba(227,181,93,.55); }
.recovery-log i.ok { background: #72c886; box-shadow: 0 0 6px rgba(114,200,134,.6); }
.recovery-log b { color: rgba(238,248,252,.86); font-weight: 400; }
.recovery-log small { margin-top: 7px; display: block; color: rgba(199,224,235,.4); }
.entry-copy {
  padding: 36px 50px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.entry-overline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.entry-overline .eyebrow { margin: 0; }
.entry-overline > span { padding: 3px 7px; color: #678896; border: 1px solid #c9dce4; background: #eef6f9; font-size: 10px; }
.eyebrow { margin: 0 0 12px; color: #8295a1; font-size: 12px; letter-spacing: .12em; }
.entry-copy h1 {
  margin: 0 0 14px;
  color: #203844;
  font-size: clamp(30px, 3.5vw, 43px);
  line-height: 1.25;
  letter-spacing: -.04em;
  font-weight: 700;
}
.entry-copy > p:not(.eyebrow):not(.entry-note) { margin: 0 0 14px; color: #627680; }
.saved-session {
  margin-bottom: 11px; padding: 11px 13px; display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto; gap: 11px; align-items: center;
  border: 1px solid #d4e0e6; background: #f4f8fa;
}
.saved-session .avatar { width: 44px; height: 44px; }
.saved-session-main small,.saved-session-main b,.password-dots { display: block; }
.saved-session-main small { color: #91a0a8; font-size: 10px; }
.saved-session-main b { color: #405964; font-size: 13px; }
.password-dots { margin-top: -1px; color: #7b939e; font-size: 9px; letter-spacing: .1em; }
.session-tag { padding: 3px 7px; color: #8b7428; border: 1px solid #d9c985; background: #fffbed; font-size: 10px; }
.visitor-alert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 11px;
  background: #fff;
  border: 1px solid #dbe6eb;
  border-left: 3px solid #e05e5e;
  box-shadow: 0 6px 18px rgba(34,80,100,.08);
}
.visitor-alert small { display: block; margin-top: 2px; color: #93a0a8; }
.pulse-dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: #e05e5e;
  box-shadow: 0 0 0 0 rgba(224,94,94,.55);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(224,94,94,0); } }
.entry-facts { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid #dce5e9; background: #fff; }
.entry-facts > span { padding: 8px 10px; }
.entry-facts > span + span { border-left: 1px solid #e1e8eb; }
.entry-facts b,.entry-facts small { display: block; }
.entry-facts b { color: #395763; font-size: 13px; }
.entry-facts small { color: #98a4aa; font-size: 9px; }
.entry-actions { display: flex; align-items: center; gap: 14px; }
.primary-btn {
  min-height: 38px;
  padding: 0 26px;
  border: 1px solid #3a8db8;
  border-radius: 3px;
  color: #0c5fa3;
  background: linear-gradient(#eef8fd, #b8ddec);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.primary-btn:hover { background: linear-gradient(#f4fafe, #9fcde3); border-color: #2a7da8; }
.text-btn { border: 0; background: transparent; color: #336699; cursor: pointer; }
.text-btn:hover { color: #d85a18; text-decoration: underline; }
.entry-note { margin: 17px 0 0; padding-top: 12px; color: #9ba7ad; border-top: 1px dashed #d8e1e5; font-size: 11px; }
.entry-note span { color: #697e88; font-weight: 700; }
.entry-screen footer { margin-top: 24px; color: rgba(255,255,255,.45); font-size: 12px; }

/* Q-space shell — 2014 经典浅色顶栏 */
.system-bar {
  height: 36px;
  color: #1a3a4f;
  background: linear-gradient(#f8fbfd, #d9e8f0);
  border-bottom: 1px solid #a4c3d1;
  box-shadow: 0 1px 3px rgba(13,71,104,.12);
  position: sticky;
  top: 0;
  z-index: 50;
}
.system-inner {
  width: min(1100px, calc(100% - 24px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: stretch;
}
.brand-btn, .system-nav button, .system-tools button {
  border: 0;
  color: #1a3a4f;
  background: transparent;
  cursor: pointer;
}
.brand-btn {
  padding: 0 14px 0 0;
  font-weight: bold;
  font-size: 14px;
  color: #0c5fa3;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-btn span {
  width: 26px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-right: 2px;
  color: #fff;
  background: linear-gradient(#3aa3d8, #0c6fb3);
  border: 1px solid #0a5a96;
  border-radius: 3px;
  font: bold 13px/1 Arial, sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.system-nav { display: flex; }
.system-nav button {
  padding: 0 14px;
  font-size: 12px;
  color: #1a3a4f;
  position: relative;
}
.system-nav button:hover, .system-tools button:hover {
  background: rgba(12, 95, 163, .08);
  color: #0c5fa3;
  text-decoration: underline;
}
.system-tools { margin-left: auto; display: flex; align-items: center; }
.system-tools button {
  padding: 0 12px;
  font-size: 12px;
  color: #1a3a4f;
  border-left: 1px solid #c4dae3;
}
.system-tools button:first-child { border-left: 0; }
#account-switch { min-width: 0; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
#current-account-name { min-width: 0; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-mark {
  min-width: 58px;
  padding: 0 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #0c5fa3;
  background: #e6f2fa;
  border: 1px solid #8ab9d0 !important;
  border-radius: 3px;
  font: bold 11px/1 Verdana, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  margin: 4px 6px 4px 4px;
  height: 28px;
  align-self: center;
}
.flow-mark::after { content: "?"; width: 13px; height: 13px; display: grid; place-items: center; border: 1px solid #6a9fb8; border-radius: 50%; font: 9px/1 Arial, sans-serif; letter-spacing: 0; color: #6a9fb8; }
.flow-mark:hover, .flow-mark:focus-visible { color: #fff; background: #0c5fa3 !important; border-color: #0a4d86 !important; }
.flow-mark:hover::after, .flow-mark:focus-visible::after { border-color: #fff; color: #fff; }
.flow-mark.needs-attention { animation: objectiveNudge 1.25s ease-in-out 3; }
.flow-mark.progress-updated { animation: objectiveAdvance .72s ease 2; color: #fff; background: #e8a93a !important; border-color: #c8842a !important; }
@keyframes objectiveNudge {
  0%,100% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.58), 0 0 11px rgba(194,233,255,.45); }
}
@keyframes objectiveAdvance {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
#audio-toggle { font-size: 16px; min-width: 38px; color: #0c5fa3; }

.space-hero {
  height: 200px;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(32,91,123,.08), rgba(18,65,91,.22)),
    url("../images/space-skin-campus.webp");
  background-size: cover;
  background-position: center 54%;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #a4c3d1;
}
.space-hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -55px;
  height: 135px;
  border-radius: 50%;
  background: linear-gradient(165deg, rgba(26,88,107,.32), rgba(11,59,76,.52));
  transform: rotate(-2deg);
}
.hero-texture {
  position: absolute;
  inset: 0;
  opacity: .08;
  background: repeating-linear-gradient(115deg, transparent 0 13px, #fff 14px, transparent 15px 30px);
}
.hero-inner {
  width: min(1100px, calc(100% - 24px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding-bottom: 22px;
  position: relative;
  z-index: 2;
}
.profile-avatar, .avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #79b8d2, #34769a);
  background-image: url("../images/profile-avatars.webp");
  background-size: 300% 200%;
  background-repeat: no-repeat;
  font-size: 0;
}
.profile-avatar {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  border: 3px solid #fff;
  outline: 1px solid #b9d2dc;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  font-size: 36px;
}
.avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 3px;
  font-weight: 700;
}
.avatar-player { background-position: 0 0; }
.avatar-shen { background-position: 50% 0; }
.avatar-teacher { background-position: 100% 0; }
.avatar-liu { background-position: 0 100%; }
.avatar-luo {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(145deg,#7f98a6,#344b59);
}
.avatar-luo::before {
  content: ""; position: absolute; left: 50%; top: 18%; width: 34%; height: 34%;
  border-radius: 50%; background: rgba(231,239,242,.88); transform: translateX(-50%);
}
.avatar-luo::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -8%; height: 48%;
  border-radius: 50% 50% 12% 12%; background: rgba(231,239,242,.82);
}
.avatar-class {
  background-image: url("../images/campus-memories.webp");
  background-size: 200% 200%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
}
.profile-heading { padding-bottom: 3px; text-shadow: 0 1px 4px rgba(0,0,0,.22); }
.profile-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-heading h1 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: .02em; }
.profile-heading p { margin: 4px 0 0; opacity: .88; font-size: 12px; }
.space-level {
  padding: 1px 6px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 2px;
  font: 10px Arial;
  background: rgba(0,0,0,.15);
}
.service-icons {
  color: #ffda61;
  font-size: 12px;
  letter-spacing: 3px;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.hero-actions {
  margin-left: auto;
  display: flex;
  align-self: flex-end;
  gap: 6px;
  padding-bottom: 4px;
}
.hero-actions button {
  height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  background: rgba(11,53,77,.32);
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  font-size: 12px;
  border-radius: 2px;
}
.hero-actions button:hover { background: rgba(11,53,77,.5); border-color: #fff; }
.hero-actions button.liked { color: #ffe288; border-color: #ffe288; }
.visit-stats { margin-left: auto; display: flex; gap: 18px; padding-bottom: 4px; text-shadow: 0 1px 4px rgba(0,0,0,.24); }
.visit-stats span { display: flex; flex-direction: column; align-items: center; font-size: 11px; opacity: .86; }
.visit-stats b { font-size: 18px; }

[data-theme="class"] .space-hero {
  background-image: linear-gradient(90deg, rgba(24,86,64,.1), rgba(14,61,46,.34)), url("../images/space-skin-campus.webp");
}
[data-theme="shen"] .space-hero {
  background-image: linear-gradient(90deg, rgba(133,73,103,.08), rgba(90,48,77,.3)), url("../images/space-skin-campus.webp");
  background-position: center 46%;
}
[data-theme="teacher"] .space-hero {
  background-image: linear-gradient(90deg, rgba(60,73,82,.16), rgba(40,52,61,.46)), url("../images/space-skin-campus.webp");
  filter: saturate(.78);
}
[data-theme="liu"] .space-hero {
  background-image: linear-gradient(90deg, rgba(119,69,38,.08), rgba(80,43,25,.32)), url("../images/space-skin-campus.webp");
  background-position: center 64%;
}

/* 2014 经典方块 Tab 栏 */
.space-tabs {
  height: 36px;
  background: #f4f9fc;
  border-bottom: 2px solid #0c5fa3;
  position: relative;
}
.tabs-inner {
  width: min(1100px, calc(100% - 24px));
  height: 100%;
  margin: auto;
  padding-left: 118px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.tabs-inner button {
  min-width: 78px;
  padding: 0 18px;
  height: 28px;
  border: 1px solid #c4dae3;
  border-bottom: 0;
  background: linear-gradient(#fff, #eaf2f6);
  color: #4a6470;
  cursor: pointer;
  font-size: 12px;
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: background .12s ease, color .12s ease;
}
.tabs-inner button:hover {
  color: #0c5fa3;
  background: linear-gradient(#fff, #d9ecf6);
}
.tabs-inner button.active {
  background: linear-gradient(#2a9bd7, #0c6fb3);
  color: #fff;
  border-color: #0a5a96;
  font-weight: bold;
  height: 30px;
  margin-top: -2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.space-layout {
  width: min(1100px, calc(100% - 24px));
  margin: 14px auto 34px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 230px;
  gap: 12px;
  align-items: start;
}
.module, .feed-card, .content-panel {
  margin-bottom: 12px;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 5px rgba(56,88,104,.04);
}
.module-title {
  min-height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5edf1;
  font-weight: 700;
  color: #4f626c;
}
.module-title button { margin-left: auto; border: 0; color: var(--blue); background: transparent; font-size: 12px; cursor: pointer; }
.profile-module { padding: 14px; color: #6b7b84; font-size: 12px; }
.profile-module dl { margin: 0; }
.profile-module div { display: grid; grid-template-columns: 54px 1fr; margin: 4px 0; }
.profile-module dt { color: #9aa5aa; }
.profile-module dd { margin: 0; }
.profile-module .space-link { margin-top: 10px; width: 100%; min-height: 34px; border: 1px solid #cfe0e8; background: #f5fbfe; color: var(--blue); cursor: pointer; }
.space-data-module { padding: 11px 6px; display: grid; grid-template-columns: repeat(3, 1fr); }
.space-data-item { text-align: center; border-right: 1px solid #e6edf0; }
.space-data-item:last-child { border-right: 0; }
.space-data-item b, .space-data-item span { display: block; }
.space-data-item b { color: #506873; font-size: 17px; }
.space-data-item span { margin-top: 2px; color: #9aa7ad; font-size: 11px; }
.app-grid { padding: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.app-grid button {
  min-height: 48px; border: 1px solid #e0e9ed; background: linear-gradient(#fff,#f7fafb);
  color: #637780; cursor: pointer; font-size: 11px;
}
.app-grid button:hover { color: var(--blue); border-color: #b9d6e4; }
.app-grid i { display: block; margin-bottom: 2px; color: #58a8d0; font-size: 19px; font-style: normal; }
.friend-grid { padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.friend-item { padding: 0; border: 0; background: none; cursor: pointer; text-align: center; color: #5f7078; font-size: 11px; }
.friend-item .avatar { margin: 0 auto 4px; }
.friend-item.locked .avatar { filter: grayscale(.8); opacity: .66; }
.friend-item:hover { color: var(--blue); }
.music-player {
  width: 100%;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.music-player .disc { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #344a57; color: #fff; }
.music-player b, .music-player small { display: block; }
.music-player small { color: #a0aaaf; }
.music-player i { margin-left: auto; color: var(--blue); font-style: normal; font-size: 12px; }
.music-player.playing .disc { animation: discSpin 4s linear infinite; }
@keyframes discSpin { to { transform: rotate(360deg); } }

.system-notice {
  margin-bottom: 12px;
  padding: 10px 13px;
  border: 1px solid #eedaa9;
  background: #fff9e7;
  color: #80663c;
}
.feed-card { padding: 14px 15px; }
.feed-head { display: flex; align-items: flex-start; gap: 10px; }
.feed-author { flex: 1; min-width: 0; }
.feed-author strong { color: #0c5fa3; font-size: 13px; }
.feed-author small { display: block; color: #9da8ae; margin-top: 2px; font-size: 11px; }
.visibility-tag {
  padding: 1px 5px;
  border: 1px solid #d6e1e6;
  color: #8c999f;
  background: #f8fbfc;
  font-size: 10px;
}
.feed-body { margin: 10px 0 0 52px; color: #36474f; line-height: 1.8; }
.feed-body p { margin: 0 0 8px; }
.feed-actions {
  margin: 10px 0 0 52px;
  padding-top: 7px;
  border-top: 1px dashed #dde6ea;
  display: flex;
  gap: 0;
  color: #7e919b;
  font-size: 12px;
}
.feed-actions button {
  border: 0;
  padding: 2px 12px;
  color: #336699;
  background: transparent;
  cursor: pointer;
  border-right: 1px solid #dde6ea;
  margin-right: -1px;
}
.feed-actions button:first-child { padding-left: 0; }
.feed-actions button:last-child { border-right: 0; }
.feed-actions button:hover { color: #0c5fa3; text-decoration: underline; }
.feed-actions button.liked { color: #d85a18; }
.feed-actions button:disabled { cursor: default; }
.comment-box { margin: 9px 0 0 52px; display: flex; }
.comment-box input { min-width: 0; flex: 1; height: 32px; padding: 0 9px; border: 1px solid #bed3dd; font-size: 12px; }
.comment-box button { width: 60px; border: 1px solid #5fa8cf; color: #0c5fa3; background: linear-gradient(#eef8fd, #c5e4f2); cursor: pointer; font-size: 12px; }
.status-composer { margin-bottom: 12px; padding: 14px; background: rgba(255,255,255,.97); border: 1px solid var(--line); }
.composer-title { margin-bottom: 8px; color: #5d717b; font-size: 13px; }
.composer-input { display: flex; }
.composer-input textarea { min-width: 0; flex: 1; height: 64px; resize: none; padding: 8px; border: 1px solid #b9cdd6; font: inherit; }
.composer-input button {
  width: 74px; border: 1px solid #5fa8cf; color: #0c5fa3;
  background: linear-gradient(#eef8fd, #c5e4f2);
  cursor: pointer; font-size: 13px; font-weight: bold;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.composer-tools { padding-top: 7px; display: flex; gap: 14px; color: #84959d; font-size: 11px; }
.feed-comments { margin: 10px 0 0 52px; padding: 8px 10px; background: #f5f9fb; color: #62737c; font-size: 12px; border: 1px solid #e4edf1; }
.feed-comments p { margin: 4px 0; }
.deleted { color: #a4adb1; text-decoration: line-through; }
.visitor-list { padding: 4px 12px 10px; }
.visitor-row { padding: 9px 0; display: flex; align-items: center; gap: 9px; border-bottom: 1px dotted #dce5e9; }
.visitor-row:last-child { border-bottom: 0; }
.visitor-row .avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 12px; }
.visitor-row div { min-width: 0; }
.visitor-row b, .visitor-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visitor-row small { color: #9da8ae; font-size: 11px; }
.visitor-row button { margin-left: auto; border: 0; background: none; color: #336699; cursor: pointer; font-size: 12px; }
.module-lock { margin-left: auto; color: #a4afb4; font-size: 10px; font-weight: 400; }
.concern-person { padding: 12px; display: flex; gap: 9px; align-items: center; }
.concern-person .avatar { width: 42px; height: 42px; flex-basis: 42px; }
.concern-person b, .concern-person small { display: block; }
.concern-person b { color: #526a76; }
.concern-person small { color: #a1acb1; font-size: 10px; }
.old-widget { padding-bottom: 8px; }
.old-widget a { margin: 0 12px; padding: 8px 0; display: block; border-bottom: 1px dotted #dce5e9; color: #336699; font-size: 12px; text-decoration: none; }
.old-widget a:hover { color: #d85a18; text-decoration: underline; }
.old-widget a:last-child { border-bottom: 0; color: #a3adb2; }

.content-panel { overflow: hidden; }
.panel-heading {
  min-height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #dfe8ec;
  background: linear-gradient(#fafcfd, #e9f1f5);
}
.panel-heading h2 { margin: 0; font-size: 14px; color: #0c5fa3; font-weight: bold; }
.panel-heading span { margin-left: auto; color: #9aa7ad; font-size: 11px; }
.panel-body { padding: 14px; }
.status-list .feed-card { border: 0; border-bottom: 1px dashed #e5ecef; box-shadow: none; margin: 0; border-radius: 0; }
.status-list .feed-card:last-child { border-bottom: 0; }
.blog-list article { padding: 14px 0; border-bottom: 1px dashed #dce5e9; }
.blog-list article:last-child { border-bottom: 0; }
.blog-list h3 { margin: 0 0 4px; color: #336699; font-size: 14px; cursor: pointer; }
.blog-list h3:hover { color: #d85a18; text-decoration: underline; }
.blog-meta { color: #9aa7ad; font-size: 11px; }
.blog-list p { color: #5a6c75; }
.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.album-card { padding: 7px; border: 1px solid #d9e2e7; background: #fff; cursor: pointer; position: relative; }
.album-photo {
  aspect-ratio: 4 / 3;
  background-image: url("../images/campus-memories.webp");
  background-size: 200% 200%;
  filter: saturate(.78) contrast(.92) sepia(.06);
  position: relative;
  overflow: hidden;
}
.album-photo.sheet-private { background-image: url("../images/shenxing-private-album.webp"); }
.album-photo.sheet-evidence { background-image: url("../images/evidence-photos.webp"); }
.album-photo.sheet-footprints { background-image: url("../images/rooftop-footprints-2014.webp"); background-size: cover; background-position: center; }
.album-photo.sheet-youth { background-image: url("../images/youth-memories.webp"); }
.album-photo.sheet-relationship { background-image: url("../images/shen-liu-memories.webp"); }
.album-photo::after { content: ""; position: absolute; inset: 0; opacity: .06; background: repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 3px); }
.album-photo-stamp {
  position: absolute;
  right: 7px;
  bottom: 6px;
  z-index: 2;
  padding: 2px 5px;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.42);
  font: 10px/1.2 "Courier New", monospace;
  letter-spacing: .03em;
  text-shadow: 0 1px 1px #000;
  pointer-events: none;
}
.photo-burn {
  position: absolute;
  right: 9px;
  bottom: 7px;
  z-index: 2;
  color: #f1a43c;
  font: 700 10px/1 "Lucida Console", Consolas, monospace;
  letter-spacing: .04em;
  text-shadow: 0 0 2px #5d2600, 1px 1px 1px rgba(0,0,0,.9);
  opacity: .88;
  pointer-events: none;
}
.photo-race { background-position: 0 0; }
.photo-class { background-position: 100% 0; }
.photo-room { background-position: 0 100%; }
.photo-roof { background-position: 100% 100%; }
.photo-birthday, .photo-umbrella { background-position: 0 0; }
.photo-bikes, .photo-earphones { background-position: 100% 0; }
.photo-signing, .photo-court { background-position: 0 100%; }
.photo-snacks, .photo-farewell { background-position: 100% 100%; }
.album-card h3 { margin: 7px 2px 0; font-size: 13px; font-weight: 500; }
.album-card p { margin: 1px 2px; color: #9ca8ad; font-size: 11px; }
.album-card:hover { border-color: #8fc1d8; box-shadow: 0 3px 12px rgba(62,116,141,.12); }
.album-card:focus-visible { outline: 3px solid rgba(35,143,198,.45); outline-offset: 2px; border-color: #268fc6; }
.album-lock { position: absolute; right: 12px; top: 12px; padding: 2px 6px; background: rgba(26,39,47,.72); color: #fff; font-size: 10px; z-index: 2; }
.video-list { display: grid; gap: 15px; container-type: inline-size; }
.video-card { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); overflow: hidden; border: 1px solid #d9e3e7; background: #f9fbfc; }
.old-video-frame { min-width: 0; min-height: 0; aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; overflow: hidden; background: #0b1013; border-right: 1px solid #cdd9de; }
.old-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.3) 0 1px, transparent 1px 3px);
}
.old-video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #050708; }
.quality-tag, .duration-tag { position: absolute; z-index: 2; top: 8px; padding: 2px 5px; color: #e4edf1; background: rgba(9,16,20,.72); font-size: 10px; pointer-events: none; }
.quality-tag { left: 7px; }
.duration-tag { right: 7px; }
.video-copy { min-width: 0; padding: 15px; overflow-wrap: anywhere; }
.video-copy h3 { margin: 0 0 5px; color: #3f5864; font-size: 15px; font-weight: 500; }
.video-meta { margin: 0 0 12px; color: #98a5aa; font-size: 11px; }
.video-copy .feed-comments { margin: 0; }
@container (max-width: 620px) {
  .video-card { grid-template-columns: minmax(0, 1fr); }
  .old-video-frame { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid #cdd9de; }
}
.guestbook-list .guest-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed #e7edef;
}
.guest-item:last-child { border-bottom: 0; }
.guest-item .avatar { width: 48px; height: 48px; }
.guest-item h3 { margin: 0 0 3px; font-size: 12px; color: #0c5fa3; display: inline-block; }
.guest-item h3::after { content: "  "; }
.guest-item p { margin: 3px 0; color: #36474f; line-height: 1.75; }
.guest-meta { color: #a0aaaf; font-size: 11px; display: block; margin-top: 4px; }
.guest-actions { margin-top: 6px; display: flex; gap: 0; }
.guest-actions button {
  padding: 2px 10px;
  border: 0;
  color: #336699;
  background: none;
  cursor: pointer;
  font-size: 11px;
  border-right: 1px solid #dde6ea;
  margin-right: -1px;
}
.guest-actions button:first-child { padding-left: 0; }
.guest-actions button:last-child { border-right: 0; }
.guest-actions button:hover { color: #0c5fa3; text-decoration: underline; }
.owner-reply { margin-top: 7px; padding: 7px 9px; background: #f4f8fa; color: #677982; font-size: 12px; border: 1px solid #e4edf1; }
.profile-sheet { display: grid; grid-template-columns: 120px 1fr; border: 1px solid #e0e7ea; }
.profile-sheet div { display: contents; }
.profile-sheet dt, .profile-sheet dd { margin: 0; padding: 9px 12px; border-bottom: 1px solid #e7edef; }
.profile-sheet dt { color: #8d999f; background: #f6f9fa; }
.profile-sheet dd { color: #52666f; }
.archive-app { padding: 18px; background: #f0f3f4; border: 1px solid #d4dde1; }
.archive-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; }
.archive-icon { width: 36px; height: 36px; display: grid; place-items: center; background: #71828b; color: #fff; }
.recovered-private-file { border-color: #a8cbd9; background: #f4fafc; box-shadow: inset 3px 0 #56a3c4; }
.restore-note { margin: 0 0 12px; color: #68838f; font-size: 13px; }
.search-row { display: flex; }
.search-row input { min-width: 0; flex: 1; height: 40px; padding: 0 11px; border: 1px solid #aebdc4; }
.search-row button { width: 88px; border: 0; background: #627b88; color: #fff; cursor: pointer; }
.search-result { min-height: 46px; margin-top: 12px; padding: 10px; background: #fff; border: 1px solid #d9e1e4; color: #60727a; }
.paper-document {
  padding: 28px 34px;
  color: #3f4140;
  background:
    repeating-linear-gradient(0deg, rgba(80,80,70,.04) 0 1px, transparent 1px 4px),
    #f5f0e2;
  border: 1px solid #c8c0aa;
  box-shadow: 0 8px 24px rgba(37,47,51,.18);
  font-family: SimSun, serif;
}
.paper-document h2 { text-align: center; letter-spacing: .22em; }
.paper-document p { line-height: 2; }
.paper-document .stamp { width: 96px; height: 96px; margin-left: auto; display: grid; place-items: center; border: 4px double rgba(170,45,45,.55); border-radius: 50%; color: rgba(170,45,45,.62); transform: rotate(-9deg); }
.mail-recipient {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px solid #d8e2e7;
  background: #f7fafb;
  color: #788991;
  font-size: 13px;
}
.mail-recipient button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1679ad;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.mail-recipient button:hover,
.mail-recipient button:focus-visible { text-decoration: underline; }
.mail-recipient button i { margin-left: 4px; font-style: normal; font-weight: 400; opacity: .72; }
.mail-recipient em { margin-left: auto; color: #ad7777; font-style: normal; }
.document-photo { width: min(360px,100%); aspect-ratio: 4/3; margin: 16px auto; background: url("../images/evidence-photos.webp") 0 0/200% 200%; border: 8px solid #eee8da; box-shadow: 0 2px 10px rgba(44,42,35,.2); }
.skin-preview { width: min(520px,100%); margin: 17px auto; overflow: hidden; color: #fff; border: 7px solid #e8e3d8; box-shadow: 0 3px 13px rgba(44,42,35,.2); font-family:"Microsoft YaHei",sans-serif; }
.skin-preview-bar { height: 30px; padding: 0 11px; display: flex; align-items: center; gap: 24px; background: linear-gradient(#2a9bd7,#0c78b7); font-size: 10px; }
.skin-preview-bar span { font-weight: 700; }
.skin-preview-bar i { opacity: .75; font-style: normal; }
.skin-preview-hero { height: 126px; padding: 49px 22px 0; position: relative; overflow: hidden; background: linear-gradient(180deg,#91bed2 0,#4e829d 60%,#274d66 100%); }
.skin-preview-hero::before { content:""; position:absolute; inset:auto 0 0; height:46px; opacity:.45; background:linear-gradient(155deg,transparent 48%,#173b50 49%) left/55% 100%,linear-gradient(205deg,transparent 48%,#1e485f 49%) right/60% 100%; }
.skin-moon { position:absolute; top:17px; right:42px; width:27px; height:27px; border-radius:50%; background:#f5df9e; box-shadow:0 0 17px rgba(248,226,158,.62); }
.skin-preview-hero b,.skin-preview-hero small { position:relative; z-index:1; display:block; text-shadow:0 1px 3px rgba(0,0,0,.35); }
.skin-preview-hero b { font-size:16px; }
.skin-preview-hero small { opacity:.78; font-size:9px; }
.skin-preview-tabs { padding:7px 14px; color:#5b7581; border-bottom:1px solid #d7e2e8; background:#fff; font-size:9px; }
.skin-preview-body { height:80px; padding:12px; display:grid; grid-template-columns:1.3fr 1fr; gap:8px; background:#eef4f6; }
.skin-preview-body i { min-height:18px; display:block; border:1px solid #d7e2e7; background:#fff; }
.skin-preview-body i:first-child { grid-row:span 2; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.secondary-btn {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid #5fa8cf;
  background: linear-gradient(#eef8fd, #c5e4f2);
  color: #0c5fa3;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.secondary-btn:hover { background: linear-gradient(#f4fafe, #a8d4ea); border-color: #3a8db8; }
.danger-btn { border-color: #d5a3a3; color: #8e3838; background: linear-gradient(#fcf0f0, #f0c8c8); }
.danger-btn:hover { background: linear-gradient(#fee4e4, #e8b0b0); }

/* Modal */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(13,30,40,.66);
  backdrop-filter: blur(3px);
}
.modal {
  width: min(650px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 24px 80px rgba(0,0,0,.36);
}
.modal.wide { width: min(860px, 100%); }
.modal-head { min-height: 48px; padding: 0 16px; display: flex; align-items: center; color: #fff; background: linear-gradient(#2694d0, #0c78b7); }
.modal-head h2 { margin: 0; font-size: 15px; }
.modal-close { margin-left: auto; width: 34px; height: 34px; border: 0; color: #fff; background: transparent; font-size: 20px; cursor: pointer; }
.modal-body { padding: 20px; }
.photo-viewer { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(220px,.75fr); background: #182128; color: #fff; }
.photo-stage { min-height: 440px; position: relative; overflow: hidden; background-color: #111a20; background-repeat: no-repeat; background-position: center; background-size: contain; }
.photo-stage.sheet-campus { background-image: url("../images/campus-memories.webp"); }
.photo-stage.sheet-private { background-image: url("../images/shenxing-private-album.webp"); }
.photo-stage.sheet-evidence { background-image: url("../images/evidence-photos.webp"); }
.photo-stage.sheet-footprints { background-image: url("../images/rooftop-footprints-2014.webp"); background-position: center; background-size: contain; }
.photo-stage.sheet-youth { background-image: url("../images/youth-memories.webp"); }
.photo-stage.sheet-relationship { background-image: url("../images/shen-liu-memories.webp"); }
.photo-stage.photo-race { background-position: 0 0; background-size: 200% 200%; }
.photo-stage.photo-class { background-position: 100% 0; background-size: 200% 200%; }
.photo-stage.photo-room { background-position: 0 100%; background-size: 200% 200%; }
.photo-stage.photo-roof { background-position: 100% 100%; background-size: 200% 200%; }
.photo-stage.photo-birthday, .photo-stage.photo-umbrella { background-position: 0 0; background-size: 200% 200%; }
.photo-stage.photo-bikes, .photo-stage.photo-earphones { background-position: 100% 0; background-size: 200% 200%; }
.photo-stage.photo-signing, .photo-stage.photo-court { background-position: 0 100%; background-size: 200% 200%; }
.photo-stage.photo-snacks, .photo-stage.photo-farewell { background-position: 100% 100%; background-size: 200% 200%; }
.photo-stage .photo-burn { right: 18px; bottom: 15px; font-size: 15px; }
.photo-info { padding: 24px 20px; background: #fff; color: #60727b; }
.photo-info h3 { margin-top: 0; color: #344f5d; }
.photo-info small { color: #9ba7ac; }
.photo-info p { line-height: 1.8; }
.photo-controls { margin-top: 20px; padding-top: 12px; border-top: 1px solid #e3eaed; display: flex; gap: 12px; }
.photo-controls button { border: 0; padding: 0; color: var(--blue); background: transparent; cursor: pointer; }
.account-list { display: grid; gap: 10px; }
.account-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #dce5e9; }
.account-row .account-info { flex: 1; }
.account-row b, .account-row small { display: block; }
.account-row small { color: #919da3; }
.account-row button { min-height: 36px; padding: 0 14px; border: 1px solid #b9d3df; background: #eff9fd; color: var(--blue-deep); cursor: pointer; }
.login-card { text-align: center; }
.login-card .avatar { width: 68px; height: 68px; margin: 0 auto 10px; font-size: 22px; }
.login-card h3 { margin: 0 0 4px; }
.login-card > p { margin: 0 0 18px; color: #84929a; }
.field { margin: 12px auto; max-width: 390px; text-align: left; }
.field label { display: block; margin-bottom: 4px; color: #687982; font-size: 12px; }
.field input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #b7c6cd; }
.form-message { min-height: 22px; margin: 10px 0; color: #9b4c4c; }
.recovery-fragments {
  max-width: 420px;
  margin: 4px auto 16px;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid #c9d9e1;
  background: #f6fafc;
  color: #536a75;
}
.recovery-fragments > b { display: block; margin-bottom: 9px; color: #2d5367; }
.recovery-fragments p { margin: 7px 0; padding: 8px 10px; border-left: 3px solid #2993c9; background: #fff; }
.recovery-fragments p span { display: inline-block; min-width: 54px; color: #8b9ba3; font-size: 11px; }
.recovery-fragments p.missing { border-left-color: #b9c2c7; color: #919da3; }
.recovery-fragments small { display: block; margin-top: 10px; color: #7f8f97; line-height: 1.6; }
.ending {
  min-height: 540px;
  padding: 60px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: linear-gradient(#f7f1df, #fffdf7);
}
.ending.normal { background: linear-gradient(#eceff0, #f8f9f9); }
.ending .ending-kicker { color: #9a927c; letter-spacing: .3em; }
.ending h2 { font: 400 28px/1.5 SimSun, serif; color: #5b5545; }
.ending p { max-width: 550px; margin: 8px auto; line-height: 2.1; color: #716a59; }
/* Q聊天窗口 — 2014 QQ 经典浅色顶栏 + 灰白聊天区 */
.qchat-window {
  border: 1px solid #b8d5e6;
  background: #f5f5f5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.qchat-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: #2a3a44;
  background: linear-gradient(#fafcfd, #e6eef2);
  border-bottom: 1px solid #c4dae3;
}
.qchat-contact .avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  border: 1px solid #c4dae3;
}
.qchat-contact b, .qchat-contact small { display: block; }
.verified-account { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 8px; color: #fff; background: #1683c8; font: 10px/1.5 Arial,sans-serif; vertical-align: 1px; }
.qchat-contact b {
  color: #1a3a4f;
  font-size: 13px;
  font-weight: bold;
}
.qchat-contact small {
  margin-top: 2px;
  color: #6b8290;
  font-size: 11px;
}
.qchat-contact small::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #6bd66b;
  border: 1px solid #4eb84e;
  vertical-align: middle;
  margin-bottom: 1px;
}
.qchat-thread {
  padding: 16px 14px;
  display: grid;
  gap: 12px;
  background:
    linear-gradient(rgba(245,247,250,.7), rgba(245,247,250,.7)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(180,200,210,.05) 12px 13px);
  min-height: 220px;
}
.qchat-thread.compact {
  padding: 12px;
  border: 1px solid #d7e6ee;
  background: #f7fbfd;
  gap: 10px;
}
.live-thread {
  max-height: 430px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* 消息气泡 — 经典尖角 + QQ 配色 */
.qmsg {
  width: fit-content;
  max-width: 78%;
  margin: 0;
  padding: 8px 11px;
  line-height: 1.65;
  border: 1px solid #d4dde2;
  border-radius: 4px;
  color: #2a3a44;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  position: relative;
  font-size: 12px;
}
.qmsg::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -7px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 7px 5px 0;
  border-color: transparent #d4dde2 transparent transparent;
}
.qmsg::after {
  content: "";
  position: absolute;
  top: 12px;
  left: -6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 7px 5px 0;
  border-color: transparent #fff transparent transparent;
}
.qmsg b {
  display: block;
  margin-bottom: 3px;
  color: #6b8290;
  font-size: 11px;
  font-weight: normal;
}
.qmsg.self {
  justify-self: end;
  border-color: #b8d89a;
  background: #d6f5b3;
}
.qmsg.self::before {
  left: auto;
  right: -7px;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #b8d89a;
}
.qmsg.self::after {
  left: auto;
  right: -6px;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #d6f5b3;
}
.qchat-system {
  justify-self: center;
  padding: 3px 12px;
  color: #899aa2;
  font-size: 11px;
  background: rgba(255,255,255,.6);
  border-radius: 10px;
}
/* 输入区 — 经典工具栏感 */
.live-chat-compose {
  position: sticky;
  bottom: 0;
  padding: 0;
  border-top: 1px solid #c2d9e5;
  background: #fff;
  box-shadow: 0 -4px 12px rgba(45,92,115,.06);
  display: block;
}
.live-chat-compose::before {
  content: "";
  display: block;
  height: 26px;
  border-bottom: 1px solid #e0eaef;
  background:
    linear-gradient(90deg,
      transparent 0 14px, #6b8290 14px 16px, transparent 16px 30px,
      #6b8290 30px 32px, transparent 32px 46px, #6b8290 46px 48px,
      transparent 48px 62px, #6b8290 62px 64px, transparent 64px 100%),
    linear-gradient(#f5f8fa, #eef2f5);
  background-size: 100% 12px, 100% 100%;
  background-position: 14px center, 0 0;
  background-repeat: no-repeat;
}
.live-chat-compose label {
  display: block;
  margin: 8px 14px 6px;
  color: #4a6470;
  font-weight: bold;
  font-size: 12px;
}
.live-chat-compose > div {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  align-items: stretch;
  margin: 0 14px 10px;
}
.live-chat-compose textarea {
  min-height: 58px;
  padding: 8px 10px;
  resize: vertical;
  border: 1px solid #aec4cf;
  font: inherit;
  font-size: 12px;
  background: #fff;
}
.live-chat-compose button {
  border: 1px solid #5fa8cf;
  background: linear-gradient(#eef8fd, #c5e4f2);
  color: #0c5fa3;
  font-size: 13px;
  font-weight: bold;
  padding: 0 18px;
  border-radius: 3px;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  cursor: pointer;
}
.live-chat-compose button:hover { background: linear-gradient(#f4fafe, #a8d4ea); }
.live-chat-compose small {
  display: block;
  margin: 0 14px 12px;
  color: #82949d;
  font-size: 11px;
  line-height: 1.6;
}
.identity-form { margin-top: 8px; padding: 14px; border-top: 1px dashed #a9c5d3; background: rgba(255,255,255,.74); }
.identity-form label { display: block; margin-bottom: 9px; color: #40545e; font-weight: 700; }
.identity-ok { padding: 11px 13px; border: 1px solid #b7dba9; color: #47723b; background: #eef9e9; }
.identity-stance { margin-top: 10px; padding: 14px; border-top: 1px dashed #a9c5d3; background: rgba(255,255,255,.76); }
.identity-stance-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
.identity-stance-summary p { margin: 6px 0 10px; color: #56724e; line-height: 1.7; }
.identity-stance-summary .secondary-btn { padding: 5px 10px; font-size: 11px; }
.incoming-q { display: flex; align-items: flex-start; gap: 12px; }
.incoming-q p { margin: 3px 0 10px; }
.incoming-q.subtle { padding: 12px; border-left: 3px solid #72b9cc; background: #f4fafc; }
.live-audit-entry { padding-left: 12px !important; border-left: 3px solid #d7a24a; }
.evidence-package { margin-top: 2px; padding: 15px; border: 1px solid #e0c58f; background: #fffaf0; }
.evidence-package h3 { margin: 0 0 7px; color: #8c6325; }
.final-note-form { margin: 14px 0; padding: 14px; border: 1px solid #d5c9aa; background: rgba(255,255,255,.72); }
.final-note-form label { display: block; margin-bottom: 7px; color: #654f2f; font-weight: 700; }
.final-note-form label span { color: #9a8d76; font-size: 11px; font-weight: 400; }
.final-note-form textarea { width: 100%; min-height: 76px; padding: 9px 10px; resize: vertical; border: 1px solid #c9b98f; font: inherit; }
.final-note-form > div { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.final-note-form small { color: #857b69; line-height: 1.6; }
.ending-player-note { max-width: 560px; margin: 24px auto 8px; padding: 14px 18px; border: 1px solid #d8ccb2; background: rgba(255,255,255,.58); }
.ending-player-note span { color: #91856d; font-size: 11px; }
.ending-player-note blockquote { margin: 8px 0 0; color: #5f5749; font: 16px/1.9 "KaiTi","STKaiti",serif; }
.ending-stance { max-width: 560px; margin: 18px auto 0 !important; padding: 11px 15px; border-left: 3px solid #8aa3af; color: #536b76; background: rgba(255,255,255,.5); text-align: left; }
.choice-grid { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-grid button { padding: 12px; text-align: left; border: 1px solid #b7d2df; color: #3d5865; background: #fff; cursor: pointer; }
.choice-grid button:hover { border-color: #268ec4; background: #f1f9fd; }
.choice-grid b, .choice-grid small, .choice-grid em { display: block; }
.choice-grid small { margin-top: 4px; color: #82929a; }
.choice-grid em { margin-top: 6px; color: #9a684a; font-size: 11px; font-style: normal; line-height: 1.55; }
.decision-saved { padding: 14px; text-align: center; border: 1px solid #ccdce4; background: #fff; }
.document-conflict { padding: 10px 12px; border-left: 3px solid #b22f26; color: #752b27; background: #fff0ed; }
.external-link-card { display: flex; gap: 12px; align-items: flex-start; }
.external-link-card p { margin: 3px 0 7px; color: #778892; }
.external-link-card a, .external-game-link { color: #336699; text-decoration: none; border-bottom: 1px dotted #336699; }
.external-link-card a:hover, .external-game-link:hover { color: #d85a18; border-bottom-color: #d85a18; }
.audio-evidence.game-audio { margin: 12px 0; padding: 11px; border: 1px solid #d1c29b; background: #fffdf5; }
.audio-evidence.game-audio b, .audio-evidence.game-audio small { display: block; }
.audio-evidence.game-audio small { margin: 2px 0 8px; color: #8a8171; }
.audio-evidence.game-audio audio { width: 100%; height: 36px; }
.home-inbox { display: grid; }
.home-inbox > button,.home-inbox > a {
  padding: 10px 2px; min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr) auto;
  gap: 10px; align-items: center; text-align: left; color: inherit; text-decoration: none;
  border: 0; border-bottom: 1px dotted #d5dee3; background: transparent; cursor: pointer;
}
.home-inbox > :last-child { border-bottom: 0; }
.home-inbox .avatar { width: 42px; height: 42px; }
.home-inbox b,.home-inbox small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-inbox small { margin-top: 3px; color: #89979e; font-size: 11px; }
.home-inbox i { color: #1682bd; font-style: normal; font-size: 11px; }
.home-notice-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: linear-gradient(#5db7df,#2587b7); font-size: 18px; font-weight: 700; }
.friend-pulse { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.friend-pulse button { min-width: 0; padding: 9px; text-align: left; border: 1px solid #dbe3e7; background: #fafcfd; cursor: pointer; }
.friend-pulse button:hover { border-color: #90bfd5; background: #f1f9fc; }
.friend-pulse .avatar { margin-bottom: 6px; }
.friend-pulse b,.friend-pulse small { display: block; }
.friend-pulse b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #486471; }
.friend-pulse small { margin-top: 3px; color: #8b979d; font-size: 10px; line-height: 1.5; }
.ending-foot { margin-top: 22px !important; padding-top: 13px; border-top: 1px solid #d8d0bf; font-size: 12px; }

@media (max-width: 720px) {
  .identity-stance-options { grid-template-columns: 1fr; }
}

.toast-root { position: fixed; right: 18px; bottom: 76px; z-index: 150; display: grid; gap: 8px; }
.toast { width: min(340px, calc(100vw - 36px)); padding: 12px 14px; color: #fff; background: rgba(34,55,65,.94); box-shadow: var(--shadow); animation: toastIn .25s ease; }
.toast strong { display: block; margin-bottom: 2px; color: #f5d49b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.desktop-notice {
  position: fixed; z-index: 90; right: 18px; bottom: 76px; width: 290px;
  color: #2a3a44; background: #fff; border: 1px solid #b8d5e6;
  box-shadow: 0 8px 28px rgba(32,66,83,.22); animation: noticeIn .45s ease;
  border-radius: 4px;
  overflow: hidden;
}
.desktop-notice header { height: 32px; padding: 0 10px; display: flex; align-items: center; color: #1a3a4f; background: linear-gradient(#fafcfd, #e6eef2); border-bottom: 1px solid #c4dae3; }
.desktop-notice header span { width: 20px; height: 20px; margin-right: 7px; display: grid; place-items: center; border-radius: 3px; color: #fff; background: linear-gradient(135deg, #4eb5e6, #1683c8); font-weight: 800; font-size: 11px; text-shadow: 0 1px 1px rgba(0,0,0,.2); }
.desktop-notice header button { margin-left: auto; border: 0; color: #8a989f; background: transparent; cursor: pointer; font-size: 16px; padding: 0 4px; }
.desktop-notice header button:hover { color: #d83030; }
.desktop-notice > div { padding: 12px 13px; line-height: 1.7; font-size: 12px; }
.desktop-notice > div p { margin: 5px 0 8px; color: #405b68; }
.desktop-notice > div button { margin-top: 6px; padding: 0; border: 0; color: #336699; background: none; cursor: pointer; font-size: 12px; }
.desktop-notice > div button:hover { color: #d85a18; text-decoration: underline; }
.desktop-notice .notice-actions { display: flex; align-items: center; gap: 14px; }
.desktop-notice .notice-actions button:last-child { color: #8a989f; }
/* Q消息右下角挂件 — 2014 QQ 经典圆形头像样式 */
.q-message-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 88;
  min-width: 138px;
  height: 52px;
  padding: 4px 14px 4px 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  border: 1px solid #0a6b9e;
  border-radius: 30px;
  background: linear-gradient(#3aa8d8, #0c7bb8);
  box-shadow: 0 6px 18px rgba(26,83,112,.4), inset 0 1px 0 rgba(255,255,255,.25);
  cursor: pointer;
  font-family: "Microsoft YaHei", sans-serif;
}
.q-message-widget:hover, .q-message-widget:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(26,83,112,.5), inset 0 1px 0 rgba(255,255,255,.3);
}
.q-message-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #4eb5e6, #1683c8);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.4);
  font-weight: 800;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.q-message-label { display: block; min-width: 0; text-align: left; }
.q-message-label b, .q-message-label small { display: block; white-space: nowrap; }
.q-message-label b { font-size: 13px; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.q-message-label small { margin-top: 1px; color: rgba(255,255,255,.85); font-size: 10px; }
.q-message-widget > i {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 11px;
  background: linear-gradient(#ff5a5a, #d83030);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  font: bold 11px/1 Arial, sans-serif;
}
.q-message-widget.has-unread { animation: qMessagePulse 2.8s ease-in-out infinite; }
@keyframes qMessagePulse {
  0%,78%,100% { box-shadow: 0 6px 18px rgba(26,83,112,.4), inset 0 1px 0 rgba(255,255,255,.25); }
  86% { box-shadow: 0 6px 22px rgba(30,143,199,.66), inset 0 1px 0 rgba(255,255,255,.3); }
}
/* Q消息列表 — 2014 QQ 经典浅色面板 + Tab */
.q-inbox {
  border: 1px solid #c4dae3;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.q-inbox-head {
  padding: 0;
  background: linear-gradient(#fafcfd, #e9f1f5);
  border-bottom: 1px solid #c4dae3;
}
.q-inbox-head b {
  display: block;
  padding: 10px 14px 6px;
  color: #2a4a5a;
  font-size: 14px;
  font-weight: bold;
}
.q-inbox-head span {
  display: flex;
  padding: 0 14px;
  gap: 24px;
  border-bottom: 1px solid #e0eaef;
  color: #6b8290;
  font-size: 12px;
}
.q-inbox-head span em {
  font-style: normal;
  padding: 7px 0 8px;
  color: #6b8290;
  cursor: default;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.q-inbox-head span em.tab-active {
  color: #0c5fa3;
  border-bottom-color: #0c5fa3;
  font-weight: bold;
}
.q-inbox-head span i {
  font-style: normal;
  padding: 7px 0 8px;
  color: #8a9aa2;
  cursor: default;
}
.q-inbox-row {
  position: relative;
  width: 100%;
  min-height: 60px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #2a3a44;
  border: 0;
  border-bottom: 1px solid #eef2f4;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease;
}
.q-inbox-row:hover, .q-inbox-row:focus-visible {
  background: #f0f7fb;
}
.q-inbox-row .avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 3px;
}
.q-inbox-row > span { min-width: 0; flex: 1; }
.q-inbox-row b, .q-inbox-row small, .q-inbox-row em { display: block; }
.q-inbox-row b {
  color: #1a3a4f;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 2px;
}
.q-inbox-row small { color: #98a8b0; font-size: 11px; margin-bottom: 3px; }
.q-inbox-row em {
  overflow: hidden;
  color: #6b7d88;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.q-inbox-row > i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e04b49;
  box-shadow: 0 0 0 3px #fdeceb;
  align-self: center;
}
.q-inbox-row.unread b { color: #0c5fa3; }
.q-inbox-row.unread em { color: #2a4a5a; }
.q-inbox-foot {
  margin: 0;
  padding: 10px 14px;
  color: #81929a;
  background: #f5f8fa;
  font-size: 11px;
  border-top: 1px solid #eef2f4;
  text-align: center;
}
.objective-card > span { color: #8a9aa2; font-size: 11px; letter-spacing: .12em; }
.objective-card h3 { margin: 8px 0 10px; color: #2d5264; font-size: 20px; }
.objective-card > p { margin: 0; color: #607681; line-height: 1.8; }
.objective-progress-note { display: block; margin-top: 9px; color: #8a9aa2; line-height: 1.6; }
.objective-help-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.objective-hint-toggle { min-height: 40px; margin-top: 17px; padding: 0 14px; color: #577484; border: 1px solid #bfd0d9; background: #f8fbfc; cursor: pointer; }
.objective-help-actions .objective-hint-toggle { margin-top: 0; }
.objective-hint-toggle.route { color: #39748d; border-color: #a9cbd9; background: #f3f9fb; }
.objective-hint-toggle:hover,.objective-hint-toggle:focus-visible { color: #176f9f; border-color: #79afc8; background: #f1f8fb; }
.objective-hint { margin-top: 18px; padding: 12px 14px; color: #71838b; background: #f3f7f9; border-left: 3px solid #8dbbcf; line-height: 1.7; }
.objective-hint b { display: block; margin-bottom: 2px; color: #4d6976; font-size: 11px; }
.optional-evidence { margin-top: 14px; padding: 11px 13px; border: 1px solid #c8dce5; background: #f4fafc; color: #56717e; }
.optional-evidence b,.optional-evidence span { display: block; }
.optional-evidence b { margin-bottom: 3px; color: #2c788f; }
.locked-context { max-width: 430px; margin: 10px auto 0 !important; padding: 10px 12px; color: #6f818a; background: #f4f7f8; line-height: 1.7; text-align: left; }
.login-guide-actions { justify-content: center; flex-wrap: wrap; }
@keyframes noticeIn { from { opacity: 0; transform: translateY(20px); } }
.site-footer { padding: 22px; text-align: center; color: #91a0a8; font-size: 11px; }
.site-footer span { display: block; }
.site-footer .runtime-inline { display: inline; }
@media (max-width: 900px) {
  .space-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .right-column { display: block; grid-column: 1 / -1; }
  .right-column > .module { display: none; }
  .right-column > .space-bookmarks { display: block; }
  .space-bookmarks a { min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 680px) {
  .prologue-nav { width: calc(100% - 28px); height: 60px; }
  .prologue-nav > span { letter-spacing: .12em; }
  .prologue-resume { max-width: 142px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .prologue-hero { min-height: 100svh; padding: 104px 22px 82px; align-items: flex-end; background-position: 70% center; }
  .prologue-hero h1 { font-size: clamp(36px,11vw,50px); }
  .prologue-hero-copy > p:not(.prologue-kicker) { font-size: 14px; line-height: 1.85; }
  .prologue-visitor { margin-top: 25px; }
  .prologue-scroll { bottom: 15px; }
  .prologue-story,.prologue-play,.prologue-mission { width: calc(100% - 36px); padding: 78px 0; }
  .prologue-timeline { margin-top: 45px; grid-template-columns: 1fr; border-top: 0; border-left: 1px solid rgba(255,255,255,.17); }
  .prologue-timeline article { padding: 0 0 30px 28px; }
  .prologue-timeline article::before { top: 7px; left: -5px; }
  .prologue-methods { grid-template-columns: 1fr; }
  .prologue-methods article { min-height: 0; }
  .prologue-methods h3 { margin-top: 22px; }
  .prologue-mission h2 br { display: none; }
  .prologue-enter { width: 100%; }
  .game-shell { padding-bottom: 68px; }
  .entry-screen { padding: 14px; align-content: center; }
  .entry-window { display: block; }
  .entry-visual { display: none; }
  .entry-copy { padding: 35px 24px 30px; }
  .entry-copy h1 { font-size: 31px; }
  .entry-actions { align-items: stretch; flex-direction: column; }
  .entry-screen footer { text-align: center; }
  .system-bar { height: 46px; }
  .system-inner { width: 100%; padding: 0 8px; }
  .brand-btn { padding-right: 4px; font-size: 14px; }
  .brand-btn span { width: 23px; height: 23px; }
  .system-nav button { display: none; }
  .system-nav button:nth-child(3) { display: block; padding: 0 8px; }
  #account-switch { max-width: 116px; padding: 0 7px; }
  #story-guide-toggle { padding: 0 7px; font-size: 11px; }
  #current-account-name { display: inline-block; max-width: 82px; font-size: 11px; }
  .system-tools button { padding: 0 9px; }
  .system-tools .flow-mark {
    position: fixed; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 88;
    min-width: 86px; min-height: 48px; padding: 0 12px !important; gap: 7px;
    color: #fff; background: rgba(20,104,150,.96); border: 1px solid rgba(255,255,255,.68);
    border-radius: 24px; box-shadow: 0 5px 18px rgba(22,67,91,.32); font-size: 11px;
  }
  .system-tools .flow-mark::before { content: "证据"; font: 12px/1 "Microsoft YaHei",sans-serif; letter-spacing: 0; }
  .system-tools .flow-mark:hover,.system-tools .flow-mark:focus-visible { background: #0d77af !important; }
  .space-hero { height: 148px; }
  .hero-inner { width: calc(100% - 24px); padding-bottom: 16px; gap: 12px; }
  .profile-avatar { width: 66px; height: 66px; flex-basis: 66px; font-size: 25px; }
  .profile-heading h1 { font-size: 20px; }
  .profile-heading p { max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .hero-actions, .service-icons { display: none; }
  .visit-stats { display: none; }
  .space-tabs { height: 45px; overflow: hidden; }
  .tabs-inner { width: 100%; padding: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs-inner::-webkit-scrollbar { display: none; }
  .tabs-inner button { min-width: 64px; padding: 0 10px; }
  .space-layout { width: 100%; margin-top: 0; display: block; }
  .left-column { display: none; }
  .center-column { width: 100%; }
  .right-column { width: auto; margin: 10px 8px 18px; }
  .right-column > .space-bookmarks { border-radius: 3px; }
  .space-bookmarks a { margin: 0 14px; padding: 0; font-size: 13px; }
  .feed-card, .content-panel { border-left: 0; border-right: 0; border-radius: 0; margin-bottom: 9px; }
  .feed-card { padding: 13px 12px; }
  .feed-body, .feed-actions, .feed-comments { margin-left: 0; }
  .comment-box { margin-left: 0; }
  .album-grid { gap: 8px; }
  .album-card { padding: 5px; }
  .album-card h3 { font-size: 12px; }
  .video-card { display: block; border-left: 0; border-right: 0; }
  .old-video-frame { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; }
  .video-copy { padding: 12px; }
  .paper-document { padding: 22px 16px; }
  .modal-root { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 90vh; border: 0; }
  .modal.wide { width: 100%; }
  .modal-head { position: sticky; top: 0; z-index: 2; }
  .modal-body { padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); }
  .modal-body input,.modal-body textarea { min-height: 44px; font-size: 16px; }
  .modal-body .primary-btn,.modal-body .secondary-btn,.choice-grid button,.identity-options button,.objective-hint-toggle { min-height: 44px; }
  .objective-hint-toggle { width: 100%; }
  .objective-help-actions { display: grid; grid-template-columns: 1fr; }
  .photo-viewer { display: block; }
  .photo-stage { min-height: 46vh; }
  .profile-sheet { grid-template-columns: 92px 1fr; }
  .ending { padding: 48px 22px; min-height: 85vh; }
  .friend-pulse { grid-template-columns: 1fr; }
  .friend-pulse button { display: grid; grid-template-columns: 42px 1fr; gap: 9px; align-items: center; }
  .friend-pulse .avatar { margin: 0; }
  .qchat-thread { padding: 12px; }
  .qmsg { max-width: 88%; }
  .live-thread { max-height: min(48vh,430px); }
  .live-chat-compose { bottom: calc(-1 * env(safe-area-inset-bottom)); }
  .live-chat-compose > div { grid-template-columns: 1fr; padding: 0 12px 10px; margin: 0; }
  .live-chat-compose button { min-height: 40px; }
  .live-chat-compose label { margin: 8px 12px 6px; }
  .live-chat-compose small { margin: 0 12px 10px; }
  .live-chat-compose::before { height: 22px; background-size: 100% 10px, 100% 100%; }
  .final-note-form > div { align-items: stretch; flex-direction: column; }
  .choice-grid { grid-template-columns: 1fr; }
  .desktop-notice { right: 8px; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 58px); width: calc(100vw - 16px); }
  .toast-root { right: 8px; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 58px); }
  .toast { width: calc(100vw - 16px); }
  .q-message-widget { left: auto; right: 8px; bottom: max(8px,env(safe-area-inset-bottom)); min-width: 48px; width: 48px; height: 48px; padding: 0; border-radius: 50%; gap: 0; justify-content: center; }
  .q-message-widget > i { top: -4px; right: -4px; min-width: 18px; height: 18px; }
  .q-message-label { display: none; }
  .q-message-logo { width: 36px; height: 36px; border-width: 1px; }
  .q-inbox-row { min-height: 56px; padding: 8px 12px; gap: 10px; }
  .q-inbox-row .avatar { width: 38px; height: 38px; }
  .q-inbox-row em { font-size: 11px; }
}

@media (max-width: 420px) {
  .brand-btn { width: 34px; padding: 0; overflow: hidden; font-size: 0; }
  .brand-btn span { font-size: 14px; }
  .system-nav button:nth-child(3) { padding: 0 6px; font-size: 12px; }
  #audio-toggle { display: none; }
  #account-switch { max-width: 98px; }
  #current-account-name { max-width: 64px; }
  .profile-heading p { max-width: 180px; }
  .album-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .album-card p { font-size: 10px; }
  .entry-copy { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-mark.needs-attention,.flow-mark.progress-updated { animation: none; }
}

/* --- 2014 QZone Retro Fidelity Enhancements --- */

/* 1. 黄钻与 VIP 身份勋章 — 经典菱形自绘 */
.vip-yellow-diamond {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 5px 1px 4px;
  border: 1px solid #e0a82e;
  border-radius: 2px;
  background: linear-gradient(to bottom, #fff4c8 0%, #ffd84a 45%, #ffba1a 100%);
  color: #6b3a00;
  font: bold 10px/1.4 Arial, sans-serif;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  cursor: default;
  position: relative;
  vertical-align: middle;
}
.vip-yellow-diamond::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, #ffec7a 0%, #ff9500 50%, #d86a00 100%);
  border: 1px solid #a85c00;
  transform: rotate(45deg);
  box-shadow: inset 0 0 2px rgba(255,255,255,.6);
  vertical-align: middle;
}
.qq-age-tag {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font: 10px Arial;
}

/* 2. QQ 经典黄脸表情组件 */
.qq-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0 2px;
  vertical-align: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff275, #ffbc00 70%, #d88e00);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.2);
  position: relative;
  font-size: 11px;
  user-select: none;
}
.qq-emoji::after {
  position: absolute;
  font-size: 11px;
  line-height: 1;
}
.qq-emoji-sneer::after { content: "😏"; font-size: 13px; }
.qq-emoji-cry::after { content: "😭"; font-size: 13px; }
.qq-emoji-down::after { content: "😞"; font-size: 13px; }
.qq-emoji-sweat::after { content: "😓"; font-size: 13px; }
.qq-emoji-smile::after { content: "😊"; font-size: 13px; }
.qq-emoji-cool::after { content: "😎"; font-size: 13px; }
.qq-emoji-shy::after { content: "😳"; font-size: 13px; }
.qq-emoji-awkward::after { content: "😅"; font-size: 13px; }

/* 3. 发表来源/设备后缀 */
.post-device-tail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  color: #8fa0aa;
  font-size: 11px;
  font-weight: normal;
}
.post-device-tail i {
  font-style: normal;
  color: #5587a6;
}

/* 4. 留言板楼层与主人寄语 */
.guestbook-owner-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px dashed #d8b96a;
  border-radius: 3px;
  background: #fffdf3;
  position: relative;
}
.guestbook-owner-note::before {
  content: "主人寄语";
  display: inline-block;
  margin: 0 8px 4px 0;
  padding: 1px 7px;
  border: 1px solid #d8b96a;
  border-radius: 2px;
  background: linear-gradient(#fff5d8, #ffe9a8);
  color: #8a5a00;
  font: bold 11px/1.6 Arial, sans-serif;
}
.guestbook-owner-note p {
  margin: 0;
  color: #665234;
  font-size: 12px;
  line-height: 1.7;
}
.guestbook-floor {
  float: right;
  padding: 1px 7px;
  border: 1px solid #c8dde6;
  border-radius: 2px;
  background: linear-gradient(#fff, #eef6fa);
  color: #5a7d8e;
  font: bold 10px/1.4 Arial, sans-serif;
}
.guestbook-reply-box {
  margin-top: 8px;
  margin-left: 14px;
  padding: 7px 11px;
  border-left: 3px solid #0c6fb3;
  background: #f4f9fc;
  color: #3b5360;
  font-size: 12px;
  border-radius: 0 3px 3px 0;
}
.guestbook-reply-box b {
  color: #0c5fa3;
  margin-right: 4px;
}

/* 5. 悬浮 Q音乐挂件 — 2014 QZone 经典浅色小卡片 */
.floating-music-widget {
  position: fixed;
  top: 72px;
  right: 18px;
  bottom: auto;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 196px;
  padding: 7px 8px 7px 7px;
  border: 1px solid #a8c5d6;
  border-radius: 4px;
  background: linear-gradient(#ffffff, #f0f6fa);
  box-shadow: 0 4px 12px rgba(13,71,104,.18), inset 0 1px 0 rgba(255,255,255,.9);
  color: #2a3a44;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
  touch-action: none;
  cursor: grab;
  font-family: "Microsoft YaHei", sans-serif;
}
.floating-music-widget:hover:not(.dragging) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13,71,104,.26);
  border-color: #6fa8c8;
}
.floating-music-widget.dragging {
  cursor: grabbing;
  transition: none;
  transform: none;
  box-shadow: 0 8px 20px rgba(13,71,104,.3);
}
/* 顶部品牌条 */
.floating-music-widget::before {
  content: "Q音乐";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 16px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  font: bold 9px/1 Arial, sans-serif;
  color: #fff;
  letter-spacing: .5px;
  background: linear-gradient(#1ece6a, #15a050);
  border: 1px solid #0e803e;
  border-radius: 4px 4px 0 0;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
}
.floating-music-widget { padding-top: 22px; }

/* 方形专辑封面（替代黑胶） */
.vinyl-disc {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 3px;
  background:
    linear-gradient(135deg, #2a5a7a 0%, #1a3a54 50%, #0c2238 100%);
  border: 1px solid #6a8da0;
  box-shadow: 0 1px 3px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.15);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
/* 封面纹理 — 模拟专辑封面的渐变光斑 */
.vinyl-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,210,120,.35), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(120,180,220,.25), transparent 50%);
}
.vinyl-center {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ece6a, #15a050);
  border: 1px solid #fff;
  box-shadow: 0 0 4px rgba(0,0,0,.3);
  position: relative;
  z-index: 1;
}
.vinyl-disc.spinning {
  animation: albumRotate 6s linear infinite;
}
@keyframes albumRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 歌曲信息区 */
.music-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  gap: 1px;
}
.music-info-title {
  font-size: 12px;
  font-weight: bold;
  color: #1a3a4f;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.3;
}
.music-info-sub {
  font-size: 10px;
  color: #8a9aa2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 播放按钮 — Q音乐绿色 */
.music-control-btn {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid #0e803e;
  border-radius: 50%;
  background: linear-gradient(#2ee875, #15a050);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.4);
  transition: filter 0.15s ease, transform 0.1s ease;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  padding-left: 1px;
}
.music-control-btn:hover {
  filter: brightness(1.1);
}
.music-control-btn:active {
  transform: scale(0.94);
}

/* 底部进度条 */
.floating-music-widget::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 7px;
  right: 7px;
  height: 2px;
  background: #d8e2e8;
  border-radius: 1px;
  overflow: hidden;
}
.floating-music-widget { padding-bottom: 9px; }

@media (max-width: 640px) {
  .floating-music-widget {
    top: 58px;
    right: 8px;
    width: 168px;
    padding: 22px 6px 9px 6px;
    gap: 6px;
  }
  .vinyl-disc { width: 32px; height: 32px; flex-basis: 32px; }
  .music-info-title { font-size: 11px; }
  .music-info-sub { font-size: 9px; }
  .music-control-btn { width: 22px; height: 22px; flex-basis: 22px; font-size: 9px; }
}

/* 6. 点赞 +1 浮发微动画 */
.float-heart-item {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  font-weight: bold;
  font-size: 16px;
  color: #e04848;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  animation: floatHeart 1s ease-out forwards;
}
@keyframes floatHeart {
  0% { opacity: 1; transform: translateY(0) scale(0.8); }
  50% { opacity: 1; transform: translateY(-30px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-55px) scale(1); }
}

/* 7. 踩空间弹窗与旧版 Q-Login 身份验证弹窗 */
.q-login-dialog {
  width: 380px;
  max-width: 90vw;
  background: #f8fcfe;
  border: 1px solid #73b3d8;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  overflow: hidden;
}
.q-login-bar {
  height: 34px;
  padding: 0 12px;
  background: linear-gradient(#2093d5, #0873b8);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}
.q-login-body {
  padding: 24px 20px;
  text-align: center;
}
.q-login-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border: 3px solid #d0e5f2;
  border-top-color: #1683c8;
  border-radius: 50%;
  animation: qSpinner 0.8s linear infinite;
}
@keyframes qSpinner {
  to { transform: rotate(360deg); }
}
.stomp-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.stomp-btn {
  padding: 10px 14px;
  border: 1px solid #cce2ee;
  border-radius: 3px;
  background: #fff;
  color: #2b4957;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.stomp-btn:hover {
  background: #eef7fc;
  border-color: #1683c8;
  color: #1683c8;
}

/* 关键录音分段重听与结局实时反馈 */
.audio-segments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}
.audio-segments button {
  min-height: 42px;
  border: 1px solid #aac9d9;
  background: #f6fbfe;
  color: #315d72;
  cursor: pointer;
}
.decision-facts {
  margin: 15px 0;
  padding: 12px 15px;
  border-left: 3px solid #e2a33a;
  background: #fff8e8;
  color: #4c5960;
  text-align: left;
}
.decision-facts ul { margin: 7px 0 0; padding-left: 19px; }
.decision-facts li { margin: 5px 0; line-height: 1.55; }
.recovered-invite {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #b9d6e5;
  background: #eef8fd;
}
.recovered-invite > b { display: block; margin-bottom: 10px; color: #31566a; }
.identity-afterthought { opacity: .88; }
.ending-live {
  position: relative;
  min-height: 90px;
  padding: 18px 18px 16px 44px;
  border: 1px solid #aac9d9;
  background: linear-gradient(135deg, #f8fcfe, #edf6fb);
  overflow: hidden;
}
.ending-live p { margin: 0 0 8px; font-size: 15px; line-height: 1.7; color: #263f4c; }
.ending-live small { color: #78909c; }
.ending-live-dot {
  position: absolute;
  left: 18px;
  top: 25px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27b46e;
  box-shadow: 0 0 0 0 rgba(39,180,110,.45);
  animation: endingPulse 1.4s infinite;
}
.ending-live-public .ending-live-dot { background: #e48d34; }
.ending-live-close .ending-live-dot { background: #7d8990; animation: none; }
@keyframes endingPulse {
  70% { box-shadow: 0 0 0 10px rgba(39,180,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(39,180,110,0); }
}
@media (max-width: 640px) {
  .audio-segments { grid-template-columns: 1fr; }
  .audio-segments button { min-height: 46px; }
  .ending-live { padding-left: 40px; }
}

/* 结局后的会话关闭演出 */
.exit-sequence {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  color: #d8e7ec;
  background: rgba(3, 11, 16, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(0);
  transition: opacity 1.1s ease, background 1.7s ease, backdrop-filter 1.7s ease;
}
.exit-sequence::before {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at 50% 45%, rgba(69, 130, 148, .14), transparent 42%);
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 2.2s ease;
}
.exit-sequence.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(2, 8, 12, .92);
  backdrop-filter: blur(12px) saturate(.55);
}
.exit-sequence.active::before { opacity: 1; transform: scale(1); }
.exit-terminal {
  position: relative;
  z-index: 1;
  width: min(620px, 92vw);
  min-height: 250px;
  padding: 28px 30px;
  border: 1px solid rgba(146, 190, 202, .22);
  background: rgba(2, 12, 17, .54);
  box-shadow: 0 24px 90px rgba(0,0,0,.5), inset 0 0 45px rgba(69,130,148,.04);
  font-family: Consolas, "Courier New", monospace;
}
.exit-terminal-label {
  display: block;
  margin-bottom: 25px;
  color: rgba(151, 186, 197, .55);
  font-size: 11px;
  letter-spacing: .18em;
}
.exit-typing p {
  min-height: 1.7em;
  margin: 0 0 9px;
  color: rgba(205, 225, 231, .74);
  font-size: 15px;
  line-height: 1.7;
}
.exit-typing p:last-child::after {
  content: "_";
  margin-left: 3px;
  animation: exitCursor .8s steps(1) infinite;
}
.exit-typing .exit-final-line {
  margin-top: 22px;
  color: #f3fbfd;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: clamp(32px, 7vw, 58px);
  font-weight: 300;
  letter-spacing: .18em;
  text-shadow: 0 0 24px rgba(171, 221, 232, .2);
}
.exit-song-share {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  max-height: 0;
  margin-top: 0;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid transparent;
  background: rgba(235, 247, 250, .04);
  opacity: 0;
  transform: translateY(12px);
  transition: max-height .7s ease, margin-top .7s ease, padding .7s ease,
    opacity .8s ease, transform .8s ease, border-color .8s ease;
  font-family: "Microsoft YaHei", sans-serif;
}
.exit-sequence.song-revealed .exit-song-share {
  max-height: 150px;
  margin-top: 24px;
  padding: 13px 14px;
  border-color: rgba(127, 180, 195, .2);
  opacity: 1;
  transform: translateY(0);
}
.exit-song-share .avatar { width: 46px; height: 46px; border-radius: 3px; }
.exit-song-copy { min-width: 0; }
.exit-song-copy small {
  display: block;
  margin-bottom: 3px;
  color: rgba(174, 204, 212, .58);
  font-size: 11px;
}
.exit-song-copy b { color: #e6f2f5; font-size: 14px; font-weight: 500; }
.exit-song-copy p { margin: 4px 0 0; color: rgba(192, 214, 220, .7); font-size: 12px; }
.exit-song-share a {
  padding: 8px 11px;
  border: 1px solid rgba(177, 214, 222, .3);
  color: #d8eaee;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.exit-song-share a:hover { border-color: rgba(218, 240, 245, .65); color: #fff; }
.exit-return {
  margin-top: 28px;
  padding: 9px 14px;
  border: 1px solid rgba(154, 191, 201, .25);
  background: transparent;
  color: rgba(190, 215, 222, .62);
  font: inherit;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 1.3s ease, border-color .2s ease, color .2s ease;
}
.exit-sequence.song-revealed .exit-return { opacity: 1; pointer-events: auto; }
.exit-return:hover { color: #fff; border-color: rgba(210, 235, 241, .58); }
body.exit-sequence-running { overflow: hidden; }
body.exit-sequence-running #game-shell,
body.exit-sequence-running #entry-screen,
body.exit-sequence-running #prologue-screen,
body.exit-sequence-running #floating-music-widget,
body.exit-sequence-running #q-message-widget,
body.exit-sequence-running #desktop-notice {
  filter: blur(8px) saturate(.45) brightness(.56);
  transform: scale(1.012);
  transition: filter 1.6s ease, transform 2s ease;
}
@keyframes exitCursor { 50% { opacity: 0; } }
@media (max-width: 640px) {
  .exit-sequence { padding: 14px; }
  .exit-terminal { min-height: 230px; padding: 22px 20px; }
  .exit-typing p { font-size: 13px; }
  .exit-typing .exit-final-line { letter-spacing: .12em; }
  .exit-song-share { grid-template-columns: 40px minmax(0, 1fr); }
  .exit-song-share .avatar { width: 40px; height: 40px; }
  .exit-song-share a { grid-column: 1 / -1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .exit-sequence,
  .exit-sequence::before,
  .exit-return,
  .exit-song-share,
  body.exit-sequence-running #game-shell,
  body.exit-sequence-running #entry-screen,
  body.exit-sequence-running #prologue-screen { transition-duration: .01ms; }
  .exit-typing p:last-child::after { animation: none; }
}
