:root {
    color-scheme: light;
    --paper: #f6f1e7;
    --paper-deep: #efe8db;
    --surface: #fffcf6;
    --surface-soft: #f2ece1;
    --ink: #29251f;
    --muted: #6e655a;
    --subtle: #9a8d7f;
    --line: #ddd4c6;
    --line-strong: #c6b8a7;
    --primary: #4d7d9b;
    --primary-strong: #3a647f;
    --primary-soft: #e4edf2;
    --accent: #c17d5b;
    --accent-strong: #9e5d3f;
    --accent-soft: #f4e7df;
    --notice: #f2e5c2;
    --notice-text: #6f5b2e;
    --notice-border: #dfd09d;
    --shadow: 0 10px 28px rgba(62, 48, 32, 0.07);
    --shadow-hover: 0 14px 34px rgba(62, 48, 32, 0.10);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --paper: #111820;
    --paper-deep: #15212b;
    --surface: #1a2632;
    --surface-soft: #223140;
    --ink: #edf3f7;
    --muted: #b8c5d0;
    --subtle: #8fa1b1;
    --line: #2d3c4c;
    --line-strong: #43566a;
    --primary: #79a2c3;
    --primary-strong: #91b6d1;
    --primary-soft: #24394b;
    --accent: #d48b6f;
    --accent-strong: #e2a28a;
    --accent-soft: #3a2c2a;
    --notice: #2d3029;
    --notice-text: #d8ca97;
    --notice-border: #4b4c37;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.30);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(0deg, rgba(92, 76, 53, 0.028) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(90deg, rgba(92, 76, 53, 0.020) 0 1px, transparent 1px 7px);
    color: var(--ink);
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

html[data-theme="dark"] body {
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 7px);
}

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

button,
input,
textarea {
    font: inherit;
}

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

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

.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(12px);
}

.site-header-inner {
    width: min(1180px, 100%);
    min-height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: none;
    overflow: hidden;
    border-radius: 7px;
    background: var(--surface-soft);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand-copy {
    min-width: 0;
    display: grid;
    line-height: 1.25;
}

.brand-copy strong {
    color: var(--ink);
    font-size: 16px;
}

.brand-copy small {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.05),
        0 2px 8px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html[data-theme="dark"] .site-nav {
    background: rgba(26, 38, 50, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.22);
}

.site-nav-thumb {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 0;
    height: calc(100% - 10px);
    border-radius: 999px;
    background: var(--primary);
    opacity: 0;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.2),
        0 8px 20px rgba(15, 23, 42, 0.16);
    transition: none;
    z-index: 0;
}

.site-nav.is-nav-ready .site-nav-thumb {
    opacity: 1;
    transition: none;
}

html[data-theme="dark"] .site-nav-thumb {
    background: #2f4b66;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search-toggle {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.header-search-toggle:hover {
    color: var(--primary-strong);
}

.header-search-toggle svg {
    width: 18px;
    height: 18px;
}

.header-search-form {
    position: absolute;
    top: 50%;
    left: calc(100% + 8px);
    width: 0;
    overflow: hidden;
    opacity: 0;
    transform: translate(-6px, -50%);
    pointer-events: none;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow);
    z-index: 70;
    transition: width 0.24s ease, opacity 0.18s ease, transform 0.24s ease;
}

.header-search.is-open .header-search-form {
    width: 220px;
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto;
}

.header-search-form input {
    width: 100%;
    padding: 9px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 30px;
    outline: 0;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--ink);
    font-size: 14px;
}

.header-search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.header-search-form input::placeholder {
    color: var(--subtle);
}

