/* iPhone 17 模拟器样式 - 完全真实还原 */

.iphone-simulator-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    /* 确保在所有浏览器中正确覆盖 */
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.iphone-simulator-overlay.show {
    display: flex;
}

/* 手机端模式 - 不使用padding，通过JavaScript缩放来保留边距 */
@media (max-width: 768px) {
    .iphone-simulator-overlay {
        background: transparent;
        padding: 0;
        /* 禁用滚动，避免意外的滚动行为 */
        overflow: hidden;
        touch-action: none;
    }
    
    .iphone-simulator-overlay.show {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        /* 支持多种视口高度单位，确保兼容性 */
        height: 100dvh; /* 动态视口高度 - 现代浏览器 */
        height: -webkit-fill-available; /* Safari支持 */
        min-height: 100vh; /* 回退方案 */
        min-height: -webkit-fill-available; /* Safari回退 */
        /* 确保在所有浏览器中都能正确显示 */
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* iPhone 17 设备外壳 - 9:18 比例 */
.iphone-device {
    width: 390px;
    height: 780px;
    background: #1c1c1e;
    border-radius: 55px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: scale(0.95);
    animation: deviceAppear 0.4s ease;
}

/* 手机端 - JavaScript动态缩放 */
@media (max-width: 768px) {
    .iphone-device {
        width: 390px;
        height: 780px;
        border-radius: 55px;
        padding: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6),
                    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
        transform-origin: center center;
        /* transform由JavaScript动态设置 */
        /* 确保在所有浏览器中正确渲染 */
        -webkit-transform-origin: center center;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

@keyframes deviceAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(0.95);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    @keyframes deviceAppear {
        from {
            transform: scale(0.9);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }
}

/* 设备边框高光 */
.iphone-device::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 55px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* iPhone 屏幕 */
.iphone-screen {
    width: 100%;
    height: 100%;
    /* 使用白色背景作为回退，当背景图未加载时显示白色 */
    background-color: #ffffff;
    border-radius: 47px;
    overflow: hidden;
    position: relative;
    /* 背景图设置，使用white作为回退色 */
    background: url('https://image.uglycat.cc/d2r7d4.jpg') center/cover no-repeat, #ffffff;
    background-size: cover;
}

/* 手机端屏幕圆角保持一致 */
@media (max-width: 768px) {
    .iphone-screen {
        border-radius: 47px;
    }
}

/* 灵动岛 - 真实iOS样式 */
.dynamic-island {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 125px;
    height: 37.33px;
    background: #000000;
    border-radius: 23px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.05);
}

/* 灵动岛点击效果 */
.dynamic-island:active {
    transform: translateX(-50%) scale(0.96);
}

/* 灵动岛内容 */
.dynamic-island-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

/* 前置摄像头 - 9:18 比例自适应 - 更真实的尺寸 */
.camera-dot {
    width: 8px;
    height: 8px;
    background: #0d0d0d;
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0.5px 1px rgba(255, 255, 255, 0.03);
}

.camera-dot::after {
    content: '';
    position: absolute;
    top: 1.4px;
    left: 1.4px;
    width: 2.3px;
    height: 2.3px;
    background: rgba(80, 80, 100, 0.25);
    border-radius: 50%;
}

/* Face ID传感器 - 9:18 比例自适应 - 更真实的尺寸 */
.sensor-line {
    width: 60px;
    height: 6px;
    background: #0a0a0a;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.sensor-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, transparent 100%);
}

/* 关机界面覆盖层 */
.shutdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.shutdown-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 关机面板 */
.shutdown-panel {
    width: 90%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

/* 滑动关机容器 */
.shutdown-slider-container {
    width: 100%;
    padding: 20px 0;
}

/* 滑动轨道 */
.shutdown-slider-track {
    position: relative;
    width: 100%;
    height: 58px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 29px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

/* 滑动轨道背景填充 - 红色渐变 */
.shutdown-slider-track::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff3b30 0%, #ff453a 100%);
    border-radius: 29px;
    transition: width 0.1s linear;
    z-index: 1;
}

.shutdown-slider-track.sliding::before {
    /* 红色填充宽度 = 滑动进度 + 按钮宽度的一半，确保完全覆盖到按钮中心 */
    width: calc(var(--slide-progress, 0%) + 29px);
}

/* 滑动文字 */
.shutdown-slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.4px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    pointer-events: none;
    transition: opacity 0.2s ease;
    user-select: none;
    z-index: 2;
}

/* 滑动按钮 */
.shutdown-slider-thumb {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 25px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: -8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    z-index: 10;
}

.shutdown-slider-thumb:active {
    cursor: grabbing;
}

.shutdown-slider-thumb svg {
    width: 16px;
    height: 16px;
    color: #000;
    opacity: 0.4;
}

.shutdown-slider-thumb svg:first-child {
    margin-right: -6px;
}

/* 取消按钮 */
.shutdown-cancel-btn {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.4px;
}

.shutdown-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.shutdown-cancel-btn:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.2);
}

