
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body {
    width: 100%;
    /* 禁止横向滑动 */
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }
  body {
    min-height: 100vh;
    /* iOS Safari 下用 dvh 才能真正占满可视高度 */
    min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    background: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    padding: 16px;
    /* 禁横滑 */
    touch-action: pan-y;
  }
  .card {
    background: #fff; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    padding: 40px 36px;
    width: 100%;
    max-width: 360px;
  }
  h2 { text-align: center; margin-bottom: 28px; color: #222; font-size: 20px; }
  label { font-size: 13px; color: #555; display: block; margin-bottom: 6px; }
  input[type="password"] {
    width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 6px;
    /* 关键：font-size >= 16px 时 iOS 不会自动放大 */
    font-size: 16px; outline: none; transition: border 0.2s;
    -webkit-appearance: none;
  }
  input[type="password"]:focus { border-color: #007bff; }
  button {
    width: 100%; padding: 13px; margin-top: 20px; background: #007bff; color: #fff;
    border: none; border-radius: 6px;
    font-size: 16px;
    cursor: pointer; transition: background 0.2s;
    -webkit-appearance: none;
    /* 禁双击放大 */
    touch-action: manipulation;
  }
  button:hover { background: #0069d9; }
  button:disabled { background: #6ea8e6; cursor: not-allowed; }
  .err { color: #dc3545; font-size: 13px; margin-top: 12px; text-align: center; min-height: 20px; }

  /* 移动端：卡片更大、字更大、留白合理 */
  @media (max-width: 480px) {
    .card { padding: 32px 24px; border-radius: 14px; }
    h2 { font-size: 22px; margin-bottom: 24px; }
    input[type="password"] { font-size: 17px; padding: 14px; }
    button { font-size: 17px; padding: 14px; }
  }
