/*
Theme Name: 世界工坊双界面主题
Theme URI: https://worldcraft.cn/
Author: WorldCraft
Author URI: https://worldcraft.cn/
Description: 为 WorldCraft 定制的双界面 WordPress 主题：桌面端以 Windows XP 桌面组织作品、文章与工具，移动端采用塞班风格应用界面。
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: worldcraft-os
Tags: custom-menu, custom-logo, featured-images, translation-ready
*/

:root {
  --font-ui: "SimSun", "宋体", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --text-ui: 13px;
  --text-caption: 12px;
  --text-body: 16px;
  --text-window-title: 13px;
  --text-mobile-title: 20px;
  --text-heading: 28px;
  --text-display: 48px;
  --text-wordmark: clamp(32px, 4vw, 56px);
  --text-mobile-clock: clamp(54px, 15vw, 82px);
  --text-window-glyph: 14px;
  --text-start-label: 17px;
  --text-mobile-back: 30px;
  --text-mobile-menu: 22px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --color-focus: #165bd4;
  --shadow-window: 3px 3px 0 rgba(10, 24, 72, 0.35), 0 18px 42px rgba(2, 16, 59, 0.34);
  --shadow-menu: 3px 3px 5px rgba(0, 0, 0, 0.34);
  --xp-window-max-width: 920px;
  --xp-window-max-height: 650px;
  --xp-titlebar-start: #0f5bd7;
  --xp-titlebar-mid: #2d8df6;
  --xp-titlebar-end: #0753cc;
  --xp-titlebar-text: #ffffff;
  --xp-window-face: #ece9d8;
  --xp-window-border: #0054e3;
  --xp-window-border-soft: #8ca6d9;
  --xp-window-content: #ffffff;
  --xp-window-muted: #6e6b62;
  --xp-panel: #f4f2e9;
  --xp-panel-line: #aca899;
  --xp-selection: #316ac5;
  --xp-selection-text: #ffffff;
  --xp-button-face: #ece9d8;
  --xp-button-highlight: #ffffff;
  --xp-button-shadow: #716f64;
  --xp-button-accent: #2f8f2d;
  --xp-button-accent-light: #7acb56;
  --xp-taskbar-start: #2f75df;
  --xp-taskbar-end: #1941a5;
  --xp-taskbar-border: #0e3296;
  --xp-start-start: #3ca33f;
  --xp-start-end: #22821e;
  --xp-start-border: #195c17;
  --xp-text: #171717;
  --xp-blue-text: #003399;
  --xp-link: #0b57c3;
  --xp-success: #217433;
  --xp-error: #b42318;
  --xp-warning: #8a5500;
  --xp-menu-blue: #0a4fd3;
  --xp-menu-cyan: #6bc9f8;
  --xp-icon-label-shadow: 1px 1px 2px #09245d;
  --mobile-bg: #171318;
  --mobile-wallpaper-tint: #b84000;
  --mobile-glass: rgba(20, 17, 21, 0.86);
  --mobile-glass-soft: rgba(34, 29, 32, 0.68);
  --mobile-surface: #f7f5ef;
  --mobile-surface-alt: #e8e4da;
  --mobile-text: #171717;
  --mobile-muted: #65656b;
  --mobile-status: #101214;
  --mobile-status-text: #f5f6f7;
  --mobile-accent: #48a9cf;
  --mobile-blue: #2b70c4;
  --mobile-green: #4b9b47;
  --mobile-red: #cb554c;
  --mobile-keybar: rgba(20, 19, 23, 0.84);
  --mobile-border: rgba(255, 255, 255, 0.34);
  --mobile-radius: 12px;
  --mobile-shell-width: 430px;
  --mobile-shell-height: 844px;
  --mobile-touch: 44px;
  --color-preview-default: #2f6fda;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--xp-text);
  background: #101010;
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 3000;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-2) var(--space-4);
  color: var(--xp-text);
  background: #ffffff;
  border: 2px solid var(--color-focus);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.desktop-experience,
.mobile-experience {
  width: 100%;
  height: 100dvh;
}

body.admin-bar .desktop-experience,
body.admin-bar .mobile-experience {
  height: calc(100dvh - 32px);
}

.desktop-experience {
  display: none;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.mobile-experience {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), transparent 38%),
    #0b0a0c;
}

html[data-mode="desktop"] .desktop-experience {
  display: block;
}

html[data-mode="mobile"] .mobile-experience {
  display: flex;
}

/* 启动过渡 */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 36%, rgba(92, 176, 255, 0.6), transparent 28%),
    linear-gradient(160deg, #082459 0%, #0b52b6 55%, #061f56 100%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-brand {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  text-align: center;
}

.boot-brand img {
  width: 88px;
  height: 78px;
}

.boot-brand p {
  margin: 0;
  font-size: var(--text-heading);
  letter-spacing: 0.22em;
}

.boot-brand span {
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  color: rgba(255, 255, 255, 0.78);
}

.boot-progress {
  position: absolute;
  left: 50%;
  bottom: 14vh;
  width: 188px;
  height: 12px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  transform: translateX(-50%);
  overflow: hidden;
}

.boot-progress i {
  display: block;
  width: 38%;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  animation: boot-load 0.9s ease-in-out infinite alternate;
}

@keyframes boot-load {
  from { transform: translateX(0); }
  to { transform: translateX(160%); }
}

