/* ============================================================
   政府信息公开工作年度报告页样式（勐海版 · 2026-11-22）
   平移自西双版纳州 ndbg-page.css（v5），逻辑/结构 1:1；
   主题色：州墨绿（#018980/#015f58）→ 勐海普洱棕（#9e6f3e/#784e2a），
   令牌名 --ndp-* 保持不变（模板引用零改动）。
   ============================================================ */
:root {
  --ndp-primary: #9e6f3e;
  --ndp-primary-deep: #784e2a;
  --ndp-primary-soft: #f6efe4;
  --ndp-ink: #1c2426;
  --ndp-ink-2: #5d6a6d;
  --ndp-ink-3: #8b9597;
  --ndp-line: #e6e9e8;
  --ndp-bg: #f5f7f6;
  --ndp-gold: #b08a3e;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ndp-body { margin: 0; background: var(--ndp-bg); color: var(--ndp-ink);
  font: 15px/1.7 "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; border: 0; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }

/* ========== 独立页头：墨绿横幅 ========== */
.ndp-banner { background: linear-gradient(135deg, var(--ndp-primary-deep), var(--ndp-primary));
  color: #fff; position: relative; overflow: hidden; }
.ndp-banner::after { content: ""; position: absolute; right: -60px; top: -70px; width: 260px; height: 260px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.16); }
.ndp-banner-bar { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 0; flex-wrap: wrap; }
.ndp-logo { height: 52px; width: auto; }
.ndp-banner-btn { display: flex; flex-wrap: wrap; gap: 5px; }
.ndp-back { color: rgba(255,255,255,.92); font-size: 13px; border-radius: 20px; border: 1px solid #fff; padding: 2px 1em; }
.ndp-back:hover { color: rgb(219 207 59);border: 1px solid rgb(219 207 59); }
.ndp-banner-title { max-width: 1200px; margin: 20px auto 8px; padding: 0 20px; text-align: center;
  font-size: clamp(24px, 3.4vw, 52px); font-weight: 800; line-height: 1.3; letter-spacing: .12em;
  text-shadow: 0 2px 10px rgba(0,0,0,.14); }
.ndp-banner-sub { max-width: 1200px; margin: 0 auto 40px; padding: 0 20px; text-align: center;
  font-size: 15px; color: rgba(255,255,255,.86); }

/* ========== 主体：居中定宽容器（不通屏） ========== */
.ndp-page { max-width: 1200px; margin: 26px auto 44px; padding: 0 20px; }

/* 年份宫格（默认字体，无 font-family 声明） */
.ndp-year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ndp-year-cell { display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 96px; background: #fff; border: 1px solid var(--ndp-line); border-radius: 8px; }
.ndp-year-cell:hover { border-color: var(--ndp-primary); box-shadow: 0 2px 10px rgba(158,111,62,.12); }
.ndp-year-num { font-size: 28px; line-height: 1.25; color: var(--ndp-primary); font-weight: 700; }
.ndp-year-unit { margin-top: 4px; font-size: 13px; color: var(--ndp-ink-2); letter-spacing: .1em; }

/* 年份列表 */
.ndp-back-link { margin: 0 0 16px; }
.ndp-back-link a { color: var(--ndp-primary); font-size: 14px; }
.ndp-back-link a:hover { text-decoration: underline; }
/* 二级导航分类（v6：一级=分类标题，二级=年报卡片列表；与州版同步） */
.ndp-group { margin: 0 0 28px; }
.ndp-group-hd { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 6px 0 10px;
  border-bottom: 2px solid var(--ndp-primary-soft); }
.ndp-group-hd::before { content: ""; flex: none; width: 6px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--ndp-primary), var(--ndp-primary-deep)); }
.ndp-group-hd h2 { font-size: 19px; font-weight: 700; color: var(--ndp-primary-deep); letter-spacing: .05em; }
.ndp-group-bd { padding-top: 2px; }

.ndp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ndp-item a {
    display: flex;
    align-items: center;
    text-align: center;
    min-height: 64px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--ndp-line);
    border-radius: 8px;
    font-size: 14.5px;
    color: var(--ndp-ink);
}
.ndp-item a:hover { border-color: var(--ndp-primary); color: var(--ndp-primary); }
.ndp-empty { padding: 40px 20px; text-align: center; color: var(--ndp-ink-3);
  background: #fff; border: 1px dashed var(--ndp-line); border-radius: 8px; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .ndp-banner-bar { padding: 16px 14px 0; }
  .ndp-logo { height: 40px; }
  .ndp-banner-title { margin: 16px auto 6px; padding: 0 14px; letter-spacing: .06em; }
  .ndp-banner-sub { margin-bottom: 28px; }
  .ndp-page { padding: 0 14px 30px; margin-top: 18px; }
  .ndp-year-grid { grid-template-columns: repeat(2, 1fr); }
  .ndp-year-num { font-size: 24px; }
  .ndp-grid { grid-template-columns: 1fr; }
}

/* 无障碍焦点 */
.ndp-back:focus-visible, .ndp-logo-link:focus-visible,
.ndp-year-cell:focus-visible, .ndp-item a:focus-visible { outline: 2px solid var(--ndp-gold); outline-offset: 2px; }