/* Dark expanded search field, adapted from Uiverse.io by satyamchaudharydev */
html[data-theme="dark"] .header-search.is-open .header-search-form {
    border-color: #283542;
    border-radius: 30px;
    background: #283542;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

html[data-theme="dark"] .header-search.is-open .header-search-form input {
    padding: 9px 18px;
    border-color: transparent;
    border-radius: 30px;
    background: transparent;
    box-shadow: none;
    color: #fff;
}

html[data-theme="dark"] .header-search.is-open .header-search-form input::placeholder {
    color: #949faa;
}

html[data-theme="dark"] .header-search.is-open .header-search-form input:focus {
    border-color: #1b9bee;
    box-shadow: 0 0 0 3px rgba(27, 155, 238, 0.16);
}

.site-nav a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: none;
}

.site-nav a:hover {
    color: var(--ink);
}

.site-nav a.is-active {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .site-nav a.is-active {
    color: #fff;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle {
    width: 64px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 17px;
    background: transparent;
    cursor: pointer;
}

.theme-toggle:hover {
    filter: brightness(1.08);
}

.theme-toggle-svg {
    width: 64px;
    height: 34px;
    display: block;
}

.theme-toggle-svg .tt-container,
.theme-toggle-svg .tt-knob,
.theme-toggle-svg .tt-sun,
.theme-toggle-svg .tt-moon,
.theme-toggle-svg .tt-cloud,
.theme-toggle-svg .tt-stars,
.theme-toggle-svg .tt-patches {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.25s;
}

.theme-toggle-svg .tt-container {
    fill: #83cbd8;
}

.theme-toggle-svg .tt-knob {
    transform: translate(3px, 3px);
}

.theme-toggle-svg .tt-sun {
    opacity: 1;
}

.theme-toggle-svg .tt-moon {
    opacity: 0;
}

.theme-toggle-svg .tt-cloud {
    opacity: 1;
}

.theme-toggle-svg .tt-stars {
    opacity: 0;
}

html[data-theme="dark"] .theme-toggle-svg .tt-container {
    fill: #2b4360;
}

html[data-theme="dark"] .theme-toggle-svg .tt-knob {
    transform: translate(30.5px, 3px);
}

html[data-theme="dark"] .theme-toggle-svg .tt-sun {
    opacity: 0;
}

html[data-theme="dark"] .theme-toggle-svg .tt-moon {
    opacity: 1;
}

html[data-theme="dark"] .theme-toggle-svg .tt-cloud {
    opacity: 0;
}

html[data-theme="dark"] .theme-toggle-svg .tt-stars {
    opacity: 1;
}

.nav-toggle {
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    cursor: pointer;
}

.nav-toggle-bars {
    display: grid;
    gap: 4px;
}

.nav-toggle-bars span {
    width: 16px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 2px;
}

.nav-toggle-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.site-main {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 28px 20px 56px;
    flex: 1;
}

.card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 30px 32px;
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.hero-card h1,
.archive-head h1,
.error-card h1 {
    margin: 0 0 10px;
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: 38px;
    line-height: 1.25;
    letter-spacing: 0;
}

.archive-filter-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.hero-description,
.archive-head p,
.error-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.home-utility-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.notice-card {
    padding: 13px 18px;
    margin: 0;
    border-color: var(--notice-border);
    background: var(--notice);
    color: var(--notice-text);
    font-size: 14px;
}

.notice-card-text {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-card-text svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.filter-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.filter-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.filter-toggle:hover {
    border-color: var(--primary);
    color: var(--primary-strong);
}

.filter-toggle svg {
    width: 15px;
    height: 15px;
}

.filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    display: grid;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    z-index: 70;
    transition: opacity 0.18s ease, transform 0.2s ease, visibility 0.2s ease;
}

.filter-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.filter-option:hover {
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.filter-option input {
    width: 15px;
    height: 15px;
    flex: none;
    margin: 0;
    accent-color: var(--primary);
}

.filter-item-dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--dot-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot-color) 14%, transparent);
}

.filter-item-name {
    min-width: 0;
    flex: 1;
}

.filter-item-count {
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-size: 11px;
    text-align: center;
}

.filter-option-all {
    font-weight: 600;
}