/* XP 桌面 */
.desktop-wallpaper {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 99, 209, 0.02), rgba(16, 86, 17, 0.08)),
    url("assets/windows-xp-bliss.jpg") center / cover no-repeat;
}

.desktop-wordmark {
  position: absolute;
  top: clamp(24px, 5vh, 52px);
  right: clamp(24px, 4vw, 64px);
  display: grid;
  justify-items: end;
  color: #ffffff;
  text-shadow: 0 2px 7px rgba(0, 30, 80, 0.74);
  pointer-events: none;
}

.desktop-wordmark span {
  font-family: var(--font-ui);
  font-size: var(--text-wordmark);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.desktop-wordmark small {
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  letter-spacing: 0.32em;
}

.desktop-icons {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  bottom: 56px;
  z-index: 10;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, minmax(72px, auto));
  align-content: start;
  gap: var(--space-1) var(--space-2);
  width: 196px;
}

.desktop-icon {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--space-1);
  min-width: 84px;
  min-height: 70px;
  padding: var(--space-1);
  color: #ffffff;
  background: transparent;
  border: 1px solid transparent;
  text-shadow: var(--xp-icon-label-shadow);
  cursor: default;
}

.desktop-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.35));
}

.desktop-icon span {
  max-width: 80px;
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.desktop-icon:hover {
  color: var(--xp-selection-text);
  background: rgba(49, 106, 197, 0.24);
  border-color: rgba(255, 255, 255, 0.38);
}

.desktop-icon:focus-visible,
.desktop-icon.is-selected {
  color: var(--xp-selection-text);
  background: rgba(49, 106, 197, 0.72);
  border-color: rgba(255, 255, 255, 0.75);
}

.desktop-icon--secondary img {
  opacity: 0.92;
}

.window-layer {
  position: absolute;
  inset: 0 0 44px 0;
  z-index: 100;
  pointer-events: none;
}

.xp-window {
  --window-x: 120px;
  --window-y: 84px;
  position: absolute;
  z-index: 100;
  left: var(--window-x);
  top: var(--window-y);
  display: flex;
  flex-direction: column;
  width: clamp(520px, 66vw, var(--xp-window-max-width));
  height: clamp(340px, 66vh, var(--xp-window-max-height));
  min-width: 360px;
  min-height: 270px;
  max-width: calc(100vw - var(--space-6));
  max-height: calc(100vh - 80px);
  overflow: hidden;
  resize: both;
  pointer-events: auto;
  background: var(--xp-window-face);
  border: 3px solid var(--xp-window-border);
  border-radius: 8px 8px 2px 2px;
  box-shadow: var(--shadow-window);
  animation: window-open 140ms ease-out both;
}

.xp-window.is-maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: calc(100dvh - 44px) !important;
  max-width: none;
  max-height: none;
  border-radius: 0;
  resize: none;
}

.xp-window.is-minimized {
  display: none;
}

@keyframes window-open {
  from { opacity: 0; transform: scale(0.985) translateY(5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.xp-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 28px;
  padding: 2px 3px 3px var(--space-2);
  color: var(--xp-titlebar-text);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.48), transparent 35%),
    linear-gradient(to right, var(--xp-titlebar-start), var(--xp-titlebar-mid) 45%, var(--xp-titlebar-end));
  border-radius: 5px 5px 0 0;
  cursor: grab;
  touch-action: none;
}

.xp-window.is-dragging .xp-titlebar {
  cursor: grabbing;
}

.xp-window.is-ready {
  animation: none;
}

.xp-window.is-dragging {
  transition: none;
}

.xp-titlebar__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.xp-titlebar__title {
  flex: 1;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: var(--text-window-title);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
}

.xp-titlebar__controls {
  display: flex;
  gap: 2px;
}

.xp-window-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 21px;
  padding: 0;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.xp-window-button--minimize,
.xp-window-button--maximize {
  background: linear-gradient(#72a8f5, #1d66d2);
}

.xp-window-button--close {
  background: linear-gradient(#ef906b, #c63619);
}

.xp-window-button:hover {
  filter: brightness(1.12);
}

.xp-window-button__glyph {
  font-family: Arial, sans-serif;
  font-size: var(--text-window-glyph);
  line-height: 1;
}

.xp-menu-bar,
.xp-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--xp-window-face);
  border-bottom: 1px solid var(--xp-panel-line);
}

.xp-menu-bar {
  position: relative;
  z-index: 12;
  color: var(--xp-text);
  font-family: var(--font-ui);
  font-size: var(--text-ui);
}

.xp-menu {
  position: relative;
}

.xp-menu__trigger {
  min-height: 22px;
  padding: 1px var(--space-2);
  background: transparent;
  border: 1px solid transparent;
}

.xp-menu__trigger:hover,
.xp-menu__trigger:focus-visible,
.xp-menu__trigger[aria-expanded="true"] {
  background: var(--xp-selection);
  border-color: var(--xp-selection);
  color: var(--xp-selection-text);
}

.xp-menu__popup {
  position: absolute;
  z-index: 50;
  top: calc(100% + 1px);
  left: 0;
  min-width: 210px;
  padding: 2px;
  background: var(--xp-window-face);
  border: 1px solid #77756b;
  box-shadow: var(--shadow-menu);
}

.xp-menu__popup button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 28px;
  padding: var(--space-1) var(--space-3);
  color: var(--xp-text);
  text-align: left;
  background: transparent;
  border: 0;
  white-space: nowrap;
}

.xp-menu__popup button:hover,
.xp-menu__popup button:focus-visible {
  color: var(--xp-selection-text);
  background: var(--xp-selection);
}

