/* ============================================================
   梦灵山·灵盾 · 响应式样式（平板 / 手机）
   ============================================================ */

@media (max-width: 1430px) {
  .shield-site .wrap {
    width: 90%;
  }

  /* 两列收窄（登录页 main-narrow 同样收窄） */
  .shield-site .main,
  .shield-site .main-narrow {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px 5vw;
  }

  .shield-site .pixel-title {
    max-width: 560px;
  }

  .shield-site .intro {
    font-size: 13px;
  }

  .shield-site .window-body {
    padding-inline: 27px;
  }

  .shield-site .profile-head,
  .shield-site .profile-sections {
    padding-inline: 27px;
  }

  .shield-site .profile-foot {
    padding-inline: 27px;
  }

  .shield-site .perk {
    gap: 10px;
  }

  .shield-site .perk-title {
    font-size: 11px;
  }

  .shield-site .perk small {
    font-size: 9px;
  }
}

@media (min-width: 781px) and (max-width: 1050px) {
  /* 平板：改为单列堆叠，避免两列都被挤窄 */
  .shield-site .main {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .shield-site .main-narrow {
    grid-template-columns: minmax(0, 460px);
    justify-content: center;
  }

  .shield-site .hero {
    padding-top: 20px;
  }

  .shield-site .query-col {
    max-width: 560px;
  }

  .shield-site .pixel-title {
    max-width: 460px;
  }

  .shield-site .intro {
    font-size: 12px;
  }

  .shield-site .query-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .shield-site .window-body {
    padding-inline: 23px;
  }

  .shield-site .profile-head,
  .shield-site .profile-sections {
    padding-inline: 23px;
  }

  .shield-site .profile-foot {
    padding-inline: 23px;
  }

  /* 分栏保持两列，但每栏内字段改为单列，避免日期折行 */
  .shield-site .profile-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shield-site .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shield-site .profile-side {
    max-width: 260px;
  }

  .shield-site .card-title {
    font-size: 23px;
  }

  .shield-site .greeting-badge {
    flex-shrink: 0;
    width: 44px;
    height: 42px;
  }

  .shield-site .greeting-badge .seal-mark {
    width: 27px;
    height: 27px;
  }
}

/* ---------------- 手机 ---------------- */

@media (max-width: 780px) {
  .shield-site .wrap {
    width: calc(100% - 44px);
  }

  /* 手机端顶栏改两行：品牌一行、导航一行，三个入口都保留 */
  .shield-site .topbar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    height: auto;
    padding: 14px 0 12px;
  }

  .shield-site .brand-seal {
    width: 41px;
    height: 41px;
  }

  .shield-site .brand-seal .seal-mark {
    width: 52px;
    height: 52px;
  }

  .shield-site .brand-name {
    font-size: 23px;
    letter-spacing: 2px;
  }

  .shield-site .brand-desc {
    margin-top: 3px;
    font-size: 8px;
  }

  /* 导航占满一行，左对齐排布 */
  .shield-site .nav {
    width: 100%;
    gap: 20px;
  }

  .shield-site .nav a {
    padding: 6px 0;
    font-size: 12px;
  }

  .shield-site .nav a.nav-feature {
    padding: 6px 10px;
    font-size: 11px;
  }

  .shield-site .nav .nav-feature .icon {
    width: 14px;
    height: 14px;
  }

  .shield-site .main,
  .shield-site .main-narrow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-block: 28px 32px;
  }

  .shield-site .hero {
    width: 100%;
    padding-top: 0;
  }

  .shield-site .hero-note {
    gap: 6px;
    margin-bottom: 12px;
    font-size: 10px;
  }

  .shield-site .hero-note .icon {
    width: 14px;
    height: 14px;
  }

  .shield-site h1 {
    margin-bottom: 14px;
  }

  .shield-site .intro {
    margin-bottom: 16px;
    font-size: 11px;
    line-height: 1.9;
  }

  /* 手机端查询条件单列 */
  .shield-site .query-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .shield-site .query-form {
    gap: 20px;
  }

  .shield-site .query-col {
    width: 100%;
  }

  .shield-site {
    --win-shadow: 5px;
  }

  .shield-site .window-bar {
    padding: 10px 17px;
    font-size: 10px;
  }

  .shield-site .window-body {
    padding: 22px 18px;
  }

  /* 档案头部改为换行布局：头像 + 号码一行，副号与违规提示换到下一行 */
  .shield-site .profile-head {
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 18px;
  }

  .shield-site .profile-avatar {
    width: 52px;
    height: 52px;
  }

  .shield-site .profile-avatar img {
    width: 46px;
    height: 46px;
  }

  .shield-site .profile-main {
    flex-basis: calc(100% - 66px);
    gap: 8px;
  }

  .shield-site .profile-qq {
    font-size: 20px;
  }

  .shield-site .profile-score .score-value {
    font-size: 18px;
  }

  .shield-site .profile-side {
    flex-basis: 100%;
    max-width: none;
    text-align: left;
  }

  .shield-site .profile-blacklist {
    justify-self: start;
  }

  /* 档案分栏单列 */
  .shield-site .profile-sections {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px 18px 4px;
  }

  .shield-site .profile-section {
    padding: 14px 14px 16px;
  }

  .shield-site .section-title {
    margin-bottom: 14px;
    font-size: 12px;
  }

  /* 手机端字段单列，长日期不折行 */
  .shield-site .info-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .shield-site .radar-svg {
    max-width: 200px;
  }

  .shield-site .profile-foot {
    padding: 12px 18px 18px;
    font-size: 10px;
  }

  .shield-site .query-actions {
    flex-direction: column;
    gap: 10px;
  }

  .shield-site .ghost-btn {
    height: 44px;
    padding-inline: 0;
  }

  /* 移动端输入框 16px，避免 iOS 自动放大 */
  .shield-site .input-wrap input,
  .shield-site .input-wrap select {
    font-size: 16px;
  }

  /* 特性区改为单列，避免窄屏挤压 */
  .shield-site .perks {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-top: 20px;
  }

  .shield-site .perk {
    gap: 10px;
  }

  .shield-site .perk-icon {
    width: 30px;
    height: 31px;
  }

  .shield-site .perk-icon .icon {
    width: 18px;
    height: 18px;
  }

  .shield-site .perk-title {
    font-size: 11px;
  }

  .shield-site .perk small {
    font-size: 9px;
    line-height: 1.5;
  }

  .shield-site .login-col {
    width: 100%;
  }

  .shield-site .greeting {
    margin-bottom: 21px;
  }

  .shield-site .card-title {
    font-size: 24px;
  }

  .shield-site .card-desc {
    font-size: 11px;
  }

  .shield-site .greeting-badge {
    width: 44px;
    height: 43px;
  }

  .shield-site .greeting-badge .seal-mark {
    width: 27px;
    height: 27px;
  }

  .shield-site .login-note {
    margin-top: 18px;
    font-size: 10px;
  }

  .shield-site .footer {
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 0;
    font-size: 9px;
  }

  .shield-site .footer-left,
  .shield-site .footer-right {
    gap: 11px;
  }

  /* 左侧为竖排（品牌行 + 备案信息），保持紧凑行距 */
  .shield-site .footer-left {
    gap: 3px;
  }

  .shield-site .footer-brand-row {
    gap: 11px;
  }

  .shield-site .footer-icp a {
    font-size: 9px;
  }

  .shield-site .footer-right a {
    font-size: 9px;
  }

  .shield-site .toast {
    right: 22px;
    bottom: 20px;
    left: 22px;
    max-width: none;
    padding: 13px 16px;
    font-size: 12px;
    text-align: center;
    transform: none;
  }
}

@media (max-width: 420px) {
  .shield-site .brand-name {
    font-size: 20px;
  }

  .shield-site .brand-desc {
    font-size: 7px;
  }

  .shield-site .window-body {
    padding: 20px 15px;
  }

  .shield-site .profile-head {
    padding: 18px 15px;
  }

  .shield-site .profile-sections {
    padding: 16px 15px 4px;
  }

  /* 批量结果：收紧内边距与条目间距 */
  .shield-site .batch-body {
    padding: 14px 15px 4px;
  }

  .shield-site .batch-item {
    gap: 8px 10px;
    padding: 10px 0;
  }

  .shield-site .profile-foot {
    padding: 12px 15px 16px;
  }

  .shield-site .profile-qq {
    font-size: 18px;
  }

  .shield-site .card-title {
    font-size: 20px;
  }

  .shield-site .greeting-badge {
    width: 40px;
    height: 40px;
  }

  .shield-site .greeting-badge .seal-mark {
    width: 24px;
    height: 24px;
  }

  .shield-site .tab {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shield-site * {
    transition: none !important;
    animation: none !important;
  }
}