.filter-apply {
    min-height: 34px;
    margin-top: 8px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.filter-apply:hover {
    background: var(--primary-strong);
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 18px;
    align-items: start;
}

.content-column {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.section-card {
    padding: 24px;
    min-width: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.section-heading h2,
.side-card h2,
.comments-title,
.respond h3 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: 0;
}

.section-heading .eyebrow {
    margin-bottom: 4px;
}

.text-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.text-link:hover {
    color: var(--primary-strong);
}

.post-card {
    overflow: hidden;
    margin-bottom: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:last-child {
    margin-bottom: 0;
}

.post-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.post-card-link {
    display: block;
    color: var(--ink);
}

.post-card-cover {
    margin: 0;
    overflow: hidden;
    background: var(--surface-soft);
}

.post-card-cover img {
    width: 100%;
    aspect-ratio: 16 / 7;
    display: block;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-cover img {
    transform: scale(1.02);
}

.post-card-body {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--subtle);
    font-size: 12px;
}

.post-card h2 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0;
}

.post-card-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.empty-state {
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

.page-navigator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 0;
    margin: 20px 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.page-navigator a {
    min-width: 34px;
    padding: 7px 11px;
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.page-navigator a:hover {
    border-color: var(--primary);
    color: var(--primary-strong);
}

.page-navigator .current a {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.site-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 84px;
}

.side-card {
    padding: 20px;
}

.side-card h2 {
    margin-bottom: 14px;
    font-size: 18px;
}

.side-list {
    display: grid;
}

.side-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-list li {
    margin: 0;
}

.side-link {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.side-link:last-child,
.side-list li:last-child .side-link {
    border-bottom: 0;
}

.side-link:hover {
    color: var(--primary-strong);
}

.side-contact {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.single-layout {
    width: min(860px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.tools-page {
    width: min(1080px, 100%);
}

.tools-intro-card .content-header--tools {
    padding-bottom: 20px;
}

.tools-intro-card h1 {
    margin-bottom: 8px;
}

.tools-intro-card .content-header-main p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.tools-group {
    display: grid;
    gap: 14px;
}

.tools-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.tools-group-head h2 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: 24px;
    letter-spacing: 0;
}

.tools-group-count {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 600;
}

.tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--surface-soft);
}

.tools-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tools-card-cover.is-placeholder {
    background: var(--primary-soft);
}

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

.recommend-page {
    width: min(1180px, 100%);
}

.recommend-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.recommend-nav {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 14px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .recommend-nav {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.recommend-nav nav {
    display: grid;
    gap: 4px;
}

.recommend-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 4px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
}

.recommend-nav a:hover {
    background: var(--primary-soft);
    color: var(--primary-strong);
}

html[data-theme="dark"] .recommend-nav a:hover {
    background: var(--primary-soft);
    color: var(--ink);
}

.recommend-nav-icon {
    width: 11px;
    height: 11px;
    display: grid;
    place-items: center;
    color: var(--muted);
    flex-shrink: 0;
}

.recommend-nav-icon svg {
    width: 11px;
    height: 11px;
    stroke-width: 1.5;
}

.recommend-nav-children {
    display: none;
    gap: 2px;
    margin: 3px 0 0 11px;
    padding: 0 0 0 11px;
    border-left: 1px solid var(--line);
}

.recommend-nav-children.is-open {
    display: grid;
}

.recommend-nav-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.recommend-nav-group > a {
    min-width: 0;
    flex: 1;
}

.recommend-nav-children > a::before,
.recommend-nav-children > .recommend-nav-group > a::before,
.recommend-nav-grandchildren > a::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    width: 11px;
    height: 1px;
    background: var(--line);
}

.recommend-nav-toggle {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--subtle);
    cursor: pointer;
}

.recommend-nav-toggle:hover {
    background: var(--primary-soft);
    color: var(--primary-strong);
}

html[data-theme="dark"] .recommend-nav-toggle:hover {
    background: var(--primary-soft);
    color: var(--ink);
}

.recommend-nav-toggle svg {
    width: 11px;
    height: 11px;
    stroke-width: 1.75;
    transition: transform 0.18s ease;
}

.recommend-nav-toggle.is-open svg {
    transform: rotate(90deg);
}

.recommend-nav-grandchildren {
    display: none;
    gap: 2px;
    margin: 2px 0 2px 11px;
    padding: 0 0 0 11px;
    border-left: 1px solid var(--line);
}

.recommend-nav-grandchildren.is-open {
    display: grid;
}

.recommend-nav-grandchildren a {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 13px;
}

.recommend-content {
    min-width: 0;
    display: grid;
    gap: 20px;
}

.content-header--recommend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.recommend-search-box {
    width: 260px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface-soft);
}

.recommend-search-box svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--primary);
}

.recommend-search-box input {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
}

.recommend-search-box input::placeholder {
    color: var(--subtle);
}

.recommend-group {
    display: grid;
    gap: 14px;
    scroll-margin-top: 86px;
}

.recommend-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.recommend-group-head h2 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: 24px;
    letter-spacing: 0;
}

