/* 成绩查询系统 - 移动端优先样式，兼容微信内置浏览器 */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  color: #1f2937;
  background: #f2f5fb;
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom);
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}

/* 顶部 */
.app-header {
  background: linear-gradient(135deg, #2f6bff, #5b9bff);
  color: #fff;
  padding: 22px 16px calc(20px + env(safe-area-inset-top));
  text-align: center;
}

.app-header h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1px;
}

.app-header p {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  margin-top: 14px;
  box-shadow: 0 4px 16px rgba(31, 41, 55, 0.07);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #111827;
  display: flex;
  align-items: center;
}

.card-title .dot {
  width: 4px;
  height: 15px;
  background: #2f6bff;
  border-radius: 2px;
  margin-right: 8px;
  display: inline-block;
}

/* 表单 */
.field {
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 6px;
}

.field .req {
  color: #ef4444;
  margin-left: 2px;
}

input[type='text'],
input[type='password'],
select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 16px; /* 防止 iOS 聚焦缩放 */
  color: #1f2937;
  border: 1px solid #d7dce5;
  border-radius: 10px;
  background: #fff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%239aa3b2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 32px;
}

input:focus,
select:focus {
  border-color: #2f6bff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.btn {
  display: block;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f6bff, #5b9bff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn:active {
  opacity: 0.85;
}

.btn[disabled] {
  background: #b9c3d4;
  cursor: not-allowed;
}

.btn-ghost {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #d7dce5;
  background: #fff;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
}

.btn-mini {
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #d7dce5;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.btn-mini.danger {
  color: #dc2626;
  border-color: #f5b5b5;
}

/* 提示 */
.tip {
  font-size: 13px;
  color: #6b7280;
  margin-top: 10px;
}

.notice {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

.notice.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.notice.info {
  display: block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.empty {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  padding: 26px 0;
}

/* 成绩表格：PC 表格 / 手机卡片 */
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.result-table th,
.result-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  word-break: break-all;
}

.result-table thead th {
  background: #f3f6ff;
  color: #374151;
  font-weight: 600;
}

.result-table tbody tr:nth-child(even) td {
  background: #fafbfe;
}

@media (max-width: 640px) {
  .result-table thead {
    display: none;
  }

  .result-table,
  .result-table tbody,
  .result-table tr,
  .result-table td {
    display: block;
    width: 100%;
  }

  .result-table tr {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
  }

  .result-table td {
    border: none;
    border-bottom: 1px dashed #eef0f4;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 14px;
  }

  .result-table tr td:last-child {
    border-bottom: none;
  }

  .result-table td::before {
    content: attr(data-label);
    color: #6b7280;
    font-size: 14px;
    margin-right: 12px;
    flex: 0 0 auto;
  }

  .result-table td span {
    text-align: right;
    font-weight: 600;
    color: #111827;
  }
}

/* 管理端 */
.admin-wrap {
  max-width: 1080px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.topbar .brand {
  font-size: 17px;
  font-weight: 600;
}

.topbar .brand small {
  display: block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

.topbar .actions a {
  margin-left: 10px;
  font-size: 14px;
  color: #2f6bff;
  text-decoration: none;
}

.grid {
  display: block;
}

.dropzone {
  border: 2px dashed #c3cfe3;
  border-radius: 14px;
  background: #f8faff;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #2f6bff;
  background: #eef3ff;
}

.dropzone .icon {
  font-size: 26px;
}

.dropzone .main {
  font-size: 15px;
  color: #374151;
  margin-top: 6px;
}

.dropzone .sub {
  font-size: 13px;
  color: #8b95a5;
  margin-top: 4px;
}

.preview-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-top: 10px;
}

.preview-table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 100%;
  white-space: nowrap;
}

.preview-table th,
.preview-table td {
  border: 1px solid #e9ecf2;
  padding: 7px 10px;
  text-align: left;
}

.preview-table thead th {
  background: #f3f6ff;
}

.chips {
  margin-top: 6px;
}

.chip {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 8px 8px 0;
  border: 1px solid #d7dce5;
  border-radius: 20px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.chip.active {
  border-color: #2f6bff;
  background: #eef3ff;
  color: #1d4ed8;
}

.row-flex {
  display: block;
}

.col {
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .row-flex {
    display: flex;
    margin-left: -8px;
    margin-right: -8px;
  }

  .col {
    flex: 1;
    padding: 0 8px;
  }
}

.exam-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.exam-list th,
.exam-list td {
  border-bottom: 1px solid #eef0f4;
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}

.exam-list th {
  color: #6b7280;
  font-weight: 500;
  font-size: 13px;
}

.exam-list-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: background 0.2s;
}

.switch span::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.switch input:checked + span {
  background: #2f6bff;
}

.switch input:checked + span::before {
  transform: translateX(20px);
}

.mask {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 24, 39, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.mask.show {
  display: flex;
}

.mask .box {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  font-size: 14px;
  color: #374151;
}

.footer {
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  padding: 22px 12px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  background: #eef3ff;
  color: #1d4ed8;
}

.badge.off {
  background: #f3f4f6;
  color: #6b7280;
}

.code {
  font-family: Menlo, Consolas, monospace;
  font-size: 13px;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

/* ===================================================================
   科技风主题 —— 仅作用于家长查询页（index.html，即 body.page-query）
   管理后台 admin.html 不受影响，保持原有浅色风格
   =================================================================== */

/* ---------- 背景：深空渐变 + 网格 ---------- */
body.page-query {
  position: relative;
  min-height: 100vh;
  color: #dbe9ff;
  background-color: #05091a;
  background-image:
    radial-gradient(760px 420px at 12% -12%, rgba(56, 189, 248, 0.2), transparent 62%),
    radial-gradient(700px 420px at 92% 4%, rgba(168, 85, 247, 0.18), transparent 62%),
    linear-gradient(180deg, #05091a 0%, #07102a 48%, #05091a 100%);
}

body.page-query::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
  z-index: 0;
}

body.page-query .app-header,
body.page-query .container {
  position: relative;
  z-index: 1;
}

/* ---------- 顶部标题 ---------- */
body.page-query .app-header {
  background: none;
  padding: 34px 16px 20px;
  text-align: center;
}

body.page-query .app-header h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(92deg, #67e8f9 0%, #a78bfa 48%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(103, 232, 249, 0.35));
}

body.page-query .app-header p {
  position: relative;
  display: inline-block;
  margin: 12px 0 0;
  font-size: 13px;
  letter-spacing: 1px;
  color: #8fb6e8;
}

/* 标题两侧的科技感装饰线 */
body.page-query .app-header p::before,
body.page-query .app-header p::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.85));
}

