* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

body {
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #fff;
}

.phone {
  width: 375px;
  height: 812px;
  background: #000;
  border-radius: 44px;
  border: 8px solid #222;
  overflow: hidden;
  position: relative;
}

.status-bar {
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  font-size: 14px;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-icon {
  font-size: 13px;
}

.battery {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bat-icon {
  width: 24px;
  height: 11px;
  border: 1px solid #fff;
  border-radius: 3px;
  position: relative;
  padding: 1px;
}

.bat-icon::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: #fff;
  border-radius: 1px;
}

.bat-fill {
  width: 100%;
  height: 100%;
  background: #fff;
}

.bat-percent {
  font-size: 12px;
}

.screen {
  width: 100%;
  height: calc(100% - 44px);
  overflow: hidden;
  position: relative;
}

/* ========== 锁屏 ========== */
.lock {
  background: #000;
  height: 100%;
  position: relative;
  text-align: center;
}

.lock-top {
  padding-top: 60px;
}

.lock-time {
  font-size: 72px;
  font-weight: 200;
  margin-bottom: 8px;
}

.lock-date {
  font-size: 20px;
  margin-bottom: 40px;
}

.lock-toolbar {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  pointer-events: none;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  pointer-events: auto;
}

.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: #fff;
  border-radius: 3px;
  z-index: 20;
}

.swipe-tip {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: #ccc;
}

.keyboard-wrap {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #000;
  padding-bottom: 30px;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  z-index: 10;
}

.keyboard-wrap.show {
  transform: translateY(0);
}

.pwd-dot-wrap {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 30px;
}

.pwd-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.pwd-dot.filled {
  background: #fff;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 14px;
  justify-content: center;
}

