/* 日本旅行主题 — Kenji's Japan 参考视觉 */
:root {
  --bg-page: #F6F8FA;
  --surface: #FFFFFF;
  --surface-hover: #FAFAFB;
  --accent-red: #E11D48;
  --accent-glow: rgba(225, 29, 72, 0.08);
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --shadow-subtle: 0 10px 30px -5px rgba(30, 41, 59, 0.04);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1100px;
  --container-author: 1050px;
  --header-height: 56px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Palatino Linotype", serif;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  -webkit-font-smoothing: antialiased;
  padding: 15px 10px 0;
}

@media (min-width: 768px) {
  body {
    padding: 40px 20px 0;
  }
}

/* 极简柔和背景微光效果 */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 500px;
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.03) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.site-nav-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0 1.25rem;
  height: calc(var(--header-height) - 8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70vw;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 12px;
  background: var(--bg-page);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--accent-red);
  color: #fff;
}

/* 移动端菜单：absolute，避免 sticky + backdrop-filter 裁切 fixed */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  padding: 0.75rem 1rem 1.25rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  list-style: none;
  z-index: 60;
}

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

.site-nav a {
  display: block;
  padding: 0.7rem 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent-red);
}

@media (min-width: 1024px) {
  :root {
    --header-height: 72px;
  }

  .site-nav-card {
    padding: 0 2rem;
    height: auto;
    min-height: 64px;
  }

  .nav-logo {
    font-size: 1.3rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    height: auto;
    max-height: none;
    overflow: visible;
    top: auto;
    right: auto;
    left: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-nav a {
    padding: 0;
  }
}

/* —— 版心 —— */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 0 3.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-main--author {
  max-width: var(--container-author);
}

.site-main--sm {
  max-width: 820px;
}

@media (min-width: 768px) {
  .site-main {
    padding: 24px 0 4rem;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-red);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-secondary {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.btn-sm {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
  transition: var(--transition);
}

.btn-sm:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.read-more-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.read-more-link:hover {
  gap: 8px;
}

/* —— 首页 Hero —— */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 20px;
  box-shadow: var(--shadow-subtle);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-card {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 60px 48px;
  }
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-content h1 a:hover {
  color: var(--accent-red);
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 右侧双图交错网格（对齐参考） */
.hero-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-img-item {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #EDF2F7;
}

.hero-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hero-img-item:hover img {
  transform: scale(1.02);
}

.hero-img-item:nth-child(2) {
  margin-top: 24px;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-img-item {
    height: 180px;
    aspect-ratio: auto;
  }
}

/* —— 文章卡片网格（首页 / 分类 / 更多） —— */
.destinations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

.destination-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.destination-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(30, 41, 59, 0.08);
}

.dest-img-wrapper {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #EDF2F7;
}

.dest-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.destination-card:hover .dest-img-wrapper img {
  transform: scale(1.05);
}

.dest-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dest-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 16px;
}

.dest-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.dest-title a:hover {
  color: var(--accent-red);
}

.dest-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.dest-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* —— 首页底部作者快照 —— */
.author-snapshot-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-subtle);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.snapshot-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid var(--border-color);
  aspect-ratio: 1 / 1;
}

.snapshot-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.snapshot-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* —— 作者页 Bento —— */
.author-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .author-bento-grid {
    grid-template-columns: 380px 1fr;
  }
}

.card-profile {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
  gap: 24px;
}

.profile-avatar-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-height: 290px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: #EDF2F7;
}

.profile-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card-profile:hover .profile-avatar-container img {
  transform: scale(1.03);
}

.avatar-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-info h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--text-main);
}

.profile-handle {
  color: var(--accent-red);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: block;
}

.card-content-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-box {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  box-shadow: var(--shadow-subtle);
}

@media (min-width: 768px) {
  .content-box {
    padding: 36px;
  }

  .profile-info h1 {
    font-size: 2.4rem;
  }
}

.bio-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.bio-text p {
  margin-bottom: 18px;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

.bento-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .bento-subgrid {
    grid-template-columns: 1fr;
  }
}

.sub-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-articles {
  margin-top: 8px;
}

.author-articles__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .author-articles__title {
    font-size: 2rem;
  }
}

/* —— 详情页 —— */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.article-layout--solo {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  }

  .article-layout--solo {
    grid-template-columns: minmax(0, 1fr);
  }
}

.article-main-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  box-shadow: var(--shadow-subtle);
}

@media (min-width: 768px) {
  .article-main-card {
    padding: 48px;
  }
}

.article-header h1,
.detail-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .article-header h1,
  .detail-title {
    font-size: 2.6rem;
  }
}

.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.article-meta a {
  color: var(--text-main);
  font-weight: 700;
}

