/* ============================================================
 * 资料领取室 · 设计系统
 * 品牌：内蒙古优学仕（公考/事业编培训）
 *
 * ⚠️ 色值与圆角**直接对齐官网** `assets/css/variables.css`（2026-10-21）：
 *    官网主品牌紫是 --purple-500 = #8b3cf6，深色是 --purple-900 = #2a1b5c。
 *    本站原先用 #534AB7（偏靛蓝）与 #471765（偏酒红），与官网并排时明显不同色系。
 *    改色只动这里的变量，组件规则不用逐条改。
 * ============================================================ */

:root {
  /* 品牌紫阶梯（= 官网 variables.css） */
  --purple-deep: #2a1b5c;    /* 官网 --purple-900 */
  --purple-main: #8b3cf6;    /* 官网 --purple-500，主品牌紫 */
  --purple-strong: #5f2fd0;  /* 官网 --purple-600，用于白底上的文字（对比度更够） */
  --purple-light: #c4a8f5;   /* 官网 --purple-300 */
  --purple-bg: #f1ecfe;      /* 官网 --purple-100 */
  --purple-wash: #f8f5ff;    /* 官网 --purple-50 */

  /* 强调色 */
  --gold: #f5b642;           /* 官网 --gold-500 */
  --gold-deep: #a8690c;
  --gold-soft: #fef3dd;      /* 官网 --gold-100 */

  /* 中性色（= 官网 ink / line） */
  --ink: #2e2a45;            /* 官网 --ink-700 */
  --ink-soft: #6b6680;       /* 官网 --ink-500 */
  --ink-faint: #8a8598;      /* 官网 --ink-400 */
  --line: #e8e4f2;           /* 官网 --line */
  --line-soft: #f0edf8;      /* 官网 --line-soft */
  --white: #ffffff;

  /* 语义色（= 官网 success / danger） */
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --warn: #a8690c;
  --danger: #dc2626;

  /* 圆角（= 官网 sm/md/lg/xl） */
  --radius-sm: 10px;         /* 官网 --radius-md，按钮/输入框 */
  --radius: 16px;            /* 官网 --radius-lg，卡片 */
  --radius-lg: 24px;         /* 官网 --radius-xl，页面外框 */

  /* 阴影（官网用 rgba(42,27,92,…) 体系，比原来的酒红投影更中性） */
  --shadow-sm: 0 1px 3px rgba(42, 27, 92, 0.08);
  --shadow: 0 6px 20px rgba(42, 27, 92, 0.10);
  --shadow-lg: 0 16px 44px rgba(42, 27, 92, 0.16);
  --shadow-purple: 0 10px 34px rgba(139, 60, 246, 0.30);

  --page-w: 460px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
 * 兜底横幅（地址守卫）
 * 仅在两种异常下由 origin-guard.js 注入：
 *   ① 从非正式地址打开、但处于离线状态；② 自动跳转被浏览器/沙箱拦下。
 * 正式地址下、以及正常的跨域预览（会被自动跳转），都不会出现。
 * 用 sticky 吸顶：不脱离文档流，无需为其它元素补偏移。
 * ============================================================ */
.origin-guard {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 16px;
  background: linear-gradient(120deg, #7a1f1f, #a83232);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.origin-guard__body {
  flex: 1 1 320px;
  min-width: 0;
}

.origin-guard__title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
}

.origin-guard__desc {
  font-size: 12px;
  line-height: 1.55;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-all;
}

.origin-guard__desc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.16);
  padding: 1px 5px;
  border-radius: 4px;
}

.origin-guard__btn {
  flex: none;
  display: inline-block;
  padding: 8px 15px;
  border-radius: 9px;
  background: #fff;
  color: #8c2323;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.origin-guard__btn:hover {
  background: #fff3f3;
}

/* 必须放在所有布局规则之前生效：任何设置了 display 的元素都会覆盖
   hidden 属性的默认 display:none，导致"已隐藏"的弹窗/视图实际仍然可见。 */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  background: var(--purple-bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
}

.page {
  max-width: var(--page-w);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--purple-wash);
  box-shadow: 0 0 0 1px rgba(42, 27, 92, 0.04);
}

