/* ============================================================
   药苑学促会 · 学习中心
   设计基调：纸感浅色 / 深青主色 / 衬线标题 / 细线分隔
   ============================================================ */

:root {
  --ink: #1b1c19;
  --ink-2: #6a6b64;
  --ink-3: #9c9d95;
  --paper: #faf9f5;
  --paper-2: #f2f0e9;
  --paper-3: #eae7dd;
  --line: #e3e0d6;
  --line-2: #d3cfc2;
  --green: #14564a;
  --green-2: #1f7161;
  --green-wash: #e8f0ed;
  --clay: #b45b37;
  --clay-wash: #f7ece6;
  --gold: #a8853f;
  --gold-wash: #f5efe2;

  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  --w: 1080px;
  --r: 4px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 86, 74, 0.06) 1px, transparent 0);
  background-size: 26px 26px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* 图标兜底：内联 SVG 默认按 16px 渲染，具体场景由更具体的选择器覆盖。
   缺了这条，未命中 CSS 的 SVG 会被容器撑成巨图。 */
svg { width: 16px; height: 16px; flex-shrink: 0; }

.wrap {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 顶部 ---------- */

.topline {
  height: 3px;
  background: var(--green);
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__seal {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--green);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--green);
  letter-spacing: -1px;
}

.brand__text { min-width: 0; }

.brand__name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__sub {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.4;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav a {
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: var(--r);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.topnav a:hover { background: var(--paper-2); color: var(--ink); }

.btn-console {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--green);
  border: 1px solid var(--line-2);
  background: transparent;
  padding: 7px 13px;
  border-radius: var(--r);
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-console:hover {
  border-color: var(--green);
  background: var(--green-wash);
}

.btn-console svg { width: 13px; height: 13px; }

/* ---------- 引言 ---------- */

.intro {
  padding: 42px 0 38px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232, 240, 237, 0.55) 0%, rgba(250, 249, 245, 0) 82%);
}

.intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 44px;
  align-items: end;
}

.intro__eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  color: var(--clay);
  text-transform: uppercase;
  margin-bottom: 11px;
}

.intro h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: 0.3px;
  margin: 0 0 12px;
  max-width: 21em;
  text-wrap: balance;
}

.intro h1 em {
  font-style: normal;
  color: var(--green);
  box-shadow: inset 0 -0.4em 0 var(--green-wash);
}

.intro p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  max-width: 32em;
  line-height: 1.8;
}

.intro__meta {
  border-top: 1px solid var(--line-2);
}

.meta-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.meta-num {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}

.meta-num small {
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--ink-3);
  margin-left: 2px;
  font-weight: 400;
}

.meta-label {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ---------- 板块通用 ---------- */

.section {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.section:last-of-type { border-bottom: none; }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 24px;
}

.section__no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 1px;
  padding-top: 4px;
}

.section__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.5;
}

.section__desc {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 3px 0 0;
}

.section__head-text { flex: 1; min-width: 0; }

/* ---------- 01 公告 ---------- */

.notice-list {
  border-top: 1px solid var(--line);
}

.notice {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
  position: relative;
}

.notice:hover { background: var(--paper-2); }

.notice__date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 3px;
  letter-spacing: 0.5px;
}

.notice__date b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0;
}

.notice__title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 3px;
  line-height: 1.5;
}

.notice__excerpt {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.tag--教务 { background: var(--green-wash); color: var(--green); border-color: #cfe0da; }
.tag--活动 { background: var(--clay-wash); color: var(--clay); border-color: #ecd8cd; }
.tag--招新 { background: var(--gold-wash); color: var(--gold); border-color: #e6dcc3; }
.tag--通知 { background: var(--paper-3); color: var(--ink-2); border-color: var(--line-2); }

.notice__pin {
  font-size: 10px;
  color: var(--clay);
  border: 1px solid #ecd8cd;
  border-radius: 2px;
  padding: 1px 5px;
  letter-spacing: 1px;
}

.section__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.15s;
}

.link-more:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.link-more svg { width: 14px; height: 14px; transition: transform 0.15s; }
.link-more:hover svg { transform: translateX(3px); }

/* ---------- 02 资料 ---------- */

.library-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s;
}

.library-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.library-card__main {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.library-card__badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 14px;
}

.library-card__title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: 0.4px;
  line-height: 1.5;
}

.library-card__desc {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.8;
  max-width: 30em;
}

.library-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--green);
  font-weight: 500;
}