.xp-menu__popup small {
  color: var(--xp-window-muted);
  font-size: var(--text-caption);
}

.xp-menu__popup button:hover small,
.xp-menu__popup button:focus-visible small {
  color: rgba(255, 255, 255, 0.8);
}

.xp-menu__separator {
  height: 1px;
  margin: 2px;
  background: var(--xp-panel-line);
}

.empty-stage {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: var(--space-8);
  color: var(--xp-window-muted);
  text-align: center;
}

.empty-stage img {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-3);
  object-fit: contain;
  opacity: 0.88;
}

.empty-stage strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--xp-blue-text);
  font-size: var(--text-body);
}

.empty-stage p {
  margin: 0;
  font-size: var(--text-ui);
}

.compliance-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(7, 25, 62, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  line-height: 1.3;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.42);
}

.compliance-bar a,
.compliance-bar span {
  color: inherit;
  text-decoration: none;
}

.compliance-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  line-height: 1.25;
}

.compliance-row--police {
  min-height: 20px;
}

.compliance-bar img {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 22px;
  object-fit: contain;
}

.compliance-bar a:hover,
.compliance-bar a:focus-visible {
  text-decoration: underline;
}

.compliance-desktop {
  position: absolute;
  z-index: 890;
  right: var(--space-3);
  bottom: 50px;
  max-width: min(540px, calc(100vw - var(--space-6)));
  padding: var(--space-1) var(--space-2);
  align-items: flex-end;
}

.compliance-mobile {
  position: absolute;
  z-index: 29;
  left: var(--space-2);
  right: var(--space-2);
  bottom: 66px;
  justify-content: center;
  min-height: 22px;
  padding: 2px var(--space-2);
  text-align: center;
  background: rgba(22, 20, 24, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
  text-shadow: none;
}

.has-compliance .symbian-home,
.has-compliance .symbian-app-view {
  bottom: 118px;
}
}

.xp-addressbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: var(--xp-window-face);
  border-bottom: 1px solid var(--xp-panel-line);
  font-family: var(--font-ui);
  font-size: var(--text-ui);
}

.xp-addressbar label {
  color: var(--xp-window-muted);
}

.xp-addressbar__field {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 23px;
  padding: 0 var(--space-2);
  background: #ffffff;
  border: 1px solid #7f9db9;
}

.xp-window__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--xp-window-content);
  border: 1px solid var(--xp-window-border-soft);
  border-top: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  user-select: text;
}

.xp-statusbar {
  padding: 2px var(--space-2);
  color: #333333;
  background: var(--xp-window-face);
  border-top: 1px solid var(--xp-panel-line);
  font-family: var(--font-ui);
  font-size: var(--text-caption);
}

.explorer-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100%;
}

.explorer-sidebar {
  position: relative;
  padding: var(--space-3);
  background: linear-gradient(180deg, #6a8ee8, #91b8f6 44%, #d9e7ff);
}

.sidebar-panel {
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: #dce9ff;
  border: 1px solid #8aa3d4;
  border-radius: 5px;
}

.sidebar-panel h3 {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  color: var(--xp-blue-text);
  background: linear-gradient(to right, #ffffff, #c8ddfc);
  font-size: var(--text-ui);
}

.sidebar-panel p,
.sidebar-panel ul {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-caption);
  line-height: 1.5;
}

.sidebar-panel ul {
  list-style: none;
}

.sidebar-panel li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  color: var(--xp-link);
}

.sidebar-panel li::before {
  content: "›";
  color: var(--xp-success);
  font-weight: 700;
}

.explorer-main {
  min-width: 0;
  padding: var(--space-4);
  background:
    linear-gradient(90deg, rgba(238, 245, 255, 0.8), transparent 22%),
    #ffffff;
}

.explorer-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid #dfe5ed;
}

.explorer-heading h2,
.content-heading {
  margin: 0;
  color: var(--xp-blue-text);
  font-size: var(--text-heading);
  line-height: 1.2;
}

.explorer-heading p,
.content-heading + p {
  margin: var(--space-1) 0 0;
  color: var(--xp-window-muted);
  font-size: var(--text-caption);
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 var(--space-2);
  color: #6e4b00;
  background: #fff0ba;
  border: 1px solid #d0aa42;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.work-card {
  display: block;
  overflow: hidden;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #b5c4dc;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.06);
}

.work-card:hover {
  border-color: #f0a62d;
  box-shadow: 0 0 0 1px #ffd580;
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid #d4dbe7;
}

.work-card__text {
  padding: var(--space-3);
}

.work-card__text strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--xp-blue-text);
  font-size: var(--text-body);
}

.work-card__text span {
  color: var(--xp-window-muted);
  font-size: var(--text-caption);
}

.article-list {
  display: grid;
  gap: var(--space-3);
}

.article-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #c6d0df;
  border-radius: 4px;
  cursor: pointer;
}

.article-card:hover {
  background: #f3f8ff;
  border-color: #7da1da;
}

.article-card img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #b5c4dc;
}

.article-card h3 {
  margin: 0 0 var(--space-1);
  color: var(--xp-blue-text);
  font-size: var(--text-body);
}

.article-card p {
  margin: 0;
  color: var(--xp-window-muted);
  font-size: var(--text-caption);
  line-height: 1.5;
}

