/* ===================================================================
   段考英雄榜 list_sectional_examination（type A）
   scope：.nstyle_theme.page_list_exam
   ‧ banner 用共用 .npage_banner（圖已內建標題）
   ‧ 篩選（學級／學期）→ 公版下拉 .nselect（js/nselect.js）
   ‧ 榜單：學校／姓名／學期成績 列卡（桌機兩欄、手機單欄）
   ‧ 分頁用公版 .npager（js/npager.js）
   ‧ 已拋棄 BS3 / jQuery / islogin / IE 遺留腳本
   =================================================================== */

/* Banner（圖已內建標題；沿用共用 .npage_banner，僅指定圖與高度） */
.nstyle_theme.page_list_exam .npage_banner--listexam {
  position: relative;
  z-index: 2;
  background-image: url("../../img/list_sectional_examination/list_sectional_examination_banner.png");
  height: 300px;
  background-size: cover;
  background-position: center;
}

/* 頁面底：淡藍色暈 + 白→淺藍漸層 */
.nstyle_theme.page_list_exam {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(680px 520px at 92% 8%, rgba(90, 166, 239, 0.10), transparent 60%),
    radial-gradient(560px 480px at 4% 44%, rgba(90, 166, 239, 0.07), transparent 60%),
    radial-gradient(640px 540px at 100% 92%, rgba(122, 184, 255, 0.10), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  background-repeat: no-repeat;
  background-position: center top, center center, center bottom, center center;
  background-size: auto, auto, auto, auto;
}

/* 背景漂浮裝飾（純視覺，pointer-events:none；置於卡片後方；手機自動隱藏） */
.nstyle_theme.page_list_exam .nexam_deco { position: absolute; z-index: 0; pointer-events: none; }
.nstyle_theme.page_list_exam .nexam_deco--blob1 {
  top: 360px; right: -90px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(120, 180, 255, 0.18), rgba(120, 180, 255, 0.04) 70%);
  filter: blur(4px);
}
.nstyle_theme.page_list_exam .nexam_deco--blob2 {
  bottom: -50px; left: -70px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(90, 166, 239, 0.14), transparent 70%);
}
.nstyle_theme.page_list_exam .nexam_deco--ring1 {
  top: 620px; left: -55px; width: 210px; height: 210px; border-radius: 50%;
  border: 2px solid rgba(90, 166, 239, 0.16);
}
.nstyle_theme.page_list_exam .nexam_deco--circle { border-radius: 50%; }
.nstyle_theme.page_list_exam .nexam_deco--c3 { top: 900px; left: -130px; width: 320px; height: 320px; background: rgba(90, 166, 239, 0.07); }
.nstyle_theme.page_list_exam .nexam_deco--c4 { bottom: -60px; right: -120px; width: 300px; height: 300px; background: rgba(122, 184, 255, 0.08); }
.nstyle_theme.page_list_exam .nexam_deco--dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(90, 166, 239, 0.32); }
.nstyle_theme.page_list_exam .nexam_deco--d1 { top: 430px; left: 40px; }
.nstyle_theme.page_list_exam .nexam_deco--d2 { top: 820px; right: 46px; width: 9px; height: 9px; background: rgba(122, 184, 255, 0.4); }

/* 右下角裝飾圖（list_sectional_examination_a1.png） */
.nstyle_theme.page_list_exam .nexam_simg {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
}
.nstyle_theme.page_list_exam .nexam_simg--a1 { right: -40px; bottom: 20px; width: 500px; opacity: 0.2; transform: rotate(25deg); }

/* 內容容器 */
.nstyle_theme.page_list_exam .nexam_wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 16px 60px;
}

/* banner 下方前言 head 主體改用公版 .nlead（見 nstyle_base.css）；此頁僅覆寫下方間距 */
.nstyle_theme.page_list_exam .nlead { margin: 0 0 24px; }