.library-card:hover .library-card__cta svg { transform: translateX(4px); }
.library-card__cta svg { width: 15px; height: 15px; transition: transform 0.2s; }

.library-card__aside {
  background: var(--paper-2);
  border-left: 1px solid var(--line);
  padding: 26px 28px;
}

.aside__label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 1.5px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.chip-row:last-child { margin-bottom: 0; }

.chip {
  font-size: 12px;
  padding: 3px 10px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink-2);
  white-space: nowrap;
}

.chip--ghost {
  background: transparent;
  border-style: dashed;
  color: var(--ink-3);
}

/* ---------- 03 小帮手 ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  transition: border-color 0.2s, transform 0.2s;
  min-height: 172px;
}

.tool:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.tool__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.tool__mark--a { background: var(--green-wash); color: var(--green); }
.tool__mark--b { background: var(--clay-wash); color: var(--clay); }
.tool__mark--c { background: var(--gold-wash); color: var(--gold); }
.tool__mark--d { background: var(--paper-3); color: var(--ink-2); }

.tool__body { flex: 1; }

.tool__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 5px;
  letter-spacing: 0.3px;
}

.tool__desc {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
}

.tool__status {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool__status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-2);
}

.tool--soon {
  background: transparent;
  border-style: dashed;
}

.tool--soon .tool__status::before { background: var(--ink-3); }

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 40px;
  margin-top: 20px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
}

.footer__links { display: flex; gap: 18px; }
.footer__links a:hover { color: var(--green); }

/* 备案信息：空着时高度为 0，填了备案号才占位 */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.9;
}

.footer__legal a {
  color: var(--ink-3);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.footer__legal a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ---------- 子页面通用 ---------- */

.page-head {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.crumb {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumb a:hover { color: var(--green); }
.crumb span { color: var(--line-2); }

.page-head h1 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.page-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  max-width: 40em;
  line-height: 1.75;
}

/* ---------- 公告全览 ---------- */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.filter-bar__label {
  font-size: 12px;
  color: var(--ink-3);
  margin-right: 4px;
  letter-spacing: 1px;
}

.filter-btn {
  font-size: 12.5px;
  padding: 5px 13px;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: 2px;
  color: var(--ink-2);
  transition: all 0.15s;
}

.filter-btn:hover { border-color: var(--green); color: var(--green); }

.filter-btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.ann-list { padding: 8px 0 60px; }

.ann-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.ann-item:hover { background: var(--paper-2); }

.ann-item__date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 4px;
}

.ann-item__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.5;
}

.ann-item__excerpt {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.75;
}

/* ---------- 资料库 ---------- */

.lib-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 40px;
  padding: 32px 0 64px;
  align-items: start;
}

.lib-side {
  position: sticky;
  top: 88px;
}

.lib-side__group { margin-bottom: 26px; }

.lib-side__label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 1.5px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.lib-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.lib-side__list button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  padding: 6px 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all 0.15s;
}

.lib-side__list button:hover { color: var(--green); }

.lib-side__list button.is-active {
  color: var(--green);
  border-left-color: var(--green);
  font-weight: 500;
  background: linear-gradient(90deg, var(--green-wash), transparent);
}

.lib-main__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.lib-main__count {
  font-size: 13px;
  color: var(--ink-2);
}

.lib-main__count b { color: var(--ink); font-weight: 600; }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.doc-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.doc-card:hover { border-color: var(--green); }

.doc-card__ext {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: var(--paper-3);
  color: var(--ink-2);
}

.doc-card__body { min-width: 0; flex: 1; }