/* ===================== 顶部品牌区 ===================== */
.hero {
  background: linear-gradient(150deg, #221245 0%, #4c2ba0 58%, var(--purple-main) 100%);
  color: #fff;
  padding: 26px 22px 30px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 26px 26px;
  flex: none;
}

.hero::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(196, 168, 245, 0.22);
  top: -96px;
  right: -74px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(240, 168, 48, 0.13);
  bottom: -66px;
  left: -54px;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__brand {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #ebd9ff;
  margin-bottom: 10px;
}

.hero__title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.hero__title em {
  font-style: normal;
  color: var(--gold);
}

.hero__sub {
  margin-top: 7px;
  font-size: 13px;
  color: #d9c7f5;
  letter-spacing: 0.5px;
}

/* ===================== 主体 ===================== */
main {
  flex: 1 1 auto;
  padding: 0 16px 24px;
}

/* 卡片 */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

/* 专属链接卡 */
.link-card {
  margin-top: -18px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}

/* 说明卡（贴在 hero 下方，覆盖 hero 圆角形成的空隙） */
.intro-card {
  margin-top: -18px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}

.intro-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 6px;
}

.intro-card__text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* 错误详情卡 */
.err-box {
  margin-top: 14px;
  background: #fff8f7;
  border: 1px solid #f3d5d1;
  box-shadow: none;
}

.err-box__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 6px;
}

.err-box__text {
  font-size: 12px;
  color: #8c3a30;
  line-height: 1.6;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-height: 200px;
  overflow-y: auto;
  -webkit-user-select: text;
  user-select: text;
}

.err-box__actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.link-card__label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold-deep);
  background: rgba(240, 168, 48, 0.14);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.link-card__title {
  margin-top: 9px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.link-card__meta {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.link-card__meta .urgent {
  color: var(--danger);
  font-weight: 600;
}

/* 提示块 */
.notice {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 3px solid var(--purple-light);
}

.notice--warn {
  border-left-color: var(--danger);
  color: #8c3a30;
  background: #fff7f6;
}

.notice__title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

/* 区块 */
.section {
  margin-top: 22px;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.section__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--purple-deep);
  letter-spacing: 0.3px;
}

.section__count {
  font-size: 12px;
  color: var(--ink-faint);
}

.section__hint {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: -4px 0 10px;
  padding: 0 2px;
  line-height: 1.5;
}

/* ===================== 资料列表 ===================== */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 13px 13px 13px 12px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.item--locked {
  background: #fbfaff;
}

.item--in-bundle {
  border-color: rgba(139, 60, 246, 0.24);
}

.item--unlocked {
  border-color: rgba(31, 157, 79, 0.28);
  background: #fbfffc;
}

.item__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--purple-bg);
}

/* 图标是 200×200 位图，按 24px 显示，在 40px 容器内自然留白 */
.item__icon-img {
  display: block;
  width: 24px;
  height: 24px;
}

/* 底色与图标主色呼应：网课为绿、PDF 为琥珀 */
.item__icon--pdf {
  background: #fff4e2;
}

/* 2026-10-19：文件类资料（PDF / Word / Excel / PPT / 压缩包）统一用黄色文档图标。
   --pdf 保留给旧样式引用，新增代码用 --file。 */
.item__icon--file {
  background: #fff4e2;
}

.item__icon--netdisk {
  background: #e9f8ef;
}

.item__body {
  flex: 1 1 auto;
  min-width: 0;
}

.item__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.item__desc {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item__tags {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--purple-bg);
  color: var(--purple-strong);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tag--pdf {
  background: #fdeceb;
  color: #b2433a;
}

/* 2026-10-19：文件类资料统一标签配色（--pdf 保留向后兼容） */
.tag--file {
  background: #fdeceb;
  color: #b2433a;
}

.tag--netdisk {
  background: #e8f2ff;
  color: #2b63a8;
}

.tag--muted {
  background: #f1eff5;
  color: var(--ink-faint);
}

.tag--ok {
  background: rgba(31, 157, 79, 0.12);
  color: var(--ok);
}

/* 条目操作区 */
.item__action {
  flex: none;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===================== 按钮 ===================== */
.btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.06s ease, background 0.15s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  /* 与官网 .btn--primary 同一渐变（--grad-brand） */
  background: linear-gradient(135deg, #6d28d9 0%, #8b3cf6 55%, #a35ff9 100%);
  color: #fff;
  box-shadow: var(--shadow-purple);
}

.btn--ghost {
  background: var(--purple-bg);
  color: var(--purple-main);
}

.btn--line {
  background: #fff;
  color: var(--purple-strong);
  border: 1px solid var(--purple-light);
}

.btn--ok {
  background: rgba(31, 157, 79, 0.1);
  color: var(--ok);
  border: 1px solid rgba(31, 157, 79, 0.35);
}

.btn--block {
  display: block;
  width: 100%;
  padding: 13px;
  font-size: 15px;
  border-radius: 12px;
}

.btn--sm {
  padding: 6px 11px;
  font-size: 12.5px;
}

.btn--tiny {
  padding: 4px 9px;
  font-size: 11.5px;
  border-radius: 8px;
}

.link-card__cta {
  margin-top: 14px;
}

/* ===================== 网盘信息 ===================== */
.netdisk {
  margin-top: 8px;
  background: #f7f9ff;
  border: 1px dashed #c8d6f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #2b4a7a;
}

.netdisk__row {
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}

.netdisk__row + .netdisk__row {
  margin-top: 4px;
}

.netdisk__k {
  flex: none;
  color: var(--ink-faint);
}

.netdisk__v {
  flex: 1 1 auto;
  min-width: 0;
}

.netdisk__actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ===================== 弹窗 ===================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(43, 20, 60, 0.5);
  backdrop-filter: blur(2px);
  padding: 0;
}

.modal__panel {
  width: 100%;
  max-width: var(--page-w);
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
  animation: sheet-up 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 92vh;
  overflow-y: auto;
}

@keyframes sheet-up {
  from {
    transform: translateY(28px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.modal__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--purple-deep);
}

.modal__desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.55;
}

.modal__close {
  flex: none;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0 2px;
}

.field {
  margin-bottom: 13px;
}

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field__row {
  display: flex;
  gap: 8px;
}

.input {
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fdfcff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(196, 168, 245, 0.28);
}

.input--code {
  letter-spacing: 5px;
  text-align: center;
  font-weight: 600;
}

.field__error {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--danger);
  min-height: 17px;
}

