@charset "UTF-8";

:root {
  color-scheme: light;
  --desktop: #cbd9e5;
  --ink: #36414a;
  --muted: #788794;
  --window: rgba(251, 252, 253, .93);
  --line: #c5d0d8;
  --blue: #5292c9;
  --green: #51ad75;
  --shadow: 0 18px 45px rgba(74, 94, 111, .25), 0 2px 6px rgba(74, 94, 111, .12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--desktop); }
body { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
a { color: inherit; }
button { font: inherit; }
.en { display: none; }
.lang-en .zh { display: none; }
.lang-en .en { display: inline; }
[hidden] { display: none !important; }
.wisp-desktop { min-height: 100svh; overflow: hidden; background: var(--desktop); }
.wisp-desktop::before { position: fixed; z-index: 0; inset: 0; pointer-events: none; content: ""; background: radial-gradient(circle at 48% 56%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 45%); }

.system-bar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 31px; padding: 0 16px; color: #475663; background: rgba(226, 235, 242, .78); border-bottom: 1px solid rgba(121, 146, 164, .28); box-shadow: 0 1px 4px rgba(72, 96, 113, .08); backdrop-filter: blur(15px); font-size: 11px; }
.system-bar__left, .system-bar__right, .system-menu, .system-brand, .language-switch { display: flex; align-items: center; }
.system-bar__left, .system-bar__right { gap: 14px; min-width: 0; }
.system-brand { gap: 7px; color: #33414c; text-decoration: none; }
.system-brand__icon { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; color: white; background: #5d8fb5; font-size: 10px; font-weight: 700; }
.system-brand strong { font-weight: 650; }
.system-menu { gap: 16px; color: #61717e; }
.workspace-label { color: #748795; font: 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .11em; }
.system-symbol { color: #587084; font-size: 14px; line-height: 1; }
.system-date { color: #61717e; }
.language-switch { gap: 2px; padding: 2px; border: 1px solid rgba(104, 129, 148, .32); border-radius: 6px; background: rgba(255, 255, 255, .32); }
.language-switch button { width: 27px; height: 20px; padding: 0; border: 0; border-radius: 4px; color: #71808d; background: transparent; font-size: 10px; cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: #32404b; background: rgba(255, 255, 255, .8); box-shadow: 0 1px 2px rgba(60, 81, 96, .12); }

.workspace { position: relative; z-index: 1; min-height: calc(100svh - 31px); overflow: hidden; }
.desktop-title { position: absolute; top: 28px; left: 32px; color: rgba(69, 87, 101, .36); font: 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.window { position: absolute; overflow: hidden; border: 1px solid rgba(130, 149, 163, .65); border-radius: 9px; background: var(--window); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.window-bar { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; color: #677985; border-bottom: 1px solid var(--line); background: rgba(245, 248, 250, .74); }
.traffic-lights { display: flex; gap: 5px; }
.traffic-lights i { width: 9px; height: 9px; border: 1px solid rgba(42, 55, 64, .12); border-radius: 50%; background: #f0b25f; }
.traffic-lights i:first-child { background: #ef7269; }
.traffic-lights i:last-child { background: #6cc879; }
.window-bar__title { display: flex; align-items: center; gap: 8px; min-width: 0; color: #4b5b67; font-size: 11px; }
.window-bar__title strong { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.window-bar__title small { display: block; margin-top: 1px; color: #8997a1; font-size: 9px; }
.window-bar__app { color: #85949e; font: 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.window-file-icon { display: grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: white; font-size: 8px; font-weight: 700; }
.window-file-icon--wisp { background: #e6b171; }

.window--player { top: clamp(76px, 13vh, 142px); left: 50%; z-index: 5; width: min(1080px, 72vw); transform: translateX(-50%); }
.window-bar--player { min-height: 46px; }
.player-layout { display: grid; grid-template-columns: 178px minmax(0, 1fr); min-height: 500px; }
.player-sidebar { display: flex; flex-direction: column; padding: 25px 20px 18px; border-right: 1px solid var(--line); background: rgba(246, 249, 251, .82); }
.player-sidebar__kicker, .player-main__toolbar, .player-main__footer, .player-stats dt { color: #83929e; font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.player-sidebar__kicker { margin: 0 0 28px; color: var(--blue); }
.player-sidebar h1 { margin: 0; color: #3e4c57; font-size: 29px; letter-spacing: -.06em; line-height: 1.02; }
.player-sidebar__intro { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.player-stats { display: grid; gap: 14px; margin: 27px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.player-stats div { display: flex; flex-direction: column; gap: 3px; }
.player-stats dt { letter-spacing: .04em; }
.player-stats dd { margin: 0; color: #4e5d68; font: 600 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.workspace-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: #5788ae; font-size: 11px; text-decoration: none; }
.workspace-link:hover { color: #2f678f; }
.player-main { min-width: 0; padding: 14px 15px 15px; background: rgba(255, 255, 255, .68); }
.player-main__toolbar, .player-main__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 27px; letter-spacing: .03em; text-transform: none; }
.video-stage { display: grid; place-items: center; min-height: clamp(375px, 31vw, 500px); overflow: hidden; border: 1px solid #aebdc8; border-radius: 4px; background: #e9eff3; }
.video-stage video { display: block; width: 100%; height: 100%; min-height: clamp(375px, 31vw, 500px); aspect-ratio: 16 / 9; background: #121719; object-fit: contain; }
.media-pending { display: grid; justify-items: center; width: min(80%, 360px); padding: 35px 22px; text-align: center; }
.media-pending__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 15px; border: 1px solid #bad3e3; border-radius: 14px; color: #5a9acb; background: #f3f9fd; }
.media-pending__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.media-pending__icon path { fill: currentColor; stroke: none; }
.media-pending p { margin: 0; color: #6693b2; font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; }
.media-pending h2 { margin: 9px 0 7px; color: #4c5d69; font-size: 18px; letter-spacing: -.035em; }
.media-pending small { max-width: 285px; color: #82939f; font-size: 11px; line-height: 1.6; }
.player-main__footer { min-height: 34px; color: #80909c; }
.player-main__footer > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(81, 173, 117, .14); }

.desktop-icons { position: absolute; top: 22px; right: 22px; z-index: 2; display: grid; gap: 20px; width: 90px; }
.desktop-file { display: grid; justify-items: center; gap: 5px; color: #5b6e7a; font-size: 9px; line-height: 1.25; text-align: center; text-decoration: none; text-shadow: 0 1px rgba(255, 255, 255, .5); }
.desktop-file:hover { color: #396986; }
.desktop-file__icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(93, 119, 136, .2); border-radius: 8px; color: white; background: #edc68e; box-shadow: 0 3px 7px rgba(73, 94, 109, .16); font-size: 8px; font-weight: 700; }
.desktop-file__icon--mail { color: #5d7890; background: #e6f1f8; font-size: 20px; }
.desktop-file__icon--sheet { background: #bad7c5; }
.desktop-file__icon--board { background: #d2c2e5; font-size: 19px; }

.wisp-mascot { position: absolute; top: 24vh; left: 39%; z-index: 7; width: 94px; transform: translateX(-50%) rotate(-5deg); filter: drop-shadow(0 8px 8px rgba(57, 74, 88, .17)); pointer-events: none; }
.wisp-mascot svg { display: block; width: 100%; height: auto; }
.mascot-shadow { fill: rgba(74, 91, 105, .2); }
.mascot-hat { fill: #425461; }
.mascot-hat-band { fill: #d48d51; }
.mascot-body { fill: #eaa66a; }
.mascot-eye { fill: #445763; }
.mascot-spark { fill: #74c7d1; }

.wisp-notification { position: absolute; right: 28px; bottom: 97px; z-index: 12; display: grid; grid-template-columns: 27px minmax(0, 1fr) 17px; align-items: center; gap: 8px; width: 235px; padding: 10px; border: 1px solid #c7b2d7; border-radius: 4px; background: rgba(255, 249, 255, .92); box-shadow: 0 8px 20px rgba(93, 73, 108, .18); color: #786b84; font-size: 9px; line-height: 1.35; }
.notification-mascot { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: white; background: #d79a5e; font-size: 12px; font-weight: 700; }
.wisp-notification p { margin: 0; }
.wisp-notification strong { color: #66546e; font-weight: 650; }
.wisp-notification button { align-self: start; width: 17px; height: 17px; padding: 0; border: 0; color: #a38fa9; background: transparent; cursor: pointer; }

.dock { position: absolute; right: 50%; bottom: 16px; z-index: 15; display: flex; gap: 8px; padding: 8px 12px 7px; border: 1px solid rgba(255, 255, 255, .52); border-radius: 15px; background: rgba(241, 248, 252, .72); box-shadow: 0 10px 25px rgba(71, 93, 109, .22), inset 0 1px rgba(255, 255, 255, .62); transform: translateX(50%); backdrop-filter: blur(15px); }
.dock-item { display: grid; justify-items: center; gap: 2px; min-width: 42px; color: #657581; text-decoration: none; }
.dock-item span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: white; box-shadow: 0 2px 4px rgba(75, 98, 112, .16); font-size: 7px; font-weight: 700; }
.dock-item small { font-size: 7px; }
.dock-item--pages span { background: #efbd73; }
.dock-item--mail span { background: #6ca7d7; font-size: 17px; }
.dock-item--sheets span { background: #69b783; }
.dock-item--canvas span { background: #a996d0; font-size: 16px; }
.dock-item--files span { background: #6cafd3; font-size: 17px; }
.dock-item:hover span { transform: translateY(-3px); }

:is(a, button):focus-visible { outline: 2px solid #3f88bf; outline-offset: 3px; }

@media (max-width: 1050px) {
  .system-menu { display: none; }
  .window--player { width: 74vw; }
  .wisp-mascot { left: 36%; }
}

@media (max-width: 760px) {
  .wisp-desktop { overflow: auto; }
  .system-bar { position: sticky; top: 0; min-height: 36px; height: auto; padding: 6px 12px; }
  .system-bar__right { gap: 7px; }
  .workspace-label, .system-symbol, .system-date { display: none; }
  .workspace { display: flex; flex-direction: column; gap: 16px; min-height: calc(100svh - 36px); padding: 24px 14px 90px; overflow: visible; }
  .desktop-title, .desktop-icons, .wisp-mascot, .wisp-notification { display: none; }
  .window--player { position: relative; inset: auto; width: 100%; transform: none; }
  .player-layout { grid-template-columns: 1fr; min-height: 0; }
  .player-sidebar { padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .player-sidebar__kicker { margin-bottom: 15px; }
  .player-sidebar h1 { font-size: 34px; }
  .player-sidebar__intro { max-width: 330px; }
  .player-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
  .workspace-link { margin-top: 23px; }
  .player-main { padding: 10px; }
  .video-stage, .video-stage video { min-height: 210px; }
  .media-pending { width: 100%; padding: 26px 12px; }
  .dock { position: fixed; bottom: 12px; }
}

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