/* ==========================================================================
   news.css — 考试通知公告列表页（news.html）私有样式
   设计语言：公告栏质感 · 米白纸感 + 深绿横幅 + 原木点缀
   ========================================================================== */

/* ---------- 1. Hero：深绿照片横幅 + 搜索式速查入口 ---------- */
.nh-hero{
  position:relative;
  margin-top:calc(var(--header-h) + var(--topbar-h));
  min-height:460px;
  display:flex;align-items:center;
  color:#f4f1e6;
  overflow:hidden;
}
.nh-hero-bg{
  position:absolute;inset:0;
  background:url("../images/banner-exam.jpg") center/cover no-repeat;
  z-index:0;
}
.nh-hero::before{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(105deg,rgba(45,66,50,.94) 0%,rgba(63,90,69,.86) 46%,rgba(63,90,69,.45) 100%);
}
.nh-hero .container{position:relative;z-index:2;padding-top:64px;padding-bottom:64px}
.nh-hero-kicker{
  display:inline-flex;align-items:center;gap:10px;
  font-size:13px;letter-spacing:4px;color:var(--wood-light);font-weight:600;margin-bottom:18px;
}
.nh-hero-kicker::before{content:"";width:34px;height:2px;background:var(--wood-light)}
.nh-hero-title{
  font-size:clamp(32px,4.6vw,52px);letter-spacing:4px;color:#fdfaf2;
  line-height:1.28;overflow:hidden;
}
.nh-hero-title .nh-line{display:block;overflow:hidden}
.nh-hero-title .nh-line>span{
  display:inline-block;
  animation:nhUp .9s var(--ease) both;
}
.nh-hero-title .nh-line:nth-child(2)>span{animation-delay:.18s}
@keyframes nhUp{
  from{opacity:0;transform:translateY(46px);filter:blur(6px)}
  to{opacity:1;transform:translateY(0);filter:blur(0)}
}
.nh-hero-desc{
  margin-top:18px;max-width:560px;color:#e3e9dc;font-size:15.5px;line-height:1.9;
}

