/* ===================================================================
   學員使用心得分享 student_share（type A）
   scope：.nstyle_theme.page_share
   ‧ banner 用共用 .npage_banner（圖已內建標題文字，故不疊字）
   ‧ 分類切換用公版 .ntabs（此處為 <a> 連結各子頁，非 JS 篩選）
   ‧ 卡片：照片＋姓名＋就讀/成績/錄取＋心得摘要＋「查看心得」→ BS5 Modal（bundle 已含 JS，免另載）
   ‧ 分頁用公版 .npager（js/npager.js）
   =================================================================== */

/* Banner（圖已內建標題；沿用共用 .npage_banner，僅指定圖與高度） */
.nstyle_theme.page_share .npage_banner--studentshare {
  position: relative;
  z-index: 2; /* 疊在背景漂浮裝飾之上，避免 deco 蓋到 banner */
  background-image: url("../../img/student_share/student_share_banner.png");
  height: 300px;
  background-size: cover;
  background-position: center;
}

/* 頁面底：淡藍色暈 + 白→淺藍漸層 */
.nstyle_theme.page_share {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(680px 520px at 92% 8%, rgba(90, 166, 239, 0.12), transparent 60%),
    radial-gradient(560px 480px at 4% 42%, rgba(90, 166, 239, 0.08), 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_share .nshare_deco { position: absolute; z-index: 0; pointer-events: none; }
.nstyle_theme.page_share .nshare_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_share .nshare_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_share .nshare_deco--ring1 {
  top: 430px; left: -50px; width: 200px; height: 200px; border-radius: 50%;
  border: 2px solid rgba(90, 166, 239, 0.16);
}
/* 大顆實心圓（左右兩側探出，低透明度、置於卡片後方） */
.nstyle_theme.page_share .nshare_deco--circle { border-radius: 50%; }
.nstyle_theme.page_share .nshare_deco--c3 { bottom: 120px; left: -130px; width: 320px; height: 320px; background: rgba(90, 166, 239, 0.08); }
.nstyle_theme.page_share .nshare_deco--c4 { bottom: -60px; right: -120px; width: 300px; height: 300px; background: rgba(122, 184, 255, 0.08); }
.nstyle_theme.page_share .nshare_deco--dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(90, 166, 239, 0.32); }
.nstyle_theme.page_share .nshare_deco--d1 { top: 380px; right: 40px; }
.nstyle_theme.page_share .nshare_deco--d2 { bottom: 160px; right: 90px; width: 9px; height: 9px; background: rgba(122, 184, 255, 0.4); }

/* 右下手寫標語（裝飾圖，已內建手寫字與斜度） */
.nstyle_theme.page_share .nshare_slogan {
  position: absolute;
  right: 120px;
  bottom: 24px;
  z-index: 1;
  width: 255px;
  height: auto;
  opacity: 0.65;
  pointer-events: none;
}

/* 內容容器 */
.nstyle_theme.page_share .nshare_wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
/* 分類切換（公版 .ntabs）往上拉近 banner */
.nstyle_theme.page_share .ntabs { margin: 10px auto 26px; }

/* 卡片格線（四欄） */
.nstyle_theme.page_share .nshare_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* 單張卡片 */
.nstyle_theme.page_share .nshare_card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef3fb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(31, 95, 191, 0.10), 0 2px 6px rgba(31, 95, 191, 0.06);
  transition: transform 0.18s, box-shadow 0.18s;
}
.nstyle_theme.page_share .nshare_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(31, 95, 191, 0.18);
}
/* 照片 */
.nstyle_theme.page_share .nshare_photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef3fb;
}
.nstyle_theme.page_share .nshare_photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* 內文 */
.nstyle_theme.page_share .nshare_body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 18px 20px;
  flex: 1;
}
.nstyle_theme.page_share .nshare_name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
  color: #1f3a5f;
}
.nstyle_theme.page_share .nshare_info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px; /* 兩行高，各列/各卡統一 */
}
.nstyle_theme.page_share .nshare_info > .material-icons-round { font-size: 18px; color: #5aa6ef; flex: 0 0 auto; }
/* 2 字兩行標籤（就讀/學校…），置中固定寬 */
.nstyle_theme.page_share .nshare_info_label {
  flex: 0 0 auto;
  width: 2.2em;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  color: #8a94a6;
}
/* 值：最多兩行，超過 … */
.nstyle_theme.page_share .nshare_info_val {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 600;
  color: #3c3d3e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 查看心得按鈕（ghost：白底藍框，hover 才填藍；開 BS5 Modal） */
.nstyle_theme.page_share .nshare_btn {
  margin-top: auto; /* 永遠貼卡片底部（格線等高時各卡按鈕對齊） */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border: 1.5px solid #bcd4f5;
  border-radius: 999px;
  background: #fff;
  color: #2f74d6;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.nstyle_theme.page_share .nshare_btn: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_share .nshare_btn .material-icons-round { font-size: 18px; }

/* 分頁浮於裝飾之上 */
.nstyle_theme.page_share .npager { position: relative; z-index: 1; margin-top: 40px; }

/* ── BS5 Modal 外觀（取代舊 fancybox 彈窗） ── */
.nshare_modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; }
.nshare_modal .modal-header {
  background: linear-gradient(135deg, #5aa6ef, #2f74d6);
  color: #fff;
  border-bottom: 0;
  padding: 18px 24px;
}
.nshare_modal .modal-title { font-weight: 800; font-size: 18px; }
.nshare_modal .modal-body { padding: 26px 28px; color: #444b5a; font-size: 15.5px; line-height: 1.95; }
.nshare_modal .nshare_modal_sign { margin: 18px 0 0; text-align: right; font-weight: 700; color: #2f74d6; line-height: 1.7; }

/* ── RWD ── */
@media (max-width: 991.98px) {
  .nstyle_theme.page_share .nshare_grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 991.98px) {
  .nstyle_theme.page_share .nshare_slogan { display: none; }
}
@media (max-width: 767.98px) {
  .nstyle_theme.page_share .npage_banner--studentshare { height: 150px; }
  .nstyle_theme.page_share .nshare_deco { display: none; }
}
@media (max-width: 479.98px) {
  .nstyle_theme.page_share .nshare_grid { grid-template-columns: 1fr; }
}