.article-card time {
  color: #77736a;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  white-space: nowrap;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.tool-card {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  min-height: 136px;
  padding: var(--space-3);
  text-align: left;
  background: linear-gradient(#ffffff, #f1f5fb);
  border: 1px solid #a8b7ce;
  border-radius: 5px;
  cursor: pointer;
}

.tool-card:hover {
  border-color: #2f7fda;
  background: linear-gradient(#ffffff, #e6f0ff);
}

.tool-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.tool-card strong {
  color: var(--xp-blue-text);
  font-size: var(--text-body);
}

.tool-card span {
  color: var(--xp-window-muted);
  font-size: var(--text-caption);
  line-height: 1.5;
}

.work-detail {
  display: grid;
  gap: var(--space-6);
  padding: clamp(20px, 4vw, 40px);
}

.work-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.85fr);
  gap: var(--space-6);
  align-items: start;
}

.work-detail__cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid #b9c6d9;
  box-shadow: 0 3px 10px rgba(25, 45, 85, 0.14);
}

.work-detail__summary h2 {
  margin: 0 0 var(--space-2);
  color: var(--xp-blue-text);
  font-size: var(--text-heading);
  line-height: 1.2;
}

.work-detail__summary > p {
  margin: 0 0 var(--space-4);
  color: #444444;
  line-height: 1.7;
}

.meta-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-3);
  margin: 0;
  padding: var(--space-3);
  background: var(--xp-panel);
  border: 1px solid #d5cfbb;
  font-size: var(--text-ui);
}

.meta-list dt {
  color: var(--xp-window-muted);
}

.meta-list dd {
  margin: 0;
}

.detail-copy {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid #e2e2e2;
}

.detail-copy h3 {
  margin: 0;
  color: var(--xp-blue-text);
  font-size: var(--text-body);
}

.detail-copy p {
  margin: 0;
  color: #3f3f3f;
  line-height: 1.8;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #c8d1dc;
}

.detail-gallery img:nth-child(2) {
  object-position: 50% 68%;
  filter: saturate(0.86) brightness(1.04);
}

.detail-gallery img:nth-child(3) {
  object-position: 66% 50%;
  filter: hue-rotate(12deg) saturate(0.94);
}

.article-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
}

.article-detail h2 {
  margin: 0 0 var(--space-2);
  color: var(--xp-blue-text);
  font-size: var(--text-heading);
  line-height: 1.25;
}

.article-detail time {
  display: block;
  margin-bottom: var(--space-6);
  color: var(--xp-window-muted);
  font-family: var(--font-ui);
  font-size: var(--text-caption);
}

.article-detail p {
  margin: 0 0 var(--space-4);
  line-height: 1.8;
}

.article-detail h3 {
  margin: var(--space-6) 0 var(--space-2);
  color: var(--xp-blue-text);
  font-size: var(--text-body);
}

.article-detail blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-3) var(--space-4);
  color: #404040;
  background: #f3f7ff;
  border-left: 4px solid #4d87d5;
}

.plain-page {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
}

.plain-page h2 {
  margin: 0 0 var(--space-3);
  color: var(--xp-blue-text);
  font-size: var(--text-heading);
}

.plain-page p {
  margin: 0 0 var(--space-4);
  line-height: 1.8;
}

.identity-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: linear-gradient(to right, #ffffff, #e8f2ff);
  border: 1px solid #c1d2e8;
}

.identity-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.identity-card strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--xp-blue-text);
  font-size: var(--text-heading);
}

.identity-card span {
  color: var(--xp-window-muted);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.xp-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 34px;
  padding: 0 var(--space-4);
  color: var(--xp-text);
  text-decoration: none;
  background: linear-gradient(#ffffff, #d8d7d0);
  border: 1px solid #77756b;
  border-radius: 3px;
  box-shadow: inset 1px 1px 0 #ffffff;
}

.xp-action--primary {
  color: #ffffff;
  background: linear-gradient(#65bd45, #2b8828);
  border-color: #21691f;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.xp-action:hover {
  filter: brightness(1.05);
}

.notice-box {
  margin: var(--space-4) 0;
  padding: var(--space-3);
  color: #5d4500;
  background: #fff7d6;
  border: 1px solid #d8b75c;
  line-height: 1.6;
}

.source-list {
  margin: var(--space-3) 0;
  padding-left: var(--space-6);
  line-height: 1.8;
}

.source-list code {
  color: #354d78;
  background: #eef3fa;
}

.search-box {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.search-box input {
  flex: 1;
  min-height: 34px;
  padding: 0 var(--space-3);
  border: 1px solid #8b9bb1;
}

.search-results {
  display: grid;
  gap: var(--space-2);
}

.search-result {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #d0d7e1;
  cursor: pointer;
}

.search-result:hover {
  background: #edf5ff;
}

.search-result img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.search-result strong {
  display: block;
  color: var(--xp-blue-text);
}

.search-result span {
  color: var(--xp-window-muted);
  font-size: var(--text-caption);
}

.tool-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px);
}

.tool-panel__intro {
  margin-bottom: var(--space-4);
}

.tool-panel__intro h2 {
  margin: 0 0 var(--space-2);
  color: var(--xp-blue-text);
  font-size: var(--text-heading);
}

.tool-panel__intro p {
  margin: 0;
  color: var(--xp-window-muted);
}

.tool-form {
  display: grid;
  gap: var(--space-3);
}

.tool-form label {
  display: grid;
  gap: var(--space-1);
  color: #333333;
  font-size: var(--text-ui);
}

.tool-form textarea,
.tool-form input[type="text"] {
  width: 100%;
  min-height: 132px;
  padding: var(--space-3);
  color: #171717;
  background: #ffffff;
  border: 1px solid #7f9db9;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  font-size: var(--text-ui);
  line-height: 1.5;
}

.tool-form input[type="text"] {
  min-height: 36px;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tool-output {
  min-height: 90px;
  padding: var(--space-3);
  color: #173318;
  background: #f7fff4;
  border: 1px solid #b6cfb2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: var(--text-ui);
  line-height: 1.55;
}

.tool-output.is-error {
  color: var(--xp-error);
  background: #fff5f3;
  border-color: #e1b4ad;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.stat-box {
  padding: var(--space-3);
  text-align: center;
  background: #f4f7fb;
  border: 1px solid #c5d1e1;
}

.stat-box strong {
  display: block;
  color: var(--xp-blue-text);
  font-size: var(--text-heading);
}

.stat-box span {
  font-size: var(--text-caption);
  color: var(--xp-window-muted);
}

.color-preview {
  height: 116px;
  background: var(--color-preview-default);
  border: 1px solid #778da8;
  border-radius: 4px;
}

.tool-form .color-input {
  width: 100%;
  min-height: 64px;
  padding: var(--space-1);
}

/* 开始菜单 */
.start-menu {
  position: absolute;
  z-index: 1000;
  left: var(--space-1);
  bottom: 42px;
  width: 410px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #0b3fa8;
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow-menu);
  animation: start-in 100ms ease-out;
}

@keyframes start-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.start-menu__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: #ffffff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(to right, var(--xp-titlebar-start), var(--xp-titlebar-mid));
}