/* ── 篩選列（學級／學期）：下拉主體用公版 .nselect ── */
.nstyle_theme.page_list_exam .nexam_filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 26px;
}
.nstyle_theme.page_list_exam .nexam_field {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #e3ebf7;
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 0 6px 16px rgba(31, 95, 191, 0.06);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.nstyle_theme.page_list_exam .nexam_field:hover,
.nstyle_theme.page_list_exam .nexam_field.is-open {
  border-color: #5aa6ef;
  box-shadow: 0 10px 22px rgba(47, 116, 214, 0.16);
}
.nstyle_theme.page_list_exam .nexam_field > .material-icons-round {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #2f74d6;
  background: #eaf2ff;
  font-size: 21px;
}
.nstyle_theme.page_list_exam .nexam_field_main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nstyle_theme.page_list_exam .nexam_field_label { font-size: 12px; color: #9aa4b5; font-weight: 700; letter-spacing: 0.5px; }

/* ── 榜單卡片（桌機兩欄、手機單欄） ── */
.nstyle_theme.page_list_exam .nexam_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.nstyle_theme.page_list_exam .nexam_card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(ellipse 55% 42% at 16% 18%, rgba(255, 214, 120, 0.30), transparent 72%),
    radial-gradient(ellipse 50% 40% at 88% 26%, rgba(255, 196, 132, 0.24), transparent 72%),
    radial-gradient(ellipse 60% 48% at 78% 96%, rgba(255, 205, 104, 0.26), transparent 74%),
    radial-gradient(ellipse 48% 40% at 30% 100%, rgba(255, 224, 150, 0.22), transparent 74%),
    radial-gradient(125% 120% at 50% 42%, #ffffff 0%, #fffdf4 58%, #fff2cc 100%);
  border: 1px solid #f6e6b6;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 20px rgba(191, 145, 31, 0.12);
  transition: transform 0.16s, box-shadow 0.16s;
}
.nstyle_theme.page_list_exam .nexam_card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(191, 145, 31, 0.22);
}
/* 學制／學期／學校（同一上排） */
.nstyle_theme.page_list_exam .nexam_tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nstyle_theme.page_list_exam .nexam_level {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.nstyle_theme.page_list_exam .nexam_level--senior { background: #e4f0ff; color: #2f74d6; } /* 高中：藍 */
.nstyle_theme.page_list_exam .nexam_level--junior { background: #e3f6ec; color: #1e9e5a; } /* 國中：綠 */
.nstyle_theme.page_list_exam .nexam_term {
  padding: 3px 12px;
  border-radius: 999px;
  background: #f0f3f9;
  color: #6b7385;
  font-size: 12.5px;
  font-weight: 700;
}
/* 姓名（獨立一列、置中） */
.nstyle_theme.page_list_exam .nexam_person { display: flex; justify-content: center; margin: 2px 0; }
.nstyle_theme.page_list_exam .nexam_name { font-size: 23px; font-weight: 900; color: #1f3a5f; letter-spacing: 2px; }
/* 學校（併入上排，灰字） */
.nstyle_theme.page_list_exam .nexam_school { font-size: 13.5px; font-weight: 600; color: #6b7385; }
/* 獎項敘述（實心金色緞帶，於金卡上仍跳出） */
.nstyle_theme.page_list_exam .nexam_ach {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #f3dc9c;
  border-left: 3px solid #f0a92e;
  color: #a86a10;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}
.nstyle_theme.page_list_exam .nexam_ach .material-icons-round {
  flex: 0 0 auto;
  font-size: 22px;
  color: #f0a92e;
}

/* 分頁浮於背景之上 */
.nstyle_theme.page_list_exam .npager { position: relative; z-index: 1; margin-top: 36px; }

/* ── RWD ── */
@media (max-width: 991.98px) {
  .nstyle_theme.page_list_exam .nexam_grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .nstyle_theme.page_list_exam .nexam_deco,
  .nstyle_theme.page_list_exam .nexam_simg { display: none; }
}
@media (max-width: 575.98px) {
  .nstyle_theme.page_list_exam .npage_banner--listexam { height: 150px; }
  .nstyle_theme.page_list_exam .nexam_grid { grid-template-columns: 1fr; }
}
