/* ==========================================================
   麒麟港生活 - 资讯中心（news.html / news-detail.html）专属样式
   依赖：style.css（变量/基础） + common.css（公共头部/尾部）
   ========================================================== */

/* ======================= Banner：香港背景 + 白色文字居中 ======================= */
.news-banner {
  padding-top: 88px;
  min-height: 430px;
  display: flex; align-items: center;
  position: relative;
  background: #a6875b url("../images/sub/news/banner-news.jpg") no-repeat center / cover;
}
.news-banner::before { content: ""; position: absolute;  inset: 0; background: linear-gradient(to right, rgba(166, 135, 91, 0.8), rgba(238, 230, 219, 0.8), rgba(166, 135, 91, 0.8)); }
.nb-inner { position: relative; z-index: 1; width: 100%; text-align: center; }
.nb-tag {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--title-font);
  font-size: 15px; letter-spacing: 5px;
  color: #49423a;
}
.nb-tag i { display: block; width: 64px; height: 1px; background:#49423a; }
.news-banner h1 {
  margin-top: 20px;
  font-family: "Times New Roman", "STSong", "SimSun", "NSimSun", var(--cn-font);
  font-size: 42px; font-weight: 700; letter-spacing: 6px;
  color: #49423a;
  text-shadow: 0.06px 0 0 #49423a, -0.06px 0 0 #49423a;
  /* text-shadow: 0 4px 18px rgba(0,0,0,.35); */
}

/* ======================= 主体布局：左列表 + 右侧栏 ======================= */
.news-main { background: #f5f6f9; padding: 56px 0 76px; }
.news-cols { display: flex; gap: 36px; align-items: flex-start; }
.news-list {
  flex: 1; min-width: 0;
  background: #fff; border-radius: 10px;
  padding: 14px 36px 40px;
}
.news-side { width: 340px; flex: none; }

/* ======================= 资讯分类筛选 ======================= */
.news-cats {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 22px 0 20px;
  border-bottom: 1px solid #e8ebf1;
}
.cat-label {
  flex: none;
  font-size: 15px; font-weight: 600; color: var(--navy);
  letter-spacing: .5px;
}
.cat-group { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 22px;
  font-size: 14px; letter-spacing: .5px; line-height: 1;
  color: #44526b;
  background: #fff;
  border: 1px solid #dce1e3;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
/* 鼠标经过 / 选中：背景 #112443，白字 */
.cat-btn:hover,
.cat-btn.active {
  background: #c6a677;
  border-color: #c6a677;
  color: #fff;
}
/* 右侧栏内的分类：紧凑排列 */
.cat-side .cat-group { gap: 10px; margin-top: 20px; }

/* ======================= 左侧：资讯列表 ======================= */
.news-item { display: flex; gap: 28px; padding: 32px 0; border-bottom: 1px solid #e8ebf1; }
.news-item:last-of-type { border-bottom: none; }
.news-item.is-last { border-bottom: none; }
.ni-pic { width: 264px; flex: none; }
.ni-pic img {
  display: block; width: 100%; height: 168px;
  object-fit: cover; border-radius: 8px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.ni-pic:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,36,67,.16); }
.ni-body { flex: 1; min-width: 0; }
.ni-title {
  font-size: 20px; font-weight: 600; line-height: 1.55;
  color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ni-title a { transition: color .25s; }
.ni-title a:hover { color: var(--gold-deep); }
.ni-desc {
  margin-top: 12px;
  font-size: 14.5px; line-height: 1.9; color: #5a6a85;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 查看详情按钮：金边幽灵按钮，箭头 hover 右滑 */
.ni-btn {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 26px;
  border: 1px solid var(--gold); border-radius: 30px;
  font-size: 14px; letter-spacing: 1px; color: var(--gold-deep);
  transition: all .3s ease;
}
.ni-btn i { font-style: normal; display: inline-block; transition: transform .3s ease; }
.ni-btn:hover { background: var(--gold); color: #fff; }
.ni-btn:hover i { transform: translateX(5px); }

/* ======================= 分页（Bootstrap 样式，品牌色） ======================= */
.page-nav { margin-top: 42px; }
.pagination {
  display: flex; flex-wrap: wrap; justify-content: center;
  padding-left: 0; margin: 0; list-style: none;
}
.page-link {
  position: relative; display: block;
  padding: .5rem .9rem; margin-left: -1px;
  font-size: 14px; line-height: 1.25;
  color: var(--gold-deep);
  background-color: #fff; border: 1px solid #dee2e6;
  transition: background .2s, color .2s;
}
.page-item:first-child .page-link { margin-left: 0; border-top-left-radius: .375rem; border-bottom-left-radius: .375rem; }
.page-item:last-child .page-link { border-top-right-radius: .375rem; border-bottom-right-radius: .375rem; }
.page-link:hover { z-index: 2; color: #8a6a35; background-color: #f3ede0; }
.page-item.active .page-link { z-index: 3; color: #fff; background-color: var(--gold-deep); border-color: var(--gold-deep); }
.page-item.disabled .page-link { color: #6c757d; pointer-events: none; background-color: #fff; border-color: #dee2e6; }

/* ======================= 右侧栏 ======================= */
.side-box {
  background: #fff; border-radius: 10px;
  padding: 26px 26px 30px; margin-bottom: 30px;
}
.side-title {
  position: relative;
  font-size: 18px; font-weight: 600; color: var(--navy);
  padding-bottom: 15px; border-bottom: 1px solid #e8ebf1;
}
.side-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 46px; height: 3px; background: var(--gold);
}

/* 热门资讯推荐：左图 + 右标题/简介 */
.hot-item { display: flex; gap: 14px; margin-top: 22px; }
.hot-item:first-of-type { margin-top: 24px; }
.hi-pic { width: 96px; flex: none; }
.hi-pic img {
  display: block; width: 96px; height: 68px;
  object-fit: cover; border-radius: 6px;
  transition: opacity .25s;
}
.hi-pic:hover img { opacity: .85; }
.hi-body { flex: 1; min-width: 0; }
.hi-body h4 {
  font-size: 14.5px; font-weight: 600; line-height: 1.55; color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hi-body h4 a { transition: color .25s; }
.hi-body h4 a:hover { color: var(--gold-deep); }
.hi-body p {
  margin-top: 6px;
  font-size: 12.5px; line-height: 1.7; color: #7a87a0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 热门项目推荐：#e8954a 按钮，左名称 + 右箭头 */
.proj-btn {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding: 13px 18px;
  background: linear-gradient(100deg, #dfc896, #eedab3);
  border-radius: 6px;
  font-size: 14.5px; letter-spacing: .5px; color: #49423a;
  transition: background .25s ease, transform .25s ease;
}
.proj-btn:first-of-type { margin-top: 24px; }
.proj-btn i { font-style: normal; display: inline-block; transition: transform .3s ease; }
.proj-btn:hover { background:  linear-gradient(100deg, #dfc896, #ede4d1);  transform: translateX(3px); }
.proj-btn:hover i { transform: translateX(5px); }

/* ======================= 面包屑导航（详情页） ======================= */
/* 二级菜单当前页高亮（news 子菜单"资讯中心"） */
.sub-menu li a.cur { color: var(--gold-light); }
/* 头部为固定定位：面包屑下移避让（640 断点头部 68px） */
.crumb-bar { margin-top: 88px; }
.crumb-bar { background: #eef1f5; padding: 15px 0; font-size: 13px; color: #7a87a0; }
.crumb-bar a { color: #7a87a0; transition: color .2s; }
.crumb-bar a:hover { color: var(--gold-deep); }
.crumb-bar .sep { margin: 0 10px; color: #b6bfcc; }
.crumb-bar .cur {
  color: var(--navy);
  display: inline-block; max-width: 60%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}

/* ======================= 详情页：左侧文章 ======================= */
.nd-title { font-size: 26px; font-weight: 600; line-height: 1.6; color: var(--navy); }
.nd-meta {
  margin-top: 16px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: 13px; color: #8a95a9;
  border-bottom: 1px solid #e8ebf1;
}
.nd-content { margin-top: 26px; }
.nd-content p {
  margin-bottom: 18px;
  font-size: 15px; line-height: 2.0; color: #44526b;
  text-align: justify;
}
.nd-content h2 {
  margin: 30px 0 14px;
  font-size: 19px; font-weight: 600; color: var(--navy);
  padding-left: 12px; border-left: 4px solid var(--gold);
  line-height: 1.5;
}
.nd-content img { display: block; max-width: 100%; margin: 8px auto 24px; border-radius: 8px; }


/* ======================= CTA 按钮：education banner「預約升學評估」风格 ======================= */
.news-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content; /* 保证按钮宽度由内容撑开，margin auto 才生效 */
  margin: 38px auto 0; /* 上38px，左右auto水平居中 */
  padding: 15px 46px;
  border-radius: 10px;
  font-size: 17px;
  letter-spacing: 3px;
  background: linear-gradient(100deg, #cfb791, #eee2c8 55%, #cfb791);
  color: #1d2f52;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: all .3s ease;
  cursor: pointer;
}
.news-cta i { font-style: normal; display: inline-block; transition: transform .3s ease; }
.news-cta:hover { filter: brightness(1.1); transform: translateY(-2px); }
.news-cta:hover i { transform: translateX(6px); }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1200px) {
  .ni-pic { width: 220px; }
  .ni-pic img { height: 150px; }
}

@media (max-width: 992px) {
  .news-main { padding: 40px 0 56px; }
  .news-cols { flex-direction: column; }
  .news-list { padding: 6px 24px 32px; width: 100%; }
  .news-side { width: 100%; }
  .news-banner h1 { font-size: 32px; }

  .ni-pic { width: 200px; }
  .ni-pic img { height: 138px; }
  .ni-title { font-size: 18px; }
}

@media (max-width: 640px) {
  .news-banner { min-height: 260px; }
  .news-banner h1 { font-size: 26px; letter-spacing: 4px; }
  .nb-tag { font-size: 12px; letter-spacing: 3px; gap: 10px; }
  .nb-tag i { width: 36px; }

  .news-main { padding: 30px 0 44px; }
  .news-list { padding: 4px 18px 28px; }
  /* 有图条目改为上图下文 */
  .news-item { flex-direction: column; gap: 14px; padding: 24px 0; }
  .ni-pic { width: 100%; }
  .ni-pic img { height: 190px; }
  .ni-title { font-size: 17px; }
  .ni-desc { font-size: 14px; }

  .nd-title { font-size: 21px; }
  .nd-content h2 { font-size: 17px; }
  .crumb-bar { margin-top: 68px; }
  .crumb-bar .cur { max-width: 50%; }

  .news-cats { gap: 12px; }
  .cat-btn { padding: 7px 16px; font-size: 13px; }
}



