/* ============================================================
   星少科技Saas 全站视觉：水墨背景 + 满屏樱花雨 + 灵动岛时钟
   ============================================================ */

/* ---------- 全站背景图 ---------- */
body {
    background-image: url('./bg_main.jpg') !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

/* ---------- 满屏下雨樱花 ---------- */
#sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2147483000;
}
.sakura-petal {
    position: absolute;
    top: -60px;
    display: block;
    border-radius: 60% 40% 55% 45%;
    background: linear-gradient(135deg, #ffd6e8, #ff9ec7 45%, #ff7eb3);
    opacity: 0;
    animation: sakuraFall linear infinite;
    box-shadow: 0 0 6px rgba(255, 150, 190, 0.45);
    will-change: transform, opacity;
}
@keyframes sakuraFall {
    0%   { transform: translate3d(0, -70px, 0) rotate(0deg);  opacity: 0; }
    5%   { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translate3d(var(--sway, 0px), 118vh, 0) rotate(var(--rot, 260deg)); opacity: 0.3; }
}

/* ---------- 灵动岛 (iPhone 16 风格，播放时间) ---------- */
.dynamic-island {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    height: 30px;
    min-width: 110px;
    max-width: 330px;
    background: #000;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 8px 26px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2147483001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    gap: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    letter-spacing: 0.01em;
    transition: min-width 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2), padding 0.4s ease, max-width 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
}
.dynamic-island .di-punch {
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.55);
}
.dynamic-island .di-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.9);
    animation: diPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
.dynamic-island .di-bell {
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}
.dynamic-island .di-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.dynamic-island .di-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.dynamic-island.expanded {
    min-width: 300px;
    max-width: 92vw;
}
@keyframes diPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.7); }
}
@media (max-width: 360px) {
    .dynamic-island.expanded { min-width: 260px; }
}

/* ---------- 让 SPA 页面容器透明，露出水墨背景图 ---------- */
html, body {
    background-color: transparent !important;
}
.login-page,
.login-page[data-v-6adaa892],
.login-page[data-v-b06c92a7],
.order-page,
.order-page[data-v-6c8b0f72],
.result-page,
.result-page[data-v-86745645],
.el-container,
.el-main,
.el-aside,
.el-header,
.el-footer {
    background: transparent !important;
}
/* 登录卡片保留半透明白底保证可读性 */
.login-card,
.login-card[data-v-6adaa892] {
    background: rgba(255, 255, 255, 0.92) !important;
}

/* ---------- 固定背景层 ---------- */
#star-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: url('./bg_main.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
#app {
    background: transparent !important;
}