.recommend-group-count {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 600;
}

.recommend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.learning-group {
    gap: 18px;
}

.learning-block {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.learning-block > h3 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: 20px;
    letter-spacing: 0;
}

.learning-subgroup {
    display: grid;
    gap: 12px;
}

.learning-subgroup h4 {
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
    color: var(--primary-strong);
    font-size: 17px;
}

.learning-tag-group {
    display: grid;
    gap: 12px;
    padding-top: 6px;
}

.learning-tag-group h4 {
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
    color: var(--primary-strong);
    font-size: 17px;
}

.learning-tag-target,
.common-tag-target {
    display: grid;
    gap: 12px;
    scroll-margin-top: 86px;
}

.learning-tag-target > h3,
.common-tag-target > h3 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: 20px;
    letter-spacing: 0;
}

.learning-tag-target > h4 {
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
    color: var(--primary-strong);
    font-size: 17px;
}

.article-search-list {
    display: grid;
    gap: 10px;
}

.article-search-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.article-search-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.article-search-card span {
    flex: none;
    color: var(--subtle);
    font-size: 12px;
}

.empty-search-result {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.search-page {
    width: min(1080px, 100%);
}

.content-header--search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.search-page-actions {
    flex: none;
}

.search-page-box {
    padding: 0 30px 24px;
}

.search-page-box form {
    width: min(560px, 100%);
}

.recommend-search-box button {
    margin-left: auto;
    padding: 6px 12px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.search-result-group {
    display: grid;
    gap: 14px;
}

.search-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.search-result-head h2 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: 24px;
    letter-spacing: 0;
}

.search-result-head span {
    color: var(--subtle);
    font-size: 13px;
}

.search-result-subhead {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.search-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.search-result-empty {
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.page-card {
    overflow: hidden;
}

.back-link {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin: 20px 0 0 22px;
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
}

.page-back-actions {
    display: flex;
    gap: 8px;
    margin: 20px 0 0 22px;
}

.page-back-actions .back-link {
    margin: 0;
}

.home-link {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
}

.home-link:hover {
    color: var(--primary-strong);
}

.home-link svg {
    width: 18px;
    height: 18px;
}

.back-link:hover {
    color: var(--primary-strong);
}

.back-link svg {
    width: 18px;
    height: 18px;
}

.content-header {
    padding: 18px 30px 8px;
}

.content-header--friend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.content-header--friend .content-header-main {
    min-width: 0;
    flex: 1;
}

.friend-detail-goto {
    flex: none;
    white-space: nowrap;
}

.friend-detail-date {
    display: block;
    margin-top: 4px;
    color: var(--subtle);
    font-size: 13px;
}

.content-header h1 {
    margin: 8px 0 14px;
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: 34px;
    line-height: 1.28;
    letter-spacing: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--subtle);
    font-size: 12px;
}

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

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--subtle);
    font-size: 13px;
}

.content-body {
    padding: 12px 30px 28px;
    color: var(--ink);
    font-size: 16px;
}

