 
/* ============================================================
 * ZFY Personal OS — UI 全面重构
 * Anime / Minimal / Glassmorphism / Personal Dashboard
 * 保留全部功能与 JS 依赖的类名；仅重构视觉与布局
 * ============================================================ */

/* ---------------- 字体 ---------------- */
@font-face {
    font-family: "b";
    src: url(../fonts/Ubuntu-Regular.woff2);
    font-display: swap;
}

@font-face {
    font-family: "title";
    src: url(../fonts/Pacifico-Regular.woff2);
    font-display: swap;
}

/* ---------------- 设计变量（ZFY Design System） ---------------- */
:root {
    /* 颜色 */
    --zfy-bg: #1d232f;
    --zfy-surface: rgba(255, 255, 255, 0.055);
    --zfy-surface-hover: rgba(255, 255, 255, 0.09);
    --zfy-border: rgba(255, 255, 255, 0.10);
    --zfy-border-strong: rgba(255, 255, 255, 0.16);
    --zfy-primary: #6e94f0;
    --zfy-secondary: #9aa2e5;
    --zfy-text: #ffffff;
    --zfy-text-muted: rgba(255, 255, 255, 0.60);
    --zfy-text-faint: rgba(255, 255, 255, 0.42);

    /* 渐变（蓝→紫色相，强调品牌/标题） */
    --zfy-grad: linear-gradient(120deg, #ffffff 0%, #6e94f0 38%, #b39cff 100%);
    --zfy-grad-accent: linear-gradient(120deg, #6e8ef0, #a78bfa);

    /* 圆角（三级统一：小组件 10 / 卡片 16 / 大容器 20） */
    --zfy-radius-sm: 10px;
    --zfy-radius-md: 16px;
    --zfy-radius-lg: 20px;

    /* 间距（4px 进制） */
    --zfy-sp-4: 4px;
    --zfy-sp-8: 8px;
    --zfy-sp-12: 12px;
    --zfy-sp-16: 16px;
    --zfy-sp-20: 20px;
    --zfy-sp-24: 24px;
    --zfy-sp-32: 32px;
    --zfy-sp-40: 40px;
    --zfy-sp-48: 48px;
    --zfy-sp-64: 64px;
    --zfy-sp-80: 80px;

    /* 布局 */
    --zfy-gap: var(--zfy-sp-20);
    --zfy-max: 1440px;
    --zfy-header-h: 56px;

    /* 玻璃 / 阴影 / 动效 */
    --zfy-blur: 20px;
    --zfy-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    --zfy-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.32);
    --zfy-t: 180ms;
    --zfy-ease: cubic-bezier(0.25, 0.6, 0.3, 1);

    /* z-index 层级 */
    --zfy-z-bg: 0;
    --zfy-z-overlay: -1;
    --zfy-z-content: 1;
    --zfy-z-dropdown: 100;
    --zfy-z-nav: 500;
    --zfy-z-float: 9000;
    --zfy-z-modal: 90000;
    --zfy-z-palette: 100000;
    --zfy-z-focus: 100001;
    --zfy-z-terminal: 200000;
}

/* ---------------- 主题变量（JS 兼容：背景/模糊/文字色） ---------------- */
html {
    --main_bg_color: url(../img/background.webp);
    --main_text_color: var(--zfy-text);
    --fill: var(--zfy-text);
    --gradient: var(--zfy-grad);
    --purple_text_color: #6e94f0;
    --text_bg_color: rgba(13, 17, 26, 0.78);
    --item_bg_color: rgba(255, 255, 255, 0.06);
    --item_hover_color: rgba(255, 255, 255, 0.10);
    --item_left_title_color: #ffffff;
    --item_left_text_color: rgba(255, 255, 255, 0.62);
    --footer_text_color: rgba(255, 255, 255, 0.55);
    --left_tag_item: rgba(255, 255, 255, 0.08);
    --card_filter: 0px;
    --back_filter: 0px;
    --back_filter_color: rgba(8, 12, 20, 0.55);
    --fill: #ffffff;
    --card_border: rgba(255, 255, 255, 0.12);
    --card_shadow: 0 10px 30px rgba(0, 0, 0, 0.30);
}

html[data-theme="Dark"] {
    --main_bg_color: var(--zfy-bg);
    --back_filter_color: rgba(8, 12, 20, 0.35);
    --main_text_color: var(--zfy-text);
    --fill: var(--zfy-text);
}

/* 大屏内容加宽（不超过 1600） */
@media (min-width: 1800px) {
    :root {
        --zfy-max: 1520px;
    }
}

/* ---------------- 基础 ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--main_bg_color) no-repeat center center / cover fixed;
    background-color: #0f141d;
    background-attachment: fixed;
    color: var(--main_text_color);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a,
a:hover,
a:link,
a:visited,
a:active,
a:focus {
    text-decoration: none;
    outline: none;
    color: inherit;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

button {
    font-family: inherit;
}

img,
svg {
    vertical-align: middle;
}

::selection {
    background: rgba(110, 148, 240, 0.32);
    color: #fff;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* ---------------- 加载页 ---------------- */
#zyyo-loading {
    background: radial-gradient(circle at 50% 40%, #101a2c 0%, #080b12 70%);
    height: 100%;
    width: 100%;
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
}

#zyyo-loading-center {
    height: 84px;
    width: 84px;
    position: relative;
    border-radius: 50%;
    background: var(--zfy-grad-accent);
    opacity: 0.85;
    animation: zoom 1s linear infinite;
}

@keyframes zoom {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ---------------- 背景遮罩（暗化 + 可调模糊） ---------------- */
.zyyo-filter {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: var(--zfy-z-overlay);
    background: linear-gradient(180deg, rgba(8, 12, 20, 0.20) 0%, rgba(8, 12, 20, 0.52) 100%);
    pointer-events: none;
}

/* 背景图层：轻微模糊 + 降低视觉权重（文字/UI 优先） */
body::before {
    content: "";
    position: fixed;
    inset: -40px;
    z-index: -2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

/* ---------------- 动态背景图层（JS 创建） ---------------- */
.zyyo-main {
    position: relative;
    z-index: var(--zfy-z-content);
}

#bg-overlays {
    position: fixed;
    inset: 0;
    z-index: var(--zfy-z-bg);
    pointer-events: none;
    overflow: hidden;
}

#bg-canvas {
    position: absolute;
    inset: 0;
}

#bg-image-layer {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform, filter;
}

#bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#bg-video-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

#bg-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 148, 240, 0.14) 0%, rgba(110, 148, 240, 0.04) 40%, transparent 70%);
    will-change: transform;
}

#bg-parallax .bg-pl {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

#bg-aurora {
    position: absolute;
    inset: -25%;
    filter: blur(70px);
}

#bg-aurora .bg-aurora-blob {
    position: absolute;
    width: 55%;
    height: 45%;
    border-radius: 50%;
    animation: aurora-drift 24s ease-in-out infinite alternate;
    animation-delay: var(--d, 0s);
}

#bg-aurora .bg-aurora-blob:nth-child(1) { top: -5%; left: -5%; }
#bg-aurora .bg-aurora-blob:nth-child(2) { bottom: -10%; right: -8%; }
#bg-aurora .bg-aurora-blob:nth-child(3) { top: 35%; left: 45%; }
#bg-aurora .bg-aurora-blob:nth-child(4) { top: 60%; left: -15%; }

#bg-aurora.static .bg-aurora-blob {
    animation: none;
}

@keyframes aurora-drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8%, -6%) scale(1.15); }
    100% { transform: translate(-6%, 5%) scale(0.95); }
}

#bg-shapes .bg-shape {
    position: absolute;
    filter: blur(42px);
    opacity: 0.9;
    animation: bgfloat 16s ease-in-out infinite alternate;
}

@keyframes bgfloat {
    from { transform: translate(0, 0) rotate(0deg) scale(1); }
    to { transform: translate(34px, -46px) rotate(24deg) scale(1.12); }
}

/* 图片背景模糊加载（Blur Up） */
html.bg-blur-in {
    animation: bgblurin 0.5s ease;
}

@keyframes bgblurin {
    from { filter: blur(12px); }
    to { filter: blur(0); }
}

/* 鼠标光晕（hover 设备 + JS 创建） */
#cursor-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 148, 240, 0.10) 0%, rgba(110, 148, 240, 0.04) 40%, transparent 70%);
    pointer-events: none;
    will-change: transform;
}

/* ============================================================
 * 顶部 OS Top Bar
 * ============================================================ */
.os-header {
    position: sticky;
    top: 0;
    z-index: var(--zfy-z-nav);
    height: 56px;
    display: flex;
    align-items: center;
    background: rgba(13, 17, 26, 0.45);
    backdrop-filter: blur(var(--zfy-blur));
    -webkit-backdrop-filter: blur(var(--zfy-blur));
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.os-header-inner {
    width: 100%;
    max-width: var(--zfy-max);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.os-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.os-brand-mark {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: var(--zfy-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.os-brand-sep {
    opacity: 0.35;
}

.os-brand-sub {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.26em;
    opacity: 0.5;
}

.os-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.os-hbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--zfy-radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--zfy-text-muted);
    cursor: pointer;
    transition: background var(--zfy-t) ease, color var(--zfy-t) ease, border-color var(--zfy-t) ease, transform var(--zfy-t) ease;
}

.os-hbtn:hover {
    background: var(--zfy-surface);
    color: var(--zfy-text);
    border-color: var(--zfy-border);
}

.os-hbtn:active {
    transform: scale(0.94);
}

.os-hbtn svg {
    flex-shrink: 0;
}

.os-avatar-mini {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    box-shadow: 0 0 0 1.5px rgba(110, 148, 240, 0.35);
}

.os-theme-switch {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ============================================================
 * 三列 Dashboard Hero
 * ============================================================ */
.os-dash {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 310px;
    gap: var(--zfy-gap);
    align-items: start;
    padding: 32px 0 8px;
}

/* --- 左：Personal Identity Panel --- */
.os-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.os-identity-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    opacity: 0.92;
    margin: 6px 0 12px;
    box-shadow: 0 0 0 2.5px rgba(110, 148, 240, 0.22), 0 14px 36px rgba(110, 148, 240, 0.14);
}

.os-identity-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.os-identity-role {
    font-size: 13px;
    color: var(--zfy-text-muted);
}

.os-identity-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 3px;
}

.os-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.os-identity-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.os-profile-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--zfy-text-faint);
}

.os-profile-meta-row svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.os-identity-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

/* --- 中：Primary Hero Area --- */
.os-hero {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px 0;
}

.os-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.34em;
    opacity: 0.5;
    margin-bottom: 14px;
}

.os-title {
    font-size: 74px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
    color: var(--zfy-text);
}

.os-title-name {
    background: linear-gradient(100deg, #9dbeff 0%, #6e8ef0 44%, #b39cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.os-title-dot {
    background: none;
    -webkit-text-fill-color: var(--zfy-primary);
}

.os-sub {
    font-size: 16px;
    color: var(--zfy-text-muted);
    margin-top: 16px;
}

.os-tagline {
    font-size: 14px;
    color: var(--zfy-text-faint);
    margin-top: 7px;
}

/* 大型 Command / Search Input */
.os-search {
    width: 100%;
    max-width: 620px;
    margin-top: 30px;
    padding: 0;
}

.search-box {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 18px;
    border-radius: var(--zfy-radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--zfy-border);
    backdrop-filter: blur(var(--zfy-blur));
    -webkit-backdrop-filter: blur(var(--zfy-blur));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    transition: background var(--zfy-t) ease, border-color var(--zfy-t) ease, box-shadow var(--zfy-t) ease;
}

.search-box:hover {
    background: rgba(255, 255, 255, 0.11);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(110, 148, 240, 0.55);
    box-shadow: 0 0 0 4px rgba(110, 148, 240, 0.12), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dropbtn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 12px;
    flex-shrink: 0;
}

.dropbtn img {
    width: 24px;
    height: 24px;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--zfy-text);
    height: 100%;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.os-search-kbd {
    flex-shrink: 0;
    margin-left: 12px;
    font-family: inherit;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--zfy-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--zfy-text-faint);
    background: rgba(255, 255, 255, 0.05);
}

.suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(15, 19, 28, 0.92);
    backdrop-filter: blur(var(--zfy-blur));
    -webkit-backdrop-filter: blur(var(--zfy-blur));
    border-radius: var(--zfy-radius-md);
    border: 1px solid var(--zfy-border);
    box-shadow: var(--zfy-shadow-lg);
    z-index: var(--zfy-z-dropdown);
    max-height: 280px;
    overflow-y: auto;
    display: none;
    padding: 6px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--zfy-radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--zfy-text);
    transition: background var(--zfy-t) ease;
}