.article-meta a:hover {
  color: var(--accent-red);
}

.article-featured {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  background: #EDF2F7;
}

.article-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-content p {
  margin: 0 0 15px;
  color: var(--text-muted);
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: 1.25rem 0;
}

.article-content blockquote {
  border-left: 3px solid var(--accent-red);
  padding-left: 20px;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-main);
}

.article-content a {
  color: var(--accent-red);
}

@media (max-width: 768px) {
  .article-content {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75;
  }

  .article-content p {
    margin: 0 0 15px;
  }
}

/* 详情底部作者块 */
.post-author-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 50px;
  display: flex;
  gap: 20px;
  align-items: center;
}

@media (max-width: 600px) {
  .post-author-box {
    flex-direction: column;
    text-align: center;
  }
}

.post-author-box > a {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: block;
  border-radius: 50%;
  overflow: hidden;
}

.post-author-avatar {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
  aspect-ratio: 1 / 1;
}

.post-author-info {
  flex: 1;
  min-width: 0;
}

.post-author-info h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.post-author-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.author-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.author-link:hover {
  gap: 8px;
}

/* 详情侧栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
  text-align: center;
}

.sidebar-avatar-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-color);
  aspect-ratio: 1 / 1;
}

.sidebar-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.sidebar-handle {
  font-size: 0.85rem;
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.sidebar-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: var(--transition);
  display: block;
}

.widget-list a:hover {
  color: var(--accent-red);
}

/* 面包屑 / 页头 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb__sep {
  opacity: 0.5;
}

.breadcrumb a:hover {
  color: var(--accent-red);
}

@media (max-width: 768px) {
  .breadcrumb {
    display: none !important;
  }
}

.page-head h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .page-head h1 {
    font-size: 2.2rem;
  }
}

/* 前后篇 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

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

.post-nav__link {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: var(--transition);
}

.post-nav__link:hover {
  border-color: var(--accent-red);
}

.post-nav__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-red);
  margin-bottom: 6px;
}

.post-nav__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

/* 留言区 */
.comment-box {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.comment-box__head {
  margin-bottom: 16px;
}

.comment-box__head h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-top: 4px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .comment-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-main);
}

.comment-form button {
  align-self: flex-start;
  background: var(--accent-red);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.7;
}

.share-container {
  margin-top: 28px;
}

/* —— 全部文章：时间 + 标题 —— */
.catalog {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 20px 18px;
  box-shadow: var(--shadow-subtle);
}

@media (min-width: 768px) {
  .catalog {
    padding: 28px 32px;
  }
}

.log__era {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-main);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.log__era:first-child {
  margin-top: 0;
}

.log__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.log__row:last-child {
  border-bottom: 0;
}

.log__row:hover {
  color: var(--accent-red);
}

.log__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.log__row:hover .log__date {
  color: var(--accent-red);
}

.log__title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

/* —— Alone / stay-touch —— */
.standalone {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  box-shadow: var(--shadow-subtle);
}

@media (min-width: 768px) {
  .standalone {
    padding: 40px;
  }
}

.standalone__top h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .standalone__top h1 {
    font-size: 2.2rem;
  }
}

.standalone__body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.standalone__body p {
  margin-bottom: 15px;
}

.stay-touch {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  box-shadow: var(--shadow-subtle);
}

@media (min-width: 768px) {
  .stay-touch {
    padding: 36px;
  }
}

.stay-touch h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.stay-touch__lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.stay-touch__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

.stay-touch__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stay-touch__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.stay-touch__form input,
.stay-touch__form textarea {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.stay-touch__form input:focus,
.stay-touch__form textarea:focus {
  border-color: var(--accent-red);
}

.stay-touch__submit {
  align-self: flex-start;
  background: var(--accent-red);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.stay-touch__submit:hover {
  opacity: 0.95;
}

.stay-touch__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.stay-touch__msg {
  font-size: 0.9rem;
  margin-top: 4px;
}

.stay-touch__msg.is-ok {
  color: #15803d;
}

.stay-touch__msg.is-error {
  color: var(--accent-red);
}

/* —— 分页 —— */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.pager__btn {
  min-width: 2.5rem;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--surface);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.pager__btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.pager__btn--curr {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.pager__btn--off {
  opacity: 0.45;
  pointer-events: none;
}

.pagination-container {
  margin-top: 28px;
}

.post-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
}

.post-pagination a,
.post-pagination span {
  display: inline-block;
  min-width: 2.5rem;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.post-pagination a:hover,
.post-pagination .current {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.post-pagination .current {
  background: var(--accent-red);
  color: #fff;
}

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

/* —— 页脚 —— */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  background: var(--surface);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--accent-red);
}

.list-ad-break {
  grid-column: 1 / -1;
}