.doc-card__name {
  font-size: 13.5px;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-card__meta {
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.empty {
  padding: 76px 20px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  background: var(--paper-2);
}

.empty__title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 8px;
}

.empty__desc {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.8;
}

/* ---------- 内容台 ---------- */

/* 注意：只设上下内边距，左右由 .wrap 提供，否则会把 .wrap 的左右留白覆盖成 0 */
.console-wrap { padding-top: 40px; padding-bottom: 70px; }

.gate {
  max-width: 400px;
  margin: 90px auto;
  padding: 36px 34px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
}

.gate__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--green);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--green);
}

.gate__icon svg { width: 20px; height: 20px; }

.gate h2 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 8px;
  font-weight: 600;
}

.gate p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 24px;
  line-height: 1.7;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 1px;
  margin-bottom: 7px;
}

.input {
  width: 100%;
  padding: 10px 13px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-wash);
}

.input--code {
  font-family: var(--mono);
  letter-spacing: 6px;
  font-size: 17px;
  text-align: center;
  padding: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  transition: all 0.15s;
}

.btn:hover { border-color: var(--green); color: var(--green); }

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-2);
  border-color: var(--green-2);
  color: #fff;
}

.btn--full { width: 100%; }

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

.btn--danger { color: var(--clay); border-color: #ecd8cd; }
.btn--danger:hover { background: var(--clay-wash); border-color: var(--clay); color: var(--clay); }

.hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 12px;
  line-height: 1.7;
}

.error-msg {
  font-size: 12.5px;
  color: var(--clay);
  margin-top: 10px;
  display: none;
}

.error-msg.is-on { display: block; }

.console-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-wrap: wrap;
}

.console-head h1 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
  font-weight: 600;
}

.console-head__actions { display: flex; gap: 8px; }

.tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.tab {
  padding: 12px 18px;
  font-size: 13.5px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-2);
  margin-bottom: -1px;
  transition: all 0.15s;
}

.tab:hover { color: var(--ink); }

.tab.is-active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 500;
}

.panel { display: none; }
.panel.is-active { display: block; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.stat {
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: #fff;
}

.stat__label {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stat__value {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--green);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 1px;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tr:hover td { background: var(--paper-2); }

.table__actions { display: flex; gap: 6px; justify-content: flex-end; }

.notice-tip {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gold-wash);
  border: 1px solid #e6dcc3;
  border-radius: var(--r);
  font-size: 12.5px;
  color: #6b5522;
  line-height: 1.7;
  margin-bottom: 24px;
}

.notice-tip strong { font-weight: 600; }

/* ---------- 弹窗 ---------- */

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(27, 28, 25, 0.42);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-mask.is-open { display: flex; }

.modal {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border-radius: 6px;
  border: 1px solid var(--line-2);
  padding: 28px 30px;
  max-height: 90vh;
  overflow: auto;
}

.modal h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 6px;
  font-weight: 600;
}

.modal__sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 0 0 22px;
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

textarea.input { resize: vertical; min-height: 84px; line-height: 1.6; }