/* 状态栏 - 真实iOS样式 - 9:18 比例自适应 - 白色主题 */
.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    z-index: 999;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.status-left {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 18px 0 0 21px;
    flex: 0 0 auto;
    max-width: 120px;
}

.status-carrier {
    font-size: 15px;
    letter-spacing: -0.3px;
    font-weight: 590;
    color: #ffffff;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 18px 21px 0 0;
    flex: 0 0 auto;
    max-width: 140px;
    justify-content: flex-end;
}

.status-5g {
    font-size: 15px;
    letter-spacing: -0.2px;
    font-weight: 600;
    color: #ffffff;
}

/* 状态栏图标 */
.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 信号强度 - 真实iOS样式 - 9:18 比例自适应 - 白色主题 */
.signal-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 11px;
    width: 17px;
}

.signal-bar {
    width: 3px;
    background: #ffffff;
    border-radius: 1px;
}

.signal-bar:nth-child(1) { height: 3.5px; }
.signal-bar:nth-child(2) { height: 6px; }
.signal-bar:nth-child(3) { height: 8.5px; }
.signal-bar:nth-child(4) { height: 11px; }

/* WiFi图标已移除 - 不再显示 */
.wifi-icon {
    display: none;
}

/* 电池图标 - 真实iOS样式 - 9:18 比例自适应 - 白色主题 */
.battery-icon {
    width: 24.5px;
    height: 11.5px;
    border: 1.5px solid #ffffff;
    border-radius: 3.5px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.5px;
    opacity: 1;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -3.5px;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5px;
    height: 5.5px;
    background: #ffffff;
    border-radius: 0 1px 1px 0;
    opacity: 0.6;
}

.battery-level {
    height: 100%;
    background: #ffffff;
    border-radius: 1px;
    transition: width 0.3s ease;
}

/* 电量百分比 - 9:18 比例自适应 */

/* iOS悬浮球 - AssistiveTouch风格 */
.floating-ball {
    position: fixed;
    width: 60px;
    height: 60px;
    background: rgba(52, 52, 54, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.floating-ball.show {
    display: flex;
}

.floating-ball:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.floating-ball:active {
    transform: scale(0.95);
}

.floating-ball-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-ball-icon::before,
.floating-ball-icon::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
}

/* 创建一个简单的手机图标 */
.floating-ball-icon::before {
    width: 14px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    background: transparent;
}

.floating-ball-icon::after {
    width: 6px;
    height: 2px;
    bottom: 2px;
    border-radius: 1px;
}

/* 拖拽时的效果 */
.floating-ball.dragging {
    transition: none;
    opacity: 0.8;
    cursor: grabbing;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .floating-ball {
        width: 70px;
        height: 70px;
    }
    
    .floating-ball-icon {
        width: 38px;
        height: 38px;
    }
}
.battery-percent {
    font-size: 14px;
    margin-left: 2.7px;
    font-weight: 590;
    letter-spacing: -0.27px;
}

/* 屏幕内容区域 - 9:18 比例自适应 */
.screen-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* 移除padding-top，让锁屏可以覆盖整个屏幕 */
    padding-top: 0;
}

/* 主屏幕 - 9:18 比例自适应 */
.home-screen {
    padding: 66px 22px 0;
    min-height: 100%;
    position: relative;
    height: 100%;
}

/* iOS 锁屏界面 - 9:18 比例自适应 - 背景图铺满全屏（包括顶部） */
.lockscreen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001; /* 提高z-index，确保在状态栏和灵动岛之上 */
    /* 使用白色背景作为回退，当背景图未加载时显示白色 */
    background-color: #ffffff;
    /* 背景图设置，使用white作为回退色 */
    background: url('https://image.uglycat.cc/fx1inq.jpg') center/cover no-repeat, #ffffff;
    background-size: cover;
    background-position: center;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    transform: translateY(0);
    opacity: 1;
}

