/* 高职建设课堂教育札记 · jycmf 气质两栏壳
   学：顶栏 → 宽头图 → 主栏＋右「关于博主」画像
   主色墨字＋#1B4F72；禁 #ED7D31／文倍橙；白底浅灰区
*/

:root {
  --ink: #1a1a1a;
  --ink-muted: #3a3a3a;
  --ink-soft: #6b6b6b;
  --blue: #1b4f72;
  --blue-hover: #143d59;
  --blue-mid: #2e6a94;
  --blue-wash: #eef4f8;
  --blue-line: #c5d6e4;
  --page: #f3f4f6;
  --card: #ffffff;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --radius: 4px;
  --max: 1080px;
  --sidebar-w: 260px;
  --header-h: 4rem;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(27, 79, 114, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--ink);
  background: var(--page);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--blue-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* —— 顶栏（站名＋导航，白底细线） —— */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.5rem;
  min-height: var(--header-h);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 4px;
  object-fit: contain;
  background: transparent;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.menu-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink-muted);
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--blue-line);
  color: var(--blue);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: var(--blue);
  background: var(--blue-wash);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
  background: var(--blue-wash);
}

.site-nav a.external {
  color: var(--blue);
  border: 1px solid var(--blue-line);
  margin-left: 0.25rem;
  padding: 0.35rem 0.75rem;
}

.site-nav a.external:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  text-decoration: none;
}

.site-nav a.external::after {
  content: " ↗";
  font-size: 0.72em;
  opacity: 0.75;
}

/* —— 刊头横幅（学 jycmf 宽头图） —— */
.hero-banner {
  position: relative;
  width: 100%;
  background: var(--blue);
  overflow: hidden;
  line-height: 0;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: clamp(160px, 28vw, 320px);
  object-fit: cover;
  object-position: center;
}

.hero-banner.hero-banner--short img {
  height: clamp(110px, 16vw, 180px);
}

.hero-banner .hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.25rem 1.15rem;
  background: linear-gradient(transparent, rgba(15, 35, 55, 0.72));
  color: #fff;
  line-height: 1.45;
}

.hero-banner .hero-caption .wrap {
  padding-left: 0;
  padding-right: 0;
}

.hero-banner .hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.hero-banner .hero-caption h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.hero-banner .hero-caption .lead {
  margin: 0;
  max-width: 42em;
  font-size: 0.92rem;
  opacity: 0.92;
  line-height: 1.55;
}

/* 首页刊头右下：相关站点入口（仅当 caption 含 .hero-actions） */
.hero-banner .hero-caption .wrap:has(.hero-actions) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.hero-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
  flex: 0 1 auto;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.42rem 0.9rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(27, 79, 114, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-btn:hover,
.hero-btn:active {
  color: #fff;
  text-decoration: none;
  background: rgba(20, 61, 89, 0.88);
  border-color: rgba(255, 255, 255, 0.82);
}

.hero-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-btn:focus:not(:focus-visible) {
  outline: none;
}

.hero-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.45);
}

/* —— 主栏＋侧栏布局 —— */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
    align-items: start;
    gap: 1.6rem;
  }
}

.main-col {
  min-width: 0;
}

.sidebar {
  min-width: 0;
}

@media (min-width: 900px) {
  .sidebar {
    position: sticky;
    top: calc(var(--header-h) + 0.75rem);
  }
}

/* —— 关于博主卡 —— */
.author-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.author-card .author-heading {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.author-card .author-heading::before,
.author-card .author-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 2.5rem;
}

.author-card .author-photo {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto 0.9rem;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  background: var(--blue-wash);
}

.author-card .author-name {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.author-card .author-title {
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
}

.author-card .author-org {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.author-card .author-bio {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: left;
  line-height: 1.65;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--line);
}

.author-card .author-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  font-size: 0.8rem;
}

.author-card .author-links a {
  word-break: break-all;
}

