@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

/* ============================
   CSS 变量与基础重置
   ============================ */
:root {
  --bg: #fafaf8;
  --ink: #1a1a1a;
  --mid: #4a4a4a;
  --accent: #1a1a1a;
  --paper: #f0ede6;
  --line: #ccc9c0;
  --warm: #e8e4d8;
  --radius: 10px;
  --font: 'Noto Sans Thai', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
  --max-w: 900px;
  --max-wide: 1100px;
}

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

html {
  font-size: 17px;
  line-height: 1.7;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 16px);
  /* paper texture overlay via pseudo */
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

/* ============================
   导航 — 底部固定条
   ============================ */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--ink);
  border-top: 2px solid var(--mid);
}

.bottom-nav {
  display: flex;
  align-items: stretch;
  height: var(--nav-h);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 8px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bottom-nav::-webkit-scrollbar {
  display: none;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-brand {
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
}

.nav-brand-link {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.brand-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: 0.05em;
  white-space: nowrap;
  border: 1.5px solid var(--bg);
  padding: 4px 10px;
  border-radius: 20px;
  transform: rotate(-1deg);
  display: block;
}

.nav-a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: var(--line);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 20px;
  white-space: nowrap;
  transition: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.nav-a:hover,
.nav-a--active {
  color: var(--bg);
  border-color: var(--bg);
  background: rgba(250,250,248,0.1);
  transform: rotate(-0.5deg);
}

/* ============================
   面包屑
   ============================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 0 12px;
  font-size: 14px;
  color: var(--mid);
  flex-wrap: wrap;
}

.bc-link {
  color: var(--mid);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

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

.bc-sep {
  color: var(--line);
  font-size: 12px;
}

.bc-current {
  color: var(--ink);
  font-weight: 500;
}

/* ============================
   主容器
   ============================ */
main {
  padding-top: 0;
}

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

/* ============================
   section / article 结构
   按抽签：main > div.wrap > section > article
   但 tagPaths 禁止 /main/div/section/article
   所以 article 作为直接子元素，section 里放 article
   用不同 class 区分避免撞禁用路径
   ============================ */

/* ============================
   标题装饰：h2后跟hr
   ============================ */
.section-h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 0;
  transform: rotate(-0.3deg);
  display: inline-block;
}

.sketch-hr {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 8px 0 24px;
  position: relative;
  opacity: 0.7;
  /* hand-drawn feel */
  clip-path: polygon(0 40%, 1% 60%, 2% 30%, 3% 70%, 4% 40%, 5% 60%, 6% 35%,
    8% 65%, 10% 40%, 15% 55%, 20% 42%, 30% 58%, 40% 43%, 50% 57%,
    60% 44%, 70% 56%, 80% 43%, 90% 57%, 95% 44%, 97% 58%, 99% 45%, 100% 50%,
    100% 55%, 0 55%);
}

/* ============================
   首页 Hero
   ============================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  margin: 0 -20px;
  padding: 0 20px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
  opacity: 0.55;
}

.hero-slash {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--ink);
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 80px 0 140px;
  max-width: 600px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--bg);
  opacity: 0.7;
  margin-bottom: 12px;
  text-transform: none;
  border-left: 3px solid var(--bg);
  padding-left: 10px;
}

.hero-h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bg);
  margin-bottom: 20px;
  transform: rotate(-0.5deg);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--bg);
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  border: 2px solid var(--bg);
  transform: rotate(0.5deg);
  letter-spacing: 0.04em;
}

.hero-cta:hover {
  background: transparent;
  color: var(--bg);
}

/* ============================
   正文内容区（通用）
   ============================ */
.content-section {
  padding: 40px 0;
}

.content-article,
.article-body,
.about-body,
.privacy-body {
  max-width: var(--max-w);
}

.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}

.page-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2em 0 0.4em;
  color: var(--ink);
}

.page-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5em 0 0.3em;
}

.page-content p {
  margin: 0 0 1em;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1em 1.5em;
}

.page-content li {
  margin-bottom: 0.4em;
}

.page-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: wavy;
}

.page-content a:hover {
  opacity: 0.7;
}

.page-content strong {
  font-weight: 700;
}

.page-content blockquote {
  border-left: 3px solid var(--ink);
  margin: 1.5em 0;
  padding: 8px 16px;
  background: var(--warm);
  transform: rotate(-0.2deg);
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95rem;
}

.page-content th,
.page-content td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.page-content th {
  background: var(--warm);
  font-weight: 700;
}

/* ============================
   子页列表（topic / home）
   用 table > tbody > tr > td 结构
   ============================ */
.topics-table,
.children-table,
.articles-table,
.related-table,
.topics-mini-table,
.about-topics-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  margin: 0;
}

/* topic 卡片 */
.topic-row,
.article-row,
.child-row,
.rel-row,
.topic-mini-row,
.about-topic-row {
  opacity: 0;
  transform: translateY(20px);
}

.topic-row.visible,
.article-row.visible,
.child-row.visible,
.rel-row.visible,
.topic-mini-row.visible,
.about-topic-row.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.topic-td,
.article-td {
  padding: 0;
}

