/* ============================================================
 * 全局 UI 优化层
 * 1) 真机移动端全屏适配（去掉演示用手机边框）
 * 2) 统一交互反馈与字体渲染
 * 3) 桌面端保留 375px 预览框
 * ============================================================ */

:root {
  --brand: #2B5FAB;
  --brand-light: #4A90D9;
  --accent: #F0C75E;
  --page-bg: #F0F4F8;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  overscroll-behavior-y: none;
}

/* 点击高亮与按压反馈 */
a, button, [onclick] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a:active, button:active {
  opacity: 0.82;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

::selection {
  background: rgba(43, 95, 171, 0.18);
}

/* 输入框聚焦风格统一 */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(43, 95, 171, 0.12);
}

/* 真机移动端（≤480px）：全屏展示，移除演示边框与假 Home 指示条 */
@media (max-width: 480px) {
  body {
    background: var(--page-bg) !important;
  }
  .phone-container,
  .phone {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .page {
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }
  .home-indicator {
    display: none !important;
  }
}