/* —— 主内容块 —— */
.page-head {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem 1.3rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.page-head .page-title {
  margin: 0 0 0.45rem;
}

h1.page-title {
  font-size: clamp(1.3rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1.35;
}

.page-head .lead {
  margin: 0 0 0.5rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
  max-width: 40em;
  line-height: 1.7;
}

.page-head .byline {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
}

.intro-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem 1.3rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.intro-panel .lead {
  margin: 0 0 0.55rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.intro-panel .byline {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.6rem 0 0.85rem;
}

.section-head:first-child {
  margin-top: 0;
}

h2,
h2.section-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

h2::before,
h2.section-title::before {
  content: "";
  width: 0.32rem;
  height: 0.32rem;
  background: var(--blue);
  border-radius: 1px;
  flex: 0 0 auto;
}

.section-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0;
}

/* —— 卡片 —— */
.cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1.1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  background: var(--blue-line);
  border-radius: 0 2px 2px 0;
  transition: background 0.18s ease;
}

.card:hover {
  border-color: var(--blue-line);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(27, 79, 114, 0.08);
}

.card:hover::before {
  background: var(--blue);
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding-left: 0.35rem;
}

.card h3 a {
  color: var(--ink);
}

.card h3 a:hover {
  color: var(--blue);
  text-decoration: none;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  flex: 1;
  padding-left: 0.35rem;
  line-height: 1.65;
}

.card .tag {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--blue);
  background: var(--blue-wash);
  padding: 0.12rem 0.48rem;
  border-radius: 2px;
  width: fit-content;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-left: 0.35rem;
}

.note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0.1rem 0 0;
  padding-left: 0.35rem;
}

.empty-hint {
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 1.25rem 1.3rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.7;
}

/* —— 列表 —— */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.95rem 1.1rem 0.9rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease;
}

.list li:hover {
  border-color: var(--blue-line);
}