body.page-query .app-header p::before {
  right: 100%;
  margin-right: 12px;
}

body.page-query .app-header p::after {
  left: 100%;
  margin-left: 12px;
  transform: scaleX(-1);
}

/* ---------- 玻璃拟态卡片 ---------- */
body.page-query .card {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 18px 16px;
  background: linear-gradient(158deg, rgba(18, 29, 58, 0.86), rgba(9, 16, 36, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  box-shadow:
    0 12px 34px rgba(2, 6, 23, 0.55),
    0 0 22px rgba(56, 189, 248, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 卡片顶部流光线 + 右上角光晕 */
body.page-query .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.9), transparent);
}

body.page-query .card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 70%);
  pointer-events: none;
}

body.page-query .card-title {
  color: #e8f4ff;
  font-size: 15px;
  letter-spacing: 1.5px;
}

body.page-query .card-title .dot {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #67e8f9, #6366f1);
  box-shadow: 0 0 10px rgba(103, 232, 249, 0.9);
  animation: gq-pulse 2.4s ease-in-out infinite;
}

@keyframes gq-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ---------- 表单控件 ---------- */
body.page-query .field label {
  color: #9ec1ec;
  font-size: 14px;
  letter-spacing: 1px;
}

body.page-query .field .req {
  color: #f87171;
}