.content-body h2,
.content-body h3,
.content-body h4 {
    margin: 28px 0 12px;
    color: var(--ink);
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    line-height: 1.4;
    letter-spacing: 0;
}

.content-body h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 26px;
}

.content-body h3 {
    font-size: 21px;
}

.content-body p {
    margin: 0 0 16px;
}

.content-body ul,
.content-body ol {
    padding-left: 22px;
    margin: 0 0 18px;
}

.content-body li + li {
    margin-top: 6px;
}

.content-body a {
    color: var(--primary);
    font-weight: 600;
}

.content-body a:hover {
    color: var(--primary-strong);
}

.content-body blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
    background: var(--primary-soft);
    color: var(--muted);
}

.content-body code {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--accent-strong);
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 13px;
}

.content-body pre {
    padding: 16px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
    line-height: 1.6;
}

.content-body pre code {
    padding: 0;
    background: transparent;
    color: var(--ink);
}

.content-body img {
    display: block;
    margin: 18px auto;
    border-radius: 8px;
    background: var(--surface-soft);
}

.recommend-detail-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.content-body table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.content-body th,
.content-body td {
    padding: 9px 11px;
    border: 1px solid var(--line);
    text-align: left;
}

.content-body th {
    background: var(--surface-soft);
    color: var(--ink);
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.entry-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    padding-bottom: 54px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.entry-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.entry-card h3 {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: 18px;
}

.entry-card p {
    flex: 1;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.entry-tag {
    display: inline-block;
    margin-top: auto;
    padding: 3px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--entry-tag-bg, var(--primary-soft));
    color: var(--entry-tag-color, var(--primary-strong));
    font-size: 12px;
    font-weight: 600;
}

.entry-tag--blue {
    --entry-tag-bg: #e3edf2;
    --entry-tag-color: #3a647f;
}

.entry-tag--green {
    --entry-tag-bg: #e4efe6;
    --entry-tag-color: #3f7455;
}

.entry-tag--clay {
    --entry-tag-bg: #f3e5dd;
    --entry-tag-color: #9e5d3f;
}

.entry-tag--amber {
    --entry-tag-bg: #f4ecd7;
    --entry-tag-color: #8b6c2f;
}

.entry-tag--slate {
    --entry-tag-bg: #e7eef2;
    --entry-tag-color: #3e6278;
}

.entry-tag[data-tag] {
    cursor: pointer;
}

.entry-tag[data-tag].is-active {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--entry-tag-color) 38%, transparent);
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 32px;
}

.entry-tags .entry-tag {
    margin-bottom: 0;
}

html[data-theme="dark"] .entry-tag--blue {
    --entry-tag-bg: #1d3042;
    --entry-tag-color: #9fc2dd;
    border-color: #35506a;
}

html[data-theme="dark"] .entry-tag--green {
    --entry-tag-bg: #1d332a;
    --entry-tag-color: #9fc7ae;
    border-color: #355847;
}

html[data-theme="dark"] .entry-tag--clay {
    --entry-tag-bg: #382822;
    --entry-tag-color: #e6ad91;
    border-color: #5b3e32;
}

html[data-theme="dark"] .entry-tag--amber {
    --entry-tag-bg: #38311c;
    --entry-tag-color: #e2cf94;
    border-color: #5d512e;
}

html[data-theme="dark"] .entry-tag--slate {
    --entry-tag-bg: #1e2c39;
    --entry-tag-color: #a3bfd2;
    border-color: #365069;
}

.entry-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.learn-more {
    position: relative;
    display: inline-block;
    width: 8rem;
    height: auto;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    --lm-circle: 2.25rem;
    --lm-text-gap: 0.75rem;
    --lm-arrow-left: 0.55rem;
    --lm-arrow-width: 0.9rem;
    --lm-arrow-height: 0.1rem;
    --lm-arrow-tip: 0.5rem;
    --lm-arrow-border: 0.1rem;
}

.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: var(--lm-circle);
    height: var(--lm-circle);
    background: var(--primary);
    border-radius: calc(var(--lm-circle) / 2);
}

