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

/* ============================================================
   CSS 变量 & 全局重置
   ============================================================ */
:root {
  --color-primary: #5cc6b0;
  --color-primary-dark: #3da890;
  --color-sand: #d4c4a8;
  --color-sand-light: #ede3d2;
  --color-sand-dark: #b8a88a;
  --color-forest: #172623;
  --color-forest-mid: #243b37;
  --color-forest-light: #345950;
  --color-bg: #f5efe4;
  --color-bg-card: #faf6ef;
  --color-text: #1e2e2b;
  --color-text-muted: #5a6b68;
  --color-accent-line: #5cc6b0;
  --color-border: #d4c4a8;
  --sidebar-width: 240px;
  --font-main: 'Figtree', 'Noto Sans', system-ui, -apple-system, sans-serif;
  --radius-card: 18px;
  --radius-sm: 8px;
  --radius-btn: 10px;
  --shadow-card: 0 2px 12px rgba(23,38,35,0.08), 0 1px 3px rgba(23,38,35,0.04);
  --shadow-nav: 2px 0 16px rgba(23,38,35,0.10);
  --transition-base: 0.25s ease-out;
  --transition-stagger: 0.12s;
}

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

html {
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* 纹理覆盖层 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

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

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover, a:focus {
  color: var(--color-forest);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

hr {
  border: none;
  border-top: 2px solid var(--color-primary);
  margin: 1rem 0 1.5rem;
  opacity: 0.55;
  border-radius: 2px;
}

/* ============================================================
   布局骨架：左侧固定导航 + 右侧内容区
   ============================================================ */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ============================================================
   左侧导航
   ============================================================ */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-forest);
  color: var(--color-sand);
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: var(--shadow-nav);
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-brand {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--color-forest-light);
}

.brand-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  display: block;
  letter-spacing: 0.01em;
  transition: color var(--transition-base);
}

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

.nav-search {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--color-forest-light);
}

.search-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-forest-light);
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--color-forest-mid);
  border: none;
  color: var(--color-sand);
  font-family: var(--font-main);
  font-size: 0.82rem;
  outline: none;
  min-width: 0;
}

.search-form input[type="search"]::placeholder {
  color: var(--color-sand-dark);
}

.search-form button {
  padding: 0.5rem 0.65rem;
  background: var(--color-primary);
  border: none;
  color: var(--color-forest);
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition-base);
  min-width: 40px;
  min-height: 40px;
}

.search-form button:hover {
  background: var(--color-primary-dark);
}

/* 导航列表 — nav > ol > li > a 结构 */
.nav-list {
  padding: 0.75rem 0;
  flex: 1;
}

.nav-list li {
  display: block;
}

.nav-list li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--color-sand);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  transition: background var(--transition-base), color var(--transition-base), padding-left var(--transition-base);
  border-left: 3px solid transparent;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-list li a:hover,
.nav-list li a:focus,
.nav-list li a[aria-current="page"] {
  background: var(--color-forest-mid);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  padding-left: 1.5rem;
  text-decoration: none;
}

/* ============================================================
   主内容区域
   ============================================================ */
.main-wrap {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ============================================================
   Hero 区块
   ============================================================ */
.hero {
  min-height: 45vh;
  background: var(--color-forest);
  display: flex;
  align-items: flex-end;
  padding: 3rem 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(92,198,176,0.08) 100%);
  pointer-events: none;
}

.hero-inner {
  text-align: right;
  max-width: 780px;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-eyebrow a {
  color: var(--color-primary);
}

.hero-eyebrow a:hover {
  color: var(--color-sand);
}

.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-sand-light);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--color-sand-dark);
  font-weight: 300;
  max-width: 520px;
  margin-left: auto;
  line-height: 1.6;
}

/* ============================================================
   面包屑
   ============================================================ */
.entry-breadcrumb {
  background: var(--color-sand-light);
  padding: 0.65rem 2.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.entry-breadcrumb a {
  color: var(--color-text-muted);
}

.entry-breadcrumb a:hover {
  color: var(--color-primary-dark);
}

/* ============================================================
   主内容容器：main > article > section 结构
   ============================================================ */
.content-main {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 1200px;
  width: 100%;
  align-items: flex-start;
}

.content-main--narrow {
  max-width: 1000px;
}

.content-main--entry {
  max-width: 1100px;
}

/* article 作为直接子元素 */
.home-article,
.cat-article,
.entry-article,
.tag-article,
.about-article,
.privacy-article,
.default-article {
  flex: 1;
  min-width: 0;
}

/* section 作为 article 直接子元素 */
.home-content-section,
.home-cats-section,
.home-recent-section,
.cat-intro-section,
.cat-children-section,
.entry-header-section,
.entry-body-section,
.tag-intro-section,
.tag-results-section,
.about-intro-section,
.about-cats-section,
.privacy-header-section,
.privacy-body-section,
.default-header-section,
.default-body-section {
  display: block;
  margin-bottom: 2.5rem;
}

/* ============================================================
   侧边栏 aside（内容左侧，CSS flex order）
   ============================================================ */
.home-aside,
.cat-aside,
.entry-aside,
.tag-aside,
.about-aside,
.privacy-aside,
.default-aside {
  width: 220px;
  flex-shrink: 0;
  order: -1;
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
}

.home-aside h3,
.cat-aside h3,
.entry-aside h3,
.tag-aside h3,
.about-aside h3,
.privacy-aside h3,
.default-aside h3 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  margin-top: 1.25rem;
}

