/* ===================================================================
   學員中心熱門消息及重要公告 news_hot（type A）
   scope：.nstyle_theme.page_news
   ‧ 無 banner：頁首用共用 .section_title text_gradient，右上放小男生插圖
   ‧ 篩選（分類/年份/月份）→ 橫向清單列（日期塊＋分類標籤＋標題/摘要＋查看公告鈕）
   ‧ 背景：淡藍色暈＋大區塊波浪流線；分頁用公版 .npager（見 nstyle_base.css）
   =================================================================== */

/* 頁面底：淡藍色暈 + 波浪流線 + 白→淺藍漸層 */
.nstyle_theme.page_news {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(680px 520px at 92% 6%, rgba(90, 166, 239, 0.12), transparent 60%),
    radial-gradient(560px 480px at 3% 40%, 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;
}

/* 背景漂浮裝飾 */
.nstyle_theme.page_news .nnews_deco { position: absolute; z-index: 0; pointer-events: none; }
.nstyle_theme.page_news .nnews_deco--blob1 {
  top: -70px; right: -90px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(120, 180, 255, 0.20), rgba(120, 180, 255, 0.04) 70%);
  filter: blur(4px);
}
.nstyle_theme.page_news .nnews_deco--blob2 {
  bottom: -60px; right: -70px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(90, 166, 239, 0.16), transparent 70%);
}
.nstyle_theme.page_news .nnews_deco--ring1 {
  bottom: 120px; left: -60px; width: 230px; height: 230px; border-radius: 50%;
  border: 2px solid rgba(90, 166, 239, 0.14);
}
.nstyle_theme.page_news .nnews_deco--dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(90, 166, 239, 0.35); }
.nstyle_theme.page_news .nnews_deco--d1 { top: 360px; left: 40px; }
.nstyle_theme.page_news .nnews_deco--d2 { top: 220px; right: 30px; width: 8px; height: 8px; background: rgba(122, 184, 255, 0.4); }

/* ── 頁首（左標題＋副標，右上小男生插圖） ── */
.nstyle_theme.page_news .nnews_head {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.nstyle_theme.page_news .nnews_sub {
  margin: 12px 0 0;
  color: #6b7385;
  font-size: 16px;
  letter-spacing: 0.5px;
}
/* 右上小男生：貼著篩選列（月份）上方，並蓋在其上 */
.nstyle_theme.page_news .nnews_boy {
  position: absolute;
  right: 24px;
  bottom: -30px;
  width: 220px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* ── 內容容器 ── */
.nstyle_theme.page_news .nnews_wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 16px 60px;
}

/* ── 篩選列（分類/年份/月份） ── */
.nstyle_theme.page_news .nnews_filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 0 26px;
}
.nstyle_theme.page_news .nnews_field {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
  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, transform 0.18s;
}
/* 欄位 hover／展開時的藍框高亮（下拉主體樣式改用公版 .nselect，見 nstyle_base.css） */
.nstyle_theme.page_news .nnews_field:hover,
.nstyle_theme.page_news .nnews_field.is-open {
  border-color: #5aa6ef;
  box-shadow: 0 10px 22px rgba(47, 116, 214, 0.16);
}
/* 圖示：圓角淡藍底小方塊 */
.nstyle_theme.page_news .nnews_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_news .nnews_field_main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nstyle_theme.page_news .nnews_field_label { font-size: 12px; color: #9aa4b5; font-weight: 700; letter-spacing: 0.5px; }

/* ── 清單 ── */
.nstyle_theme.page_news .nnews_list { display: flex; flex-direction: column; gap: 16px; }
.nstyle_theme.page_news .nnews_item {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 132px; /* 各列高度統一（無摘要者內容垂直置中） */
  background: #fff;
  border: 1px solid #eef3fb;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 20px rgba(31, 95, 191, 0.07);
  transition: transform 0.18s, box-shadow 0.18s;
}
.nstyle_theme.page_news .nnews_item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(31, 95, 191, 0.14);
}
/* 日期塊 */
.nstyle_theme.page_news .nnews_date {
  flex: 0 0 96px;
  text-align: center;
  border-right: 1px solid #eef3fb;
  padding-right: 22px;
}
.nstyle_theme.page_news .nnews_date_y { display: block; font-size: 13px; color: #9aa4b5; font-weight: 700; }
.nstyle_theme.page_news .nnews_date_md { display: block; font-size: 26px; font-weight: 900; color: #2f74d6; line-height: 1.2; letter-spacing: 1px; }
.nstyle_theme.page_news .nnews_date_w { display: block; font-size: 12px; color: #9aa4b5; margin-top: 2px; }
/* 主體 */
.nstyle_theme.page_news .nnews_main { flex: 1; min-width: 0; }
.nstyle_theme.page_news .nnews_tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.nstyle_theme.page_news .nnews_tag--course  { background: #e4f0ff; color: #2f74d6; } /* 國中課程更新：藍 */
.nstyle_theme.page_news .nnews_tag--senior  { background: #dcf5f1; color: #12a08a; } /* 高中課程更新：teal */
.nstyle_theme.page_news .nnews_tag--service { background: #e3f6ec; color: #1e9e5a; } /* 客服公告：綠 */
.nstyle_theme.page_news .nnews_tag--site    { background: #ffe6ee; color: #e15b86; } /* 網站公告：粉 */
.nstyle_theme.page_news .nnews_tag--award   { background: #fff2dd; color: #e08a1e; } /* 學員獎勵辦法：橘 */
.nstyle_theme.page_news .nnews_tag--honor   { background: #efe8ff; color: #7a5bd0; } /* 榮譽榜單：紫 */
.nstyle_theme.page_news .nnews_title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1f3a5f;
  line-height: 1.5;
}
.nstyle_theme.page_news .nnews_title a { color: inherit; text-decoration: none; }
.nstyle_theme.page_news .nnews_title a:hover { color: #2f74d6; }
.nstyle_theme.page_news .nnews_summary {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7385;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 查看公告按鈕（ghost：白底藍框，hover 才填藍） */
.nstyle_theme.page_news .nnews_more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1.5px solid #bcd4f5;
  border-radius: 999px;
  background: #fff;
  color: #2f74d6;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.nstyle_theme.page_news .nnews_more:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #5aa6ef, #2f74d6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(47, 116, 214, 0.28);
}
.nstyle_theme.page_news .nnews_more .material-icons-round { font-size: 18px; }

/* ── RWD ── */
@media (max-width: 991.98px) {
  .nstyle_theme.page_news .nnews_boy { width: 160px; opacity: 0.9; }
}
@media (max-width: 767.98px) {
  .nstyle_theme.page_news .nnews_deco { display: none; }
  .nstyle_theme.page_news .nnews_boy { display: none; }
  .nstyle_theme.page_news .nnews_item { flex-direction: column; align-items: stretch; gap: 14px; min-height: 0; padding: 18px 20px; }
  .nstyle_theme.page_news .nnews_date {
    flex: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid #eef3fb;
    padding: 0 0 12px;
  }
  .nstyle_theme.page_news .nnews_date_md { font-size: 20px; }
  .nstyle_theme.page_news .nnews_more { align-self: flex-end; }
}