/* 搜索风格速查卡 */
.nh-search{
  margin-top:30px;
  background:rgba(255,253,246,.97);
  border-radius:16px;
  box-shadow:0 18px 44px rgba(20,32,24,.35);
  padding:20px 22px;
  max-width:640px;
  color:var(--ink);
}
.nh-search-label{font-size:12.5px;color:var(--ink-faint);letter-spacing:2px;margin-bottom:10px}
.nh-search-bar{
  display:flex;align-items:center;gap:10px;
  background:var(--cream-3);border:1.5px solid var(--line);border-radius:12px;
  padding:10px 16px;
}
.nh-search-bar svg{flex-shrink:0;color:var(--wood)}
.nh-search-bar input{
  flex:1;border:0;background:transparent;outline:none;font-size:15px;color:var(--ink);
}
.nh-search-bar input::placeholder{color:var(--ink-faint)}
.nh-search-tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.nh-search-tags a{
  font-size:13px;color:var(--green-dark);
  background:var(--cream-2);border:1px solid var(--line);
  padding:6px 14px;border-radius:999px;transition:.25s var(--ease);
}
.nh-search-tags a:hover{background:var(--green);border-color:var(--green);color:#fff;transform:translateY(-2px)}

/* ---------- 2. 公告快讯横条 ---------- */
.nh-ticker{background:var(--wood);color:#fdf6ea}
.nh-ticker-inner{
  display:flex;align-items:center;gap:18px;
  padding:13px 0;font-size:14px;overflow-x:auto;
}
.nh-ticker-tag{
  flex-shrink:0;display:inline-flex;align-items:center;gap:8px;
  font-weight:700;letter-spacing:2px;font-size:13px;
}
.nh-ticker-tag::before{content:"";width:8px;height:8px;border-radius:50%;background:#ffe9c9;animation:nhBlip 1.6s infinite}
@keyframes nhBlip{0%,100%{opacity:1}50%{opacity:.35}}
.nh-ticker a{
  flex-shrink:0;color:#fbeed8;border-bottom:1px dashed rgba(251,238,216,.55);padding-bottom:1px;
  white-space:nowrap;
}
.nh-ticker a:hover{color:#fff;border-color:#fff}

/* ---------- 3. 列表区：左 feed 右 sidebar ---------- */
.nh-list-sec{padding:70px 0 80px;background:var(--cream-3)}
.nh-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:36px;align-items:start}

.nh-feed-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  border-bottom:2px solid var(--green-dark);padding-bottom:14px;margin-bottom:8px;
}
.nh-feed-head h2{font-size:24px;letter-spacing:2px;display:flex;align-items:center;gap:12px}
.nh-feed-head h2::before{
  content:"";width:10px;height:26px;background:var(--wood);border-radius:2px;display:inline-block;
}
.nh-feed-head span{font-size:13px;color:var(--ink-faint)}

.nh-row{
  display:grid;grid-template-columns:250px 1fr;gap:22px;
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:18px;margin-top:20px;box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.nh-row:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.nh-row-img{
  display:block;border-radius:var(--radius-sm);overflow:hidden;position:relative;aspect-ratio:3/2;
}
.nh-row-img img{width:100%;height:100%;object-fit:cover;transition:transform .45s var(--ease)}
.nh-row:hover .nh-row-img img{transform:scale(1.06)}
.nh-row-body{display:flex;flex-direction:column}
.nh-row-title{font-size:19px;line-height:1.5}
.nh-row-title a{color:var(--ink)}
.nh-row-title a:hover{color:var(--green-deep)}
.nh-row-zaiyao{
  margin-top:9px;font-size:14px;color:var(--ink-soft);line-height:1.8;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.nh-row-meta{
  margin-top:auto;padding-top:12px;display:flex;align-items:center;gap:12px;
  font-size:13px;color:var(--ink-faint);
}
.nh-row-date{display:inline-flex;align-items:center;gap:6px}
.nh-row-date::before{
  content:"";width:14px;height:14px;border-radius:50%;
  background:radial-gradient(circle,var(--wood-light) 0 40%,transparent 42%);
}
.nh-row-more{margin-left:auto;font-weight:600;color:var(--wood-deep)}
.nh-row:hover .nh-row-more{color:var(--green-deep)}

/* ---------- 4. 侧边栏 ---------- */
.nh-side{display:flex;flex-direction:column;gap:24px;position:sticky;top:calc(var(--header-h) + 24px)}
.nh-side-card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-sm);overflow:hidden;
}
.nh-side-title{
  display:flex;align-items:center;gap:10px;
  padding:16px 20px;font-size:16px;letter-spacing:2px;color:#f4f1e6;
  background:var(--green-dark);font-family:var(--font-serif);
}
.nh-side-title::before{content:"";width:6px;height:18px;background:var(--wood-light);border-radius:2px}
.nh-side-list{padding:8px 20px 16px}
.nh-side-list li{border-bottom:1px dashed var(--line)}
.nh-side-list li:last-child{border-bottom:0}
.nh-side-list a{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:11px 0;font-size:14px;color:var(--ink-soft);line-height:1.5;
}
.nh-side-list a:hover{color:var(--green-deep)}
.nh-side-list a:hover .nh-arrow{transform:translateX(4px);color:var(--wood)}
.nh-arrow{transition:.25s var(--ease);color:var(--ink-faint);flex-shrink:0}

.nh-side-cta{
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-md);
}
.nh-side-cta figure{overflow:hidden}
.nh-side-cta img{width:100%;height:auto;display:block}
.nh-side-cta-body{
  background:linear-gradient(150deg,var(--green-dark),#4c6b52);
  padding:20px;color:#eef2e7;
}
.nh-side-cta-body h3{color:#fdf6ea;font-size:18px;letter-spacing:1px}
.nh-side-cta-body p{color:#cfdac7;font-size:13.5px;margin-top:8px;line-height:1.8}
.nh-side-cta-body .btn{margin-top:14px;width:100%}

/* ---------- 5. 公告分类入口 ---------- */
.nh-cat{padding:70px 0;background:var(--cream)}
.nh-cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:40px}
.nh-cat-card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:24px 20px;display:flex;flex-direction:column;gap:10px;
  box-shadow:var(--shadow-sm);transition:.3s var(--ease);position:relative;overflow:hidden;
}
.nh-cat-card::after{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--green);
  transform:scaleY(0);transform-origin:top;transition:.3s var(--ease);
}
.nh-cat-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-md)}
.nh-cat-card:hover::after{transform:scaleY(1)}
.nh-cat-num{font-family:var(--font-serif);font-size:13px;color:var(--wood);letter-spacing:2px}
.nh-cat-card h3{font-size:16.5px;line-height:1.5}
.nh-cat-card p{font-size:13px;color:var(--ink-faint);line-height:1.7}
.nh-cat-card span.nh-cat-go{margin-top:6px;font-size:13px;font-weight:600;color:var(--green-deep)}

