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

/* =====================
   CSS 变量 & 重置
   ===================== */
:root {
  --c-mint: #b4fde1;
  --c-blue: #add8e6;
  --c-dark: #172620;
  --c-mint-deep: #6ee8b8;
  --c-blue-deep: #7ab8cc;
  --c-dark-mid: #1e3a30;
  --c-dark-light: #2a4a3e;
  --c-text: #172620;
  --c-text-muted: #3a5a4e;
  --c-bg: #f0fdf8;
  --c-surface: #ffffff;
  --c-surface2: #e8faf3;
  --c-border: #172620;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --border-w: 3px;
  --border-thick: 4px;

  --shadow-clay: 4px 4px 0px var(--c-dark), inset -2px -2px 8px rgba(23,38,32,0.12);
  --shadow-clay-hover: 6px 6px 0px var(--c-dark), inset -2px -2px 10px rgba(23,38,32,0.16);
  --shadow-btn: 3px 3px 0px var(--c-dark), inset -1px -1px 4px rgba(23,38,32,0.15);
  --shadow-btn-hover: 5px 5px 0px var(--c-dark), inset -1px -1px 6px rgba(23,38,32,0.2);

  --ff-serif: 'Noto Serif JP', 'Georgia', 'Times New Roman', serif;
  --ff-sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;

  --nav-h: 64px;
  --aside-w: 240px;
  --content-max: 760px;
  --page-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  padding-bottom: calc(var(--nav-h) + 1rem);
  min-height: 100vh;
}

/* =====================
   底部固定导航条
   ===================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-dark);
  border-top: var(--border-w) solid var(--c-mint);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 -4px 16px rgba(23,38,32,0.4);
}

.bottom-nav-brand {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-mint);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.bottom-nav-brand:hover {
  color: var(--c-blue);
}

.bottom-nav-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  max-width: 280px;
  margin: 0 1rem;
}

.bottom-nav-search input {
  flex: 1;
  height: 40px;
  border: var(--border-w) solid var(--c-mint);
  border-radius: var(--radius-sm);
  background: var(--c-dark-light);
  color: var(--c-mint);
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  padding: 0 0.75rem;
  outline: none;
}

.bottom-nav-search input::placeholder {
  color: var(--c-mint-deep);
  opacity: 0.6;
}

.bottom-nav-search input:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 2px rgba(173,216,230,0.3);
}

.bottom-nav-search button {
  height: 40px;
  min-width: 40px;
  border: var(--border-w) solid var(--c-mint);
  border-radius: var(--radius-sm);
  background: var(--c-mint);
  color: var(--c-dark);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0 0.75rem;
  font-family: var(--ff-sans);
  font-weight: 700;
  transition: background 0.2s ease-out;
}

.bottom-nav-search button:hover {
  background: var(--c-mint-deep);
}

.bottom-nav-menu-btn {
  height: 40px;
  min-width: 40px;
  border: var(--border-w) solid var(--c-mint);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-mint);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0 0.75rem;
  font-family: var(--ff-sans);
  white-space: nowrap;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.bottom-nav-menu-btn:hover,
.bottom-nav-menu-btn[aria-expanded="true"] {
  background: var(--c-mint);
  color: var(--c-dark);
}

/* 下拉菜单 */
.bottom-nav-dropdown {
  position: fixed;
  bottom: var(--nav-h);
  right: 0;
  left: 0;
  background: var(--c-dark-mid);
  border-top: var(--border-w) solid var(--c-mint-deep);
  z-index: 99;
  display: none;
  padding: 1rem;
}

.bottom-nav-dropdown.is-open {
  display: block;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  max-width: var(--page-max);
  margin: 0 auto;
}