.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
}

.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: var(--lm-arrow-left);
    width: var(--lm-arrow-width);
    height: var(--lm-arrow-height);
    background: none;
}

.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: calc(var(--lm-arrow-height) * -2.32);
    right: 0.0625rem;
    width: var(--lm-arrow-tip);
    height: var(--lm-arrow-tip);
    border-top: var(--lm-arrow-border) solid #fff;
    border-right: var(--lm-arrow-border) solid #fff;
    transform: rotate(45deg);
}

.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: calc(var(--lm-circle) + var(--lm-text-gap));
    padding-right: 0.25rem;
    margin: 0;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.learn-more:hover .circle {
    width: 100%;
}

.learn-more:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(0.75rem, 0);
}

.learn-more:hover .button-text {
    color: #fff;
}

html[data-theme="dark"] .learn-more .circle {
    background: var(--primary);
}

html[data-theme="dark"] .learn-more .button-text {
    color: var(--primary);
}

html[data-theme="dark"] .learn-more:hover .button-text {
    color: #fff;
}

.entry-card .learn-more {
    position: absolute;
    right: 18px;
    bottom: 12px;
    width: 6.5rem;
    pointer-events: auto;
    --lm-circle: 1.75rem;
    --lm-text-gap: 0.625rem;
    --lm-arrow-left: 0.4rem;
    --lm-arrow-width: 0.75rem;
    --lm-arrow-height: 0.08rem;
    --lm-arrow-tip: 0.42rem;
    --lm-arrow-border: 0.08rem;
}

.entry-card .learn-more .button-text {
    font-size: 12px;
}

.entry-card .learn-more:hover .circle {
    width: 100%;
}

.entry-card .learn-more:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(0.75rem, 0);
}

.entry-card .learn-more:hover .button-text {
    color: #fff;
}

.entry-card .entry-tag {
    margin-bottom: 32px;
}

.content-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 30px 24px;
    border-top: 1px solid var(--line);
}

.tag-block {
    color: var(--muted);
    font-size: 14px;
}

.tag-block a {
    color: var(--primary);
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
}

.like-button svg {
    width: 17px;
    height: 17px;
    color: var(--accent);
}

.like-button:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.like-button.is-liked {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.like-button:disabled {
    cursor: default;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.button-primary:hover {
    background: var(--primary-strong);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.button-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-strong);
}

.auth-prompt {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 14px;
}

.auth-prompt p {
    margin: 0;
}

.auth-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.post-navigation--stacked {
    grid-template-columns: 1fr;
}

.post-nav-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.post-nav-label {
    flex: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.post-nav-row a {
    min-width: 0;
    color: var(--ink);
}

.post-nav-row a:hover {
    color: var(--primary-strong);
}

.back-to-top {
    position: fixed;
    right: max(16px, calc(50vw - min(430px, 50vw) - 60px));
    bottom: 22px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    z-index: 80;
    transition: opacity 0.18s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--primary);
    color: var(--primary-strong);
}

.back-to-top svg {
    width: 19px;
    height: 19px;
}

.post-nav-item {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--muted);
    font-size: 14px;
}

.post-nav-item a {
    color: var(--ink);
}

.post-nav-item a:hover {
    color: var(--primary-strong);
}

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

.comments-card {
    padding: 26px;
}

.comments-title,
.respond h3 {
    margin-bottom: 16px;
}

.comment-list {
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
}