/* ---------- 6. SEO 长文区 ---------- */
.nh-seo{padding:76px 0;background:var(--cream-3)}
.nh-seo-wrap{
  display:grid;grid-template-columns:1fr 380px;gap:44px;align-items:center;
  background:var(--white);border:1px solid var(--line);border-radius:calc(var(--radius) + 4px);
  padding:44px;box-shadow:var(--shadow-sm);
}
.nh-seo-text h2{font-size:26px;letter-spacing:1px;margin-bottom:18px}
.nh-seo-text p{font-size:15px;line-height:2.05;margin-bottom:14px;color:var(--ink-soft)}
.nh-seo-text p strong{color:var(--green-deep)}
.nh-seo-text .nh-drop::first-letter{
  font-family:var(--font-serif);font-size:44px;float:left;line-height:1;
  padding:4px 12px 0 0;color:var(--wood-deep);
}
.nh-seo-figure{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-md)}
.nh-seo-figure img{width:100%;height:auto}
.nh-seo-figure figcaption{
  padding:12px 16px;font-size:12.5px;color:var(--ink-faint);background:var(--white);letter-spacing:1px;
}

/* ---------- 7. FAQ ---------- */
.nh-faq{padding:70px 0;background:var(--cream)}
.nh-faq-list{max-width:860px;margin:40px auto 0;display:flex;flex-direction:column;gap:14px}
.nh-faq-item{
  background:var(--white);border:1px solid var(--line);border-radius:14px;
  box-shadow:var(--shadow-sm);overflow:hidden;
}
.nh-faq-item summary{
  cursor:pointer;list-style:none;display:flex;align-items:center;gap:14px;
  padding:18px 22px;font-family:var(--font-serif);font-weight:700;font-size:16px;color:var(--ink);
}
.nh-faq-item summary::-webkit-details-marker{display:none}
.nh-faq-item summary::before{
  content:"Q";flex-shrink:0;width:28px;height:28px;border-radius:8px;
  background:var(--cream-2);color:var(--wood-deep);
  display:inline-flex;align-items:center;justify-content:center;font-size:14px;
}
.nh-faq-item summary::after{
  content:"+";margin-left:auto;color:var(--wood);font-size:20px;font-weight:400;transition:.3s;
}
.nh-faq-item[open] summary::after{transform:rotate(45deg)}
.nh-faq-item .nh-faq-a{padding:0 22px 18px 64px;font-size:14.5px;color:var(--ink-soft);line-height:1.95}

/* ---------- 8. 底部 CTA ---------- */
.nh-cta{
  background:linear-gradient(120deg,var(--green-dark) 0%,#4c6b52 100%);
  color:#eef2e7;padding:60px 0;
}
.nh-cta-inner{display:grid;grid-template-columns:1.4fr 1fr;gap:36px;align-items:center}
.nh-cta h2{color:#fdf6ea;font-size:clamp(22px,2.8vw,30px);letter-spacing:1.5px;line-height:1.5}
.nh-cta p{color:#cfdac7;margin-top:12px;font-size:15px;line-height:1.9}
.nh-cta-actions{display:flex;flex-direction:column;gap:12px}

/* ---------- 9. 响应式 ---------- */
@media (max-width:1080px){
  .nh-layout{grid-template-columns:1fr}
  .nh-side{position:static}
  .nh-cat-grid{grid-template-columns:repeat(2,1fr)}
  .nh-seo-wrap{grid-template-columns:1fr;padding:32px}
  .nh-cta-inner{grid-template-columns:1fr}
}
@media (max-width:680px){
  .nh-hero{min-height:0}
  .nh-row{grid-template-columns:1fr}
  .nh-row-img{aspect-ratio:16/9}
  .nh-cat-grid{grid-template-columns:1fr}
  .nh-feed-head h2{font-size:20px}
  .nh-faq-item .nh-faq-a{padding-left:22px}
}