.dropdown-grid a {
  display: block;
  color: var(--c-mint);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--c-dark-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.dropdown-grid a:hover {
  border-color: var(--c-mint);
  background: var(--c-dark-light);
}

/* =====================
   页面包装器 & 布局
   ===================== */
.page-wrapper {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  display: grid;
  grid-template-columns: var(--aside-w) 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem;
  grid-template-areas:
    "aside main"
    "aside main"
    "footer footer";
  align-items: start;
}

/* aside 左侧 */
.home-aside,
.section-aside,
.story-aside,
.tag-aside,
.about-aside,
.privacy-aside,
.default-aside {
  grid-area: aside;
  position: sticky;
  top: 1rem;
}

main {
  grid-area: main;
  min-width: 0;
}

footer {
  grid-area: footer;
}

/* =====================
   首页特殊布局：全宽 hero
   ===================== */
.home-page {
  grid-template-columns: 1fr;
  grid-template-areas:
    "main"
    "footer";
}

.home-page .home-aside {
  display: none;
}

.home-page main {
  grid-area: main;
}

/* =====================
   Hero 区块
   ===================== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-mid) 60%, var(--c-dark-light) 100%);
  border-radius: var(--radius-lg);
  border: var(--border-thick) solid var(--c-mint);
  box-shadow: var(--shadow-clay);
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2.5rem;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.hero-text h1 {
  font-family: var(--ff-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--c-mint);
  line-height: 1.3;
  text-shadow: 2px 2px 0 rgba(23,38,32,0.5);
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--c-blue);
  line-height: 1.75;
  max-width: 480px;
}

.hero-media {
  flex: 0 0 340px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: var(--border-w) solid var(--c-mint-deep);
  display: block;
}

.hero-deco-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180,253,225,0.15) 0%, rgba(173,216,230,0.08) 60%, transparent 100%);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-slash {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--c-bg);
  clip-path: polygon(0 100%, 100% 0%, 100% 100%);
  z-index: 3;
}

/* =====================
   Clay 卡片
   ===================== */
.clay-card {
  background: var(--c-surface);
  border: var(--border-w) solid var(--c-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-clay);
  padding: 1.25rem;
  transition: box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clay-card:hover {
  box-shadow: var(--shadow-clay-hover);
  transform: translateY(-2px);
}

/* =====================
   section 卡片网格（首页）
   ===================== */
.sec-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.sec-card {
  background: linear-gradient(135deg, var(--c-mint) 0%, var(--c-blue) 100%);
  border-radius: var(--radius-md);
  border: var(--border-w) solid var(--c-dark);
  box-shadow: var(--shadow-clay);
  padding: 0;
  transition: box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sec-card:hover {
  box-shadow: var(--shadow-clay-hover);
  transform: translateY(-3px) scale(1.01);
}

.sec-card a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--c-dark);
}

.sec-card strong {
  font-family: var(--ff-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.sec-card .sec-desc {
  font-size: 0.875rem;
  opacity: 0.75;
  line-height: 1.5;
}

.sec-card small {
  font-size: 0.75rem;
  background: rgba(23,38,32,0.12);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  align-self: flex-start;
}

/* =====================
   子页 / 标签列表（ol > li > a + small）
   ===================== */
.child-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1rem;
  counter-reset: child-counter;
}

.child-item {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  border: var(--border-w) solid var(--c-dark);
  box-shadow: var(--shadow-clay);
  padding: 0;
  display: flex;
  align-items: stretch;
  counter-increment: child-counter;
  overflow: hidden;
}

.child-item::before {
  content: counter(child-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  background: linear-gradient(180deg, var(--c-mint) 0%, var(--c-blue) 100%);
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--c-dark);
  border-right: var(--border-w) solid var(--c-dark);
  flex-shrink: 0;
}

.child-item a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--c-dark);
  flex: 1;
  transition: background 0.15s;
}

.child-item a:hover {
  background: var(--c-surface2);
}

