:root { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #292629; background: #eeedeb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.preview-header { height: 52px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-header div { display: flex; align-items: center; gap: 14px; }
.preview-header strong { font-size: 19px; letter-spacing: -.5px; }
.preview-header div > span { font-size: 14px; color: #615a5f; border-left: 1px solid #ccc6c8; padding-left: 14px; }
.preview-header a { color: #514a50; font-size: 14px; text-decoration: none; padding: 10px 0 10px 14px; }
.preview-header a:hover { color: #b81b30; }
main { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 0 24px; }
iframe { width: min(1120px, 100%); height: calc(100dvh - 68px); min-height: 480px; border: 1px solid #d7d0d2; border-radius: 12px; background: #fff; overflow: hidden; }
.preview-note { font-size: 13px; color: #625b61; text-align: center; margin: 10px 16px 14px; }
@media (max-width: 800px) {
  main { padding: 0; }
  .preview-header, .preview-note { display: none; }
  iframe { width: 100%; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
}

@media (min-width: 450px) {
  body[data-phone-preview] {
    height: 100dvh;
    background: #e9e4e0;
  }
  [data-phone-preview] .preview-header {
    display: flex;
    flex: 0 0 54px;
    width: 392px;
    margin-inline: auto;
    padding: 0 2px;
  }
  [data-phone-preview] .preview-header div { width: 100%; justify-content: space-between; }
  [data-phone-preview] .preview-header strong { font-size: 15px; color: #34282b; letter-spacing: 0; }
  [data-phone-preview] .preview-header div > span { border: 0; padding: 0; font-size: 13px; }
  [data-phone-preview] .preview-header a { display: none; }
  [data-phone-preview] main { padding: 0 12px 16px; }
  [data-phone-preview] iframe {
    box-sizing: content-box;
    display: block;
    width: 390px;
    height: min(844px, calc(100dvh - 72px));
    min-height: 0;
    border: 1px solid #c4b9b5;
    border-radius: 18px;
    box-shadow: 0 14px 38px #36252120;
  }
}
