/* ═══════════ 右侧平台预览组件（精修版） ═══════════ */
.pv-filter { padding: 12px 14px 4px; }
.pv-card { border-bottom: 1px solid var(--line); }
.pv-card:last-child { border-bottom: none; }
.pv-card summary {
  list-style: none; cursor: pointer; padding: 11px 16px;
  font-weight: 700; font-size: 12.5px; letter-spacing: .1px;
  display: flex; align-items: center; justify-content: space-between; user-select: none;
  transition: background .15s;
}
.pv-card summary:hover { background: var(--panel2); }
.pv-card summary::-webkit-details-marker { display: none; }
.pv-card summary::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1.8px solid var(--faint); border-bottom: 1.8px solid var(--faint);
  transform: rotate(45deg) translateY(-2px); transition: transform .18s;
}
.pv-card[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.pv-card[hidden] { display: none; }
.pv-row { display: flex; gap: 14px; padding: 4px 16px 16px; flex-wrap: wrap; align-items: flex-start; }
.pv-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pv-item > span { font-size: 10px; color: var(--faint); text-align: center; max-width: 110px; line-height: 1.4; }
.pv-item.wide { width: 100%; }
.pv-item.wide canvas { width: 100%; max-width: 280px; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--sh-sm); }

.pvc { width: 74px; height: 74px; border-radius: 14px; box-shadow: var(--sh-sm); }
.pvc.circle { border-radius: 50%; }
.pvc.win { border-radius: 4px; }

#androidShapes .pv-item canvas { width: 60px; height: 60px; box-shadow: var(--sh-sm); }

/* iOS 超椭圆近似 */
.ios-shape { border-radius: 22.5%; }
.ios-shape.sm { width: 58px; height: 58px; }

/* iOS 主屏幕模拟 */
.ios-home {
  background: linear-gradient(160deg, #2e3450, #11131d); border-radius: 14px;
  padding: 12px 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: 1px solid rgba(255, 255, 255, .07);
}
.ios-home em { font-style: normal; font-size: 9.5px; color: #fff; font-weight: 500; }

/* Android 13 主题图标 */
.themed-wrap {
  width: 74px; height: 74px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-sm);
}
.themed-wrap canvas { width: 100%; height: 100%; }

/* 通知栏模拟 */
.notif {
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 12px; display: flex; align-items: center; gap: 10px; width: 148px;
}
.notif canvas { width: 24px; height: 24px; }
.notif-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.notif-lines b { height: 6px; border-radius: 3px; background: var(--line2); display: block; }
.notif-lines b.short { width: 60%; }

/* 浏览器标签页 */
.browser-tab {
  background: var(--panel2); border: 1px solid var(--line); border-bottom: none;
  border-radius: 9px 9px 0 0; padding: 7px 12px; display: flex; align-items: center; gap: 8px;
  width: 158px;
}
.browser-tab canvas { width: 16px; height: 16px; }
.browser-tab em { font-style: normal; font-size: 10.5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.browser-tab i { font-style: normal; color: var(--faint); font-size: 12px; }

/* macOS Dock */
.macos-dock {
  background: linear-gradient(rgba(160, 165, 195, .28), rgba(120, 125, 160, .22));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 17px; padding: 8px;
  box-shadow: var(--sh-sm);
}
.macos-dock canvas { width: 60px; height: 60px; display: block; }

/* 商店卡片 */
.store-card {
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px; display: flex; gap: 10px; align-items: center; width: 168px;
}
.store-card canvas { width: 42px; height: 42px; border-radius: 10px; }
.store-meta { flex: 1; min-width: 0; }
.store-meta b { font-size: 11.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-meta small { font-size: 9px; color: #e8a33d; display: block; margin: 2px 0 5px; }
.store-meta button {
  border: none; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700;
  border-radius: 99px; padding: 3px 12px; cursor: pointer; letter-spacing: .3px;
}