.home-aside h3:first-child,
.cat-aside h3:first-child,
.entry-aside h3:first-child,
.tag-aside h3:first-child,
.about-aside h3:first-child,
.privacy-aside h3:first-child,
.default-aside h3:first-child {
  margin-top: 0;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-links li a {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), color var(--transition-base);
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-links li a:hover {
  background: var(--color-sand-light);
  color: var(--color-forest);
  text-decoration: none;
}

/* ============================================================
   Prose（正文 HTML 内容）
   ============================================================ */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}

.prose p {
  margin-bottom: 1.2em;
}

.prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-forest);
  margin: 2em 0 0.3em;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--color-forest-light);
  margin: 1.5em 0 0.25em;
}

.prose h2 + hr,
.prose h3 + hr {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-color: rgba(92,198,176,0.4);
}

.prose a:hover {
  text-decoration-color: var(--color-primary);
}

.prose strong {
  font-weight: 600;
  color: var(--color-forest);
}

.prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  background: var(--color-sand-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.prose code {
  background: var(--color-sand-light);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--color-forest);
}

.prose pre {
  background: var(--color-forest);
  color: var(--color-sand);
  padding: 1.25em;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.88em;
  margin: 1.5em 0;
}

/* ============================================================
   首页专属样式
   ============================================================ */
.home-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.home-cat-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow-card);
  border-bottom: 3px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  animation: fadeInUp 0.5s ease-out both;
}

.home-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(23,38,35,0.13);
}

.cat-card-head {
  display: flex;
  align-items: flex-start;
}

.cat-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1.35;
  text-decoration: none;
}

.cat-card-title:hover {
  color: var(--color-primary-dark);
}

.cat-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cat-card-links {
  margin-top: 0.25rem;
}

.cat-card-links li a {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: 0.2em 0;
  display: block;
  transition: color var(--transition-base);
}

.cat-card-links li a:hover {
  color: var(--color-primary-dark);
}

.cat-card-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-top: auto;
  padding-top: 0.5rem;
  text-decoration: none;
}

.cat-card-more:hover {
  color: var(--color-forest);
}

.recent-entries-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recent-entry-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  animation: fadeInUp 0.4s ease-out both;
}

.recent-entry-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
  line-height: 1.4;
}

.recent-entry-link:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.entry-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   栏目页专属样式（dl > dt > a + dd 结构）
   ============================================================ */
.children-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.children-dl dt {
  margin-top: 1rem;
}

.children-dl dt:first-child {
  margin-top: 0;
}

.children-dl dt a {
  display: block;
  background: var(--color-bg-card);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: 0.9rem 1.25rem 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-forest);
  border-bottom: 2px solid var(--color-primary);
  box-shadow: var(--shadow-card);
  transition: background var(--transition-base), color var(--transition-base);
  text-decoration: none;
}

.children-dl dt a:hover {
  background: var(--color-sand-light);
  color: var(--color-primary-dark);
}

.children-dl dd {
  background: var(--color-bg-card);
  padding: 0.6rem 1.25rem 1rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 0.25rem;
}

.children-dl time {
  font-size: 0.78rem;
  color: var(--color-sand-dark);
  display: inline-block;
  margin-left: 0.5rem;
}

/* ============================================================
   entry 页专属
   ============================================================ */
.entry-h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.entry-meta-date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-sand-light);
  padding: 0.2em 0.6em;
  border-radius: 4px;
}

.entry-meta-mod {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.entry-meta-cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: rgba(92,198,176,0.12);
  padding: 0.2em 0.7em;
  border-radius: 4px;
}

.entry-hero-wrap {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.entry-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   tag 页
   ============================================================ */
.tag-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.tag-entry-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.25rem 1rem;
  box-shadow: var(--shadow-card);
  border-bottom: 3px solid var(--color-sand-dark);
  transition: border-color var(--transition-base), transform var(--transition-base);
  animation: fadeInUp 0.4s ease-out both;
}

.tag-entry-card:hover {
  border-bottom-color: var(--color-primary);
  transform: translateY(-2px);
}

.tag-entry-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-forest);
  display: block;
  margin-bottom: 0.4rem;
  line-height: 1.35;
  text-decoration: none;
}