.topic-card,
.article-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  border-radius: var(--radius);
  transform: rotate(-0.2deg);
  position: relative;
  overflow: hidden;
}

.topic-card::before,
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ink);
  opacity: 0.08;
}

.topic-card:hover,
.article-card:hover {
  transform: rotate(0deg) translateY(-2px);
  border-bottom-width: 6px;
}

.topic-label,
.article-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mid);
  font-weight: 500;
  text-transform: none;
}

.topic-card-title,
.article-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
  line-height: 1.4;
}

.topic-card-desc,
.article-card-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.5;
}

.topic-card-count {
  font-size: 12px;
  color: var(--mid);
  font-weight: 500;
  margin-top: 4px;
}

.card-date {
  font-size: 12px;
  color: var(--mid);
  display: block;
}

/* ============================
   topic hero
   ============================ */
.topic-hero {
  position: relative;
  margin: 40px -20px 0;
  padding: 60px 20px 80px;
  background: var(--ink);
  overflow: hidden;
}

.topic-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0%, 100% 100%);
}

.topic-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}

.topic-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--bg);
  opacity: 0.6;
  border: 1px solid rgba(250,250,248,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.topic-h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--bg);
  line-height: 1.25;
  margin-bottom: 16px;
  transform: rotate(-0.3deg);
}

.topic-desc {
  font-size: 1rem;
  color: var(--bg);
  opacity: 0.8;
  max-width: 600px;
  line-height: 1.6;
}

.topic-slash {
  position: absolute;
  bottom: -1px;
  left: -5%;
  right: -5%;
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0%, 100% 100%, 0 100%);
}

/* ============================
   children 列表
   ============================ */
.child-num {
  width: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mid);
  vertical-align: top;
  padding-top: 22px;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.child-main {
  padding: 16px 0;
  border-bottom: 1.5px solid var(--line);
}

.child-main:hover {
  border-bottom-color: var(--ink);
}

.child-thumb-wrap {
  margin-bottom: 10px;
}

.child-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(20%);
  border: 1.5px solid var(--ink);
}

.child-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.child-title-link {
  display: block;
}

.child-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
  line-height: 1.4;
}

.child-title-link:hover .child-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.child-desc {
  font-size: 0.9rem;
  color: var(--mid);
  margin: 0;
}

.child-date {
  font-size: 12px;
  color: var(--mid);
}

.child-empty {
  padding: 24px 0;
  color: var(--mid);
  font-size: 0.9rem;
}

/* ============================
   article 页
   ============================ */
.article-header-section {
  padding: 40px 0 24px;
}

.article-meta-block {
  margin-bottom: 24px;
}

.article-dates {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-date {
  font-size: 13px;
  color: var(--mid);
  font-weight: 400;
}

.article-h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
  transform: rotate(-0.2deg);
}

.article-lead {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.6;
  border-left: 3px solid var(--ink);
  padding-left: 14px;
}

.article-hero-img-wrap {
  margin: 0 -20px 24px;
}

.article-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  border-bottom: 2px solid var(--ink);
}

.article-body-section {
  padding: 0 0 40px;
}

/* related articles */
.related-section {
  padding: 0 0 40px;
}

.rel-td {
  padding: 0;
}

.rel-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rel-link:hover {
  border-bottom-color: var(--ink);
}

.rel-title {
  font-size: 1rem;
  font-weight: 600;
  display: block;
}

.rel-desc {
  font-size: 0.875rem;
  color: var(--mid);
}

.rel-date {
  font-size: 12px;
  color: var(--mid);
}

/* topic nav mini */
.topic-nav-section {
  padding: 0 0 48px;
}

.topic-mini-td {
  padding: 0;
}

.topic-mini-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}

.topic-mini-link strong {
  font-weight: 600;
  flex-shrink: 0;
}

.topic-mini-link span {
  color: var(--mid);
  font-size: 0.875rem;
}

.topic-mini-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================
   about 页
   ============================ */
.about-intro-section {
  padding: 48px 0 24px;
}

.about-intro-article {
  max-width: 600px;
}

.about-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mid);
  border: 1px solid var(--mid);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.about-h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
  transform: rotate(-0.3deg);
}

.about-tagline {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.6;
}

.about-content-section {
  padding: 24px 0 40px;
  border-top: 2px solid var(--ink);
}

.about-topics-section {
  padding: 0 0 48px;
}

.about-topic-td {
  padding: 0;
}

.about-topic-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.about-topic-link:hover {
  border-bottom-color: var(--ink);
}

.about-topic-name {
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

.about-topic-desc {
  font-size: 0.875rem;
  color: var(--mid);
}

/* ============================
   privacy 页
   ============================ */
.privacy-header-section {
  padding: 48px 0 24px;
}

.privacy-header-article {
  max-width: 600px;
}

.privacy-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mid);
  border: 1px solid var(--mid);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.privacy-h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
  transform: rotate(-0.2deg);
}

.privacy-date {
  font-size: 13px;
  color: var(--mid);
  display: block;
}