.list li strong {
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.list .meta {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

.badge-sample {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--page);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.06rem 0.4rem;
  margin-right: 0.38rem;
  vertical-align: 0.1em;
  letter-spacing: 0.06em;
}

/* —— 页脚 —— */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 1.7rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: #ebecef;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}


.site-footer .wrap {
  display: grid;
  gap: 0.85rem 2rem;
}

@media (min-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.site-footer .footer-brand {
  margin: 0 0 0.35rem;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.site-footer p {
  margin: 0 0 0.28rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--blue);
}

.site-footer .footer-meta {
  font-size: 0.78rem;
}

.site-footer .footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: #939393;
}

.site-footer .footer-beian a {
  color: #939393;
  text-decoration: none;
}

.site-footer .footer-beian a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.site-footer .footer-beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-footer .footer-beian-gongan img {
  width: 20px;
  height: 20px;
  display: block;
}


/* —— 窄屏：侧栏下移；导航折叠 —— */
@media (max-width: 899px) {
  .sidebar {
    order: 2;
  }

  .main-col {
    order: 1;
  }
}

@media (max-width: 640px) {
  .brand-name {
    white-space: normal;
    font-size: 0.94rem;
  }

  .menu-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.35rem 0 0.55rem;
    border-top: 1px solid var(--line);
    margin-top: 0.15rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.55rem 0.65rem;
  }

  .site-nav a.external {
    margin-left: 0;
    text-align: center;
  }

  .hero-banner .hero-caption {
    padding: 1rem 1rem 0.95rem;
  }

  .hero-banner:has(.hero-actions) img {
    height: clamp(248px, 62vw, 320px);
  }

  .hero-banner .hero-caption .wrap:has(.hero-actions) {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .layout {
    padding-top: 1.15rem;
    padding-bottom: 2rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .author-card .author-photo {
    max-width: 160px;
  }
}

/* —— 侧栏清单制（关于博主） —— */
.author-card .author-facts {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0.65rem 0 0;
  border-top: 1px dashed var(--line);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.author-card .author-facts li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.author-card .author-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 0.28rem;
  height: 0.28rem;
  background: var(--blue);
  border-radius: 1px;
}

.author-card .author-awards {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.author-card .author-awards li {
  padding-left: 0.7rem;
  font-size: 0.76rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.author-card .author-awards li::before {
  top: 0.45em;
  width: 0.22rem;
  height: 0.22rem;
  background: var(--ink-muted);
}

.author-card .author-qr {
  margin-top: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  text-align: center;
}

.author-card .author-qr img {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 0.4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.author-card .author-qr p {
  margin: 0;
  font-size: 0.74rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* —— 带头图的文章卡 —— */
.post-cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .post-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .post-cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  border-color: var(--blue-line);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(27, 79, 114, 0.08);
}

.post-card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: var(--blue-wash);
  border-bottom: 1px solid var(--line);
}

.post-card .post-body {
  padding: 0.85rem 0.95rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.post-card .post-meta {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.post-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.post-card h3 a {
  color: var(--ink);
}

.post-card h3 a:hover {
  color: var(--blue);
  text-decoration: none;
}

.post-card .post-excerpt {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}

/* —— 首页近期文章：长条横卡（不改栏目入口方块卡、不改课程页方卡） —— */
.post-cards.post-list {
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.post-card.post-card--row {
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
}

.post-card.post-card--row .thumb {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  height: auto;
  aspect-ratio: 4 / 3;
  align-self: stretch;
  object-fit: cover;
  border-bottom: none;
  border-right: 1px solid var(--line);
}

.post-card.post-card--row .post-body {
  padding: 0.65rem 0.85rem 0.7rem;
  gap: 0.25rem;
  justify-content: center;
}

.post-card.post-card--row h3 {
  font-size: 0.9rem;
  line-height: 1.4;
}

.post-card.post-card--row .post-excerpt {
  font-size: 0.78rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card.post-card--row .post-meta {
  margin-top: 0.1rem;
}

@media (max-width: 520px) {
  .post-card.post-card--row .thumb {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
  }
}


/* —— 课堂教学：一课一横栏 —— */
.course-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.05rem 1.05rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-card);
}

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

.course-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.course-row-head h2 {
  margin: 0;
  font-size: 1rem;
}

.course-row-head .course-count {
  font-size: 0.74rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.course-row .post-cards {
  margin: 0;
}

.course-row-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
  padding-top: 0.55rem;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--blue);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--blue-line);
  background: var(--blue-wash);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.more-link:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  text-decoration: none;
}

.more-link::after {
  content: "→";
  font-size: 0.9em;
}

/* —— 占位列表页 —— */
.placeholder-note {
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}


/* —— 教学成果：预览图水印壳（真文件入库后再换图） —— */
.achv-preview {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--blue-wash);
  box-shadow: var(--shadow-card);
}

.achv-preview img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: cover;
}

.achv-preview .wm-caption {
  margin: 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: #fff;
  border-top: 1px dashed var(--line);
  letter-spacing: 0.02em;
}

.achv-meta-line {
  font-size: 0.74rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.achv-detail .back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.achv-preview::after {
  content: "仅供查阅 · stpt.jycmf.cn · 陈睦锋";
  position: absolute;
  left: 0; right: 0; top: 42%;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(27, 79, 114, 0.35);
  letter-spacing: 0.06em;
  pointer-events: none;
  transform: rotate(-12deg);
}

/* —— 教学成果：按分类分段 —— */
.achv-section {
  margin: 0 0 1.35rem;
}

.achv-section:last-child {
  margin-bottom: 0;
}

.achv-section-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.achv-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.achv-section-head .line {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  background: var(--line);
  border: 0;
}

.achv-section .post-cards.post-list {
  margin: 0;
}


/* —— 正式空态／纯文字成果条 —— */
.empty-note {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted, #5a6a7a);
  font-size: 0.92rem;
}
.post-card--text {
  padding-left: 1rem;
}
.post-card--text .post-body {
  padding-left: 0;
}


/* —— 教育思考／专栏文章正文 —— */
.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  padding: 1.15rem 1.25rem 1.4rem;
}

.article--cover {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.article-head {
  margin-bottom: 0.85rem;
}

.article-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.article-kicker a {
  color: var(--blue);
}

.article-head h1 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--ink);
}

.article-head .byline {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.article-hero {
  margin: 0 0 1.1rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-wash);
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 刊头封面：满宽叠题 */
.article-cover {
  position: relative;
  margin: 0 0 1.35rem;
  border-radius: 0;
  overflow: hidden;
  background: #0f2a3d;
  border-bottom: 1px solid var(--line);
}

.article-cover > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  min-height: 220px;
  max-height: 420px;
}

.article-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem 1.4rem 1.45rem;
  background: linear-gradient(
    180deg,
    rgba(10, 28, 42, 0.12) 0%,
    rgba(10, 28, 42, 0.35) 42%,
    rgba(10, 28, 42, 0.82) 100%
  );
  color: #fff;
}