.child-item a strong {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.child-item a small {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.child-item time {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  padding: 0.5rem 1rem;
  align-self: flex-end;
  white-space: nowrap;
}

/* =====================
   首页最新文章列表
   ===================== */
.story-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
}

.story-item {
  background: var(--c-surface);
  border: var(--border-w) solid var(--c-dark);
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0px var(--c-dark), inset -1px -1px 4px rgba(23,38,32,0.08);
  overflow: hidden;
  transition: box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-item:hover {
  box-shadow: var(--shadow-clay-hover);
  transform: translateX(3px);
}

.story-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  color: var(--c-dark);
}

.story-title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.story-item time {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* =====================
   Aside 侧边栏
   ===================== */
.aside-inner {
  background: linear-gradient(160deg, var(--c-surface) 0%, var(--c-surface2) 100%);
}

.aside-inner h3 {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 0.75rem;
}

.aside-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.aside-links li a {
  display: block;
  font-size: 0.875rem;
  color: var(--c-text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: border-color 0.15s, background 0.15s;
}

.aside-links li a:hover,
.aside-links li a[aria-current="page"] {
  border-color: var(--c-mint-deep);
  background: linear-gradient(90deg, rgba(180,253,225,0.3), rgba(173,216,230,0.2));
}

.aside-related {
  background: linear-gradient(160deg, rgba(180,253,225,0.15) 0%, rgba(173,216,230,0.12) 100%);
}

/* =====================
   正文排版
   ===================== */
.prose-wrap {
  font-family: var(--ff-serif);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--c-text);
}

.article-prose {
  max-width: var(--content-max);
}

.prose-wrap h2,
.prose-wrap h3,
.prose-wrap h4 {
  font-family: var(--ff-serif);
  color: var(--c-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose-wrap h2 { font-size: 1.375rem; }
.prose-wrap h3 { font-size: 1.125rem; }

.prose-wrap p {
  margin-bottom: 1rem;
}

.prose-wrap ul,
.prose-wrap ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose-wrap li {
  margin-bottom: 0.375rem;
}

.prose-wrap a {
  color: var(--c-dark-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-wrap a:hover {
  color: var(--c-mint-deep);
}

.prose-wrap strong {
  font-weight: 700;
}

.prose-wrap blockquote {
  border-left: var(--border-thick) solid var(--c-mint-deep);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--c-surface2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

/* =====================
   眉题 eyebrow
   ===================== */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-dark);
  background: linear-gradient(90deg, var(--c-mint), var(--c-blue));
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 2px solid var(--c-dark);
  margin-bottom: 0.5rem;
  box-shadow: 2px 2px 0px var(--c-dark);
}

/* =====================
   区块标题（每个 section 内的 h2）
   ===================== */
main section > h2,
main section > h3 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 1rem;
  line-height: 1.35;
}

main section > h3 {
  font-size: 1.25rem;
}

main article > section {
  margin-bottom: 2.5rem;
}

/* =====================
   面包屑
   ===================== */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--c-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--c-mint-deep);
}

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

/* =====================
   页面 h1
   ===================== */
.section-header-area h1,
.tag-header-area h1,
.about-header-area h1,
.privacy-header-area h1,
.story-header-area h1,
.default-header-area h1 {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

/* =====================
   文章 hero 图
   ===================== */
.story-hero-img-wrap {
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius-md);
  border: var(--border-w) solid var(--c-dark);
  box-shadow: var(--shadow-clay);
  overflow: hidden;
}

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

/* =====================
   文章 meta
   ===================== */
.story-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.story-meta time {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  background: var(--c-surface2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-mint-deep);
}

/* =====================
   关于页 logo
   ===================== */
.about-logo-wrap {
  margin-bottom: 1rem;
}

.about-logo {
  max-width: 160px;
  height: auto;
  display: block;
}

.about-logo-placeholder {
  display: inline-block;
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-mint);
  background: var(--c-dark);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  border: var(--border-w) solid var(--c-mint-deep);
  box-shadow: var(--shadow-clay);
}

/* =====================
   隐私政策 date
   ===================== */
.privacy-date {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-top: 0.5rem;
}

/* =====================
   按钮 clay 风格
   ===================== */
.btn-clay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-md);
  border: var(--border-w) solid var(--c-dark);
  font-family: var(--ff-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
}

.btn-clay:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--c-dark), inset -1px -1px 4px rgba(23,38,32,0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-mint) 0%, var(--c-blue) 100%);
  color: var(--c-dark);
}

.btn-primary:hover {
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--c-mint-deep) 0%, var(--c-blue-deep) 100%);
}

