:root {
  --bg-gradient: linear-gradient(135deg, #e8e8ee 0%, #dfe6ed 50%, #f0f0f5 100%);
  --glass-bg: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.5);
  --text-main: #333333;
  --text-muted: #888888;
  --accent: #999999;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, "SF Pro Display", sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

/* 动态背景图支持 */
.wallpaper-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

/* 1. Widget 区域 (占 30%) */
.widget-area {
  height: 30vh;
  display: flex;
  gap: 15px;
  padding: 20px;
  padding-top: 40px;
  align-items: center;
}

.widget-card {
  flex: 1;
  height: 100px; /* 固定高度保持对齐 */
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.widget-card .time { font-size: 28px; font-weight: 600; letter-spacing: 1px; }
.widget-card .date { font-size: 12px; color: var(--text-muted); }
.widget-card .label { font-size: 12px; margin-bottom: 4px; color: var(--text-muted); }
.widget-card .days { font-size: 24px; font-weight: bold; color: var(--accent); }

/* 2. App 图标网格区 */
.app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: min-content;
  gap: 25px 10px;
  padding: 10px 20px;
  overflow-y: auto;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s;
}

.app-item:active { transform: scale(0.9); }

.icon-box {
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.app-item.locked { opacity: 0.5; }

.app-label { font-size: 11px; font-weight: 400; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

/* 3. 底部 Dock 区 */
.dock-wrapper {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.dock {
  width: 90%;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

.dock-item { color: var(--text-main); text-decoration: none; padding: 10px; }

/* 毛玻璃 Toast */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 20px;
  font-size: 14px;
  display: none;
  z-index: 1000;
  border: 1px solid var(--glass-border);
}

a {
  position: relative;
  z-index: 50;
}