body.page-query input[type='text'],
body.page-query input[type='password'],
body.page-query select {
  height: 46px;
  color: #eaf4ff;
  background: rgba(7, 14, 32, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 11px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.page-query input::placeholder {
  color: #5d7ba6;
}

body.page-query select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%2367e8f9' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}

body.page-query select option {
  background: #0a1330;
  color: #eaf4ff;
}

body.page-query input:focus,
body.page-query select:focus {
  border-color: #38bdf8;
  background: rgba(9, 20, 45, 0.9);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14), 0 0 18px rgba(56, 189, 248, 0.28);
}

body.page-query input:-webkit-autofill {
  -webkit-text-fill-color: #eaf4ff;
  -webkit-box-shadow: 0 0 0 1000px rgba(7, 14, 32, 0.95) inset;
}

/* ---------- 查询按钮：渐变 + 流光 ---------- */
body.page-query .btn {
  position: relative;
  overflow: hidden;
  height: 48px;
  margin-top: 4px;
  border-radius: 12px;
  letter-spacing: 3px;
  background: linear-gradient(100deg, #06b6d4, #6366f1 55%, #a855f7);
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.page-query .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -55%;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: gq-sweep 2.8s linear infinite;
}

@keyframes gq-sweep {
  to {
    left: 130%;
  }
}

body.page-query .btn:active {
  transform: translateY(1px);
  opacity: 0.92;
}

body.page-query .btn[disabled] {
  background: linear-gradient(100deg, #334155, #475569);
  box-shadow: none;
  opacity: 0.7;
}

body.page-query .btn[disabled]::after {
  display: none;
}

/* ---------- 提示区 ---------- */
body.page-query .tip {
  color: #7d9cc9;
}

body.page-query .notice.error {
  background: rgba(127, 29, 29, 0.28);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

body.page-query .notice.info {
  background: rgba(12, 74, 110, 0.3);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

body.page-query .empty {
  color: #7d9cc9;
}

/* ---------- 成绩表格（PC） ---------- */
body.page-query .result-table {
  color: #dbeafe;
}

body.page-query .result-table th,
body.page-query .result-table td {
  border: 1px solid rgba(56, 189, 248, 0.18);
}

body.page-query .result-table thead th {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.07));
  color: #a5f3fc;
  letter-spacing: 1px;
  font-weight: 600;
}

body.page-query .result-table tbody tr:nth-child(even) td {
  background: rgba(56, 189, 248, 0.05);
}

body.page-query .result-table tbody tr:hover td {
  background: rgba(56, 189, 248, 0.11);
}

/* ---------- 成绩表格（手机卡片式，沿用 data-label 结构） ---------- */
@media (max-width: 640px) {
  body.page-query .result-table tr {
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 14px;
    background: linear-gradient(158deg, rgba(18, 29, 58, 0.75), rgba(8, 15, 34, 0.9));
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
  }

  body.page-query .result-table td {
    border: none;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.2);
  }

  body.page-query .result-table td::before {
    color: #7dd3fc;
  }

  body.page-query .result-table td span {
    color: #f2fbff;
    text-shadow: 0 0 10px rgba(103, 232, 249, 0.25);
  }
}

/* ---------- 结果卡入场动画 ---------- */
body.page-query #resultCard {
  animation: gq-rise 0.45s ease-out;
}

@keyframes gq-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 页脚 ---------- */
body.page-query .footer {
  color: #5d7ba6;
  font-size: 12px;
}

body.page-query .footer > div {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 20px;
  background: rgba(9, 16, 36, 0.5);
}

/* ---------- ICP 备案号 ---------- */
body.page-query .footer .icp {
  display: block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  line-height: 1.6;
}

body.page-query .footer .icp a {
  display: inline-block;
  padding: 4px 2px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

body.page-query .footer .icp a:active {
  opacity: 0.7;
}

/* ---------- 无障碍：用户偏好减少动画时不播放 ---------- */
@media (prefers-reduced-motion: reduce) {
  body.page-query .btn::after,
  body.page-query .card-title .dot,
  body.page-query #resultCard {
    animation: none;
  }
}

/* ===================================================================
   科技风自定义下拉（选择考试）
   =================================================================== */

/* 原生 select 视觉隐藏，但仍保留 value / change 读写能力 */
body.page-query .gq-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.page-query .gq-select {
  position: relative;
}

/* ---------- 触发器 ---------- */
body.page-query .gq-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  color: #eaf4ff;
  text-align: left;
  background: rgba(7, 14, 32, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

body.page-query .gq-select-value {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 展开态：霓虹发光 */
body.page-query .gq-select-trigger.open {
  border-color: #38bdf8;
  background: rgba(9, 20, 45, 0.92);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14), 0 0 18px rgba(56, 189, 248, 0.3);
}

/* 箭头：展开时旋转 */
body.page-query .gq-select-arrow {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 2px solid #67e8f9;
  border-bottom: 2px solid #67e8f9;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}

body.page-query .gq-select-trigger.open .gq-select-arrow {
  transform: rotate(225deg) translate(-2px, -2px);
}

/* ---------- 下拉面板 ---------- */
body.page-query .gq-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(16, 27, 54, 0.98), rgba(8, 14, 32, 0.99));
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow:
    0 18px 40px rgba(2, 6, 23, 0.7),
    0 0 26px rgba(56, 189, 248, 0.15);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body.page-query .gq-select-panel.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- 选项 ---------- */
body.page-query .gq-select-panel li {
  display: flex;
  align-items: center;
  position: relative;
  /* 右侧固定预留对勾的位置，保证徽标在所有行都对齐 */
  padding: 11px 32px 11px 12px;
  font-size: 15px;
  color: #cfe4ff;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

/* 班级名占满剩余空间，把「xx 人」徽标稳定推到右侧 */
body.page-query .gq-select-panel li > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.page-query .gq-select-panel li + li {
  margin-top: 2px;
}

/* 触屏设备不保留 hover 残留 */
@media (hover: hover) {
  body.page-query .gq-select-panel li:hover {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.16));
    color: #f2fbff;
  }
}

/* 选中项：高亮 + 打勾 */
body.page-query .gq-select-panel li.selected {
  color: #67e8f9;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.1));
}

/* 对勾：绝对定位，不参与排版 → 不会挤压右侧徽标 */
body.page-query .gq-select-panel li.selected::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 10px;
  border-right: 2px solid #67e8f9;
  border-bottom: 2px solid #67e8f9;
  transform: translateY(-60%) rotate(45deg);
}

/* 右侧人数徽标 */
body.page-query .gq-select-panel li .gq-meta {
  flex: 0 0 auto;
  margin-left: 10px;
  padding: 1px 8px;
  font-size: 12px;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
}

/* 空态 / 禁用态 */
body.page-query .gq-select-panel li.gq-empty-option {
  justify-content: center;
  padding: 11px 12px; /* 空态无需给对勾留位，保证文字真正居中 */
  color: #7d9cc9;
  font-size: 14px;
  cursor: default;
}

body.page-query .gq-select.disabled .gq-select-trigger {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  body.page-query .gq-select-arrow,
  body.page-query .gq-select-panel {
    transition: none;
  }
}