.suggestion-item:hover {
    background: var(--zfy-surface);
}

.suggestion-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- 右：Live Information Panel --- */
.os-live {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ---------------- 玻璃卡片（一级容器） ---------------- */
.left-div {
    position: relative;
    border-radius: var(--zfy-radius-md);
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)), rgba(15, 20, 30, 0.32);
    border: 1px solid var(--zfy-border);
    border-top-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(var(--zfy-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--zfy-blur)) saturate(150%);
    box-shadow: var(--zfy-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.os-widget-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.26em;
    opacity: 0.5;
    margin-bottom: 12px;
}

/* ---------------- 时钟 ---------------- */
.os-clock .clock-time {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    background: var(--zfy-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.clock-date {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 6px;
    letter-spacing: 0.06em;
}

.clock-stats {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clock-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    line-height: 1.6;
}

.clock-stat .cs-label {
    opacity: 0.55;
}

.clock-stat .cs-val {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    padding-left: 8px;
}

.clock-daybar {
    height: 4px;
    margin: 2px 0 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.clock-daybar-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: var(--zfy-grad-accent);
    transition: width 1s linear;
}

/* ---------------- 天气 ---------------- */
.left-des-item {
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.45;
    font-size: 13px;
    min-width: 0;
}

.os-status-row {
    color: var(--zfy-text-muted);
}

.os-status-row svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.os-row-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-item {
    cursor: pointer;
    transition: opacity var(--zfy-t) ease;
}

.ds-item:hover {
    opacity: 0.85;
}

.ds-box {
    flex: 1;
    min-width: 0;
}

.ds-line {
    font-size: 12.5px;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-sub {
    font-size: 11px;
    opacity: 0.6;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-bar {
    height: 4px;
    margin-top: 5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.ds-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: var(--zfy-grad-accent);
    transition: width 0.4s ease;
}

.os-weather .weather-line {
    font-size: 13.5px;
}

.os-weather .weather-detail {
    font-size: 11.5px;
    opacity: 0.55;
    margin-top: 6px;
    padding-left: 24px;
    line-height: 1.5;
}

/* ============================================================
 * 区块（Launcher / Projects / Recent）
 * ============================================================ */
.os-section {
    margin-top: 52px;
}

.os-section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.os-section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.os-section-sub {
    font-size: 13px;
    color: var(--zfy-text-faint);
}

.section-edit-btn {
    margin-left: auto;
    padding: 2px 8px;
    border: none;
    background: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    color: var(--zfy-text);
    opacity: 0;
    border-radius: var(--zfy-radius-sm);
    transition: opacity var(--zfy-t) ease, transform var(--zfy-t) ease, background var(--zfy-t) ease;
}

.os-section-head:hover .section-edit-btn {
    opacity: 0.5;
}

.section-edit-btn:hover {
    opacity: 1;
    background: var(--zfy-surface);
}

.os-viewall {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--zfy-text-faint);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color var(--zfy-t) ease, background var(--zfy-t) ease, border-color var(--zfy-t) ease, gap var(--zfy-t) ease;
}

.os-viewall::after {
    content: "→";
    font-size: 13px;
    opacity: 0.7;
    transition: transform var(--zfy-t) var(--zfy-ease), opacity var(--zfy-t) ease;
}

.os-viewall:hover {
    color: var(--zfy-text);
    background: var(--zfy-surface);
    border-color: var(--zfy-border);
    gap: 6px;
}

.os-viewall:hover::after {
    transform: translateX(3px);
    opacity: 1;
    color: var(--zfy-primary);
}

/* ---------------- 卡片网格 ---------------- */
.projectList {
    display: grid;
    gap: 16px;
}

#list-sites.projectList {
    grid-template-columns: repeat(4, 1fr);
}

#list-projects.projectList {
    grid-template-columns: repeat(3, 1fr);
}

/* 统一卡片设计语言（低对比度 Surface） */
.projectItem {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--zfy-radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)), rgba(20, 26, 38, 0.16);
    border: 1px solid var(--zfy-border);
    border-top-color: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    transition: transform var(--zfy-t) var(--zfy-ease), background var(--zfy-t) ease, border-color var(--zfy-t) ease, box-shadow var(--zfy-t) ease;
    overflow: hidden;
    min-width: 0;
}

.projectItem:hover {
    transform: translateY(-2px);
    background: var(--zfy-surface-hover);
    border-color: var(--zfy-border-strong);
    box-shadow: var(--zfy-shadow-lg);
}

.projectItem.pressed {
    transform: scale(0.97);
}

.projectItemRight {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--zfy-radius-sm);
    background: var(--zfy-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--zfy-t) ease;
}

.projectItem:hover .projectItemRight {
    background: rgba(110, 148, 240, 0.14);
}

.projectItemRight img {
    max-width: 22px;
    max-height: 22px;
    object-fit: contain;
}

.projectItemLeft {
    flex: 1;
    min-width: 0;
}

.projectItemLeft h1 {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--zfy-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.projectItemLeft p {
    font-size: 12px;
    margin-top: 4px;
    color: var(--zfy-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* App Tile：打开箭头（Quick Access） */
#list-sites .projectItem::after {
    content: "↗";
    position: absolute;
    top: 13px;
    right: 14px;
    font-size: 13px;
    opacity: 0;
    color: var(--zfy-primary);
    transform: translateY(2px);
    transition: opacity var(--zfy-t) ease, transform var(--zfy-t) ease;
}

#list-sites .projectItem:hover::after {
    opacity: 0.9;
    transform: translateY(0);
}

/* Project Window：小型应用窗口 */
#list-projects .projectItem {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    min-height: 150px;
}

#list-projects .projectItem::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    background:
        radial-gradient(circle 5px at 22px 17px, rgba(255, 95, 86, 0.85), transparent),
        radial-gradient(circle 5px at 36px 17px, rgba(255, 189, 46, 0.85), transparent),
        radial-gradient(circle 5px at 50px 17px, rgba(39, 201, 63, 0.85), transparent),
        rgba(255, 255, 255, 0.045);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#list-projects .projectItemRight {
    position: absolute;
    top: 7px;
    right: 14px;
    width: 20px;
    height: 20px;
    background: none;
    border-radius: 0;
}

#list-projects .projectItemRight img {
    max-width: 17px;
    max-height: 17px;
}

#list-projects .projectItemLeft {
    padding: 46px 18px 16px;
}