.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 4px 0 14px;
}

.consent input {
  margin-top: 3px;
  flex: none;
  width: 15px;
  height: 15px;
  accent-color: var(--purple-main);
}

.modal__foot {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* ===================== 页脚 ===================== */
.footer {
  flex: none;
  padding: 20px 22px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.7;
}

.footer__brand {
  color: var(--ink-soft);
  font-weight: 600;
}

.footer__contact {
  color: var(--purple-main);
  font-weight: 600;
}

/* ===================== 轻提示 ===================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(43, 20, 60, 0.93);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 88vw;
  text-align: center;
}

.toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================== 骨架/空态 ===================== */
.skeleton {
  height: 68px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f3f0f8 25%, #ece7f5 37%, #f3f0f8 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.empty {
  text-align: center;
  padding: 34px 16px;
  color: var(--ink-faint);
  font-size: 13.5px;
  background: #fff;
  border-radius: var(--radius);
}

/* ===================== 窄屏适配 ===================== */
@media (max-width: 390px) {
  .hero__title {
    font-size: 24px;
  }
  .item {
    padding: 12px 11px;
  }
  /* 窄屏把按钮压成舒适点按尺寸。刻意排除 .btn--block：
     它是大号主按钮（13px 内边距 / 15px 字号），
     而本段规则位置在后、特异性又相同，会把「加载更多」「验证并领取」一起压矮。 */
  .btn:not(.btn--block) {
    padding: 7px 11px;
    font-size: 13px;
  }
}

@media (min-width: 700px) {
  body {
    background: linear-gradient(140deg, #f8f5ff 0%, #f1ecfe 55%, #fdf9f4 100%);
    padding: 26px 0;
  }
  .page {
    border-radius: 22px;
    overflow: hidden;
    min-height: auto;
    box-shadow: var(--shadow-lg);
  }
  .modal {
    align-items: center;
  }
  .modal__panel {
    border-radius: 22px;
    max-width: 420px;
    margin: 0 16px;
  }
}

/* ============================================================
 * 招聘公告主导页（2026-10-13 改版新增）
 * 设计意图：公告是主体，筛选要一行放下（横向滚动），
 *          卡片保持极简（性质标签 + 标题 + 更新日期 + 右侧两个按钮）。
 * ============================================================ */

/* ---------- 数据滞后提示（回收 .notice--warn 的左侧色条） ---------- */
#annoStaleHint {
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- 筛选与检索 ---------- */
.anno-toolbar {
  margin-top: 18px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-main);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, color .18s, box-shadow .18s;
}

.chip--on {
  background: linear-gradient(135deg, #6d28d9 0%, #8b3cf6 55%, #a35ff9 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.search {
  position: relative;
}

.search__input {
  padding-right: 40px;
}

.search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--ink-faint);
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}

/* ---------- 公告卡片 ---------- */
.anno {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 13px;
}

.anno__body {
  flex: 1 1 auto;
  min-width: 0;
}

