/* 手機區：瀑布式排列 */
.phones-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  grid-auto-rows: 360px;
  gap: 32px 80px;
}

/* 瀑布式位置：阿金上 / 米果中右 / 滾滾下左 */
.phone-ajin {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.phone-migou {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.phone-gungun {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.phone {
  position: relative;
  perspective: 1200px;
}

/* 外框 */
.phone-frame {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: brightness(0.86);
}

/* 螢幕 */
.phone-screen {
  position: relative;
  width: 74%;
  height: 78%;
  background-size: cover;
  background-position: center;
  border-radius: 22px;
  overflow: hidden;
  transform: translateZ(3px);
}

/* 狀態列 */
.phone-status {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.phone-name {
  position: absolute;
  top: 26px;
  left: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,245,255,0.98);
  text-shadow: 0 0 9px rgba(0,0,0,0.5);
}

.phone-traits {
  position: absolute;
  top: 52px;
  left: 12px;
  font-size: 0.8rem;
  color: rgba(255,235,255,0.92);
}

/* Widgets，不要黑框，做成透明便利貼 */

.phone-widgets {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.7rem;
}

/* 共用便利貼基底 */
.widget {
  border-radius: 10px;
  padding: 4px 6px;
  background: rgba(8,10,25,0.22);
  backdrop-filter: blur(8px);
  color: rgba(255,245,255,0.96);
  border: 1px solid rgba(255,255,255,0.08);
}

/* label 小小的 */
.widget-label {
  font-size: 0.63rem;
  opacity: 0.8;
}

/* 文字較亮 */
.widget-text {
  font-size: 0.7rem;
}

/* ===== 各鳥專屬風格 ===== */

/* AJIN：偏黃金、覺醒感 */
.phone-ajin .widget {
  background: radial-gradient(circle at top left,
    rgba(255,230,180,0.32),
    rgba(8,10,25,0.18));
  border-color: rgba(255,240,200,0.4);
}
.phone-ajin .phone-name {
  letter-spacing: 0.22em;
}
.phone-ajin .battery.ajin-battery {
  color: #ffe66b;
  text-shadow: 0 0 8px rgba(255,240,150,0.8);
}

/* MIGOU：粉金、精品、自我價值 */
.phone-migou .widget-favorite {
  background: rgba(255,220,240,0.26);
  border-color: rgba(255,200,230,0.5);
  color: rgba(80,20,40,0.92);
  transform: rotate(-1.5deg);
}
.phone-migou .widget-challenge {
  background: rgba(254,233,210,0.26);
  border-color: rgba(250,215,190,0.5);
  color: rgba(70,45,20,0.95);
  transform: rotate(1deg);
}
.phone-migou .phone-name {
  font-family: 'Inter', serif;
  letter-spacing: 0.16em;
}
.phone-migou .battery.migou-battery {
  color: #ffc6ea;
  text-shadow: 0 0 8px rgba(255,210,240,0.9);
}

/* GUNGUN：療癒、餅乾、紙質感 */
.phone-gungun .widget-mission,
.phone-gungun .widget-memo {
  background: rgba(235,245,255,0.28);
  border-color: rgba(190,215,240,0.6);
  color: rgba(15,25,45,0.96);
}
.phone-gungun .widget-memo {
  font-size: 0.68rem;
}
.phone-gungun .battery.gungun-battery {
  color: #ffda9b;
  text-shadow: 0 0 8px rgba(255,210,150,0.9);
}
.phone-gungun .phone-name {
  font-family: 'Noto Sans TC', sans-serif;
  letter-spacing: 0.08em;
}

/* 手機整體 hover 保留 2.5D + OS 亮起 */
.phone:hover .phone-frame {
  filter: brightness(1);
  transform: rotateX(6deg) rotateY(-6deg) translateY(-6px);
}

/* hover：2.5D 偽 3D + OS 亮起 */
.phone:hover .phone-frame {
  filter: brightness(1);
  transform: rotateX(6deg) rotateY(-6deg) translateY(-6px);
}

.phone:hover .phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,240,255,0.3), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.phone:hover .phone-orbit-feather {
  animation: feather-ping 4s ease-in-out infinite;
  opacity: 0.95;
}

@keyframes feather-ping {
  0% { transform: translateX(0); }
  50% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

/* 各手機不同字體 / 氣氛可在這裡細調 */
.phone-ajin .phone-name {
  letter-spacing: 0.2em;
}
.phone-migou .phone-name {
  font-family: 'Inter', serif;
}
.phone-gungun .phone-name {
  font-family: 'Noto Sans TC', sans-serif;
}

/* 略簡化 RWD：手機卡片在小螢幕改直向排列 */
@media (max-width: 900px) {
  .phones-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 360px;
    gap: 24px;
  }
}