* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100vw;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  user-select: none;
  overflow: hidden;
  background: #f0f0f0;
}

.phone-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  background-color: #e8e8e8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  height: 44px;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  position: relative;
  z-index: 100;
}

.status-left .time {
  font-size: 17px;
  font-weight: 600;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.network {
  font-size: 15px;
  font-weight: 600;
}

/* Added CSS signal bars to replace emoji */
.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

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

.signal-bars .bar:nth-child(1) {
  height: 3px;
}
.signal-bars .bar:nth-child(2) {
  height: 6px;
}
.signal-bars .bar:nth-child(3) {
  height: 9px;
}
.signal-bars .bar:nth-child(4) {
  height: 12px;
}

.battery {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  gap: 4px;
}

/* Added CSS battery icon to replace emoji */
.battery-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.battery-body {
  width: 18px;
  height: 10px;
  border: 1px solid white;
  border-radius: 2px;
  position: relative;
}

.battery-body::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 1px;
}

.battery-tip {
  width: 2px;
  height: 6px;
  background: white;
  border-radius: 0 1px 1px 0;
  margin-left: 1px;
}

/* Widget Area */
.widget-area {
  padding: 20px;
  flex-shrink: 0;
}

.date-widget {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  color: white;
  border-radius: 28px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.date-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.day {
  font-size: 48px;
  font-weight: 300;
  line-height: 0.9;
  margin-bottom: 4px;
}

.weekday {
  font-size: 16px;
  opacity: 0.8;
  font-weight: 400;
}

.date-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 16px;
}

.desc {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 4px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.desc:hover {
  opacity: 1;
}

/* Added CSS sparkle and star icons to replace emoji */
.sparkle {
  width: 8px;
  height: 8px;
  background: white;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star {
  width: 6px;
  height: 6px;
  background: white;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.date {
  font-size: 16px;
  font-weight: 500;
}

.date-right {
  display: flex;
  align-items: center;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
}

.music-widget {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  color: white;
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.music-cover {
  position: relative;
  flex-shrink: 0;
}

.album-art {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.music-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.music-title {
  font-size: 16px;
  font-weight: 600;
}

.music-artist {
  font-size: 13px;
  opacity: 0.7;
  font-weight: 400;
}

.progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.time-start,
.time-end {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 500;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  position: relative;
}

.progress-fill {
  width: 30%;
  height: 100%;
  background: white;
  border-radius: 1px;
}

.music-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Added CSS music control icons to replace emoji */
.prev-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid white;
  position: relative;
}

.prev-icon::before {
  content: "";
  position: absolute;
  right: 6px;
  top: -6px;
  width: 2px;
  height: 12px;
  background: white;
}

.next-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid white;
  position: relative;
}

.next-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: -6px;
  width: 2px;
  height: 12px;
  background: white;
}

.pause-icon {
  display: flex;
  gap: 2px;
}

.pause-icon::before,
.pause-icon::after {
  content: "";
  width: 3px;
  height: 12px;
  background: white;
  border-radius: 1px;
}

/* App Grid */
.app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
  padding: 20px 24px;
  align-content: start;
}

.app-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.app-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

/* App Icon Colors */
.yellow-app {
  background: linear-gradient(135deg, #ffd700, #ffb347);
}

.blue-app {
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

.black-app {
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  color: white;
}

.white-app {
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.gray-app {
  background: linear-gradient(135deg, #ffffff, #f8f8f8);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.red-app {
  background: linear-gradient(135deg, #ff3b30, #d70015);
  color: white;
}

.purple-app {
  background: linear-gradient(135deg, #af52de, #8e44ad);
  color: white;
}

/* Added CSS app icons to replace all emojis */
.music-note-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.music-note-icon::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #333;
  border-radius: 50%;
  bottom: 0;
  left: 0;
}

.music-note-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 16px;
  background: #333;
  right: 2px;
  top: 0;
  border-radius: 1px;
}



.weibo-icon {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  position: relative;
}

.weibo-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 12px;
  height: 12px;
  background: #2c2c2c;
  border-radius: 50%;
}

.payment-icon {
  width: 20px;
  height: 20px;
  border: 2px solid #1890ff;
  border-radius: 4px;
  position: relative;
}

.payment-icon::before {
  content: "¥";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: bold;
  color: #1890ff;
}

.chat-icon {
  width: 24px;
  height: 18px;
  background: white;
  border-radius: 8px;
  position: relative;
}

.chat-icon::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid white;
}

.lightning-icon {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 4px solid transparent;
  border-top: 12px solid #ffd700;
  position: relative;
}

.lightning-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: -4px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #ffd700;
}



/* 天气图标 - 天体的遮蔽 */
.weather-icon {
  width: 24px;
  height: 20px;
  position: relative;
}

/* 太阳 */
.weather-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ffd700, #ffa500);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* 云朵 */
.weather-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 24px;
  height: 12px;
  background: linear-gradient(135deg, #ffffff, #f8f8f8);
  border-radius: 12px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-icon {
  width: 20px;
  height: 22px;
  background: #333;
  border-radius: 2px;
  position: relative;
}

.calendar-icon::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 4px;
  right: 4px;
  height: 4px;
  background: #ff3b30;
  border-radius: 2px 2px 0 0;
}

.calendar-icon::after {
  content: "15";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: white;
  font-weight: bold;
}

.diary-icon {
  width: 18px;
  height: 22px;
  background: white;
  border-radius: 2px;
  position: relative;
}

.diary-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 3px;
  right: 3px;
  height: 1px;
  background: #ff3b30;
  box-shadow: 0 3px 0 #ff3b30, 0 6px 0 #ff3b30, 0 9px 0 #ff3b30;
}



.assistant-icon {
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 4px;
  position: relative;
}

.assistant-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: white;
  border-radius: 2px;
}

