/*
Theme Name: Midou
Theme URI: https://wp.mg/
Author: Midou
Description: 一款简约、响应式、专注阅读体验的中文文章博客主题。
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: midou
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --midou-accent: #ef5b61;
  --midou-accent-dark: #dc464d;
  --midou-ink: #24272b;
  --midou-text: #454a50;
  --midou-muted: #9299a1;
  --midou-line: #eaedf0;
  --midou-bg: #f4f5f6;
  --midou-card: #fff;
  --midou-radius: 8px;
  --midou-shadow: 0 6px 26px rgba(24, 31, 39, .055);
  --midou-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--midou-text);
  background: var(--midou-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease; }
a:hover { color: var(--midou-accent); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { color: #fff; background: var(--midou-accent); }

.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;
}
.screen-reader-text:focus {
  z-index: 100000; top: 8px; left: 8px; display: block;
  width: auto; height: auto; padding: 10px 14px; clip: auto;
  color: var(--midou-ink); background: #fff; border-radius: 4px;
}
.site-container { width: min(calc(100% - 40px), var(--midou-width)); margin-inline: auto; }
.site-main { min-height: 60vh; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: 66px; background: rgba(255,255,255,.96); border-bottom: 1px solid #edf0f2;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 30px; height: 66px; }
.site-branding { display: flex; align-items: center; flex: 0 0 auto; min-width: 175px; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: auto; max-width: 190px; max-height: 42px; }
.site-title {
  color: var(--midou-ink); font-family: Georgia, "Times New Roman", serif;
  font-size: 29px; font-weight: 800; line-height: 1; letter-spacing: -.8px; text-transform: uppercase;
}
.site-title:hover { color: var(--midou-ink); }
.primary-navigation { flex: 1; min-width: 0; }
.primary-menu, .primary-menu ul { margin: 0; padding: 0; list-style: none; }
.primary-menu { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.primary-menu > li { position: relative; }
.primary-menu > li > a { display: block; padding: 22px 11px; color: #33383d; font-size: 14px; line-height: 22px; white-space: nowrap; }
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a,
.primary-menu > li > a:hover { color: var(--midou-accent); }
.primary-menu .sub-menu {
  position: absolute; top: calc(100% - 5px); left: 0; min-width: 160px;
  padding: 8px; visibility: hidden; opacity: 0; transform: translateY(8px);
  background: #fff; border: 1px solid var(--midou-line); border-radius: 7px; box-shadow: var(--midou-shadow);
  transition: .2s ease;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.primary-menu .sub-menu a { display: block; padding: 7px 10px; border-radius: 4px; font-size: 13px; white-space: nowrap; }
.primary-menu .sub-menu a:hover { background: #f7f8f9; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-button {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.icon-button:hover { color: var(--midou-accent); background: #f6f7f8; }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-toggle { display: none; }
.menu-toggle .close-icon { display: none; }
.menu-open .menu-toggle .menu-icon { display: none; }
.menu-open .menu-toggle .close-icon { display: block; }

/* Search panel */
.search-panel {
  position: fixed; z-index: 120; top: 0; right: 0; left: 0;
  padding: 26px 20px; visibility: hidden; opacity: 0; transform: translateY(-12px);
  background: #fff; box-shadow: 0 8px 35px rgba(20,26,33,.12); transition: .22s ease;
}
.admin-bar .search-panel { top: 32px; }
.search-panel.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
.search-panel-inner { display: flex; align-items: center; gap: 12px; width: min(100%, 720px); min-width: 0; margin: auto; }
.search-form { display: flex; flex: 1; min-width: 0; }
.search-field {
	width: 100%; min-width: 0; height: 46px; padding: 0 15px; color: var(--midou-ink);
	background: #f6f7f8; border: 1px solid transparent; border-radius: 6px 0 0 6px; outline: 0;
}
.search-field:focus { background: #fff; border-color: var(--midou-accent); }
.search-submit {
  flex: 0 0 auto; min-width: 74px; height: 46px; padding: 0 16px; color: #fff;
  background: var(--midou-accent); border: 0; border-radius: 0 6px 6px 0; cursor: pointer;
}
.search-submit:hover { background: var(--midou-accent-dark); }
.search-panel .search-close { flex: 0 0 38px; }

/* Layout */
.content-shell { padding-top: 30px; padding-bottom: 50px; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.layout-grid.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.card { background: var(--midou-card); border: 1px solid #eef0f2; border-radius: var(--midou-radius); box-shadow: var(--midou-shadow); }
.archive-header { margin-bottom: 18px; padding: 22px 25px; }
.archive-kicker { display: block; margin-bottom: 4px; color: var(--midou-accent); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.archive-title { margin: 0; color: var(--midou-ink); font-size: 23px; line-height: 1.4; }
.archive-description { margin-top: 7px; color: var(--midou-muted); font-size: 13px; }
.archive-description p { margin: 0; }

/* Post list */
.post-list { overflow: hidden; }
.post-card { position: relative; padding: 24px 25px; }
.post-card + .post-card { border-top: 1px solid var(--midou-line); }
.post-card-inner { display: flex; align-items: flex-start; gap: 22px; }
.post-thumbnail { flex: 0 0 190px; width: 190px; height: 120px; overflow: hidden; border-radius: 6px; background: #eef0f2; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-thumbnail img { transform: scale(1.035); }
.post-summary { min-width: 0; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--midou-muted); font-size: 12px; line-height: 1.4; }
.sticky-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; color: #fff; background: var(--midou-accent); border-radius: 3px; font-weight: 650; line-height: 1.5; }
.sticky-badge svg { width: 12px; height: 12px; fill: currentColor; }
.post-category { color: var(--midou-accent); font-weight: 650; }
.meta-dot::before { content: "·"; margin-right: 7px; color: #c4c8cc; }
.post-title { margin: 0; color: var(--midou-ink); font-size: 19px; font-weight: 650; line-height: 1.5; }
.post-title a { background: linear-gradient(var(--midou-accent),var(--midou-accent)) no-repeat 0 100% / 0 1px; transition: background-size .25s ease, color .2s ease; }
.post-title a:hover { color: var(--midou-ink); background-size: 100% 1px; }
.post-excerpt { margin: 8px 0 0; color: #7e858c; font-size: 13px; line-height: 1.75; }
.read-more { display: inline-block; margin-top: 9px; color: var(--midou-muted); font-size: 12px; }
.read-more:hover { color: var(--midou-accent); }

/* Sidebar */
.widget-area { display: grid; gap: 18px; }
.widget { padding: 21px; overflow: hidden; background: #fff; border: 1px solid #eef0f2; border-radius: var(--midou-radius); box-shadow: var(--midou-shadow); }
.widget-title,
.widget > .wp-block-heading { position: relative; margin: 0 0 17px; padding-bottom: 11px; color: var(--midou-ink); font-size: 15px; line-height: 1.4; }
.widget-title::after,
.widget > .wp-block-heading::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 26px; height: 2px; background: var(--midou-accent); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 7px 0; color: #687078; border-bottom: 1px dashed #eceff1; font-size: 13px; }
.widget li:last-child { padding-bottom: 0; border-bottom: 0; }
.widget select { max-width: 100%; }
.widget .search-field { height: 42px; }
.widget .search-submit { min-width: 62px; height: 42px; }
.widget .wp-block-search__label { display: block; margin-bottom: 8px; color: var(--midou-ink); font-size: 15px; font-weight: 600; }
.widget .wp-block-search__inside-wrapper { display: flex; }
.widget .wp-block-search__input { min-width: 0; height: 42px; padding: 0 11px; border: 1px solid #e4e7ea; border-radius: 4px 0 0 4px; outline: 0; }
.widget .wp-block-search__input:focus { border-color: var(--midou-accent); }
.widget .wp-block-search__button { flex: 0 0 auto; height: 42px; margin: 0; padding: 0 14px; color: #fff; background: #343a40; border: 0; border-radius: 0 4px 4px 0; white-space: nowrap; cursor: pointer; }
.widget .wp-block-search__button:hover { background: var(--midou-accent); }
.widget .wp-block-latest-comments { padding-left: 0; }
.widget .wp-block-latest-comments__comment { margin-bottom: 0; }
.widget_tag_cloud .tag-cloud-link,
.widget .wp-block-tag-cloud a { display: inline-block; margin: 0 5px 7px 0; padding: 4px 10px; color: #697078; background: #f5f6f7; border: 1px solid #e7eaed; border-radius: 4px; font-size: 12px !important; line-height: 1.6; }
.widget_tag_cloud .tag-cloud-link:hover,
.widget_tag_cloud .tag-cloud-link:focus-visible,
.widget .wp-block-tag-cloud a:hover,
.widget .wp-block-tag-cloud a:focus-visible { color: #fff; background: var(--midou-accent); border-color: var(--midou-accent); outline: 0; }

/* Pagination */
.pagination { margin-top: 22px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.page-numbers { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; color: #697078; background: #fff; border: 1px solid var(--midou-line); border-radius: 5px; font-size: 13px; }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--midou-accent); border-color: var(--midou-accent); }

/* Single */
.article-card { overflow: hidden; }
.breadcrumbs { padding: 13px 24px; color: var(--midou-muted); border-bottom: 1px solid var(--midou-line); font-size: 12px; }
.breadcrumbs svg { display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.breadcrumbs .separator { padding: 0 6px; color: #c2c7cc; }
.article-header { padding: 27px 25px 15px; }
.article-category a { display: inline-block; margin: 0 5px 7px 0; padding: 2px 8px; color: #fff; background: var(--midou-accent); border-radius: 3px; font-size: 11px; line-height: 1.5; }
.article-title { margin: 0; color: var(--midou-ink); font-size: clamp(25px, 3vw, 34px); font-weight: 650; line-height: 1.45; letter-spacing: -.02em; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 0 25px 16px; color: var(--midou-muted); border-bottom: 1px solid var(--midou-line); font-size: 12px; }
.article-meta-group { display: flex; flex-wrap: wrap; gap: 14px; }
.article-meta .article-category { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.article-meta .article-category a { margin: 0; }
.article-meta span, .article-meta a { display: inline-flex; align-items: center; gap: 4px; }
.article-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.article-cover { margin: 25px 25px 0; overflow: hidden; border-radius: 6px; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.entry-content { padding: 25px 25px 10px; color: #41464b; font-size: 16px; line-height: 1.95; overflow-wrap: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.8em 0 .75em; color: var(--midou-ink); line-height: 1.45; }
.entry-content h2 { padding-left: 12px; border-left: 3px solid var(--midou-accent); font-size: 24px; }
.entry-content h3 { font-size: 20px; }
.entry-content a { color: #3578c6; border-bottom: 1px solid rgba(53,120,198,.25); }
.entry-content img { margin: 1.5em auto; border-radius: 5px; }
.entry-content figure { max-width: 100%; margin: 1.5em auto; }
.entry-content figcaption { margin-top: -1em; color: var(--midou-muted); font-size: 12px; text-align: center; }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 18px; color: #626970; background: #f7f8f9; border-left: 3px solid var(--midou-accent); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre { max-width: 100%; padding: 18px; overflow: auto; color: #d8dee9; background: #252930; border-radius: 6px; font-size: 13px; line-height: 1.7; }
.entry-content code { padding: 2px 5px; color: #c83d55; background: #f6f2f3; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: .9em; }
.entry-content pre code { padding: 0; color: inherit; background: transparent; }
.entry-content table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 9px 11px; border: 1px solid #e1e5e8; text-align: left; }
.entry-content th { background: #f5f6f7; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content .alignwide { margin-right: -10px; margin-left: -10px; max-width: calc(100% + 20px); }
.entry-content .alignfull { margin-right: -25px; margin-left: -25px; max-width: calc(100% + 50px); width: calc(100% + 50px); }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { margin-right: auto; margin-left: auto; text-align: center; }
.article-taxonomies { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.taxonomy-row { display: flex; align-items: center; gap: 8px; }
.taxonomy-label { flex: 0 0 auto; padding: 3px 8px; color: #fff; background: #343a40; border-radius: 3px; font-size: 12px; font-weight: 650; line-height: 1.6; }
.taxonomy-links, .taxonomy-links ul { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.taxonomy-links a { display: inline-block; padding: 3px 9px; color: #697078; background: #f5f6f7; border: 1px solid #e7eaed; border-radius: 4px; font-size: 12px; line-height: 1.6; }
.taxonomy-links a:hover, .taxonomy-links a:focus-visible { color: #fff; background: var(--midou-accent); border-color: var(--midou-accent); outline: 0; }
.taxonomy-empty { color: var(--midou-muted); font-size: 12px; line-height: 2; }
.post-navigation { margin-top: 20px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; overflow: hidden; background: #fff; border: 1px solid #eef0f2; border-radius: var(--midou-radius); box-shadow: var(--midou-shadow); }
.post-navigation a { display: block; min-height: 90px; padding: 20px 25px; }
.post-navigation .nav-next { text-align: right; border-left: 1px solid var(--midou-line); }
.post-navigation .nav-subtitle { display: block; margin-bottom: 3px; color: var(--midou-muted); font-size: 11px; }
.post-navigation .nav-title { color: var(--midou-ink); font-size: 14px; line-height: 1.55; }

/* Related and comments */
.section-card { margin-top: 20px; padding: 23px 25px; }
.section-heading { position: relative; margin: 0 0 20px; padding-bottom: 11px; color: var(--midou-ink); font-size: 17px; }
.section-heading::after { content: ""; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: var(--midou-accent); }
.recommendations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.recommendation-column { min-width: 0; }
.recommendation-column + .recommendation-column { margin-left: 24px; padding-left: 24px; border-left: 1px solid var(--midou-line); }
.recommendation-empty { margin: 0; color: var(--midou-muted); font-size: 13px; }
.related-list { display: grid; gap: 0; }
.related-item { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--midou-line); }
.related-item:first-child { padding-top: 0; border-top: 0; }
.related-thumb { width: 76px; height: 55px; overflow: hidden; border-radius: 4px; background: #f0f1f2; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-title { margin: 0 0 4px; color: var(--midou-ink); font-size: 14px; font-weight: 500; line-height: 1.5; }
.related-date { color: var(--midou-muted); font-size: 11px; }
.comments-area { margin-top: 20px; padding: 23px 25px; }
.comment-list { margin: 0 0 28px; padding: 0; list-style: none; }
.comment-list .children { margin-left: 52px; list-style: none; }
.comment-body { position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--midou-line); }
.comment-list > li:first-child > .comment-body { border-top: 0; }
.comment-author .avatar { position: absolute; top: 19px; left: 0; width: 38px; height: 38px; border-radius: 50%; }
.comment-author .fn { color: var(--midou-ink); font-style: normal; font-weight: 600; }
.comment-metadata { color: var(--midou-muted); font-size: 11px; }
.comment-content p { margin: 8px 0; }
.reply { font-size: 12px; }
.comment-respond { padding-top: 2px; }
.comment-reply-title { color: var(--midou-ink); font-size: 17px; }
.comment-form label { display: block; margin-bottom: 4px; color: #697078; font-size: 12px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: 10px 12px; background: #f8f9fa; border: 1px solid #e6e9ec; border-radius: 5px; outline: 0; }
.comment-form textarea:focus, .comment-form input:focus { background: #fff; border-color: var(--midou-accent); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 7px; }
.comment-form-cookies-consent label { display: inline; }
.form-submit .submit { padding: 9px 20px; color: #fff; background: var(--midou-accent); border: 0; border-radius: 5px; cursor: pointer; }

/* Empty, page and footer */
.empty-state { padding: 70px 25px; text-align: center; }
.empty-state h1 { margin: 0 0 8px; color: var(--midou-ink); font-size: 26px; }
.empty-state p { margin: 0 0 22px; color: var(--midou-muted); }
.empty-state .search-form { max-width: 480px; margin: auto; }
.page-card .article-header { border-bottom: 1px solid var(--midou-line); }
.site-footer { padding: 28px 0 34px; color: #90979e; border-top: 1px solid #e8ebed; font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.footer-copy p { margin: 0; }
.footer-custom-content { margin: 0; }
.footer-custom-content > :first-child { margin-top: 0; }
.footer-custom-content > :last-child { margin-bottom: 0; }
.footer-custom-content a { border-bottom: 1px solid currentColor; }
.back-to-top {
  position: fixed; z-index: 80; right: 24px; bottom: 24px; display: grid; place-items: center;
  width: 40px; height: 40px; visibility: hidden; opacity: 0; transform: translateY(8px);
  color: #fff; background: rgba(49,55,61,.8); border: 0; border-radius: 5px; cursor: pointer; transition: .2s ease;
}
.back-to-top.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--midou-accent); }
.back-to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 1020px) {
  .site-branding { min-width: 0; }
  .primary-menu > li > a { padding-inline: 8px; font-size: 13px; }
  .layout-grid { grid-template-columns: minmax(0, 1fr) 270px; }
}

@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .search-panel { top: 46px; }
  .header-inner { gap: 10px; }
  .site-branding { flex: 1; }
  .site-title { font-size: 25px; }
  .custom-logo { max-width: 155px; max-height: 38px; }
  .menu-toggle { display: inline-grid; }
  .primary-navigation {
    position: fixed; top: 66px; right: 0; bottom: 0; left: 0; z-index: 110;
    visibility: hidden; opacity: 0; overflow-y: auto; background: rgba(255,255,255,.99); transform: translateX(16px); transition: .2s ease;
  }
  .admin-bar .primary-navigation { top: 112px; }
  .menu-open .primary-navigation { visibility: visible; opacity: 1; transform: translateX(0); }
  .primary-menu { display: block; padding: 15px 24px 40px; }
  .primary-menu > li { border-bottom: 1px solid var(--midou-line); }
  .primary-menu > li > a { padding: 13px 4px; font-size: 15px; }
  .primary-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 8px 14px; visibility: visible; opacity: 1; transform: none; border: 0; box-shadow: none; }
  .layout-grid { grid-template-columns: 1fr; }
  .widget-area { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 600px) {
	.search-panel { padding: 14px 11px; }
	.search-panel-inner { gap: 6px; width: 100%; }
	.search-field { height: 42px; padding: 0 10px; }
	.search-submit { min-width: 58px; height: 42px; padding: 0 10px; }
	.search-panel .search-close { flex-basis: 34px; width: 34px; height: 42px; }
  .site-container { width: min(calc(100% - 22px), var(--midou-width)); }
  .content-shell { padding-top: 14px; padding-bottom: 34px; }
  .archive-header { margin-bottom: 12px; padding: 17px 16px; }
  .archive-title { font-size: 20px; }
  .post-card { padding: 17px 16px; }
  .post-card-inner { gap: 13px; }
  .post-thumbnail { flex-basis: 112px; width: 112px; height: 82px; }
  .post-title { display: -webkit-box; overflow: hidden; font-size: 16px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .post-excerpt { display: none; }
  .read-more { display: none; }
  .post-meta .post-author { display: none; }
  .widget-area { grid-template-columns: 1fr; }
  .breadcrumbs { padding: 11px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .article-header { padding: 20px 16px 12px; }
  .article-title { font-size: 23px; }
  .article-meta { padding: 0 16px 13px; }
  .article-meta .meta-author { display: none; }
  .article-cover { margin: 16px 16px 0; }
  .entry-content { padding: 19px 16px 8px; font-size: 16px; line-height: 1.9; }
  .entry-content h2 { font-size: 21px; }
  .entry-content .alignfull { margin-right: -16px; margin-left: -16px; max-width: calc(100% + 32px); width: calc(100% + 32px); }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { border-top: 1px solid var(--midou-line); border-left: 0; }
  .post-navigation a { min-height: 0; padding: 16px; }
  .section-card, .comments-area { padding: 19px 16px; }
  .recommendations-grid { grid-template-columns: 1fr; }
  .recommendation-column + .recommendation-column { margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--midou-line); border-left: 0; }
  .comment-list .children { margin-left: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .back-to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 400px) {
  .post-thumbnail { flex-basis: 96px; width: 96px; height: 72px; }
  .post-meta { margin-bottom: 5px; }
  .post-meta .meta-date::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
