/* ============================================================
   公告页样式
   由 announcements/index.php 内联 <style> 抽离而来（样式与程序分离）。
   动态主题色经由页面根元素的 inline style 注入 CSS 变量。
   ============================================================ */
  .an-wrap { min-height: 100vh; display: flex; flex-direction: column; }
  .cw { width: 1000px; max-width: calc(100% - 24px); margin: 0 auto; }
  /* 头部（与频道页一致） */
  .cat-header { background: #fff; border-bottom: 1px solid #e6e6e6; }
  .cat-header .cw { display: flex; align-items: center; gap: 24px; padding: 16px 0; }
  .cat-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; text-decoration: none; }
  .cat-logo .lg-mark { width: 34px; height: 34px; border-radius: 7px; background: var(--an-accent); display: flex; align-items: center; justify-content: center; }
  .cat-logo .lg-txt { display: flex; flex-direction: column; line-height: 1.25; }
  .cat-logo .lg-txt .t { font-size: 17px; font-weight: 700; color: #333; letter-spacing: .5px; }
  .cat-logo .lg-txt .u { font-size: 11px; color: #aaa; }
  .cat-logo img.lg-img { max-height: 46px; display: block; }
  .cat-search { flex: 1; max-width: 520px; }
  .cat-search form { display: flex; height: 40px; border: 2px solid var(--an-accent); border-radius: 8px; overflow: hidden; }
  .cat-search input { flex: 1; border: none; outline: none; padding: 0 14px; font-size: 14px; color: #333; min-width: 0; }
  .cat-search button { border: none; background: var(--an-accent); color: #fff; padding: 0 22px; font-size: 14px; letter-spacing: 2px; cursor: pointer; }
  .cat-home-btn { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #555; text-decoration: none; padding: 7px 14px; border: 1px solid #e2e5ea; border-radius: 6px; transition: all .15s; }
  .cat-home-btn:hover { color: var(--an-accent); border-color: var(--an-accent); background: #f4f8ff; }

  .an-main { flex: 1; padding: 22px 0 44px; }

  /* 横幅 */
  .an-hero { border-radius: 14px; padding: 26px 30px; margin-bottom: 16px; background: linear-gradient(120deg, #1b3a6b, #1b5bd5 60%, #3d7bff); color: #fff; box-shadow: 0 10px 26px rgba(27,91,213,.22); position: relative; overflow: hidden; }
  .an-hero::after { content: ''; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.10); }
  .an-hero h1 { margin: 0; font-size: 24px; font-weight: 800; position: relative; z-index: 1; }
  .an-hero .sub { margin-top: 6px; font-size: 13.5px; opacity: .92; position: relative; z-index: 1; }

  /* 分类标签 */
  .an-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .an-tabs a { padding: 6px 16px; border-radius: 20px; font-size: 13px; color: #555; background: #fff; border: 1px solid #eceef1; text-decoration: none; transition: all .15s; }
  .an-tabs a:hover { color: var(--an-accent); border-color: #cddbf5; }
  .an-tabs a.on { background: var(--an-accent); color: #fff; border-color: var(--an-accent); }

  /* 列表 */
  .an-list { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); overflow: hidden; }
  .an-item { display: block; padding: 18px 22px; border-bottom: 1px solid #f2f3f5; text-decoration: none; transition: background .15s; }
  .an-item:last-child { border-bottom: none; }
  .an-item:hover { background: #f8fafd; }
  .an-item-t { display: flex; align-items: center; gap: 8px; }
  .an-item-t .tt { font-size: 16px; font-weight: 600; color: #262b33; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .an-item:hover .tt { color: var(--an-accent); }
  .an-pin { flex-shrink: 0; font-size: 11px; font-weight: 600; color: #e8534e; background: #fdeceb; border: 1px solid #f8d5d3; border-radius: 4px; padding: 0 6px; line-height: 17px; }
  .an-cat { flex-shrink: 0; font-size: 11px; color: #3672d6; background: #eef4ff; border: 1px solid #d8e6ff; border-radius: 10px; padding: 0 9px; line-height: 18px; }
  .an-sum { margin-top: 7px; font-size: 13px; color: #8a919c; line-height: 1.7; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .an-meta { margin-top: 8px; font-size: 12px; color: #b6bcc4; display: flex; gap: 16px; }
  .an-empty { text-align: center; color: #b0b4bb; padding: 70px 20px; }
  .an-empty .ic { font-size: 42px; margin-bottom: 10px; }

  /* 分页 */
  .an-pager { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .an-pager a, .an-pager span { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; text-decoration: none; border: 1px solid #e6e9ef; background: #fff; color: #555; }
  .an-pager a:hover { border-color: var(--an-accent); color: var(--an-accent); }
  .an-pager .cur { background: var(--an-accent); color: #fff; border-color: var(--an-accent); }
  .an-pager .dis { color: #c8ccd3; }

  /* 详情 */
  .an-detail { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 30px 34px 36px; }
  .an-detail h1 { margin: 0 0 12px; font-size: 24px; font-weight: 700; color: #1f2530; line-height: 1.4; }
  .an-detail .d-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; color: #9aa0a8; padding-bottom: 18px; border-bottom: 1px solid #f0f2f5; margin-bottom: 22px; }
  .an-detail .d-meta .an-cat { line-height: 20px; }
  .an-article { font-size: 15px; line-height: 1.95; color: #3a4453; word-break: break-word; }
  .an-article img { max-width: 100%; height: auto; border-radius: 6px; }
  .an-article a { color: var(--an-accent); }
  .an-article p { margin: 0 0 14px; }
  .an-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-size: 14px; color: var(--an-accent); text-decoration: none; }
  .an-back:hover { text-decoration: underline; }

  @media (max-width: 768px) {
    .cat-header .cw { flex-wrap: wrap; gap: 12px; }
    .cat-search { order: 3; max-width: 100%; flex-basis: 100%; }
    .cat-home-btn { margin-left: 0; }
    .an-hero { padding: 22px 20px; } .an-hero h1 { font-size: 20px; }
    .an-detail { padding: 22px 20px 26px; } .an-detail h1 { font-size: 20px; }
  }