#list-projects .projectItemLeft h1 {
    font-size: 15.5px;
}

#list-projects .projectItemLeft p {
    font-size: 12.5px;
    margin-top: 6px;
}

#list-projects .projectItem::after {
    content: "↗";
    position: absolute;
    right: 16px;
    bottom: 14px;
    font-size: 13px;
    opacity: 0;
    color: var(--zfy-primary);
    transform: translateY(2px);
    transition: opacity var(--zfy-t) ease, transform var(--zfy-t) ease;
}

#list-projects .projectItem:hover::after {
    opacity: 0.9;
    transform: translateY(0);
}

/* ---------------- Tools（三级元素：无独立盒子） ---------------- */
.os-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.os-tools-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.26em;
    color: var(--zfy-text-faint);
    opacity: 0.7;
}

.iconContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.iconItem {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--zfy-text-muted);
    transition: color var(--zfy-t) ease, transform var(--zfy-t) ease;
}

.iconItem:hover {
    color: var(--zfy-text);
    transform: translateY(-1px);
}

.iconItem svg,
.iconItem img {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

.iconTip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--zfy-radius-sm);
    background: rgba(10, 14, 20, 0.92);
    border: 1px solid var(--zfy-border);
    color: var(--zfy-text);
    box-shadow: var(--zfy-shadow);
    z-index: var(--zfy-z-dropdown);
}

.iconItem:hover .iconTip {
    display: block;
}

/* ---------------- Recent ---------------- */
.recent-title {
    display: flex;
    align-items: center;
}

.recent-clear {
    margin-left: auto;
    border: 1px solid var(--zfy-border);
    background: var(--zfy-surface);
    color: var(--zfy-text);
    font-size: 12px;
    border-radius: 999px;
    padding: 4px 12px;
    cursor: pointer;
    transition: background var(--zfy-t) ease, color var(--zfy-t) ease;
}

.recent-clear:hover {
    background: rgba(248, 113, 113, 0.22);
}

.recent-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--zfy-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--zfy-border);
    transition: transform var(--zfy-t) ease, background var(--zfy-t) ease, border-color var(--zfy-t) ease, box-shadow var(--zfy-t) ease;
    overflow: hidden;
}

.recent-item:hover {
    background: var(--zfy-surface-hover);
    transform: translateY(-2px);
    border-color: var(--zfy-border-strong);
    box-shadow: var(--zfy-shadow);
}

.recent-ico {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border-radius: var(--zfy-radius-sm);
    background: var(--zfy-surface);
}

.recent-ico img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.recent-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-time {
    flex-shrink: 0;
    font-size: 11.5px;
    opacity: 0.55;
    font-variant-numeric: tabular-nums;
}

.recent-empty {
    grid-column: 1 / -1;
    padding: 22px;
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
    border: 1px dashed var(--zfy-border-strong);
    border-radius: var(--zfy-radius-sm);
}

/* ============================================================
 * System Status Bar
 * ============================================================ */
.os-statusbar {
    max-width: var(--zfy-max);
    margin: 56px auto 0;
    padding: 18px 104px 96px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    color: var(--zfy-text-muted);
}

