/* ==========================================================================
   简书风格博客样式
   暖纸底色 + 墨色正文 + 单一朱红强调色；文章流用分隔线，不用重卡片。
   仅用于博客首页 / 分类页 / 搜索结果 / 文章详情页。
   ========================================================================== */

/* ===== 设计令牌 ===== */
:root {
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --ink: #26221F;
  --ink-soft: #4A443F;
  --muted: #7A726A;
  --accent: #A6192E;
  --accent-deep: #7C1220;
  --accent-wash: rgba(166, 25, 46, 0.06);
  --gold: #B8934E;
  --border: #E6DFD5;
  --border-strong: #D8CFC2;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-header: 0 1px 0 rgba(38, 34, 31, 0.05), 0 6px 20px -16px rgba(38, 34, 31, 0.35);
  --shadow-panel: 0 14px 30px -26px rgba(38, 34, 31, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

button,
input {
  font: inherit;
}

::selection {
  background: rgba(166, 25, 46, 0.16);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 10px;
  left: 10px;
  z-index: 999;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
}

/* ===== 布局容器 ===== */
.blog-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.blog-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo,
.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
}

.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  margin-top: 1px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  white-space: nowrap;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.blog-nav > li {
  position: relative;
}

.blog-nav > li > a {
  display: block;
  padding: 12px 12px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.blog-nav > li > a:hover {
  color: var(--accent);
}

.blog-nav > li > a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.chev {
  margin-left: 4px;
  font-size: 0.68rem;
  color: var(--muted);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 6px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-panel);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.blog-nav li:hover > .nav-dropdown,
.blog-nav li:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  background: var(--accent-wash);
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.blog-search {
  position: relative;
}

.blog-search svg {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 14px;
  height: 14px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.blog-search input {
  width: 168px;
  padding: 8px 12px 8px 32px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.84rem;
  transition: width 0.25s var(--ease), border-color 0.2s, background 0.2s;
}

.blog-search input::placeholder {
  color: var(--muted);
}

.blog-search input:focus {
  width: 208px;
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.write-btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}

.write-btn:hover {
  background: var(--accent-deep);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s;
}

/* ===== 页面标题区 ===== */
.blog-masthead {
  padding: 40px 0 32px;
  background: linear-gradient(180deg, #FBF8F3 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.masthead-inner {
  max-width: 760px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.masthead-eyebrow {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.blog-masthead h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.masthead-desc {
  max-width: 640px;
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
}

.masthead-meta {
  margin: 16px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ===== 文章流 + 侧栏 ===== */
.blog-main {
  padding-bottom: 10px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  padding-top: 34px;
  padding-bottom: 60px;
}

.blog-feed {
  min-width: 0;
}

/* 分类标签 */
.feed-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-tabs::-webkit-scrollbar {
  display: none;
}

.feed-tabs a {
  position: relative;
  padding: 0 0 12px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.feed-tabs a:hover {
  color: var(--ink);
}

.feed-tabs a.active {
  color: var(--accent);
  font-weight: 700;
}

.feed-tabs a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
}

/* 文章条目 */
.entry-list {
  display: flex;
  flex-direction: column;
}

.entry-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.entry-item:last-child {
  border-bottom: none;
}

.entry-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.entry-title a {
  transition: color 0.2s;
}

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

.entry-excerpt {
  display: -webkit-box;
  max-width: 560px;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--muted);
}

.cat-pill {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid rgba(166, 25, 46, 0.28);
  border-radius: 9999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.7;
  transition: background 0.2s, color 0.2s;
}

.cat-pill:hover {
  background: var(--accent);
  color: #fff;
}

.meta-dot {
  color: var(--border-strong);
}

.entry-thumb {
  display: block;
  width: 168px;
  height: 112px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.entry-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.entry-item:hover .entry-thumb-img {
  transform: scale(1.04);
}

.entry-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: rgba(166, 25, 46, 0.5);
  background: linear-gradient(140deg, #F3E7DF, #EAD9CE 55%, #E8CFC6);
}

.thumb-v1 {
  background: linear-gradient(140deg, #F1E8DC, #E7D6C4 60%, #DCC4AE);
}

.thumb-v2 {
  background: linear-gradient(140deg, #EFE9E1, #E3D9CC 60%, #D6C7B6);
}

/* 空状态 */
.empty-state {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--ink);
}

.empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

/* 分页 */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 36px 0 0;
}

.pagination .page-numbers {
  display: inline-block;
  min-width: 2.2rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.pagination a.page-numbers:hover {
  background: var(--accent-wash);
  color: var(--accent);
}

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

.pagination .page-numbers.dots {
  background: none;
}

/* ===== 侧栏 ===== */
.blog-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-self: start;
}

.side-panel {
  padding: 20px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.side-panel h2 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.side-about .about-logo {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
}

.side-about .brand-seal.about-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.side-about p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--muted);
}

.side-stats {
  display: flex;
  gap: 22px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.side-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--accent);
}

.side-stats span {
  font-size: 0.72rem;
  color: var(--muted);
}

.side-cats li {
  margin-bottom: 2px;
}

.side-cats a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.side-cats a:hover {
  color: var(--accent);
}

.side-cats .count {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.side-sub {
  margin: 0 0 6px 4px;
  padding-left: 14px;
  border-left: 1px dashed var(--border);
}

.side-sub a {
  padding: 5px 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.side-posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: hot;
}

.side-posts li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.6;
  counter-increment: hot;
}

.side-posts li::before {
  content: counter(hot);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold);
}

.side-posts li:nth-child(-n + 3)::before {
  color: var(--accent);
}

.side-posts a {
  color: var(--ink-soft);
  transition: color 0.2s;
}

.side-posts a:hover {
  color: var(--accent);
}

.side-archive li {
  margin-bottom: 8px;
}

.side-archive a {
  font-size: 0.84rem;
  color: var(--muted);
  transition: color 0.2s;
}

.side-archive a:hover {
  color: var(--accent);
}

.side-empty {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ===== 文章详情 ===== */
.single-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  padding-top: 44px;
  padding-bottom: 60px;
}

.single-article {
  min-width: 0;
  max-width: 760px;
}

.single-head {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.single-head h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted);
}

.author-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
}

.author-name {
  font-weight: 600;
  color: var(--ink-soft);
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

.article-body > * + * {
  margin-top: 1.15rem;
}

.article-body h2 {
  margin-top: 2.4rem;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.article-body h3 {
  margin-top: 1.9rem;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.article-body h4 {
  margin-top: 1.6rem;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
}

.article-body p {
  margin: 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 0.45rem;
}

.article-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(166, 25, 46, 0.3);
  transition: border-color 0.2s;
}

.article-body a:hover {
  border-bottom-color: var(--accent);
}

.article-body blockquote {
  padding: 0.95rem 1.25rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(184, 147, 78, 0.07);
  color: var(--muted);
}

.article-body blockquote p {
  margin: 0;
}

.article-body img {
  border-radius: var(--radius);
}

.article-body video,
.article-body iframe {
  width: 100%;
  border-radius: var(--radius);
  background: #1a1714;
}

.article-body figure {
  margin-right: 0;
  margin-left: 0;
}

.article-body figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.article-body code {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #F1E9E0;
  color: var(--accent-deep);
  font-size: 0.92em;
}

.article-body pre {
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  border-radius: var(--radius);
  background: #2B2622;
  color: #F0E9E4;
  font-size: 0.9rem;
  line-height: 1.7;
}

.article-body pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.article-body th,
.article-body td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
}

.article-body th {
  background: #FBF4EF;
  font-weight: 700;
  color: var(--ink);
}

.article-body hr {
  height: 1px;
  border: 0;
  background: var(--border);
}

.single-foot {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.single-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.single-tags-label {
  margin-right: 2px;
  font-size: 0.78rem;
  color: var(--muted);
}

.single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.single-nav a {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
}

.single-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.single-nav .label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  color: var(--muted);
}

.single-nav .next {
  text-align: right;
}

/* ===== 页脚 ===== */
.blog-footer {
  margin-top: 20px;
  padding: 34px 0 22px;
  border-top: 1px solid var(--border);
  background: #F1ECE4;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
}

.footer-brand .footer-logo {
  width: 42px;
  height: 42px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.footer-brand p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 520px;
}

.footer-cats a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--muted);
}

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .blog-layout,
  .single-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .single-article {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 58px;
    gap: 10px;
  }

  .brand-tagline {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .blog-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
  }

  .blog-nav.mobile-open {
    display: flex;
  }

  .blog-nav > li > a {
    padding: 11px 4px;
    border-bottom: 1px solid var(--border);
  }

  .blog-nav > li:last-child > a {
    border-bottom: none;
  }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 8px 14px;
    border: none;
    border-top: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .blog-nav li.sub-open > .nav-dropdown {
    display: block;
  }

  .blog-search {
    display: none;
  }

  .write-btn {
    padding: 7px 14px;
  }

  .entry-item {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 16px;
  }

  .entry-thumb {
    width: 118px;
    height: 84px;
  }

  .entry-title {
    font-size: 1.08rem;
  }
}

@media (max-width: 560px) {
  .blog-shell {
    padding: 0 18px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .write-btn {
    display: none;
  }

  .entry-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entry-thumb {
    order: -1;
    width: 100%;
    height: 168px;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-masthead {
    padding: 28px 0 22px;
  }

  .single-nav {
    grid-template-columns: 1fr;
  }

  .single-nav .next {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