select.input { appearance: none; background-image: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .intro__inner { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .intro__meta { display: flex; border-top: none; }
  .meta-item {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    border-bottom: none;
    border-left: 2px solid var(--line);
    padding: 1px 0 1px 12px;
  }
  .meta-item:first-child { border-left-color: var(--green); }
  .library-card { grid-template-columns: 1fr; }
  .library-card__aside { border-left: none; border-top: 1px solid var(--line); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .lib-layout { grid-template-columns: 1fr; gap: 24px; }
  .lib-side { position: static; }
  .lib-side__group { margin-bottom: 16px; }
  .lib-side__list { display: flex; flex-wrap: wrap; border-left: none; }
  .lib-side__list button { width: auto; border-left: none; border-bottom: 2px solid transparent; }
  .lib-side__list button.is-active { border-left: none; border-bottom-color: var(--green); background: none; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat { padding: 14px 12px; }
  .stat__label { font-size: 10.5px; letter-spacing: 0.5px; margin-bottom: 6px; }
  .stat__value { font-size: 20px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .intro { padding: 26px 0 24px; }
  .intro h1 { font-size: 20px; line-height: 1.55; margin-bottom: 10px; }
  .intro p { font-size: 12.5px; }
  .intro__meta { margin-top: 2px; }
  .meta-num { font-size: 17px; }
  .meta-label { font-size: 11px; }
  .section { padding: 34px 0; }
  .section__title { font-size: 18px; }
  .section__head { margin-bottom: 18px; }
  .topnav a { display: none; }
  .topnav a.keep { display: inline-block; }
  .notice { grid-template-columns: 46px 1fr; gap: 10px 12px; padding: 14px 2px; }
  .notice__meta { grid-column: 2; padding-top: 4px; }
  .notice__date b { font-size: 15px; }
  .notice__title { font-size: 14px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool { min-height: 0; padding: 18px; }
  .lib-grid { grid-template-columns: 1fr; }
  .ann-item { grid-template-columns: 1fr; gap: 6px; padding: 18px 2px; }
  .ann-item__date { padding-top: 0; font-size: 11px; }
  .ann-item__title { font-size: 15px; }
  .page-head { padding: 26px 0 20px; }
  .page-head h1 { font-size: 22px; }
  .library-card__main { padding: 22px 20px; }
  .library-card__aside { padding: 20px; }
  .brand__sub { display: none; }
  .gate { margin: 40px auto; padding: 26px 22px; }
}

/* ============================================================
   品牌区（logo）
   ============================================================ */

.brand__logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}

.brand__name {
  font-size: 16px;
  letter-spacing: 0.3px;
}

.brand__sub {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: none;
}

/* ============================================================
   小课堂 / 特别活动
   ============================================================ */

.act-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.act-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  min-width: 0;
}

.act-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.act-card--large { grid-column: span 2; }

/* 海报为竖版长图（示例：720×1037，比例约 3:4） */
.act-card__poster {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  background-color: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.act-card--large .act-card__poster { aspect-ratio: 3 / 4; }

.act-card__poster--empty {
  background-image: repeating-linear-gradient(
    45deg,
    var(--paper-2) 0 10px,
    #eeece4 10px 20px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.act-card__poster--empty svg {
  width: 30px;
  height: 30px;
  color: var(--ink-3);
  opacity: 0.45;
}

.act-card__poster--empty span {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 1px;
  background: var(--paper);
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
}

.act-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.act-card__date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--clay);
  letter-spacing: 0.5px;
}

.act-card__title {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.act-card__excerpt {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.act-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.act-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-2);
  min-width: 0;
}

.act-meta svg { width: 12px; height: 12px; flex: 0 0 12px; color: var(--ink-3); }

.act-meta--reward { color: var(--clay); }
.act-meta--reward svg { color: var(--clay); }

/* ---------- 活动详情（帖子式） ---------- */

.post-wrap { padding: 30px 0 60px; }

.post {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
}

.post__poster {
  aspect-ratio: 720 / 1037;
  max-height: 580px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  background-color: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.post__poster--empty {
  background-image: repeating-linear-gradient(45deg, var(--paper-2) 0 12px, #eeece4 12px 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.post__poster--empty svg {
  width: 38px;
  height: 38px;
  color: var(--ink-3);
  opacity: 0.45;
}

.post__poster--empty span {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 1px;
  background: var(--paper);
  padding: 4px 12px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
}

.post__body { padding: 26px 32px 34px; }

.post__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.post__date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.post__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.4px;
  margin: 0 0 20px;
}

.post__info {
  border-left: 2px solid var(--green);
  padding-left: 15px;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}

.post__info-row {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}

.post__info-label {
  flex: 0 0 62px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.post__content {
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.post__video {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}

.post__video:hover { border-color: var(--green); background: var(--green-wash); }

.post__video-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
}

.post__video-icon svg { width: 15px; height: 15px; margin-left: 2px; }

.post__video > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }

.post__video b { font-size: 13.5px; font-weight: 500; }
.post__video em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.post__video > svg { width: 14px; height: 14px; color: var(--ink-3); flex: 0 0 14px; }

.post__back { max-width: 720px; margin: 20px auto 0; display: flex; }

/* ============================================================
   加入我们
   ============================================================ */

.join-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 30px;
  border: 1px solid #cdd8d3;
  border-radius: 6px;
  background: linear-gradient(100deg, #e9f1ee 0%, #f7f4ed 58%, #ffffff 100%);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.join-strip:hover {
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(20, 86, 74, 0.07);
}

.join-strip__text { min-width: 0; }

.join-strip__eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 9px;
}

.join-strip h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 7px;
  letter-spacing: 0.4px;
}

.join-strip p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.7;
  max-width: 34em;
}

.join-strip__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
}

