/* ==========================================================================
   星少科技saas 全站主题注入样式
   1) 所有页面统一背景图（assets/theme/bg.jpg）
   2) 灵动岛实时时间组件样式
   3) 全屏樱花飘落画布样式（动画逻辑见同目录 theme-ui.js）
   说明：本文件只新增样式，不改动原有结构与业务逻辑。
   ========================================================================== */

/* ---------- 1. 统一页面背景图 ---------- */
html,
body {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.52), rgba(244, 247, 252, 0.68)),
        url("bg.jpg") !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: center center, center center !important;
    background-size: cover, cover !important;
    background-attachment: fixed, fixed !important;
}

/* 内容卡片保持清晰可读（浅色页面上的白色卡面 / 深色页面上的玻璃卡面） */
.card,
.box,
.login-card,
.panel {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* ---------- 2. 灵动岛（实时时间） ---------- */
#xs-island {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2147483000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.4px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

#xs-island .xs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
    animation: xs-island-pulse 1.8s ease-in-out infinite;
}

#xs-island .xs-time {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

#xs-island .xs-date {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    font-variant-numeric: tabular-nums;
}

@keyframes xs-island-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@media (max-width: 520px) {
    #xs-island {
        top: 8px;
        gap: 8px;
        padding: 7px 14px;
        font-size: 13px;
    }
    #xs-island .xs-date {
        display: none;
    }
}

/* ---------- 3. 全屏樱花飘落画布 ---------- */
#xs-sakura {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2147482000;
}