.key {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.key-zero {
  grid-column: 2;
}

.key-del {
  background: transparent;
  font-size: 20px;
}

/* ========== 桌面 ========== */
.home {
  background: #1a1a1a;
  height: 100%;
  padding: 20px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 10px;
  margin-top: 20px;
}

.app-item {
  text-align: center;
  cursor: pointer;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}

.icon-cal { background: #ff3b30; }
.icon-note { background: #ffcc00; color: #000; }
.icon-line { background: #00c300; }
.icon-photo { background: #ff2d55; }
.icon-yt { background: #ff0000; }
.icon-weather { background: linear-gradient(135deg, #4facfe, #00c6ff); }
.icon-clock { background: #000; }
.icon-world { background: #000; }
.icon-settings { background: #8e8e93; }

.app-name {
  font-size: 12px;
}

/* ========== APP页面通用 ========== */
.app-page {
  background: #fff;
  color: #000;
  height: 100%;
  overflow: auto;
}

.app-header {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #eee;
  background: #f7f7f7;
}

.back {
  color: #007aff;
  cursor: pointer;
}

.content {
  padding: 16px;
}

/* ========== LINE页面 ========== */
.line-header {
  background: #00c300;
  color: #fff;
}

.line-header .back {
  color: #fff;
}

.chat-list {
  background: #fff;
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ddd;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chat-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.chat-msg {
  font-size: 13px;
  color: #666;
}

.pin-tag {
  background: #00c300;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

/* ========== 天气页面 ========== */
.weather-card {
  background: linear-gradient(160deg, #4facfe, #00c6ff);
  color: #fff;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
}

.weather-city {
  font-size: 22px;
  font-weight: bold;
}

.weather-temp {
  font-size: 48px;
  font-weight: 200;
}

.weather-desc {
  margin-top: 6px;
}

/* ========== 时钟页面 ========== */
.clock-app {
  background: #000;
  color: #fff;
}

.clock-app .app-header {
  background: #111;
  border-bottom: 1px solid #333;
}

.clock-app .back {
  color: #007aff;
}

.big-clock {
  text-align: center;
  padding: 40px 0;
}

.big-clock .time {
  font-size: 64px;
  font-weight: 200;
}

.big-clock .date {
  font-size: 18px;
  color: #aaa;
  margin-top: 8px;
}

.alarm-list {
  padding: 16px;
}

.alarm-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #333;
}

.alarm-time {
  font-size: 32px;
  font-weight: 200;
}

.switch {
  width: 50px;
  height: 30px;
  background: #333;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}

.switch.on {
  background: #34c759;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch.on::after {
  left: 22px;
}

.add-alarm {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.add-alarm input {
  flex: 1;
  background: #222;
  border: 1px solid #444;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
}

.add-alarm button {
  background: #ff9500;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

/* ========== 世界时间 ========== */
.world-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.world-city {
  font-size: 16px;
}

.world-time {
  font-size: 22px;
  font-weight: 200;
}

/* ========== 设置页面 ========== */
.settings-content {
  padding: 10px 0;
}

.setting-group {
  background: #fff;
  margin-bottom: 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-label {
  color: #333;
}

.setting-value {
  color: #888;
  font-size: 14px;
}

.lang-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.check {
  color: #007aff;
  font-weight: bold;
}

/* ========== 清档按钮 ========== */
.clear-data-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  z-index: 30;
}

.clear-data-btn {
  width: 100%;
  padding: 12px;
  background: #ff3b30;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

/* ========== 日历新增样式 ========== */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
}

.cal-daygrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.cal-day.active {
  background: #007aff;
  color: #fff;
}

.memo-box {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

#memoInput {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  min-height: 60px;
}

.save-btn {
  margin-top: 8px;
  background: #007aff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

/* ========== 合并时钟应用：iPhone同款 ========== */
.clock-app {
  background: #000;
  color: #fff;
}

.clock-app .app-header {
  background: #000;
  border-bottom: none;
}

.clock-app .back {
  color: #ff9500;
}

.clock-tabs {
  display: flex;
  justify-content: space-around;
  padding: 8px 0 14px;
  border-bottom: 1px solid #222;
}

.clock-tab {
  font-size: 14px;
  color: #888;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.clock-tab.active {
  color: #ff9500;
  font-weight: bold;
}

.clock-panel {
  display: none;
  padding: 16px;
}

.clock-panel.active {
  display: block;
}

/* 世界时间 */
.world-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #222;
}

.world-city {
  font-size: 15px;
}

.world-time {
  font-size: 24px;
  font-weight: 200;
}

/* 闹钟 */
.big-clock {
  text-align: center;
  padding: 30px 0 20px;
}

.big-clock .time {
  font-size: 64px;
  font-weight: 200;
}

.big-clock .date {
  font-size: 16px;
  color: #aaa;
  margin-top: 6px;
}

.alarm-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #222;
}

.alarm-time {
  font-size: 32px;
  font-weight: 200;
}

.add-alarm {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.add-alarm input {
  flex: 1;
  background: #222;
  border: 1px solid #444;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
}

.add-alarm button {
  background: #ff9500;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: bold;
}

/* 秒表 */
.stopwatch-display {
  text-align: center;
  font-size: 72px;
  font-weight: 200;
  padding: 40px 0 30px;
  font-variant-numeric: tabular-nums;
}

.stopwatch-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.sw-btn {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
}

.sw-start {
  background: #133217;
  color: #34c759;
}

.sw-stop {
  background: #321313;
  color: #ff3b30;
}

.sw-reset {
  background: #222;
  color: #fff;
}

/* 计时器 */
.timer-display {
  text-align: center;
  font-size: 72px;
  font-weight: 200;
  padding: 40px 0 30px;
  font-variant-numeric: tabular-nums;
}

.timer-picker {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.timer-picker input {
  width: 80px;
  background: #222;
  border: 1px solid #444;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 20px;
}

.timer-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* 设置页底部清档 */
.clear-item {
  color: #ff3b30;
  justify-content: center;
  font-weight: bold;
}

/* ===== 锁屏密码页样式 ===== */
.lock-bottom-tools{
  position:absolute;
  left:0;right:0;bottom:40px;
  display:flex;
  justify-content:space-between;
  padding:0 40px;
}
.lock-bottom-tools .tool-icon{
  width:54px;height:54px;
  background:rgba(255,255,255,0.22);
  border-radius:50%;
  display:grid;place-items:center;
  font-size:24px;
}
.keyboard-wrap.show{
  background:rgba(0,0,0,0.72);
  inset:0;
  position:absolute;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.pwd-title{
  color:#fff;font-size:22px;margin-bottom:24px;
}
.phone-keypad{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  width:280px;
  margin:24px 0;
}
.phone-keypad .key{
  width:80px;height:80px;
  border-radius:50%;
  background:rgba(255,255,255,0.2);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-size:30px;
}
.phone-keypad .key-sub{
  font-size:11px;margin-top:3px;
}
.phone-keypad .key-zero{
  grid-column: 1 / -1;
  width:100%;
  border-radius:40px;
}
.pwd-footer{
  width:320px;
  display:flex;
  justify-content:space-between;
  margin-top:20px;
  color:#fff;
  font-size:17px;
}
/* ===== 电话App样式 ===== */
.phone-app .phone-tabs{
  display:flex;
  border-bottom:1px solid #222;
}
.phone-tab{
  flex:1;text-align:center;padding:10px;color:#888;
}
.phone-tab.active{color:#ff9500;font-weight:bold;}
.phone-panel{display:none;padding:16px;}
.phone-panel.active{display:block;}
.dial-display{
  text-align:center;font-size:40px;color:#fff;padding:20px 0;
}
.phone-app .phone-keypad{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:12px;
  max-width:260px;margin:0 auto;
}
.phone-app .phone-keypad .key{
  width:72px;height:72px;
  border-radius:50%;
  background:#222;color:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-size:26px;
}
.phone-app .key-zero{
  grid-column: 1 / -1;
  width:100%;
  border-radius:36px;
}
.call-btn{
  width:72px;height:72px;
  border-radius:50%;
  background:#34c759;color:#fff;
  display:grid;place-items:center;
  font-size:28px;
  margin:20px auto 0;
}
.contact-item{
  color:#fff;padding:14px 0;border-bottom:1px solid #222;
}
/* ========== 全局：删除所有页面底部home指示短横 ========== */
.swipe-tip,.home-indicator,.bottom-bar{
  display:none !important;
}