.btn-outline {
  background: transparent;
  color: var(--c-mint);
  border-color: var(--c-mint);
  box-shadow: 3px 3px 0px var(--c-mint-deep);
}

.btn-outline:hover {
  background: rgba(180,253,225,0.1);
  box-shadow: 5px 5px 0px var(--c-mint-deep);
  transform: translateY(-2px);
}

/* =====================
   页脚
   ===================== */
footer {
  margin-top: 2rem;
}

.footer-cta {
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-mid) 100%);
  border: var(--border-thick) solid var(--c-mint);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-cta p {
  font-family: var(--ff-serif);
  font-size: 1.125rem;
  color: var(--c-mint);
  line-height: 1.6;
}

.footer-nav-section {
  background: var(--c-dark);
  border: var(--border-w) solid var(--c-dark-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.footer-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  align-items: center;
}

.footer-dl dt {
  font-family: var(--ff-serif);
  font-weight: 700;
  color: var(--c-mint);
  font-size: 0.9375rem;
  margin-right: 0.5rem;
  flex-basis: 100%;
  margin-bottom: 0.5rem;
}

.footer-dl dd {
  margin: 0;
}

.footer-dl dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.375rem 0.875rem;
  color: var(--c-blue);
  text-decoration: none;
  font-size: 0.8125rem;
  border: 2px solid var(--c-dark-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.footer-dl dd a:hover {
  border-color: var(--c-mint-deep);
  color: var(--c-mint);
  background: rgba(180,253,225,0.07);
}

.footer-copy {
  text-align: center;
  padding: 0.75rem 1rem;
}

.footer-copy small {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

/* =====================
   首页 sections 区域
   ===================== */
.home-sections-area,
.home-content-area,
.home-latest-area {
  margin-bottom: 2.5rem;
}

/* =====================
   Stagger 动效
   ===================== */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: stagger-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--stagger-i, 0) * 80ms);
  }

  @keyframes stagger-in {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .clay-card {
    transition: box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stagger-item {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .clay-card,
  .btn-clay,
  .sec-card,
  .story-item {
    transition: none;
  }
}

/* =====================
   related-bottom links
   ===================== */
.related-bottom {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-bottom li a {
  border: var(--border-w) solid var(--c-dark);
  background: linear-gradient(90deg, rgba(180,253,225,0.2), rgba(173,216,230,0.15));
  border-radius: var(--radius-md);
  box-shadow: 2px 2px 0px var(--c-dark);
  font-weight: 500;
}

.related-bottom li a:hover {
  background: linear-gradient(90deg, rgba(180,253,225,0.4), rgba(173,216,230,0.3));
  border-color: var(--c-mint-deep);
}

/* =====================
   移动端响应式
   ===================== */
@media (max-width: 768px) {
  :root {
    --aside-w: 0px;
  }

  .page-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "footer";
    padding: 1rem 0.875rem 1.5rem;
    gap: 1rem;
  }

  .home-aside,
  .section-aside,
  .story-aside,
  .tag-aside,
  .about-aside,
  .privacy-aside,
  .default-aside {
    display: none;
  }

  .hero-inner {
    flex-direction: column-reverse;
    padding: 2rem 1.25rem;
    gap: 1.25rem;
  }

  .hero-media {
    flex: none;
    width: 100%;
    max-width: 280px;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

  .hero-lead {
    text-align: center;
  }

  .hero-section {
    min-height: auto;
  }

  .sec-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }

  .bottom-nav-search {
    max-width: 160px;
  }

  .footer-cta {
    padding: 1.75rem 1.25rem;
  }

  .footer-cta p {
    font-size: 1rem;
  }

  .footer-dl {
    gap: 0.3rem;
  }

  .footer-dl dt {
    font-size: 0.875rem;
  }

  main section > h2 {
    font-size: 1.25rem;
  }

  .child-item::before {
    min-width: 36px;
    font-size: 1rem;
  }

  .story-item a {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }

  .related-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .sec-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav-brand {
    font-size: 0.875rem;
  }

  .bottom-nav-search {
    max-width: 120px;
  }

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

@media (min-width: 769px) {
  .home-page main article {
    padding: 0;
  }
}