.privacy-content-section {
  padding: 24px 0 48px;
  border-top: 1.5px solid var(--ink);
}

/* ============================
   页脚
   footer 三列 dl
   ============================ */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  margin-top: 60px;
  position: relative;
}

.site-footer::before {
  content: '';
  display: block;
  height: 40px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

.footer-cta-block {
  text-align: center;
  padding: 40px 20px 32px;
  border-bottom: 1px solid rgba(250,250,248,0.15);
}

.footer-cta-text {
  font-size: 1.1rem;
  color: var(--bg);
  margin-bottom: 20px;
  font-weight: 500;
  opacity: 0.9;
}

.footer-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--bg);
  border-radius: 4px;
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transform: rotate(-0.5deg);
}

.footer-cta-btn:hover {
  background: var(--bg);
  color: var(--ink);
}

.footer-cols {
  display: flex;
  gap: 0;
  padding: 40px 20px;
  max-width: var(--max-wide);
  margin: 0 auto;
  border-bottom: 1px solid rgba(250,250,248,0.1);
}

.footer-dl {
  flex: 1;
  padding: 0 20px;
  border-right: 1px solid rgba(250,250,248,0.1);
}

.footer-dl:last-child {
  border-right: none;
}

.footer-dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bg);
  opacity: 0.5;
  margin-bottom: 16px;
  text-transform: none;
  display: block;
}

.footer-dd {
  margin: 0 0 10px;
  list-style: none;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--bg);
  opacity: 0.75;
  line-height: 1.5;
  display: inline-block;
  min-height: 24px;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px calc(20px + var(--nav-h));
  max-width: var(--max-wide);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--bg);
  opacity: 0.4;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links .footer-link {
  font-size: 12px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

/* ============================
   topics section (home)
   ============================ */
.topics-section,
.recent-section,
.children-section,
.about-topics-section {
  padding: 40px 0;
}

/* ============================
   斜切色带
   ============================ */
.slash-band {
  height: 60px;
  background: var(--warm);
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 100%);
  margin: 40px -20px;
}

/* ============================
   动效：Stagger List + Scroll Reveal
   ============================ */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* stagger via nth-child */
.reveal-item:nth-child(2).visible { transition-delay: 0.08s; }
.reveal-item:nth-child(3).visible { transition-delay: 0.16s; }
.reveal-item:nth-child(4).visible { transition-delay: 0.24s; }
.reveal-item:nth-child(5).visible { transition-delay: 0.32s; }
.reveal-item:nth-child(6).visible { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
  .hero-cta,
  .footer-cta-btn,
  .topic-card,
  .article-card {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================
   响应式 — 移动端 375px
   ============================ */
@media (max-width: 640px) {
  :root {
    --nav-h: 58px;
  }

  html {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .bottom-nav {
    padding: 0 4px;
    gap: 2px;
  }

  .nav-a {
    font-size: 12px;
    padding: 8px 8px;
    min-height: 44px;
  }

  .brand-text {
    font-size: 12px;
    padding: 4px 8px;
  }

  .hero-text {
    padding: 60px 0 120px;
  }

  .hero-h1 {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .footer-cols {
    flex-direction: column;
    padding: 32px 16px;
    gap: 0;
  }

  .footer-dl {
    padding: 20px 0;
    border-right: none;
    border-bottom: 1px solid rgba(250,250,248,0.1);
  }

  .footer-dl:last-child {
    border-bottom: none;
  }

  .footer-bottom {
    padding: 16px 16px calc(16px + var(--nav-h));
  }

  .topic-hero {
    padding: 40px 16px 70px;
  }

  .article-hero-img-wrap {
    margin: 0 -16px 20px;
  }

  .section-h2 {
    font-size: 1.1rem;
    margin-top: 36px;
  }

  .child-num {
    width: 28px;
    font-size: 12px;
  }

  .topic-mini-link {
    flex-direction: column;
    gap: 4px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .hero-h1 {
    font-size: 2.2rem;
  }

  .footer-cols {
    padding: 32px 20px;
  }
}

/* ============================
   桌面宽屏增强
   ============================ */
@media (min-width: 901px) {
  .topics-table .topic-td,
  .articles-table .article-td {
    display: table-cell;
  }

  .topics-table,
  .articles-table {
    display: table;
  }

  /* 双列卡片布局 */
  .topics-table tbody,
  .articles-table tbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .topics-table tbody tr,
  .articles-table tbody tr {
    display: contents;
  }

  .topics-table tbody tr td,
  .articles-table tbody tr td {
    display: block;
  }

  .nav-a {
    font-size: 13px;
    padding: 8px 14px;
  }

  .footer-cta-text {
    font-size: 1.3rem;
  }
}

/* ============================
   手绘装饰元素（伪元素）
   ============================ */
.topic-card::after,
.article-card::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  opacity: 0.4;
}

/* 小印章风格标记 */
.hero-eyebrow::before {
  content: '◆ ';
  font-size: 10px;
  opacity: 0.5;
}

/* 时间显示样式 */
time {
  font-variant-numeric: tabular-nums;
}