.start-menu__header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.start-menu__header strong,
.start-menu__header span {
  display: block;
}

.start-menu__header strong {
  font-size: var(--text-body);
}

.start-menu__header span {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-caption);
}

.start-menu__body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 294px;
}

.start-menu__primary {
  padding: var(--space-2);
  background: #ffffff;
}

.start-menu__primary > button {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-2);
  align-items: center;
  width: 100%;
  padding: var(--space-1) var(--space-2);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.start-menu__primary > button:hover,
.start-menu__primary > button:focus-visible {
  color: var(--xp-selection-text);
  background: var(--xp-selection);
  border-color: var(--xp-selection);
}

.start-menu__primary img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.start-menu__primary strong,
.start-menu__primary small {
  display: block;
}

.start-menu__primary strong {
  font-size: var(--text-ui);
}

.start-menu__primary small {
  margin-top: 1px;
  color: var(--xp-window-muted);
  font-size: var(--text-caption);
}

.start-menu__primary button:hover small,
.start-menu__primary button:focus-visible small {
  color: rgba(255, 255, 255, 0.82);
}

.start-menu__secondary {
  padding: var(--space-2);
  background: linear-gradient(#d9e9ff, #b4d0fb);
  border-left: 1px solid #87a6d8;
}

.start-menu__group-title {
  margin: var(--space-1) var(--space-2);
  color: var(--xp-blue-text);
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  font-weight: 700;
}

.menu-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--space-2);
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: var(--space-1) var(--space-2);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.menu-row:hover,
.menu-row:focus-visible {
  color: var(--xp-selection-text);
  background: var(--xp-selection);
  border-color: var(--xp-selection);
}

.menu-row img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.menu-row strong,
.menu-row small {
  display: block;
}

.menu-row strong {
  font-size: var(--text-ui);
}

.menu-row small {
  color: var(--xp-window-muted);
  font-size: var(--text-caption);
}

.menu-row:hover small,
.menu-row:focus-visible small {
  color: rgba(255, 255, 255, 0.82);
}

.menu-row__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  font-weight: 700;
}

.menu-row__icon--teal {
  background: linear-gradient(#70d6e5, #139bb0);
}

.menu-row__icon--gold {
  background: linear-gradient(#ffd776, #c79210);
}

.start-menu__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  color: #263b67;
  background: linear-gradient(to right, #2764d7, #1a47a6);
}

.start-menu__footer span {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-caption);
}

.start-menu__footer button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  color: #ffffff;
  background: transparent;
  border: 1px solid transparent;
}

.start-menu__footer button:hover,
.start-menu__footer button:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

.start-menu__footer img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* 任务栏 */
.taskbar {
  position: absolute;
  z-index: 900;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  height: 44px;
  color: #ffffff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent 42%),
    linear-gradient(to bottom, var(--xp-taskbar-start), var(--xp-taskbar-end));
  border-top: 1px solid #4e8ff5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.start-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 104px;
  height: 100%;
  padding: 0 var(--space-4) 0 var(--space-3);
  color: #ffffff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.38), transparent 42%),
    linear-gradient(to bottom, var(--xp-start-start), var(--xp-start-end));
  border: 0;
  border-right: 1px solid var(--xp-start-border);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-ui);
  font-size: var(--text-start-label);
  font-style: italic;
  font-weight: 700;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.start-button:hover,
.start-button[aria-expanded="true"] {
  filter: brightness(1.1);
}

.start-button img {
  width: 25px;
  height: 22px;
  object-fit: contain;
}

.quick-launch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 var(--space-2);
  border-right: 1px solid rgba(8, 34, 102, 0.7);
}

.quick-launch button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
}

.quick-launch button:hover,
.quick-launch button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
}

.quick-launch img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.task-buttons {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
  padding: var(--space-1);
}