.join-strip__cta svg { width: 12px; height: 12px; transition: transform 0.2s; }
.join-strip:hover .join-strip__cta svg { transform: translateX(4px); }

.join-hero {
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232, 240, 237, 0.55) 0%, rgba(250, 249, 245, 0) 85%);
}

.join-hero h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.45;
  letter-spacing: 0.4px;
}

.join-hero p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 36em;
  line-height: 1.85;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dept {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.dept:hover { border-color: var(--green); }

/* 部门数为奇数时，最后一张横跨两列，避免右侧留空 */
.dept-grid > .dept:last-child:nth-child(odd) { grid-column: span 2; }

.dept__no {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--clay);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.dept__name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.4px;
}

.dept__duty {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 1.2px;
  margin-bottom: 11px;
}

.dept__desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
  margin: 0;
}

.dept__contact {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

/* ============================================================
   页脚三段
   ============================================================ */

.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 38px;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.foot__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 13px;
}

.foot__title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.4px;
}

.foot__title span {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--clay);
  margin-left: 7px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.foot__desc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.75;
  margin: 0 0 12px;
}

.foot__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--green);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.foot__link:hover { border-bottom-color: var(--green); }
.foot__link--cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: var(--green-wash);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.foot__link--cta:hover {
  background: var(--green);
  color: #fff;
  border-bottom-color: transparent;
}

.foot__link--cta svg { width: 13px; height: 13px; }
.foot__link svg { width: 13px; height: 13px; }

.foot__pending {
  display: inline-block;
  font-size: 11.5px;
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.foot__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.foot__contact li {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink);
}

/* 标签按内容宽度撑开、不换行；内容占剩余宽度 */
.foot__contact li {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px;
  align-items: baseline;
}

.foot__contact b {
  color: var(--ink-3);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
}

.foot__contact li span {
  line-height: 1.7;
  word-break: break-word;
}

.social-list { display: grid; gap: 8px; }

.social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
}

a.social:hover { border-color: var(--green); background: #fff; }

.social--pending { opacity: 0.62; }

.social__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--ink-2);
}

.social__icon svg { width: 15px; height: 15px; }

.social__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.social__text b { font-size: 12.5px; font-weight: 500; }

.social__text em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social > svg { width: 13px; height: 13px; flex: 0 0 13px; color: var(--ink-3); }

/* ---------- 新板块响应式 ---------- */