.os-sb-left {
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.os-footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.os-sb-center {
    opacity: 0.5;
    letter-spacing: 0.06em;
}

.os-sb-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.os-sb-right a {
    opacity: 0.75;
    transition: opacity var(--zfy-t) ease, color var(--zfy-t) ease;
}

.os-sb-right a:hover {
    opacity: 1;
    color: var(--zfy-primary);
}

.os-sb-legal {
    opacity: 0.45;
}

/* ---------------- 移动端信息条 ---------------- */
.mobile-info {
    display: none;
}

/* ============================================================
 * 通用弹窗
 * ============================================================ */
.naskun-modal {
    position: fixed;
    inset: 0;
    z-index: var(--zfy-z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 9, 14, 0.66);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.naskun-modal.open {
    display: flex;
}

.naskun-modal-box {
    width: min(760px, 94vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: rgba(13, 17, 26, 0.88);
    color: var(--zfy-text);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border: 1px solid var(--zfy-border);
    border-radius: var(--zfy-radius-lg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: naskun-pop 0.18s ease;
}

@keyframes naskun-pop {
    from {
        transform: translateY(16px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.naskun-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.naskun-modal-close {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    opacity: 0.5;
    transition: opacity var(--zfy-t) ease;
}

.naskun-modal-close:hover {
    opacity: 1;
}

.naskun-modal-body {
    overflow-y: auto;
    padding: 16px 20px;
    flex: 1;
}

.naskun-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

/* ---------------- 按钮 ---------------- */
.naskun-btn {
    padding: 8px 18px;
    border-radius: var(--zfy-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: filter var(--zfy-t) ease, transform 0.1s ease, background var(--zfy-t) ease;
}

.naskun-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    filter: brightness(1.08);
}

.naskun-btn:active {
    transform: scale(0.97);
}

.naskun-btn.primary {
    border: none;
    background: var(--zfy-grad-accent);
    color: #fff;
    font-weight: 600;
}

.naskun-btn.mini {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 8px;
}

/* ---------------- 快捷链接管理 ---------------- */
.admin-section {
    margin-bottom: 18px;
}

.admin-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.admin-add {
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    background: none;
    color: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--zfy-t) ease;
}

.admin-add:hover {
    background: rgba(110, 148, 240, 0.14);
}

.admin-row {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: var(--zfy-radius-sm);
    background: rgba(255, 255, 255, 0.05);
}

.admin-row-fields {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-row-fields input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color var(--zfy-t) ease;
}

.admin-row-fields input:focus {
    border-color: #6e94f0;
}

.admin-row-fields input::placeholder {
    color: inherit;
    opacity: 0.45;
}

.admin-icon-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-icon-row .admin-icon {
    flex: 1;
}

.admin-icon-preview {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-icon-preview img {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

.admin-row-ops {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}

.op {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--zfy-t) ease, transform 0.1s ease;
}

.op:hover {
    background: rgba(255, 255, 255, 0.16);
}

.op:active {
    transform: scale(0.92);
}

.op.del:hover {
    background: rgba(255, 90, 90, 0.3);
}

/* ---------------- 图标库 ---------------- */
.icon-picker {
    position: fixed;
    display: none;
    grid-template-columns: repeat(6, 42px);
    gap: 8px;
    padding: 10px;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(13, 17, 26, 0.92);
    color: var(--zfy-text);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--zfy-border);
    border-radius: var(--zfy-radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: var(--zfy-z-modal);
}

.icon-picker img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.icon-picker img:hover {
    transform: scale(1.12);
    background: rgba(110, 148, 240, 0.25);
}

/* ---------------- 背景设置 ---------------- */
.bg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.bg-tab {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--zfy-t) ease, color var(--zfy-t) ease, border-color var(--zfy-t) ease;
}

.bg-tab:hover {
    background: rgba(255, 255, 255, 0.12);
}

.bg-tab.active {
    background: var(--zfy-grad-accent);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.bg-pane {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bg-pane.active {
    display: grid;
}

.bg-swatch {
    position: relative;
    height: 76px;
    border-radius: var(--zfy-radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color var(--zfy-t) ease;
}

.bg-swatch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.bg-swatch.active {
    border-color: #6e94f0;
    box-shadow: 0 0 0 2px #6e94f0;
}

.bg-swatch-name {
    position: absolute;
    left: 8px;
    bottom: 6px;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bg-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.bg-upload-btn {
    display: inline-block;
    cursor: pointer;
}

.bg-pane-static {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bg-url-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.bg-url-row input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 13px;
    outline: none;
}

.bg-url-row input:focus {
    border-color: #6e94f0;
}

.bg-url-row input::placeholder {
    color: inherit;
    opacity: 0.45;
}

.bg-upload-full {
    display: block;
    text-align: center;
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
}

.upd-title {
    font-size: 14px;
    font-weight: 600;
    margin: 18px 0 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.upd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.upd-item {
    position: relative;
    border-radius: var(--zfy-radius-sm);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.08);
}

.upd-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.upd-item img,
.upd-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upd-item.upd-video {
    aspect-ratio: auto;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.upd-item.upd-video video {
    height: 90px;
    flex-shrink: 0;
}

.upd-meta {
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.85;
}

.upd-size {
    opacity: 0.6;
}

.upd-ops {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px 8px;
}

.upd-ops .apply-btn {
    flex: 1;
}

.upd-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.65);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--zfy-t) ease, transform 0.1s ease;
}

.upd-del:hover {
    background: rgba(220, 60, 60, 0.9);
    transform: scale(1.1);
}

.upd-item.upd-video .upd-del {
    position: static;
    margin-left: auto;
    flex-shrink: 0;
}

.upd-empty {
    grid-column: 1 / -1;
    padding: 22px 10px;
    text-align: center;
    font-size: 13px;
    opacity: 0.55;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--zfy-radius-sm);
}

.bg-img-adjust {
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: var(--zfy-radius-sm);
    background: rgba(255, 255, 255, 0.05);
}

.adj-group {
    margin-bottom: 12px;
}

.adj-group:last-child {
    margin-bottom: 0;
}

.adj-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 6px;
}

.adj-val {
    font-size: 12px;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

.adj-slider {
    width: 100%;
    accent-color: #6e94f0;
    cursor: pointer;
}

.adj-hint {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.55;
    line-height: 1.5;
}

.reduce-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--zfy-radius-sm);
    background: rgba(255, 255, 255, 0.05);
}

.reduce-row input {
    accent-color: #6e94f0;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ============================================================
 * 命令面板（Ctrl+K）
 * ============================================================ */
.cmd-palette {
    position: fixed;
    inset: 0;
    z-index: var(--zfy-z-palette);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 16px 16px;
    background: rgba(6, 9, 14, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cmd-palette.open {
    display: flex;
}

.cmd-box {
    width: min(640px, 94vw);
    max-height: 62vh;
    display: flex;
    flex-direction: column;
    background: rgba(13, 17, 26, 0.92);
    color: var(--zfy-text);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--zfy-border);
    border-radius: var(--zfy-radius-lg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: naskun-pop 0.15s ease;
}

.cmd-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.cmd-icon {
    font-size: 18px;
    opacity: 0.7;
}

.cmd-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font-size: 17px;
}

.cmd-input::placeholder {
    color: inherit;
    opacity: 0.45;
}

.cmd-list {
    overflow-y: auto;
    padding: 8px;
}

.cmd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--zfy-radius-sm);
    cursor: pointer;
    transition: background 0.12s ease;
}

.cmd-item.active {
    background: linear-gradient(120deg, rgba(110, 148, 240, 0.22), rgba(129, 140, 248, 0.16));
}

.cmd-ico {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.cmd-ico img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.cmd-main {
    flex: 1;
    min-width: 0;
}

.cmd-name {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmd-sub {
    font-size: 12px;
    opacity: 0.55;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmd-type {
    flex-shrink: 0;
    font-size: 11px;
    opacity: 0.55;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 2px 9px;
}

.cmd-empty {
    padding: 28px 10px;
    text-align: center;
    opacity: 0.55;
    font-size: 14px;
}

/* 悬浮 ⌘ 按钮 */
.cmd-fab {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: var(--zfy-z-float);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--zfy-grad-accent);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(110, 148, 240, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cmd-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(110, 148, 240, 0.45);
}

.cmd-fab:active {
    transform: scale(0.95);
}

/* ============================================================
 * 专注模式（全屏遮罩）
 * ============================================================ */
.focus-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--zfy-z-focus);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 8, 12, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.focus-overlay.open {
    display: flex;
}

.focus-card {
    width: min(420px, 94vw);
    padding: 30px 26px 24px;
    border-radius: var(--zfy-radius-lg);
    background: rgba(16, 20, 28, 0.9);
    color: #f2f5f9;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    text-align: center;
    animation: naskun-pop 0.2s ease;
}

.focus-head {
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 14px;
}

.focus-timer {
    font-size: 64px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    line-height: 1.1;
    background: var(--zfy-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.focus-bar {
    height: 6px;
    margin: 14px 0 18px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.focus-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: var(--zfy-grad-accent);
    transition: width 0.4s ease;
}

.focus-task-row input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--zfy-radius-sm);
    background: rgba(255, 255, 255, 0.07);
    color: #f2f5f9;
    font-size: 14px;
    text-align: center;
    outline: none;
}

.focus-task-row input:focus {
    border-color: #6e94f0;
}

.focus-task-row input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.focus-task-row input[readonly] {
    opacity: 0.75;
}

.focus-dur-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
    align-items: center;
}

.focus-dur {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #f2f5f9;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--zfy-t) ease, border-color var(--zfy-t) ease;
}

.focus-dur:hover {
    background: rgba(255, 255, 255, 0.14);
}

.focus-dur.active {
    background: var(--zfy-grad-accent);
    border-color: transparent;
    font-weight: 600;
}

.focus-dur-row input {
    width: 92px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f2f5f9;
    font-size: 13px;
    text-align: center;
    outline: none;
}

.focus-dur-row input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.focus-btns {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.focus-btn {
    padding: 10px 22px;
    border-radius: var(--zfy-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #f2f5f9;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.12s ease, background var(--zfy-t) ease;
}

.focus-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.focus-btn:active {
    transform: scale(0.96);
}

.focus-btn.primary {
    background: var(--zfy-grad-accent);
    border: none;
    font-weight: 600;
}

.focus-btn.ghost {
    background: none;
    border-color: rgba(255, 255, 255, 0.25);
    opacity: 0.75;
}

.focus-stats {
    margin-top: 14px;
    font-size: 12px;
    opacity: 0.6;
    font-variant-numeric: tabular-nums;
}

.focus-complete {
    margin-top: 16px;
    padding: 18px 14px;
    border-radius: var(--zfy-radius-md);
    background: rgba(110, 148, 240, 0.08);
    border: 1px solid rgba(110, 148, 240, 0.3);
    animation: focus-pop 0.45s ease;
}

.focus-check {
    font-size: 52px;
    line-height: 1;
    color: #6e94f0;
    animation: focus-check 1.4s ease-in-out infinite alternate;
}

.focus-complete-title {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
}

.focus-complete-sub {
    margin-top: 4px;
    font-size: 13px;
    opacity: 0.75;
}

@keyframes focus-pop {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes focus-check {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(110, 148, 240, 0.5));
    }
    to {
        transform: scale(1.12);
        filter: drop-shadow(0 0 14px rgba(110, 148, 240, 0.9));
    }
}

/* ============================================================
 * 悬浮音乐播放器（右下角）
 * ============================================================ */
.mp-shell {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: var(--zfy-z-float);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mp-mini {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 22px;
    background: rgba(13, 17, 26, 0.8);
    color: var(--zfy-text);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--zfy-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-mini:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.mp-panel {
    display: none;
    width: 300px;
    margin-bottom: 10px;
    background: rgba(13, 17, 26, 0.88);
    color: var(--zfy-text);
    border-radius: var(--zfy-radius-lg);
    padding: 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--zfy-border);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.mp-shell:not(.collapsed) .mp-panel {
    display: block;
}

.mp-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mp-art {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--zfy-radius-sm);
    background: linear-gradient(135deg, rgba(110, 148, 240, 0.4), rgba(154, 162, 229, 0.18));
    border: 1px solid var(--zfy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

.mp-now {
    flex: 1;
    min-width: 0;
}

.mp-title {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-artist {
    font-size: 12px;
    opacity: 0.65;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.mp-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 6px;
}

.mp-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.mp-progress-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.mp-progress {
    width: 100%;
    accent-color: #6e94f0;
    cursor: pointer;
}

.mp-times {
    font-size: 11px;
    opacity: 0.65;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mp-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.mp-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: inherit;
    opacity: 0.85;
    padding: 4px;
    border-radius: 8px;
}

.mp-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.mp-btn.mp-play {
    font-size: 24px;
}

.mp-vol-btn {
    font-size: 15px;
}

.mp-vol {
    width: 64px;
    accent-color: #6e94f0;
    cursor: pointer;
}

.mp-add-row {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.mp-add-row input {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.22);
    color: inherit;
}

.mp-add-row input:first-child {
    flex: 0 0 30%;
}

.mp-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mp-upload-btn {
    cursor: pointer;
}

.mp-list-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.8;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 8px;
    margin-left: auto;
}

.mp-list-toggle:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.mp-list {
    max-height: 200px;
    overflow-y: auto;
}

.mp-song {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.mp-song:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mp-song.playing {
    color: #6e94f0;
}

.mp-song-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-song-artist {
    font-size: 11px;
    opacity: 0.6;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-song-del {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.55;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 6px;
}

.mp-song-del:hover {
    opacity: 1;
    color: #ff5b5b;
    background: rgba(255, 90, 90, 0.15);
}

.mp-empty {
    text-align: center;
    opacity: 0.6;
    font-size: 12px;
    padding: 14px 0;
}

/* ============================================================
 * FOCUS widget（内容流内组件，原番茄钟统计面板）
 * ============================================================ */
.focus-panel {
    position: static;
    width: auto;
    transform: none;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)), rgba(15, 20, 30, 0.32);
    color: var(--zfy-text);
    border: 1px solid var(--zfy-border);
    border-top-color: rgba(255, 255, 255, 0.14);
    border-radius: var(--zfy-radius-md);
    backdrop-filter: blur(var(--zfy-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--zfy-blur)) saturate(150%);
    box-shadow: var(--zfy-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.fp-row {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--zfy-radius-sm);
    padding: 8px 10px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.fp-row span {
    font-size: 11.5px;
    opacity: 0.7;
    flex: 1;
}

.fp-row b {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.fp-row em {
    font-size: 10px;
    opacity: 0.6;
    font-style: normal;
    padding-right: 2px;
}

.fp-chart-head {
    font-size: 11.5px;
    opacity: 0.75;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.fp-chart-sub {
    font-size: 10px;
    opacity: 0.5;
}

.fs-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 56px;
    margin-bottom: 8px;
}

.fs-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 3px;
}

.fs-bar {
    width: 100%;
    max-width: 20px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #fbbf24, #fb7185);
    opacity: 0.85;
    min-height: 2px;
}

.fs-col:hover .fs-bar {
    opacity: 1;
}

.fs-col.today .fs-bar {
    background: linear-gradient(180deg, #6e94f0, #9aa2e5);
    box-shadow: 0 0 8px rgba(110, 148, 240, 0.6);
}

.fs-day {
    font-size: 10px;
    opacity: 0.65;
    white-space: nowrap;
}

.fp-start {
    width: 100%;
    margin-top: 6px;
    padding: 9px 0;
    border: none;
    border-radius: var(--zfy-radius-sm);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: var(--zfy-grad-accent);
    box-shadow: 0 4px 14px rgba(110, 148, 240, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fp-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(110, 148, 240, 0.38);
}

/* ============================================================
 * 图片查看弹层
 * ============================================================ */
.tc {
    position: fixed;
    display: flex;
    visibility: hidden;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(10, 12, 18, 0.6);
    z-index: var(--zfy-z-modal);
    align-items: center;
    top: 0;
    justify-content: center;
    flex-direction: column;
}

.tc-main {
    z-index: var(--zfy-z-modal);
    width: 80%;
    max-width: 300px;
    min-height: 200px;
    background-color: #ffffff;
    border-radius: var(--zfy-radius-md);
    display: flex;
    transition: transform 0.2s linear;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: translateY(30%) scale(0.5);
}

.tc-img {
    width: 100%;
    height: 100%;
}

.tc.active {
    visibility: visible;
}

.tc-main.active {
    transform: translateY(0) scale(1);
}

/* ============================================================
 * 主题开关（隐藏，由 header 按钮触发 click）
 * ============================================================ */
.onoffswitch {
    position: relative;
    width: 38px;
    height: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    border-radius: 50px;
}

.onoffswitch-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200%;
    height: 100%;
    margin-left: -100%;
    transition: margin 0.2s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    width: 50%;
    height: 100%;
    padding: 0;
    font-size: 12px;
    color: white;
    font-family: Trebuchet, Arial, sans-serif;
    font-weight: bold;
    box-sizing: border-box;
}

.onoffswitch-inner:before {
    content: "";
    background-color: rgb(110 110 110 / 50%);
    color: #FFFFFF;
    text-align: left;
}

.onoffswitch-inner:after {
    content: "";
    background-color: #272727;
    color: #FAFAFA;
    text-align: right;
}

.onoffswitch-switch {
    display: block;
    height: 70%;
    aspect-ratio: 1/1;
    background: #FFFFFF;
    position: absolute;
    top: 12.5%;
    bottom: 12.5%;
    right: 5px;
    border-radius: 20px;
    transition: right 0.2s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
    right: 50%;
}

/* ============================================================
 * Terminal（Ctrl + `）
 * ============================================================ */
.os-terminal {
    position: fixed;
    inset: 0;
    z-index: var(--zfy-z-terminal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 9, 14, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.os-terminal.open {
    display: flex;
}

.os-terminal-box {
    width: min(680px, 94vw);
    height: min(480px, 70vh);
    display: flex;
    flex-direction: column;
    background: rgba(10, 14, 20, 0.92);
    border: 1px solid var(--zfy-border);
    border-radius: var(--zfy-radius-lg);
    box-shadow: var(--zfy-shadow-lg);
    overflow: hidden;
    animation: naskun-pop 0.15s ease;
}

.os-terminal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--zfy-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--zfy-border);
}

.os-terminal-close {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0.5;
    transition: opacity var(--zfy-t) ease;
}

.os-terminal-close:hover {
    opacity: 1;
}

.os-terminal-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    font-family: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.65;
    color: #c9d4e8;
}

.os-term-line {
    white-space: pre-wrap;
    word-break: break-all;
}

.os-term-line .os-term-cmd {
    color: var(--zfy-primary);
}

.os-terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid var(--zfy-border);
    background: rgba(255, 255, 255, 0.03);
}

.os-term-prompt {
    font-family: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: 13px;
    color: var(--zfy-primary);
    white-space: nowrap;
}

.os-terminal-input-row input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: var(--zfy-text);
    font-family: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: 13px;
}

.os-terminal-input-row input::placeholder {
    color: var(--zfy-text-faint);
}

/* ============================================================
 * 响应式
 * ============================================================ */
@media (min-width: 1700px) {
    #list-sites.projectList {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1280px) {
    #list-sites.projectList {
        grid-template-columns: repeat(3, 1fr);
    }

    #list-projects.projectList {
        grid-template-columns: repeat(2, 1fr);
    }

    .os-title {
        font-size: 58px;
    }

    /* 三列 Dash 折叠为单列：Hero → Identity → Live */
    .os-dash {
        grid-template-columns: 1fr;
    }

    .os-hero {
        order: 1;
    }

    .os-identity {
        order: 2;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 16px;
        row-gap: 2px;
    }

    .os-identity-avatar {
        grid-row: 1 / span 5;
        margin: 0;
        width: 64px;
        height: 64px;
    }

    .os-identity-meta {
        grid-column: 2;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        flex-direction: row;
        gap: 18px;
    }

    .os-identity-stats {
        grid-column: 2;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .os-live {
        order: 3;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .os-live {
        grid-template-columns: 1fr 1fr;
    }

    .focus-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    body {
        background-attachment: scroll;
    }

    .os-header-inner,
    .os-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .os-brand-sub {
        display: none;
    }

    .os-dash {
        padding-top: 18px;
    }

    .os-hero {
        padding: 46px 2px 0;
    }

    .os-eyebrow {
        margin-bottom: 10px;
    }

    .os-title {
        font-size: 44px;
    }

    .os-sub {
        font-size: 14.5px;
    }

    .os-search {
        margin-top: 20px;
    }

    .search-box {
        height: 52px;
    }

    .os-identity {
        grid-template-columns: auto 1fr;
    }

    .os-identity-meta {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 12px;
        margin-top: 10px;
    }

    .os-identity-stats {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 12px;
        margin-top: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .os-live {
        grid-template-columns: 1fr;
    }

    .focus-panel {
        grid-column: auto;
    }

    .left-div,
    .focus-panel {
        padding: 14px;
    }

    .os-widget-label {
        margin-bottom: 8px;
    }

    .os-clock .clock-time {
        font-size: 24px;
    }

    /* 手机端隐藏次要状态行，压缩高度 */
    .clock-stat:last-child {
        display: none;
    }

    .section-edit-btn {
        margin-left: 10px;
        opacity: 0.65;
    }

    .os-section {
        margin-top: 40px;
    }

    #list-sites.projectList {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .projectItem {
        padding: 14px;
        gap: 11px;
    }

    .projectItemRight {
        width: 38px;
        height: 38px;
    }

    #list-projects.projectList {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #list-projects .projectItem {
        min-height: 0;
    }

    #list-projects .projectItemLeft {
        padding: 44px 14px 14px;
    }

    .recent-list {
        grid-template-columns: 1fr;
    }

    .os-tools {
        gap: 12px;
        margin-top: 18px;
    }

    /* System Status Bar：移动端竖排 + 为悬浮播放器让出底部空间 */
    .os-statusbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 56px 96px 16px;
        margin-top: 40px;
    }

    .os-sb-center {
        display: none;
    }

    .os-sb-right {
        flex-wrap: wrap;
        gap: 14px;
    }

    /* 移动端信息条：顶部时间/天气摘要 */
    .mobile-info {
        display: block;
        position: fixed;
        top: calc(var(--zfy-header-h) + 8px);
        left: 50%;
        transform: translateX(-50%);
        z-index: var(--zfy-z-float);
        font-size: 12px;
        opacity: 0.85;
        font-variant-numeric: tabular-nums;
        background: rgba(8, 12, 20, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 999px;
        padding: 4px 14px;
        max-width: 92vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        pointer-events: none;
    }

    /* 音乐播放器：右下角迷你 */
    .mp-shell.collapsed .mp-mini {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .mp-panel {
        width: 268px;
    }

    .bg-pane,
    .bg-pane-static,
    .upd-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .icon-picker {
        grid-template-columns: repeat(5, 42px);
    }
}

@media (max-width: 480px) {
    .os-title {
        font-size: 40px;
    }

    .os-section-head {
        flex-wrap: wrap;
    }
}
/* ============================================================
 * 减弱动态效果
 * ============================================================ */
/* ============================================================
 * 悬浮组件安全区（避免与内容/彼此重叠）
 * ============================================================ */
/* 顶栏已有 ⌘K 入口，全局隐藏悬浮 ⌘ 球（避免与内容/浮层重叠） */
.cmd-fab {
    display: none;
}

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


/* ============================================================
 * Desktop reference layout
 * Keep the three-column OS dashboard usable from 1100px upward.
 * ============================================================ */
@media (min-width: 1101px) {
    .os-container {
        max-width: var(--zfy-max);
        padding-left: 32px;
        padding-right: 32px;
    }

    .os-dash {
        grid-template-columns: minmax(235px, 288px) minmax(0, 1fr) minmax(250px, 300px);
        gap: 28px;
        padding-top: 34px;
    }

    .os-identity {
        min-height: 438px;
        align-items: center;
        text-align: center;
        padding: 22px 20px;
        border-radius: 20px;
        background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.018)), rgba(15,20,30,.32);
        border: 1px solid rgba(255,255,255,.12);
        border-top-color: rgba(255,255,255,.20);
        backdrop-filter: blur(22px) saturate(150%);
        -webkit-backdrop-filter: blur(22px) saturate(150%);
        box-shadow: 0 16px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.07);
    }

    .os-identity-avatar {
        width: 128px;
        height: 128px;
        margin: 4px 0 12px;
        box-shadow: 0 0 0 3px rgba(110,148,240,.26), 0 18px 42px rgba(0,0,0,.28);
    }

    .os-identity-name { font-size: 23px; }
    .os-identity-role { font-size: 14px; }
    .os-identity-meta, .os-identity-stats { align-items: flex-start; text-align: left; }
    .os-hero { padding: 18px 12px 0; }
    .os-title { font-size: clamp(64px, 5.1vw, 86px); }
    .os-sub { font-size: 17px; }
    .os-tagline { font-size: 15px; }
    .os-search { max-width: 660px; margin-top: 32px; }

    .os-live { gap: 14px; }
    .os-live .left-div, .os-live .focus-panel { border-radius: 16px; }
    .os-clock .clock-time { font-size: 32px; }

    .os-section { margin-top: 34px; }
    .os-section-head { margin-bottom: 14px; }
    .os-section-title { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
    .os-section-sub { font-size: 12px; }

    #list-sites.projectList { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
    #list-sites .projectItem { min-height: 92px; padding: 15px 14px; }
    #list-sites .projectItemRight { order: -1; width: 42px; height: 42px; }
    #list-sites .projectItemRight img { max-width: 25px; max-height: 25px; }

    #list-projects.projectList { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    #list-projects .projectItem { min-height: 168px; }
    #list-projects .projectItemLeft { padding: 46px 18px 16px; }
}

/* Desktop layout order reset */
@media (min-width: 1101px) {
    .os-dash { display: grid; grid-template-columns: minmax(235px, 288px) minmax(0, 1fr) minmax(250px, 300px); }
    .os-hero, .os-identity, .os-live { order: initial; }
    .os-identity { display: flex; }
    .os-live { display: flex; }
}

/* Compact desktop focus spacing */
@media (min-width: 1101px) {
    .os-dash { padding-bottom: 0; }
    .os-section { margin-top: 22px; }
    .os-live .focus-panel {
        min-height: 132px;
        padding: 18px;
    }
    .os-live .focus-panel .fp-stats,
    .os-live .focus-panel .fp-chart-head,
    .os-live .focus-panel .fs-chart {
        display: none;
    }
    .os-live .focus-panel::after {
        content: "● 25:00";
        display: block;
        margin: 2px 0 8px;
        color: var(--zfy-text);
        font-size: 27px;
        font-variant-numeric: tabular-nums;
        letter-spacing: .02em;
    }
    .os-live .focus-panel .fp-start {
        margin-top: 0;
        width: auto;
        min-width: 128px;
        padding: 8px 18px;
        font-size: 12px;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.15);
        box-shadow: none;
    }
    .os-live .focus-panel .fp-start:hover {
        background: rgba(255,255,255,.14);
        box-shadow: none;
    }
}

/* Focus card inner order */
@media (min-width: 1101px) {
    .os-live .focus-panel { display: flex; flex-direction: column; }
    .os-live .focus-panel .os-widget-label { order: 1; }
    .os-live .focus-panel::after { order: 2; }
    .os-live .focus-panel .fp-start { order: 3; align-self: flex-start; }
}

/* Centered desktop shell */
@media (min-width: 1101px) {
    .os-header-inner,
    .os-container,
    .os-statusbar {
        width: min(var(--zfy-max), calc(100% - 64px));
        margin-left: auto;
        margin-right: auto;
    }
    .os-header-inner,
    .os-container {
        max-width: var(--zfy-max);
    }
    .os-statusbar {
        max-width: var(--zfy-max);
    }
}

/* Desktop performance pass */
@media (min-width: 801px) {
    body {
        background-attachment: scroll;
    }
    body::before {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .os-header,
    .os-identity,
    .left-div,
    .search-box,
    .projectItem,
    .focus-panel {
        backdrop-filter: blur(8px) saturate(115%);
        -webkit-backdrop-filter: blur(8px) saturate(115%);
    }
    #bg-aurora,
    #bg-shapes,
    #bg-parallax,
    #bg-cursor,
    #cursor-glow {
        display: none !important;
    }
    .os-projects,
    .os-recent {
        content-visibility: auto;
        contain-intrinsic-size: 360px;
    }
}