/* 锁屏内容容器 - 用于添加padding而不影响背景图 */
.lockscreen-content {
    padding: 120px 22px 50px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.lockscreen.unlocked {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* 锁屏时间 - 9:18 比例自适应 - 白色主题 */
.lockscreen-time {
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.lockscreen-hour {
    font-size: 68px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 7px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    letter-spacing: -1.8px;
    color: #ffffff;
}

.lockscreen-date {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    letter-spacing: -0.27px;
    color: #ffffff;
}

/* 锁屏通知区域 - 9:18 比例自适应 */
.lockscreen-notifications {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 0;
    overflow-y: auto;
}

/* 锁屏底部 - 9:18 比例自适应 */
.lockscreen-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* 锁屏指示器 - 9:18 比例自适应 */
.lockscreen-indicator {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.lockscreen-swipe-bar {
    width: 120px;
    height: 4.5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2.25px;
    animation: swipeBarPulse 2s ease-in-out infinite;
}

@keyframes swipeBarPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-2px);
    }
}

/* 手机端锁屏优化 - 9:18 比例 */
@media (max-width: 768px) {
    .lockscreen-content {
        padding: 55px 18px 45px;
        box-sizing: border-box;
    }
    
    .lockscreen-hour {
        font-size: 58px;
    }
    
    .lockscreen-date {
        font-size: 14.5px;
    }
}

/* 应用图标网格 - 9:18 比例自适应 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 14px;
    margin-top: 10px;
}

/* 手机端应用图标网格优化 - 9:18 比例 */
@media (max-width: 768px) {
    .app-grid {
        gap: 14px 12px;
        margin-top: 9px;
    }
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.app-icon:active {
    transform: scale(0.92);
}

.app-icon-image {
    width: 56px;
    height: 56px;
    border-radius: 12.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3.5px 11px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.app-icon-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
}

.app-icon-image svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    position: relative;
    z-index: 1;
}

.app-name {
    font-size: 11px;
    color: #ffffff;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    letter-spacing: -0.18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Dock栏 - 底部固定应用 - 9:18 比例自适应 */
.dock-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 310px;
    z-index: 100;
}

.dock {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 18px;
    padding: 7px 14px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 7px 28px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dock-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.dock-icon:active {
    transform: scale(0.92);
}

.dock-icon-image {
    width: 56px;
    height: 56px;
    border-radius: 12.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3.5px 11px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.dock-icon-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
}

.dock-icon-image svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    position: relative;
    z-index: 1;
}

/* 底部指示器 - 9:18 比例自适应 */
.home-indicator {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4.5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2.7px;
}

/* 响应式调整 */
@media (max-width: 480px) and (min-width: 769px) {
    .iphone-device {
        transform: scale(0.75);
    }
}

@media (max-height: 900px) and (min-width: 769px) {
    .iphone-device {
        transform: scale(0.85);
    }
}

@media (max-height: 800px) and (min-width: 769px) {
    .iphone-device {
        transform: scale(0.75);
    }
}

/* 应用特定颜色 - 真实iOS配色 */
.app-notes { background: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%); }
.app-camera { background: linear-gradient(135deg, #8e8e93 0%, #636366 100%); }
.app-screentime { background: linear-gradient(135deg, #5e5ce6 0%, #7c7aff 100%); }
.app-calendar { background: transparent; }
.app-maps { background: linear-gradient(135deg, #34c759 0%, #30d158 100%); }
.app-health { background: linear-gradient(135deg, #ff3b30 0%, #ff453a 100%); }
.app-wallet { background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%); }
.app-mail { background: linear-gradient(135deg, #0a84ff 0%, #5ac8fa 100%); }
.app-douyin { background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%); }
.app-xiaohongshu { background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%); }

/* Dock应用配色 */
.dock-phone { background: linear-gradient(135deg, #00d856 0%, #00b347 100%); }
.dock-messages { background: linear-gradient(135deg, #00d856 0%, #00b347 100%); }
.dock-safari { background: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%); }
.dock-settings { background: linear-gradient(135deg, #8e8e93 0%, #636366 100%); }

/* 滚动条样式 */
.screen-content::-webkit-scrollbar {
    width: 3px;
}

.screen-content::-webkit-scrollbar-track {
    background: transparent;
}

.screen-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.screen-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 灵动岛动画效果 */
@keyframes islandPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
    }
}

.dynamic-island.active {
    animation: islandPulse 2s ease-in-out infinite;
}

/* 关机动画 - 模拟真实iPhone */
@keyframes shutdownAnimation {
    0% {
        opacity: 1;
        filter: brightness(1);
    }
    30% {
        opacity: 1;
        filter: brightness(0.8);
    }
    60% {
        opacity: 0.3;
        filter: brightness(0.3);
    }
    100% {
        opacity: 0;
        filter: brightness(0);
    }
}

.iphone-screen.shutting-down {
    animation: shutdownAnimation 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.iphone-screen.shutting-down::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    animation: shutdownLine 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 9999;
}

@keyframes shutdownLine {
    0% {
        width: 100%;
        opacity: 1;
    }
    50% {
        width: 100%;
        opacity: 1;
    }
    100% {
        width: 0%;
        opacity: 0;
    }
}