.comment-body {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.comment-body:last-child {
    border-bottom: 0;
}

.comment-children {
    margin-left: 22px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-author .fn {
    color: var(--ink);
    font-style: normal;
    font-weight: 600;
}

.comment-meta {
    margin: 4px 0 10px;
    color: var(--subtle);
    font-size: 12px;
}

.comment-meta a {
    color: var(--subtle);
}

.comment-content {
    color: var(--muted);
    font-size: 14px;
}

.comment-reply {
    margin-top: 8px;
}

.comment-reply a,
.cancel-comment-reply a {
    color: var(--primary);
    font-size: 13px;
}

.comment-login-note {
    color: var(--muted);
    font-size: 14px;
}

.comment-form-row {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.comment-form-row label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.comment-form-row input,
.comment-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    outline: 0;
    background: var(--surface-soft);
    color: var(--ink);
}

.comment-form-row input:focus,
.comment-form-row textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 30px 20px 34px;
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
}

.footer-line {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.footer-line a {
    color: var(--primary);
}

.error-card {
    width: min(640px, 100%);
    margin: 40px auto;
    padding: 38px;
    text-align: center;
}

.error-card .button-primary {
    margin-top: 18px;
}

@media (max-width: 1080px) {
    .brand-copy small {
        display: none;
    }
}

@media (max-width: 920px) {
    .recommend-layout {
        grid-template-columns: 1fr;
    }

    .recommend-nav {
        position: static;
    }

    .recommend-nav nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .recommend-nav-children,
    .recommend-nav-grandchildren {
        display: none;
    }

    .recommend-nav-children.is-open,
    .recommend-nav-grandchildren.is-open {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding-left: 0;
        border-left: 0;
    }

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

    .site-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recommend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .home-utility-row {
        grid-template-columns: 1fr;
    }

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

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

    .content-header--recommend {
        align-items: stretch;
        flex-direction: column;
    }

    .recommend-search-box {
        width: 100%;
    }

    .content-header--search {
        align-items: stretch;
        flex-direction: column;
    }

    .search-page-box {
        padding-left: 20px;
        padding-right: 20px;
    }

    .search-result-grid {
        grid-template-columns: 1fr;
    }

    .filter-card {
        justify-content: flex-start;
    }

    .filter-menu {
        left: 0;
        right: auto;
        width: min(240px, calc(100vw - 28px));
    }

    .site-header-inner {
        gap: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .brand-copy {
        display: none;
    }

    .header-search-toggle {
        width: 30px;
        height: 30px;
    }

    .theme-toggle {
        width: 52px;
        height: 30px;
    }

    .theme-toggle-svg {
        width: 52px;
        height: 30px;
    }

    .nav-toggle {
        width: auto;
        height: 36px;
        flex-direction: row;
        gap: 5px;
        padding: 0 10px;
    }

    .nav-toggle-bars {
        gap: 3px;
    }

    .nav-toggle-bars span {
        width: 15px;
        height: 2px;
    }

    .nav-toggle-label {
        font-size: 12px;
        line-height: 1.2;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 12px 20px 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-nav-thumb {
        display: none;
    }

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

    .site-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        padding: 9px 10px;
        border-radius: 6px;
        color: var(--muted);
        font-size: 14px;
        font-weight: 500;
        text-align: center;
    }

    .site-nav a.is-active {
        background: var(--surface-soft);
        color: var(--ink);
        box-shadow:
            inset 0 2px 5px rgba(62, 48, 32, 0.10),
            inset 0 -1px 0 rgba(255, 255, 255, 0.45);
    }

    html[data-theme="dark"] .site-nav a.is-active {
        color: var(--ink);
        box-shadow:
            inset 0 2px 5px rgba(0, 0, 0, 0.36),
            inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    }

    .header-search.is-open .header-search-form {
        width: min(190px, 46vw);
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-main {
        padding: 20px 14px 42px;
    }

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

    .hero-card {
        padding: 24px 22px;
    }

    .hero-card h1,
    .archive-head h1,
    .error-card h1 {
        font-size: 30px;
    }

    .section-card {
        padding: 18px;
    }

    .post-card-link {
        padding: 18px;
    }

    .post-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-header,
    .content-body,
    .content-actions {
        padding-left: 20px;
        padding-right: 20px;
    }

    .back-link {
        margin-left: 0;
    }

    .page-back-actions {
        margin-left: 14px;
    }

    .content-header h1 {
        font-size: 28px;
    }

    .content-header--friend {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

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

    .content-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .comments-card {
        padding: 20px;
    }
}