.article-cover-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  opacity: 0.92;
}

.article-cover-kicker a {
  color: #e8f1f8;
  text-decoration: none;
}

.article-cover-kicker a:hover {
  color: #fff;
  text-decoration: underline;
}

.article-cover-overlay h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.32;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  max-width: 18em;
}

.article-cover-byline {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.88;
  letter-spacing: 0.02em;
}

.article--cover .article-body,
.article--cover .article-nav {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.article--cover .article-nav {
  padding-bottom: 0.15rem;
}

.article-body {
  max-width: 42rem;
  color: var(--ink);
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-ideograph;
}

.article-body .article-lede {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.95;
  margin: 0 0 1.15rem;
}

/* 文首题记（Markdown > 引用） */
.article-body .article-epigraph {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem 0.9rem 1.15rem;
  border-left: 3px solid #1b4f72;
  background: linear-gradient(90deg, rgba(27, 79, 114, 0.06), rgba(27, 79, 114, 0.01));
  border-radius: 0 6px 6px 0;
}
.article-body .article-epigraph p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.85;
}
.article-body h2 {
  display: block;
  margin: 2rem 0 0.85rem;
  padding: 0.15rem 0 0.15rem 0.85rem;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-top: 0;
  border-left: 3px solid #1b4f72;
  line-height: 1.4;
}

.article-body h2::before {
  display: none;
}

.article-body h2:first-of-type {
  margin-top: 1.35rem;
}

.article-body p {
  margin: 0 0 1.05rem;
  text-indent: 2em; /* 首行缩进两字符 */
  text-align: justify;
  text-justify: inter-ideograph;
}

/* 题记／拉引／图注／列表内段落不缩进 */
.article-body .article-epigraph p,
.article-body .article-pull p,
.article-body figcaption,
.article-body li,
.article-body li p,
.article-body td,
.article-body th {
  text-indent: 0;
}

.article-body strong {
  font-weight: 650;
  color: #c0392b;
}

.article-body a {
  color: var(--blue);
}

/* 节间效果图 */
.article-plate {
  margin: 1.65rem 0 0.55rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-wash);
  box-shadow: 0 2px 10px rgba(27, 79, 114, 0.07);
}

.article-plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-plate figcaption {
  margin: 0;
  padding: 0.55rem 0.85rem 0.65rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  background: #fff;
  border-top: 1px solid var(--line);
}

.article-plate + h2 {
  margin-top: 0.85rem;
}

/* 拉引／主张句 */
.article-pull {
  margin: 1.35rem 0 1.45rem;
  padding: 1rem 1.15rem 1.05rem 1.2rem;
  border-left: 3px solid #c0392b;
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.06), rgba(192, 57, 43, 0.015));
  border-radius: 0 6px 6px 0;
}

.article-pull p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: #8e2a20;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.article-nav {
  margin: 1.5rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.post-card .thumb-link {
  display: contents;
}

@media (max-width: 640px) {
  .article-cover-overlay {
    padding: 1rem 1rem 1.1rem;
  }

  .article-cover-overlay h1 {
    font-size: 1.22rem;
    max-width: none;
  }

  .article-cover-byline {
    font-size: 0.72rem;
  }

  .article-cover > img {
    min-height: 200px;
    max-height: 280px;
  }

  .article--cover .article-body,
  .article--cover .article-nav {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.88;
  }

  .article-body h2 {
    font-size: 1.12rem;
    padding-left: 0.7rem;
  }
}

.post-card--pinned {
  border-left: 3px solid #b91c1c;
  background: #fffaf8;
}
.post-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #b91c1c;
  font-weight: 600;
}
.table-wrap { overflow-x: auto; margin: 1rem 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.article-body th, .article-body td { border: 1px solid #e5e7eb; padding: 0.45rem 0.6rem; text-align: left; }
.article-body th { background: #f8fafc; }

.article-body mjx-container {
  font-size: 1.05em;
}
.article-body mjx-container[display="true"] {
  margin: 1.1rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}


/* KaTeX */
.article-body .katex { font-size: 1.05em; }
.article-body .katex-display {
  margin: 1.1rem 0 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0;
}
