/* ==========================================================================
   UI 修复 v18：选择框 / 设置页重复卡片 / 分数仪表
   ========================================================================== */

/* 下拉框：.search 的 9.5px 上下内边距会把 30px 高的选择框挤成 9px 内容区，
   文字只剩上半截；统一改为 0 上下内边距，用 min-height 保证点击区域。 */
select {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 34px;
  line-height: 1.2;
}

/* 原版浅色主题下，option 仍是深色底，却继承了深色文字，造成黑底黑字 */
body.layout-official select,
body.layout-official .select {
  color-scheme: light;
}
body.layout-official select option,
body.layout-official .select option {
  background: #ffffff !important;
  color: #2d3138 !important;
}
body.layout-official select option:checked {
  background: #fff1cc !important;
  color: #b26b00 !important;
}

/* 经典深色主题：保证 option 文字始终是浅色 */
body:not(.layout-official) select,
body:not(.layout-official) .select {
  color-scheme: dark;
}
body:not(.layout-official) select option,
body:not(.layout-official) .select option {
  background: #161c28 !important;
  color: #e9edf5 !important;
}

/* 设置页：app.js 动态追加的 hfsNotifyCard 与页面内的「新成绩提醒」重复，
   并且在双栏 grid 中会被自动排到左栏，造成卡片错位。只保留页面内那张。 */
#hfsNotifyCard {
  display: none !important;
}

/* 分数仪表：从分数左侧移到卡片右上角并降低对比，避免压住 728 与「总分」 */
body.layout-official .official-gauge {
  left: auto !important;
  right: -12px !important;
  top: -10px !important;
  opacity: 0.28 !important;
}

@media (max-width: 768px) {
  body.layout-official #paneDetail .official-gauge {
    left: auto !important;
    right: -14px !important;
    top: -8px !important;
    width: 160px !important;
    height: 80px !important;
    opacity: 0.22 !important;
  }
  body.layout-official #paneDetail .official-gauge::before {
    width: 160px !important;
    height: 160px !important;
  }
  body.layout-official #paneDetail .official-gauge::after {
    left: 22px !important;
    top: 22px !important;
    width: 116px !important;
    height: 116px !important;
  }
}
