/* 手机主页样式 */
.phone-screen {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  margin: 0 auto;
  background: linear-gradient(135deg, #f2ede8 0%, #e8dfd5 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* 状态栏 */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background: rgba(251, 248, 245, 0.3);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--ink);
}

.time {
  font-weight: 500;
}

.status-icons {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

/* 应用网格 */
.app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 24px 20px;
  overflow-y: auto;
  align-content: start;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.app-icon-img {
  width: 64px;
  height: 64px;
  background: rgba(251, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(92, 84, 80, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.app-icon:hover .app-icon-img {
  box-shadow: 0 8px 24px rgba(92, 84, 80, 0.25);
  transform: translateY(-2px);
}

.app-name {
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
}

/* 占位应用（暂未开发） */
.app-placeholder {
  opacity: 0.5;
  cursor: not-allowed;
}

.app-placeholder:active {
  transform: none;
}

.app-placeholder .app-icon-img {
  background: rgba(251, 248, 245, 0.5);
}

/* 底部 Dock */
.dock {
  background: rgba(251, 248, 245, 0.7);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding: 16px 24px 20px;
  display: flex;
  justify-content: space-around;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(92, 84, 80, 0.1);
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.dock-icon-img {
  width: 56px;
  height: 56px;
  background: rgba(251, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(92, 84, 80, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dock-icon:hover .dock-icon-img {
  box-shadow: 0 6px 20px rgba(92, 84, 80, 0.3);
  transform: translateY(-2px);
}

/* 应用容器（全屏应用） */
.app-container {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* 返回按钮 */
.back-btn {
  font-size: 24px !important;
  font-weight: bold;
}

/* 应用内容区域 */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* 页面切换动画 */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.app-container[data-opening="true"] {
  animation: slideInRight 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.app-container[data-closing="true"] {
  animation: slideOutRight 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