.task-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 136px;
  max-width: 230px;
  height: 32px;
  padding: 0 var(--space-3);
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(#3d80e3, #2459b8);
  border: 1px solid #123f99;
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.24);
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.task-button:hover {
  background: linear-gradient(#4b91f0, #2a64c7);
}

.task-button.is-active {
  background: linear-gradient(#1c469d, #2e66c7);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35);
}

.task-button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.system-tray {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  background: linear-gradient(#2784df, #196bc5);
  border-left: 1px solid #5fa7ea;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  white-space: nowrap;
}

/* 塞班移动界面 */
.phone-shell {
  position: relative;
  width: min(var(--mobile-shell-width), 100%);
  height: min(var(--mobile-shell-height), 100%);
  overflow: hidden;
  color: #ffffff;
  background: #2b0d04;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 32%, rgba(255, 239, 122, 0.58), transparent 26%),
    linear-gradient(160deg, rgba(128, 5, 0, 0.3) 6%, rgba(255, 110, 0, 0.32) 46%, rgba(68, 7, 27, 0.6)),
    url("assets/symbian-feather.jpg") center / cover no-repeat;
  background-blend-mode: screen, multiply, normal;
  transform: scale(1.05);
  filter: saturate(1.28) contrast(1.08);
}

.phone-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 16%, transparent 72%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.symbian-statusbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 var(--space-3);
  color: var(--mobile-status-text);
  background: linear-gradient(rgba(14, 16, 20, 0.94), rgba(0, 0, 0, 0.7));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-ui);
  font-size: var(--text-caption);
}

.status-icons {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 1px;
  height: 11px;
}

.signal-bars i {
  width: 2px;
  background: currentColor;
}

.signal-bars i:nth-child(1) { height: 3px; }
.signal-bars i:nth-child(2) { height: 5px; }
.signal-bars i:nth-child(3) { height: 8px; }
.signal-bars i:nth-child(4) { height: 10px; }

.symbian-home {
  position: absolute;
  z-index: 10;
  inset: 28px 0 62px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5, 20px) var(--space-3) var(--space-3);
  overflow: auto;
}

.mobile-clock-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.mobile-clock-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 132px;
  padding: var(--space-3);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 38%),
    var(--mobile-glass);
  border: 1px solid var(--mobile-border);
  border-radius: var(--mobile-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.mobile-clock-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 25px, rgba(255, 255, 255, 0.08) 26px 27px);
  pointer-events: none;
}

.mobile-clock-card__hour,
.mobile-clock-card__minute {
  font-family: "Times New Roman", "SimSun", serif;
  font-size: var(--text-mobile-clock);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #f5f3ee;
}

.mobile-clock-card__caption {
  align-self: start;
  color: #d8d5d0;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
}

.mobile-date-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1) var(--space-3);
  align-items: center;
  min-height: 80px;
  padding: var(--space-3);
  color: #222222;
  background: rgba(247, 246, 241, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  box-shadow: 0 7px 16px rgba(28, 13, 3, 0.28);
}

.mobile-date-card > span {
  align-self: end;
  color: #8a2922;
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  font-weight: 700;
}

.mobile-date-card strong {
  grid-row: 2;
  font-family: var(--font-ui);
  font-size: var(--text-body);
}

.mobile-date-card button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: var(--mobile-touch);
  padding: 0 var(--space-3);
  color: #ffffff;
  background: linear-gradient(#e28435, #aa3f14);
  border: 1px solid #87310d;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
}

.mobile-latest-card {
  margin-top: auto;
  padding: var(--space-4);
  color: #f7f5f0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 44%),
    rgba(18, 17, 21, 0.72);
  border: 1px solid var(--mobile-border);
  border-radius: var(--mobile-radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

.mobile-latest-card > span {
  color: #d3b97f;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
}

.mobile-latest-card strong {
  display: block;
  margin: var(--space-2) 0 var(--space-1);
  font-size: var(--text-mobile-title);
  line-height: 1.25;
}

.mobile-latest-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-ui);
  line-height: 1.6;
}

.mobile-latest-card button {
  margin-top: var(--space-3);
  min-height: var(--mobile-touch);
  padding: 0 var(--space-4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 5px;
}

.mobile-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: var(--space-2);
  padding: var(--space-2) 0 0;
}

.mobile-dock button {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  min-height: 84px;
  padding: var(--space-1);
  color: #ffffff;
  background: transparent;
  border: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  font-family: var(--font-ui);
  font-size: var(--text-caption);
}

.mobile-app-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 5px 12px rgba(0, 0, 0, 0.34);
}

.mobile-app-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