@media (max-width: 900px) {
  .act-grid { grid-template-columns: repeat(2, 1fr); }
  .act-card--large { grid-column: span 2; }
  .act-card--large .act-card__poster { aspect-ratio: 16 / 9; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-grid > div:last-child { grid-column: 1 / -1; }
  .dept-grid { grid-template-columns: 1fr; }
  .join-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 640px) {
  .brand__logo { width: 32px; height: 32px; flex: 0 0 32px; }
  .brand__name { font-size: 14.5px; }
  .act-grid { grid-template-columns: 1fr; }
  .act-card--large { grid-column: span 1; }
  .act-card--large .act-card__poster { aspect-ratio: 16 / 10; }
  .act-card__title { font-size: 15.5px; }
  .act-card__body { padding: 15px 16px 17px; }
  .post-wrap { padding: 18px 0 40px; }
  .post__body { padding: 20px 20px 26px; }
  .post__title { font-size: 19px; }
  .post__content { font-size: 14px; line-height: 1.9; }
  .post__info-row { font-size: 13px; }
  .post__info-label { flex: 0 0 56px; font-size: 12px; }
  .join-hero { padding: 26px 0 22px; }
  .join-hero h1 { font-size: 21px; }
  .join-hero p { font-size: 12.5px; }
  .join-strip { padding: 20px; }
  .join-strip h3 { font-size: 18px; }
  .dept { padding: 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; padding: 30px 0 26px; }
  .foot-grid > div:last-child { grid-column: auto; }
  .site-grid { grid-template-columns: 1fr; }
  .tab { padding: 10px 12px; font-size: 12.5px; }
}

/* ============================================================
   内容台：表格单元格与站点信息
   ============================================================ */

.empty-cell { color: var(--ink-3); padding: 30px 12px !important; }

.mono-cell {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.cell-title { font-weight: 500; margin-bottom: 2px; }

.cell-sub {
  font-size: 12px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
}

.cell-dim { color: var(--ink-3); font-size: 12px; }

.cell-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 3px;
}

.chip-x {
  color: var(--clay);
  cursor: pointer;
  margin-left: 3px;
  font-weight: 400;
}

.chip-x:hover { color: var(--red, #a32d2d); }

.site-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.site-block:first-child { padding-top: 6px; }

.site-block__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 5px;
  letter-spacing: 0.4px;
}

.site-block__sub {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 18px;
  line-height: 1.7;
}

.site-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.site-grid .field { margin-bottom: 0; }

/* ---------- 图片选择 / 上传 ---------- */

.img-picker {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.img-picker__preview {
  width: 84px;
  flex: 0 0 84px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background-color: var(--paper-2);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--ink-3);
  overflow: hidden;
}

.img-picker__preview.has-img {
  border-color: var(--green);
}

.img-picker__ctrl {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.img-picker__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.img-picker__row .input { flex: 1; min-width: 0; }

.img-picker__row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.img-picker__hint {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
}

/* 保存状态 */
.save-state {
  font-size: 12px;
  color: var(--ink-3);
  align-self: center;
  margin-right: 6px;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .img-picker { gap: 10px; }
  .img-picker__preview { width: 64px; flex: 0 0 64px; }
  .img-picker__row { flex-direction: column; }
  .img-picker__row .btn { align-self: flex-start; }
}

/* ============================================================
   内容台表格 —— 窄屏卡片化
   5 列表格在手机上必然横向溢出，改成「一条记录一张卡」
   ============================================================ */

@media (max-width: 720px) {
  .table { display: block; }
  .table thead { display: none; }
  .table tbody { display: block; }

  .table tbody tr {
    display: block;
    padding: 14px 16px 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 6px;
  }

  .table tbody tr:hover td { background: transparent; }

  .table tbody td {
    display: block;
    width: auto !important;
    padding: 0;
    border: none;
    font-size: 13px;
  }

  .table tbody td[data-label] {
    display: inline-block;
    margin-right: 16px;
    margin-top: 4px;
  }

  .table tbody td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 0;
    font-size: 11px;
    color: var(--ink-3);
    margin-right: 5px;
  }

  .table tbody td.mono-cell {
    font-size: 11px;
    color: var(--ink-3);
    margin-bottom: 5px;
  }

  .table tbody td .cell-title {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 3px;
  }

  .table tbody td .cell-sub {
    white-space: normal !important;
    max-width: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .table tbody td .tool__status { font-size: 11px; }

  .table tbody td.table__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .table tbody td.table__actions .btn { padding: 6px 14px; }

  .table tbody td.empty-cell {
    text-align: center;
    padding: 26px 12px !important;
    border: 1px dashed var(--line-2);
    border-radius: 6px;
    color: var(--ink-3);
  }

  /* 内容台头部：标题与按钮分行 */
  .console-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .console-head__actions { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  .save-state { margin-right: auto; }

  .console-wrap { padding-top: 24px; padding-bottom: 50px; }

  .site-grid { grid-template-columns: 1fr; }

  .tabs { margin-bottom: 20px; }
  .tab { padding: 9px 11px; font-size: 12.5px; }
}

/* ============================================================
   404 页面
   ============================================================ */

.err-wrap {
  padding: 72px 0 96px;
  text-align: center;
}

.err-code {
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 600;
  line-height: 1;
  color: var(--green);
  opacity: 0.16;
  letter-spacing: 4px;
  margin-bottom: 14px;
}

.err-wrap h1 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: 0.4px;
}

.err-wrap p {
  margin: 0 0 28px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.err-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .err-wrap { padding: 48px 0 64px; }
  .err-code { font-size: 56px; }
  .err-wrap h1 { font-size: 19px; }
}