.assistant-icon::after {
    content: "助手";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  font-weight: bold;
  color: #2c2c2c;
}

.qq-icon {
  width: 20px;
  height: 24px;
  background: #333;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
}

.qq-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 5px 0 0 white;
}



/* 设置图标 - 现代滑块控制 */
.settings-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

/* 滑块轨道 */
.settings-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 2px;
  width: 16px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  box-shadow: 
    0 5px 0 rgba(255, 255, 255, 0.4),
    0 10px 0 rgba(255, 255, 255, 0.4);
}

/* 滑块按钮 */
.settings-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  border-radius: 50%;
  box-shadow: 
    8px 5px 0 -2px linear-gradient(135deg, #ffffff, #e0e0e0),
    -2px 10px 0 -2px linear-gradient(135deg, #ffffff, #e0e0e0);
}

/* FLOW聊天应用图标 - 对话气泡设计 */
.flow-icon {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 主对话气泡 */
.flow-icon::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 18px;
  background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
  border-radius: 16px 16px 16px 4px;
  top: 2px;
  left: 4px;
  box-shadow: 0 3px 12px rgba(0, 122, 255, 0.4);
  animation: chatPulse 2s ease-in-out infinite;
}

/* 小对话气泡 */
.flow-icon::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 13px;
  background: linear-gradient(135deg, #34C759 0%, #248A3D 100%);
  border-radius: 12px 12px 4px 12px;
  bottom: 2px;
  right: 4px;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.4);
  animation: chatPulse 2s ease-in-out infinite 0.3s;
}

@keyframes chatPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* 对话点动画效果 */
.flow-icon:hover::before {
  animation: chatBounce 0.6s ease-in-out;
}

.flow-icon:hover::after {
  animation: chatBounce 0.6s ease-in-out 0.1s;
}

@keyframes chatBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.05); }
}

/* Buzz社交动态图标 - 能量的扩散 */
.moment-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

/* 虚线圆环 */
.moment-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border: 1px dotted rgba(147, 112, 219, 0.6);
  border-radius: 50%;
  box-shadow: 
    0 0 0 6px transparent,
    0 0 0 7px rgba(147, 112, 219, 0.4),
    0 0 0 12px transparent,
    0 0 0 13px rgba(147, 112, 219, 0.3);
}

/* 约定图标 - 时间的标记 */
.appointment-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

/* 圆环 */
.appointment-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

/* 对勾 */
.appointment-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 7px;
  width: 3px;
  height: 6px;
  border-right: 2px solid #ff6b6b;
  border-bottom: 2px solid #ff6b6b;
  transform: rotate(45deg);
}

/* Echo日记图标 - 文字记录本 */
.echo-icon {
  width: 20px;
  height: 24px;
  position: relative;
}

/* 日记本封面 */
.echo-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 24px;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 文字线条 */
.echo-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 4px;
  width: 12px;
  height: 1px;
  background: #666;
  box-shadow: 
    0 3px 0 #666,
    0 6px 0 #666,
    0 9px 0 #999;
}

/* 以太岛图标 - 使用island SVG */
.aether-icon {
  width: 36px;
  height: 36px;
  position: relative;
  background-image: url('pages/aetherlisle/assets/illustrations/island.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 悬停效果 */
.aether-icon:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Dock Icons */
.phone-icon {
  width: 20px;
  height: 20px;
  background: #333;
  border-radius: 4px;
  position: relative;
}

.phone-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border: 1px solid #333;
  border-radius: 2px;
}

.message-icon {
  width: 24px;
  height: 18px;
  background: #333;
  border-radius: 8px;
  position: relative;
}

.message-icon::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #333;
}

.watch-icon {
  width: 18px;
  height: 18px;
  border: 2px solid #333;
  border-radius: 50%;
  position: relative;
}

.watch-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 6px;
  background: #333;
  transform-origin: bottom;
}

.watch-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 1px;
  height: 4px;
  background: #333;
  transform-origin: bottom;
}

.camera-icon {
  width: 22px;
  height: 16px;
  background: #333;
  border-radius: 4px;
  position: relative;
}

.camera-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
}

.camera-icon::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 6px;
  width: 4px;
  height: 2px;
  background: #333;
  border-radius: 1px;
}

.app-label {
  font-size: 12px;
  color: #000;
  text-align: center;
  font-weight: 500;
  max-width: 70px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Dock Bar */
.dock-bar {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  padding: 12px 24px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.dock-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dock-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dock-icon:active {
  transform: translateY(-2px);
}

/* Page Indicator */
.page-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.indicator-dot.active {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-height: 700px) {
  .widget-area {
    padding: 16px;
  }

  .date-widget {
    padding: 16px 20px;
    margin-bottom: 12px;
  }

  .music-widget {
    padding: 12px 16px;
  }

  .app-grid {
    gap: 20px 16px;
    padding: 16px 24px;
  }

  .app-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
}

@media (max-width: 375px) {
  .status-bar {
    padding: 8px 16px;
  }

  .widget-area {
    padding: 16px;
  }

  .app-grid {
    padding: 16px 20px;
    gap: 18px 12px;
  }

  .dock-bar {
    gap: 16px;
    padding: 10px 20px;
  }

  .dock-icon {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