.tag-entry-title:hover {
  color: var(--color-primary-dark);
}

.tag-entry-desc {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ============================================================
   about 页
   ============================================================ */
.about-date {
  font-size: 0.82rem;
  color: var(--color-sand-dark);
}

.about-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.about-cat-list li {
  padding: 0.6rem 0.75rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border-left: 3px solid var(--color-primary);
}

.about-cat-list a {
  font-weight: 600;
  color: var(--color-forest);
}

/* ============================================================
   privacy 页
   ============================================================ */
.privacy-h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.privacy-date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 1rem;
}

/* ============================================================
   页脚：footer > address + ul 结构
   ============================================================ */
.site-footer {
  background: var(--color-forest);
  color: var(--color-sand);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  gap: 2rem;
  padding: 2rem 2.5rem 1.5rem;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-sand-dark);
}

.footer-address strong {
  color: var(--color-primary);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.3rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.footer-links li a {
  display: block;
  padding: 0.4rem 0.2rem;
  font-size: 0.82rem;
  color: var(--color-sand-dark);
  transition: color var(--transition-base);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-links li a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-bar {
  padding: 0.85rem 2.5rem;
  border-top: 1px solid var(--color-forest-light);
  font-size: 0.78rem;
  color: var(--color-sand-dark);
  text-align: center;
}

/* ============================================================
   h2/h3 + hr 装饰（标题装饰契约）
   ============================================================ */
h2 + hr,
h3 + hr {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  border-top-width: 2px;
  border-color: var(--color-primary);
  opacity: 0.5;
}

/* ============================================================
   辅助类
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   动效（Stagger List, Fade-in）
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-cat-card:nth-child(1) { animation-delay: 0.05s; }
.home-cat-card:nth-child(2) { animation-delay: 0.15s; }
.home-cat-card:nth-child(3) { animation-delay: 0.25s; }
.home-cat-card:nth-child(4) { animation-delay: 0.35s; }

.recent-entry-item:nth-child(1) { animation-delay: 0.08s; }
.recent-entry-item:nth-child(2) { animation-delay: 0.16s; }
.recent-entry-item:nth-child(3) { animation-delay: 0.24s; }
.recent-entry-item:nth-child(4) { animation-delay: 0.32s; }
.recent-entry-item:nth-child(5) { animation-delay: 0.40s; }
.recent-entry-item:nth-child(6) { animation-delay: 0.48s; }

.tag-entry-card:nth-child(1) { animation-delay: 0.06s; }
.tag-entry-card:nth-child(2) { animation-delay: 0.12s; }
.tag-entry-card:nth-child(3) { animation-delay: 0.18s; }
.tag-entry-card:nth-child(4) { animation-delay: 0.24s; }

/* 视差容器 */
.hero {
  will-change: transform;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   响应式断点
   ============================================================ */

/* 平板 */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 200px;
  }

  .content-main {
    padding: 2rem 1.75rem 1.75rem;
    gap: 1.5rem;
  }

  .home-cats-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .home-aside,
  .cat-aside,
  .entry-aside,
  .tag-aside,
  .about-aside,
  .privacy-aside,
  .default-aside {
    width: 190px;
  }
}

/* 移动端 */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }

  html {
    font-size: 16px;
  }

  .sidebar-nav {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: column;
    box-shadow: none;
    border-bottom: 2px solid var(--color-forest-light);
  }

  .nav-brand {
    padding: 1rem 1.25rem;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0.5rem;
  }

  .nav-list li {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .nav-list li a {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    min-height: 44px;
  }

  .nav-list li a:hover,
  .nav-list li a:focus {
    border-left: none;
    border-bottom-color: var(--color-primary);
    padding-left: 0.75rem;
  }

  .layout-wrapper {
    flex-direction: column;
  }

  .main-wrap {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    padding: 2rem 1.25rem 1.75rem;
  }

  .hero-h1 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .hero-inner {
    text-align: right;
    max-width: 100%;
  }

  .content-main {
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
    max-width: 100%;
  }

  .home-aside,
  .cat-aside,
  .entry-aside,
  .tag-aside,
  .about-aside,
  .privacy-aside,
  .default-aside {
    width: 100%;
    order: 10;
    position: static;
  }

  .home-cats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .tag-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    padding: 1.5rem 1.25rem 1rem;
    gap: 1.25rem;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bar {
    padding: 0.75rem 1.25rem;
  }

  .entry-breadcrumb {
    padding: 0.5rem 1.25rem;
    font-size: 0.78rem;
  }

  .children-dl dt a {
    padding: 0.75rem 1rem 0.5rem;
  }

  .children-dl dd {
    padding: 0.5rem 1rem 0.75rem;
  }
}

/* 超小屏 */
@media (max-width: 400px) {
  .home-cats-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .nav-list li {
    min-width: 100%;
  }
}