.mobile-app-icon--cyan {
  background: linear-gradient(145deg, #77e5e5, #147cc2);
}

.mobile-app-icon--blue {
  background: linear-gradient(145deg, #78b5ff, #2052b4);
}

.mobile-app-icon--green {
  background: linear-gradient(145deg, #a6dc6c, #318b32);
}

.mobile-app-icon--red {
  background: linear-gradient(145deg, #ffb184, #be382b);
}

.symbian-keybar {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 62px;
  background: linear-gradient(to bottom, rgba(31, 30, 34, 0.46), rgba(10, 10, 12, 0.86));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.symbian-keybar button {
  display: grid;
  place-items: center;
  min-width: var(--mobile-touch);
  min-height: var(--mobile-touch);
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
}

.symbian-keybar button:hover,
.symbian-keybar button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 3px;
}

.key-grid i {
  width: 7px;
  height: 7px;
  border: 1px solid #ffffff;
  border-radius: 2px;
}

.key-phone {
  position: relative;
  display: block;
  width: 27px;
  height: 18px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  transform: rotate(-26deg);
}

.key-phone::before,
.key-phone::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 7px;
  top: -3px;
  border: 2px solid #ffffff;
  border-radius: 5px 5px 2px 2px;
}

.key-phone::before { left: -4px; }
.key-phone::after { right: -4px; }

.key-menu {
  display: grid;
  gap: 4px;
}

.key-menu i {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
}

.symbian-app-view {
  position: absolute;
  z-index: 15;
  inset: 28px 0 62px;
  display: flex;
  flex-direction: column;
  color: var(--mobile-text);
  background: var(--mobile-surface);
}

.mobile-app-header {
  display: grid;
  grid-template-columns: var(--mobile-touch) 1fr var(--mobile-touch);
  align-items: center;
  min-height: 54px;
  padding: 0 var(--space-1);
  color: #ffffff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent),
    linear-gradient(to right, #25232a, #111114);
  border-bottom: 1px solid #08080a;
}

.mobile-app-header h2 {
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: var(--text-mobile-title);
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mobile-back,
.mobile-app-menu {
  display: grid;
  place-items: center;
  width: var(--mobile-touch);
  height: var(--mobile-touch);
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  font-size: var(--text-mobile-back);
}

.mobile-app-menu {
  font-size: var(--text-mobile-menu);
}

.mobile-app-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.mobile-app-body .explorer-shell {
  display: block;
}

.mobile-app-body .explorer-sidebar,
.mobile-app-body .xp-toolbar,
.mobile-app-body .xp-addressbar,
.mobile-app-body .explorer-menu-strip {
  display: none;
}

.mobile-app-body .explorer-main {
  padding: var(--space-3);
  background: var(--mobile-surface);
}

.mobile-app-body .explorer-heading {
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.mobile-app-body .explorer-heading h2,
.mobile-app-body .content-heading {
  font-size: var(--text-mobile-title);
}

.mobile-app-body .work-grid {
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.mobile-app-body .work-card {
  border-radius: var(--mobile-radius);
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.12);
}

.mobile-app-body .article-card {
  grid-template-columns: 64px minmax(0, 1fr);
  padding: var(--space-2);
  border-radius: var(--mobile-radius);
}

.mobile-app-body .article-card img {
  width: 64px;
  height: 64px;
}

.mobile-app-body .article-card time {
  grid-column: 2;
}

.mobile-app-body .tools-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.mobile-app-body .tool-card {
  min-height: 128px;
  border-radius: var(--mobile-radius);
}

.mobile-app-body .work-detail,
.mobile-app-body .plain-page,
.mobile-app-body .article-detail,
.mobile-app-body .tool-panel {
  padding: var(--space-4);
}

.mobile-app-body .work-detail__hero {
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.mobile-app-body .detail-gallery {
  gap: var(--space-2);
}

.mobile-app-body .detail-gallery img:nth-child(n + 2) {
  display: none;
}

.mobile-app-body .search-box {
  display: grid;
}

.mobile-app-body .stats-grid {
  gap: var(--space-2);
}

.mobile-app-body .xp-action {
  min-height: var(--mobile-touch);
}

.mobile-system-menu {
  position: absolute;
  z-index: 40;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 72px;
  overflow: hidden;
  color: var(--mobile-text);
  background: rgba(247, 246, 241, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--mobile-radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  animation: mobile-menu-in 120ms ease-out;
}

@keyframes mobile-menu-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-system-menu button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 54px;
  padding: var(--space-2) var(--space-4);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-system-menu button:last-child {
  border-bottom: 0;
}

.mobile-system-menu button:hover,
.mobile-system-menu button:focus-visible {
  background: rgba(42, 116, 190, 0.12);
}

.mobile-system-menu img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.toast {
  position: fixed;
  z-index: 5000;
  left: 50%;
  bottom: 64px;
  max-width: min(440px, calc(100vw - 32px));
  padding: var(--space-2) var(--space-4);
  color: #ffffff;
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  font-size: var(--text-ui);
  transform: translate(-50%, 16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.no-script-content {
  position: fixed;
  z-index: 5000;
  inset: 0;
  padding: var(--space-8);
  overflow: auto;
  color: #222222;
  background: #ffffff;
  font-family: var(--font-body);
}

.no-script-content h1 {
  font-size: var(--text-heading);
}

.no-script-content li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.error-window {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: var(--space-4);
  padding: var(--space-6);
  font-size: var(--text-body);
  line-height: 1.6;
}

.error-window img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.error-window strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--xp-error);
}

/* WordPress direct-content routes */
.direct-experience {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: auto;
  color: var(--xp-text);
  background:
    linear-gradient(to bottom, rgba(20, 99, 209, 0.02), rgba(16, 86, 17, 0.08)),
    url("assets/windows-xp-bliss.jpg") center / cover fixed no-repeat;
}

.direct-window {
  width: min(920px, calc(100vw - var(--space-12)));
  min-height: 460px;
  margin: clamp(24px, 7vh, 72px) auto 80px;
  overflow: hidden;
  background: var(--xp-window-face);
  border: 3px solid var(--xp-window-border);
  border-radius: 8px 8px 2px 2px;
  box-shadow: var(--shadow-window);
}

.direct-titlebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 34px;
  padding: var(--space-1) var(--space-2);
  color: var(--xp-titlebar-text);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.45), transparent 38%),
    linear-gradient(to right, var(--xp-titlebar-start), var(--xp-titlebar-mid) 45%, var(--xp-titlebar-end));
}

.direct-titlebar h1 {
  margin: 0;
  overflow: hidden;
  color: var(--xp-titlebar-text);
  font-family: var(--font-ui);
  font-size: var(--text-window-title);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.direct-back,
.direct-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 var(--space-3);
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
}

.direct-close {
  width: 28px;
  min-width: 28px;
  padding: 0;
  background: linear-gradient(#ef906b, #c63619);
}

.direct-menu {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--xp-window-face);
  border-bottom: 1px solid var(--xp-panel-line);
  font-family: var(--font-ui);
  font-size: var(--text-ui);
}

.direct-body {
  padding: clamp(22px, 5vw, 54px);
  color: var(--xp-text);
  background: var(--xp-window-content);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
}

.direct-body > *:first-child {
  margin-top: 0;
}

.direct-body h1,
.direct-body h2,
.direct-body h3 {
  color: var(--xp-blue-text);
  line-height: 1.25;
}

.direct-body h1 {
  font-size: var(--text-heading);
}

.direct-body h2 {
  font-size: var(--text-heading);
}

.direct-body a {
  color: var(--xp-link);
}

.direct-body img {
  height: auto;
}

.direct-featured {
  width: 100%;
  max-height: 520px;
  margin-bottom: var(--space-6);
  object-fit: cover;
  border: 1px solid var(--xp-window-border-soft);
}

.direct-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  background: var(--xp-panel);
  border: 1px solid var(--xp-panel-line);
}

.direct-meta dt {
  color: var(--xp-window-muted);
}

.direct-meta dd {
  margin: 0;
}

.direct-status {
  padding: var(--space-1) var(--space-3);
  color: var(--xp-window-muted);
  background: var(--xp-window-face);
  border-top: 1px solid var(--xp-panel-line);
  font-family: var(--font-ui);
  font-size: var(--text-caption);
}

.compliance-direct {
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  color: var(--xp-window-muted);
  background: #f3f1e8;
  border: 0;
  border-top: 1px solid var(--xp-panel-line);
  border-radius: 0;
  text-shadow: none;
}

.compliance-direct a,
.compliance-direct span {
  color: var(--xp-link);
}

.direct-mobile-status {
  display: none;
}

body.admin-bar .direct-experience {
  min-height: calc(100dvh - 32px);
}

@media (max-width: 1023px) and (pointer: coarse), (max-width: 600px) {
  .direct-experience {
    min-height: 100dvh;
    color: var(--mobile-text);
    background:
      radial-gradient(circle at 72% 32%, rgba(255, 239, 122, 0.4), transparent 28%),
      linear-gradient(160deg, rgba(128, 5, 0, 0.3), rgba(255, 110, 0, 0.22)),
      url("assets/symbian-feather.jpg") center / cover no-repeat;
  }

  .direct-window {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--mobile-surface);
  }

  .direct-titlebar {
    min-height: 58px;
    padding: 0 var(--space-2);
    background: linear-gradient(to right, #25232a, #111114);
  }

  .direct-titlebar h1 {
    color: #ffffff;
    font-size: var(--text-mobile-title);
    font-weight: 400;
  }

  .direct-back,
  .direct-close {
    min-height: var(--mobile-touch);
    min-width: var(--mobile-touch);
    border: 0;
    background: transparent;
    font-size: var(--text-mobile-back);
  }

  .direct-close {
    font-size: var(--text-mobile-menu);
  }

  .direct-menu {
    display: none;
  }

  .direct-body {
    padding: var(--space-4);
    color: var(--mobile-text);
    background: var(--mobile-surface);
  }

  .direct-body h1,
  .direct-body h2,
  .direct-body h3 {
    color: var(--mobile-blue);
  }

  .direct-status {
    background: var(--mobile-surface-alt);
  }

  .compliance-direct {
    color: var(--mobile-muted);
    background: var(--mobile-surface-alt);
  }

  .direct-mobile-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    padding: 0 var(--space-3);
    color: #ffffff;
    background: var(--mobile-status);
    font-family: var(--font-ui);
    font-size: var(--text-caption);
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .desktop-experience,
  body.admin-bar .mobile-experience {
    height: calc(100dvh - 46px);
  }

  body.admin-bar .direct-experience {
    min-height: calc(100dvh - 46px);
  }
}

@media (max-width: 940px) and (min-width: 600px) {
  .desktop-wordmark {
    display: none;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-detail__hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mobile-experience {
    display: block;
  }

  .phone-shell {
    width: 100%;
    height: 100%;
    box-shadow: none;
  }

  .mobile-dock button {
    min-height: 76px;
  }

  .mobile-app-icon {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 601px) {
  .phone-shell {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72), 0 0 0 10px rgba(0, 0, 0, 0.38);
  }

  .symbian-statusbar {
    border-radius: 21px 21px 0 0;
  }

  .symbian-keybar {
    border-radius: 0 0 21px 21px;
  }

  .mobile-system-menu {
    bottom: 70px;
  }
}

@media (max-height: 700px) and (min-width: 601px) {
  .phone-shell {
    height: calc(100% - var(--space-8));
  }

  .mobile-clock-card {
    min-height: 112px;
  }

  .mobile-latest-card {
    display: none;
  }
}

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

  .boot-screen {
    display: none;
  }
}