.anno__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.anno__date {
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* 报名状态徽章（2026-10-16）：取代卡片上的"更新 X-XX"。
 * 状态不是直接取库里的值，而是按「采集日 + 状态」推算成**今天**的真实状态
 * （库里的"今日截止"指的是采集当天）。配色含义：
 *   绿 = 还能报 ／ 橙 = 临近截止（今/明日）／ 灰 = 已截止或需以官方为准 */
.anno__status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  background: #f1eff5;
  color: var(--ink-faint);
}

.anno__status--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.anno__status--warn {
  background: var(--gold-soft);
  color: var(--warn);
}

/* ---------- 嵌入模式（?embed=1）----------
 * 本页被官网 www.nmgyouxueshi.com 以 iframe 内嵌时启用：
 * 官网已有自己的导航与品牌头，再叠一层本页的 hero 会显得重复。
 * 故只隐藏 hero 与页脚，其余（筛选、列表、弹窗、骨架屏）完全不动。
 * 注意：不改任何定位方式——弹窗/toast 依赖 position:fixed，
 * 所以内嵌时必须让 iframe 高度等于可视区高度（由官网那侧控制），否则弹窗会跑到屏幕外。 */
.is-embed .hero,
.is-embed .footer {
  display: none;
}

.is-embed main {
  padding-top: 14px;
}

.is-embed .anno-toolbar {
  margin-top: 0;
}

.anno__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.anno__owned {
  display: inline-block;
  margin-top: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ok);
}

.anno__actions {
  flex: none;
  width: 92px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.anno__actions .btn {
  text-align: center;
  white-space: nowrap;
}

.anno__n {
  display: inline-block;
  margin-left: 3px;
  font-size: 11px;
  opacity: .85;
}

/* ---------- 「加载更多」按钮容器 ---------- */
/* 该容器仅在 index.html 出现一次（#annoMoreWrap），与列表 #annoList 是兄弟节点，
   所以 .list 的 gap 管不到它——不写这段，按钮会硬贴在最后一张卡片下面（实测 0px）。
   上 16px 比卡片间的 10px 略大，让按钮读起来像"一个动作"而非"又一张卡片"。
   下边距刻意用 padding 而非 margin：它与下方 .section 的 margin-top 是相邻兄弟，
   写 margin-bottom 会触发外边距合并（6px 被 22px 吃掉，等于没加）。 */
#annoMoreWrap {
  margin-top: 16px;
  padding-bottom: 6px;
}

/* ---------- 领取弹窗里的「来自公告」一行 ---------- */
.modal__anno-line {
  font-size: 12.5px;
  color: var(--purple-main);
  background: var(--purple-bg);
  border-radius: 9px;
  padding: 7px 11px;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* 极窄屏：右侧按钮列改为卡片底部横排，避免标题被压成 4 行 */
@media (max-width: 360px) {
  .anno {
    flex-direction: column;
  }
  .anno__actions {
    width: 100%;
    flex-direction: row;
  }
  .anno__actions .btn {
    flex: 1 1 0;
  }
}

/* ============================================================
 * 宽屏（桌面 / 平板）排版适配（2026-10-21）
 * ------------------------------------------------------------
 * 原版是移动优先的 460px 单栏：在电脑上打开（尤其是官网内嵌 iframe）
 * 会变成屏幕正中一条窄带，两侧大片留白，标题也挤在两行里。
 * 这里只做「宽屏下加宽 + 双列」，所有规则都在 min-width 里，
 * ≤699px 的手机端一个像素都不受影响。
 * ============================================================ */
@media (min-width: 700px) {
  .page {
    max-width: 660px;
  }
}

@media (min-width: 1000px) {
  .page {
    max-width: 960px;
  }

  main {
    padding: 0 26px 32px;
  }

  /* 公告 / 通用资料：双列。卡片等高（grid 默认 stretch），
     这样每行两张卡的按钮不会一高一低。 */
  #annoList.list,
  #genericList.list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  #annoList .anno,
  #genericList .item {
    height: 100%;
  }

  /* 宽屏下搜索框不必拉满一行，限制在阅读舒适的宽度 */
  .anno-toolbar .search {
    max-width: 460px;
  }

  /* 「加载更多」在大屏上拉满一行会显得很笨重，收窄居中 */
  #annoMoreWrap .btn {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 独立访问（非内嵌）时的品牌头：宽屏下给足呼吸感 */
  .hero {
    padding: 34px 32px 38px;
  }

  .hero__title {
    font-size: 30px;
  }

  /* 字号向官网看齐（官网正文 16px、区块标题更大），宽屏下略放大 */
  body {
    font-size: 15.5px;
  }

  .section__title {
    font-size: 18px;
  }

  .section__hint {
    font-size: 13px;
  }

  .anno {
    padding: 15px;
  }

  .anno__title {
    font-size: 15.5px;
  }
}

