/* === 🍎 iOS 核心变量 === */
:root {
    --entj-gold: #D4AF37;
    --ios-bg: #000000;
    --glass-bg: rgba(30, 30, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --dock-bg: rgba(255, 255, 255, 0.15);
}

/* === 全局重置 === */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    margin: 0; padding: 0;
    background-color: var(--ios-bg);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    height: 100vh;
    overflow: hidden; /* 禁止页面滚动，像 App 一样 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* === 1. 状态栏 === */
.status-bar {
    height: 44px; /* iPhone 顶部高度 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
}
.signals { display: flex; gap: 6px; font-size: 12px; }

/* === 2. 主屏幕 === */
.springboard {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* === 小组件 (Widget) === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 22px; /* iOS 风格圆角 */
}

.widget.large {
    height: 160px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.city-left, .city-right { display: flex; flex-direction: column; gap: 5px; }
.city-name { font-size: 10px; color: #888; letter-spacing: 1px; font-weight: 700; }
.city-time { font-size: 32px; font-weight: 300; font-variant-numeric: tabular-nums; }
.city-weather { font-size: 12px; color: var(--entj-gold); }
.divider { width: 1px; height: 60%; background: #444; }

/* === App 网格 === */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
}
.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}
.icon-box {
    width: 60px; height: 60px;
    border-radius: 14px; /* 完美超椭圆近似值 */
    display: flex; justify-content: center; align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.1s;
}
.icon-box:active { transform: scale(0.9); filter: brightness(0.8); }
.app-name { font-size: 11px; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }

/* === App 颜色渐变 === */
.gradient-red { background: linear-gradient(135deg, #ff4b1f, #ff9068); }
.gradient-gold { background: linear-gradient(135deg, #FDC830, #F37335); }
.gradient-pink { background: linear-gradient(135deg, #ec008c, #fc6767); }
.gradient-black { background: linear-gradient(135deg, #434343, #000000); border: 1px solid #333; }
.gradient-green { background: linear-gradient(135deg, #56ab2f, #a8e063); }
.gradient-blue { background: linear-gradient(135deg, #2193b0, #6dd5ed); }
.gradient-purple { background: linear-gradient(135deg, #834d9b, #d04ed6); }
.gradient-white { background: #e0e0e0; color: black; }

/* === 3. 底部 Dock 栏 === */
.dock {
    height: 90px;
    margin: 15px;
    border-radius: 32px;
    background: var(--dock-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 10px; /* 适配 iPhone 底部横条 */
}
.dock-icon {
    width: 55px; height: 55px;
    border-radius: 13px;
    display: flex; justify-content: center; align-items: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

