:root {
    color-scheme: dark;
    --bg: #10110f;
    --panel: #191b18;
    --panel-2: #20231f;
    --ink: #f4efe6;
    --muted: #aaa394;
    --line: rgba(244, 239, 230, 0.12);
    --accent: #b7e36d;
    --accent-2: #f27f63;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-color: #3d4436 #10110f;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, rgba(183, 227, 109, 0.12), transparent 30rem),
        linear-gradient(180deg, #151712 0%, var(--bg) 24rem);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(16rem, 40rem) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
    background: rgba(16, 17, 15, 0.84);
    backdrop-filter: blur(18px);
}

.brand,
.admin-link,
.site-nav a,
.article-card a,
.article-row a,
.section-heading a,
.post-page a {
    color: var(--ink);
    text-decoration: none;
}

.brand {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    min-width: max-content;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid rgba(183, 227, 109, 0.55);
    border-radius: 50%;
    background: #050607 url("site-avatar.webp") center / cover no-repeat;
    box-shadow: 0 0 0 2px rgba(183, 227, 109, 0.12), 0 0 1rem rgba(183, 227, 109, 0.32);
}

.search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    min-width: 0;
}

.search-bar input,
.comment-form input,
.comment-form textarea,
.admin-shell input,
.admin-shell textarea,
.admin-shell select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    outline: none;
}

.search-bar input {
    min-width: 0;
    padding: 0.78rem 0.9rem;
}

.search-bar input:focus,
.comment-form input:focus,
.comment-form textarea:focus,
.admin-shell input:focus,
.admin-shell textarea:focus,
.admin-shell select:focus {
    border-color: rgba(183, 227, 109, 0.65);
    box-shadow: 0 0 0 3px rgba(183, 227, 109, 0.1);
}

.search-bar button,
.comment-form button,
.tag-filter,
.admin-shell button,
.button-link {
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #151712;
    font-weight: 800;
}

.search-bar button {
    padding: 0.78rem 1rem;
}

.admin-link {
    justify-self: end;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav {
    display: flex;
    gap: 0.85rem;
    justify-self: end;
    align-items: center;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav a:hover,
.article-card a:hover,
.article-row a:hover,
.section-heading a:hover {
    color: var(--accent);
}

main {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem) 4rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: end;
    padding: clamp(2.2rem, 7vw, 6rem) 0 1.5rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(3rem, 8vw, 7.4rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.lead {
    max-width: 40rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    gap: 0.5rem;
    min-width: 10rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    text-align: right;
}

.hero-stats span:first-child {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 800;
}

.compact-hero {
    padding-bottom: 1rem;
}

.compact-hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
}

.toolbar {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.tag-filter {
    text-decoration: none;
    padding: 0.62rem 0.9rem;
    background: rgba(255, 255, 255, 0.07);
    color: var(--ink);
    border: 1px solid var(--line);
}

.tag-filter.is-active {
    background: var(--accent);
    color: #151712;
}

.masonry {
    column-count: 4;
    column-gap: 1rem;
}

.image-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: inherit;
    text-align: left;
    text-decoration: none;
    box-shadow: var(--shadow);
    break-inside: avoid;
}

.image-card img {
    display: block;
    width: 100%;
    aspect-ratio: var(--ratio, 4 / 5);
    object-fit: cover;
    background: #20231f;
}

.card-body {
    display: block;
    padding: 1rem;
}

.card-title {
    display: block;
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
}

.card-desc {
    display: block;
    margin: 0 0 0.85rem;
    color: var(--muted);
    line-height: 1.65;
}

.tag-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.26rem 0.52rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
}

.load-state {
    padding: 1.5rem;
    color: var(--muted);
    text-align: center;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin: 1.5rem 0 1rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.section-heading a {
    color: var(--muted);
}

.article-strip,
.content-section {
    margin-top: 2rem;
}

.article-grid,
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

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

.article-card,
.article-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
}

.article-card img,
.article-row img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #20231f;
}

.article-row > a {
    display: grid;
    place-items: center;
    align-self: stretch;
    min-height: 10.5rem;
    width: 16rem;
    max-width: 100%;
    overflow: hidden;
    background: #11140f;
    border-right: 1px solid var(--line);
}

.article-row > a img {
    height: 100%;
    max-height: 13rem;
    padding: 0.35rem;
    aspect-ratio: auto;
    object-fit: contain;
    box-sizing: border-box;
}

.article-card > div,
.article-row > div {
    padding: 1rem;
}

.article-card h3,
.article-row h2 {
    margin: 0 0 0.6rem;
    line-height: 1.25;
}

.article-card p,
.article-row p,
.post-content {
    color: var(--muted);
    line-height: 1.8;
}

.article-card time,
.article-row time {
    color: var(--muted);
    font-size: 0.88rem;
}

.article-list {
    display: grid;
    gap: 1rem;
}

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

.article-row.has-cover {
    grid-template-columns: 16rem minmax(0, 1fr);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.pagination > a,
.pagination > span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 2.75rem;
    min-width: 2.4rem;
    padding: 0.62rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.pagination .is-current {
    background: var(--accent);
    color: #151712;
    border-color: var(--accent);
    font-weight: 800;
}

.pagination .pagination-direction {
    min-width: 6.5rem;
    gap: 0.35rem;
    font-weight: 800;
}

.pagination .is-disabled {
    cursor: default;
    opacity: 0.45;
}

.pagination .pagination-ellipsis {
    min-width: 1.5rem;
    padding-right: 0;
    padding-left: 0;
    border-color: transparent;
}

.detail-page {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
    gap: 0;
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.detail-page .detail-figure img {
    min-height: 100%;
}

.page-form {
    max-width: 44rem;
}

.post-page {
    max-width: 820px;
    margin: 2.5rem auto 0;
}

.post-page h1 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.12;
}

.post-cover {
    display: block;
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 8px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post-content {
    font-size: 1.08rem;
}

.post-content > :first-child {
    margin-top: 0;
}

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

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 1.8em 0 0.7em;
    color: var(--ink);
    line-height: 1.35;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content pre,
.post-content table {
    margin: 0 0 1.2em;
}

.post-content img,
.post-content video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0rem auto;
}

.post-content a {
    color: #d64b68;
    text-decoration: underline;
}

.post-content blockquote {
    padding: 0.7rem 1rem;
    border-left: 4px solid #d64b68;
    background: rgba(255, 255, 255, 0.05);
}

.post-content pre,
.post-content code {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.post-content pre {
    overflow-x: auto;
    padding: 1rem;
    background: #0b0d12;
}

.post-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.post-content th,
.post-content td {
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer {
    padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--line);
}

.profile-home {
    --bg: #11131f;
    --panel: #181b29;
    --panel-2: #242838;
    --ink: #eef3ff;
    --muted: #9aa2b4;
    --line: rgba(238, 243, 255, 0.09);
    --accent: #ff2f63;
    background: #11131f;
}

.profile-home .site-footer {
    border-top: 0;
    color: #7d8495;
}

.profile-home .site-footer a {
    color: #b8c0d6;
    text-decoration: none;
}

.profile-shell,
.profile-main {
    width: min(1740px, calc(100% - 96px));
    margin: 0 auto;
}

.profile-shell {
    padding-top: 16px;
}

.profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr) minmax(260px, 420px);
    gap: 36px;
    align-items: center;
    min-height: 178px;
    padding: 0 0 18px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}

.profile-avatar {
    display: block;
    width: 138px;
    height: 138px;
    overflow: hidden;
    border-radius: 50%;
    background: #2a2d34;
}

.profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.08);
}

.profile-info h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    color: #f2f5ff;
}

.profile-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: #8d96a8;
    font-size: 14px;
    font-weight: 700;
}

.profile-meta a {
    color: #cdd4e6;
    text-decoration: none;
}

.profile-info a,
.profile-intro-card a {
    color: #8992a6;
    text-decoration: none;
}

.profile-intro-card {
    max-width: 820px;
    margin: -14px 0 4px 174px;
    color: #d8deee;
}

.profile-intro-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

.profile-hero-search,
.site-header .search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.profile-hero-search input,
.site-header .search-bar input {
    min-width: 0;
    height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: 0;
    font-weight: 800;
}

.profile-hero-search input::placeholder,
.site-header .search-bar input::placeholder {
    color: #c7cedd;
}

.profile-hero-search button,
.site-header .search-bar button {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #ff2f63;
    color: #fff;
    font-weight: 900;
}

.profile-tabs {
    display: flex;
    gap: 30px;
    align-items: center;
    height: 68px;
}

.profile-tabs a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 68px;
    color: #8f98aa;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
}

.profile-tabs .is-current {
    color: #f4f7ff;
}

.profile-tabs .is-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: #ff2f63;
}

.lock-dot {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 50%;
    background: #707889;
    color: #11131f;
    font-size: 11px;
}

.profile-main {
    padding: 16px 0 56px;
}

.all-content-main {
    padding-top: 32px;
}

.all-content-heading {
    max-width: 920px;
    margin-bottom: 24px;
}

.all-content-heading h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.2;
}

.all-content-heading p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.profile-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
}

.profile-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

.profile-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 15px;
    border-radius: 7px;
    background: #2a2e3c;
    color: #9da6b8;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
}

.post-related {
    padding-top: 0.5rem;
}

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

.post-related .article-card img {
    object-fit: contain;
}

.post-related .article-card h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-related .article-card p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.65;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.profile-pills .is-active {
    background: rgba(255, 47, 99, 0.18);
    color: #ff2f63;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px 18px;
}

.work-item {
    min-width: 0;
}

.work-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 9px;
    background: #202433;
    aspect-ratio: 3 / 4;
    text-decoration: none;
}

.work-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 30%, transparent 56%, rgba(0, 0, 0, 0.68));
    pointer-events: none;
}

.work-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 160ms ease, filter 160ms ease;
}

.work-cover:hover img {
    transform: scale(1.035);
    filter: brightness(1.08);
}

.work-cover-title {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    z-index: 2;
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
}

.copy-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 5px;
    box-shadow: 4px 4px 0 -1px rgba(255, 255, 255, 0.72);
}

.work-item h2,
.work-description {
    margin: 10px 0 0;
    color: #edf2ff;
    font-size: 16px;
    line-height: 1.45;
}

.work-item h2 a,
.work-description a {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.work-description {
    color: #c9cfdf;
    font-size: 14px;
}

.profile-home .pagination {
    margin-top: 34px;
}

.profile-articles {
    margin-top: 34px;
    width: 100%;
    max-width: none;
}

.profile-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.profile-section-title h2 {
    margin: 0;
    font-size: 22px;
}

.profile-section-title a {
    color: #9aa2b4;
    text-decoration: none;
}

.profile-articles .article-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: stretch;
    gap: 14px;
}

.profile-articles .article-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 132px;
}

.profile-articles .article-card > a {
    min-width: 0;
    background: #11140f;
}

.profile-articles .article-card img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.profile-articles .article-card > div {
    padding: 0.85rem;
}

.profile-articles .article-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.profile-articles .article-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.detail-dialog {
    width: min(1120px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #121410;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.detail-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.close-button {
    position: sticky;
    top: 0.8rem;
    left: calc(100% - 3rem);
    z-index: 2;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(16, 17, 15, 0.82);
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
    gap: 0;
}

.detail-figure {
    margin: 0;
    background: #090a08;
}

.detail-figure img {
    display: block;
    width: 100%;
    min-height: 100%;
    max-height: calc(100vh - 2rem);
    object-fit: cover;
}

.detail-panel {
    padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-panel h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.12;
}

.detail-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.meta-line {
    margin: 1rem 0 1.4rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.comment-form {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.4rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.comment-form h3,
.comments h3 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.comment-form label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.comment-form input,
.comment-form textarea {
    padding: 0.75rem;
}

.comment-form button {
    min-height: 2.75rem;
}

.form-message {
    min-height: 1.3rem;
    margin: 0;
    color: var(--accent);
    font-size: 0.9rem;
}

.form-message.error {
    color: #c84d3f;
}

.comments {
    margin-top: 1.4rem;
}

.comment {
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
}

.comment strong {
    display: block;
    margin-bottom: 0.35rem;
}

.comment time {
    color: var(--muted);
    font-size: 0.8rem;
}

.comment p {
    margin: 0.45rem 0 0;
}

.admin-shell {
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2rem);
    background: #f5f2eb;
    color: #1f211f;
}

.admin-shell a {
    color: #2b5c8f;
}

.admin-topbar,
.admin-grid,
.admin-card,
.admin-table-wrap,
.login-panel {
    border: 1px solid #d8d0c0;
    border-radius: 8px;
    background: #fffaf1;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.4rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-tabs a {
    padding: 0.65rem 0.9rem;
    border: 1px solid #d8d0c0;
    border-radius: 8px;
    background: #fffaf1;
    color: #1f211f;
    text-decoration: none;
    font-weight: 800;
}

.admin-tabs .is-active {
    background: #b7e36d;
    border-color: #9fc954;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 24rem) 1fr;
    gap: 1rem;
    padding: 1rem;
}

.admin-card {
    padding: 1rem;
}

.wide-card {
    max-width: 760px;
}

.virtual-category-card {
    margin-bottom: 1rem;
}

.admin-help {
    margin: 0.4rem 0 0;
    color: #716a5f;
    font-size: 0.88rem;
    line-height: 1.6;
}

.admin-shell label {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.admin-shell input,
.admin-shell textarea,
.admin-shell select {
    padding: 0.7rem;
    border-color: #d8d0c0;
    background: #ffffff;
    color: #1f211f;
}

.admin-shell button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.55rem 0.8rem;
    text-decoration: none;
}

.danger-button {
    background: #c84d3f !important;
    color: #fff !important;
}

.muted-button {
    background: #e7dfcf !important;
    color: #1f211f !important;
}

.admin-table-wrap {
    overflow: auto;
}

.admin-section {
    margin-top: 1rem;
}

.admin-main {
    width: min(1500px, 100%);
    margin: 0 auto;
}

.cms-layout {
    display: grid;
    gap: 1rem;
}

.cms-editor {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.cms-editor-head,
.admin-section-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.cms-editor-head {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #d8d0c0;
    background: #f6f8ec;
}

.cms-editor-head h2,
.admin-section-title h2 {
    margin: 0;
    font-size: 1.05rem;
}

.cms-row {
    display: grid;
    grid-template-columns: 6.2rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    min-height: 3rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px dotted #d7d1c4;
}

.cms-label {
    padding-top: 0.48rem;
    font-weight: 700;
    white-space: nowrap;
}

.cms-control {
    min-width: 0;
}

.cms-line,
.attribute-list {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}

.cms-inline-label {
    display: inline-flex !important;
    grid-auto-flow: column;
    gap: 0.45rem !important;
    align-items: center;
    margin: 0 !important;
    white-space: nowrap;
}

.cms-title-input {
    max-width: 34rem;
}

.cms-short-input {
    width: 13rem !important;
}

.cms-weight-input {
    width: 6rem !important;
}

.cms-source-input {
    width: 14rem !important;
}

.cms-status-input {
    width: 9rem !important;
}

.cms-date-input {
    width: 13.5rem !important;
}

.attribute-list label,
.cms-line label {
    margin: 0;
    color: #1f211f;
    font-weight: 500;
}

.attribute-list input,
.cms-line input[type="checkbox"],
.cms-line input[type="radio"] {
    width: auto;
    margin-right: 0.25rem;
}

.cms-note {
    color: #756f63;
    font-size: 0.9rem;
}

.cms-section-title {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dde5c7;
    background: #f5f8e9;
    color: #687c18;
    font-weight: 900;
}

.editor-toolbar {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #d8d0c0;
    background: #eef4ef;
}

.editor-toolbar button {
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid #c9d5c6;
    background: #fff;
    color: #233125;
    font-size: 0.9rem;
}

.editor-modebar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #d8d0c0;
    background: #f8f7f2;
}

.editor-modebar button {
    min-height: 2.15rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid #c5c6bd;
    background: #fff;
    color: #343830;
}

.editor-modebar button.is-active {
    border-color: #687c18;
    background: #687c18;
    color: #fff;
}

.editor-surface[hidden] {
    display: none;
}

.visual-editor,
.source-editor {
    display: block;
    width: 100%;
    min-height: 28rem;
    padding: 1rem;
    border: 0;
    border-radius: 0;
    line-height: 1.65;
    resize: vertical;
}

.visual-editor {
    overflow-y: auto;
    background: #fff;
    color: #1f211f;
    font-family: inherit;
}

.visual-editor:focus,
.source-editor:focus {
    outline: 2px solid #899d32;
    outline-offset: -2px;
}

.visual-editor:empty::before {
    color: #918f88;
    content: "在这里输入正文，或切换到 HTML 源码模式粘贴代码。";
    pointer-events: none;
}

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

.source-editor {
    background: #10130f;
    color: #e8f6d1;
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.editor-noscript {
    margin: 0;
    padding: 0.75rem 1rem;
    background: #fff4d8;
    color: #6c4a00;
}

.cms-seo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 0.8rem;
}

.seo-row label {
    margin-bottom: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2dacb;
    text-align: left;
    vertical-align: top;
}

.admin-table tr.is-pending-comment td:not(:last-child) {
    color: #c40000;
    font-weight: 900;
}

.comment-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #d8d0c0;
    background: #f1eadb;
    color: #4e463b;
    font-weight: 900;
    white-space: nowrap;
}

.comment-status-pending {
    border-color: #ff3b30;
    background: #ffe1df;
    color: #c40000;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.18);
}

.comment-status-approved {
    border-color: #9fc954;
    background: #e6f7c8;
    color: #2d5b05;
}

.comment-status-hidden {
    border-color: #c9c0b1;
    background: #eee8dd;
    color: #6b6154;
}

.admin-thumb {
    width: 5.5rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.inline-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.admin-logout-form {
    margin: 0;
}

.flash {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #dff2bc;
    color: #25380d;
}

.flash.error {
    background: #f6d1cc;
    color: #5b1812;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: #0a0c0a;
    color: var(--ink);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px);
    width: min(1040px, 100%);
    min-height: 620px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(244, 239, 230, 0.13);
    border-radius: 8px;
    background: #10130f;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.login-brand {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: clamp(42px, 7vw, 82px);
    border-right: 1px solid rgba(244, 239, 230, 0.1);
    background: #0d0f0d;
}

.login-brand-link {
    display: block;
    flex: 0 0 auto;
    width: 168px;
    height: 168px;
    overflow: hidden;
    border: 2px solid rgba(183, 227, 109, 0.68);
    border-radius: 50%;
    background: #050605;
    box-shadow: 0 0 0 8px rgba(183, 227, 109, 0.06), 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

.login-kicker {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.login-brand h1 {
    max-width: 10em;
    margin: 0;
    color: var(--ink);
    font-size: 36px;
    line-height: 1.2;
}

.login-brand-copy {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.login-panel {
    display: flex;
    width: 100%;
    padding: 58px 44px 36px;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: #171a16;
    color: var(--ink);
}

.login-panel-header {
    margin-bottom: 26px;
}

.login-panel-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.25;
}

.login-panel-header > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.login-panel .flash {
    margin-bottom: 20px;
    border: 1px solid rgba(183, 227, 109, 0.28);
    background: rgba(183, 227, 109, 0.1);
    color: #dcf5b5;
}

.login-panel .flash.error {
    border-color: rgba(242, 127, 99, 0.35);
    background: rgba(242, 127, 99, 0.1);
    color: #ffc5b8;
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form label {
    margin-top: 5px;
    color: #d8d3ca;
    font-size: 14px;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #393e36;
    border-radius: 6px;
    outline: 0;
    background: #10120f;
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-form input::placeholder {
    color: #777d73;
}

.login-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(183, 227, 109, 0.12);
}

.captcha-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px 44px;
    gap: 8px;
    align-items: center;
}

.captcha-field img {
    display: block;
    width: 132px;
    height: 48px;
    border-radius: 6px;
}

.captcha-refresh {
    display: grid;
    width: 44px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid #393e36;
    border-radius: 6px;
    background: #20241e;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
}

.captcha-refresh:hover,
.captcha-refresh:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 14px;
    border: 1px solid #a4ce5e;
    border-radius: 6px;
    background: var(--accent);
    color: #151a0f;
    font-weight: 900;
}

.login-submit:hover,
.login-submit:focus-visible {
    background: #c8ef85;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(244, 239, 230, 0.1);
    color: #747b70;
    font-size: 13px;
}

.login-footer a {
    color: #cfd6c7;
    text-decoration: none;
}

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

@media (max-width: 820px) {
    .login-page {
        padding: 16px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .login-brand {
        gap: 18px;
        padding: 26px;
        border-right: 0;
        border-bottom: 1px solid rgba(244, 239, 230, 0.1);
    }

    .login-brand-link {
        width: 82px;
        height: 82px;
    }

    .login-brand h1 {
        font-size: 27px;
    }

    .login-brand-copy {
        margin-top: 7px;
        font-size: 14px;
    }

    .login-panel {
        padding: 32px 26px 26px;
    }
}

@media (max-width: 440px) {
    .login-page {
        display: block;
        padding: 0;
        background: #171a16;
    }

    .login-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .login-brand {
        padding: 22px 20px;
    }

    .login-brand-link {
        width: 68px;
        height: 68px;
    }

    .login-brand h1 {
        font-size: 24px;
    }

    .login-kicker {
        margin-bottom: 7px;
        font-size: 10px;
    }

    .login-panel {
        padding: 28px 20px 24px;
        justify-content: flex-start;
    }

    .captcha-field {
        grid-template-columns: minmax(0, 1fr) 116px 44px;
    }

    .captcha-field img {
        width: 116px;
        object-fit: cover;
    }
}

@media (max-width: 1080px) {
    .profile-shell,
    .profile-main {
        width: min(100% - 32px, 960px);
    }

    .profile-hero {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 22px;
    }

    .profile-hero-search {
        grid-column: 1 / -1;
    }

    .profile-avatar {
        width: 112px;
        height: 112px;
    }

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

    .masonry {
        column-count: 3;
    }

    .detail-layout,
    .admin-grid,
    .detail-page {
        grid-template-columns: 1fr;
    }

    .detail-figure img {
        max-height: 60vh;
    }
    .article-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-row.has-cover {
        grid-template-columns: 12rem 1fr;
    }
}

@media (max-width: 760px) {
    .profile-home {
        background: #fff;
        color: #141821;
    }

    .profile-shell,
    .profile-main {
        width: 100%;
    }

    .profile-shell {
        padding-top: 0;
        background: #050607;
    }

    .profile-hero {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 18px;
        min-height: auto;
        padding: 30px 18px 18px;
        background:
            radial-gradient(circle at 65% 18%, rgba(255, 255, 255, 0.12), transparent 10rem),
            linear-gradient(180deg, #08090b 0%, #050607 100%);
    }

    .profile-avatar {
        width: 112px;
        height: 112px;
        border: 4px solid #fff;
        z-index: 2;
    }

    .profile-info h1 {
        margin-bottom: 8px;
        color: #fff;
        font-size: 27px;
        line-height: 1.22;
        word-break: break-word;
    }

    .profile-tabs a {
        font-size: 20px;
    }

    .profile-meta {
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.72);
        font-size: 12px;
        line-height: 1.5;
        word-break: break-all;
    }

    .profile-info {
        min-width: 0;
    }

    .profile-hero-search,
    .site-header .search-bar {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
        height: auto;
        margin-top: 4px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
    }

    .profile-hero-search input,
    .site-header .search-bar input {
        position: static;
        width: 100%;
        height: 42px;
        opacity: 1;
        pointer-events: auto;
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
    }

    .profile-hero-search input::placeholder,
    .site-header .search-bar input::placeholder {
        color: rgba(255, 255, 255, 0.74);
    }

    .profile-hero-search button,
    .site-header .search-bar button {
        width: auto;
        min-width: 64px;
        height: 42px;
        padding: 0 12px;
        border-radius: 9px;
        color: #fff;
        background: #ff2f63;
    }

    .profile-intro-card {
        margin: 0;
        padding: 24px 22px 22px;
        border-radius: 18px 18px 0 0;
        background: #fff;
        color: #20242c;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
    }

    .profile-intro-card p {
        display: -webkit-box;
        overflow: hidden;
        margin: 0;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.65;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }

    .profile-tabs {
        position: relative;
        z-index: 2;
        justify-content: space-around;
        gap: 10px;
        height: 74px;
        margin-top: 0;
        padding: 0 10px;
        background: #fff;
        border-bottom: 1px solid #e5e7ee;
    }

    .profile-tabs a {
        justify-content: center;
        min-width: 0;
        height: 74px;
        color: #8e929c;
        white-space: nowrap;
    }

    .profile-tabs .is-current {
        color: #151822;
    }

    .profile-tabs .is-current::after {
        left: 8px;
        right: 8px;
        height: 4px;
        background: #151822;
    }

    .profile-main {
        padding: 0 0 42px;
        background: #fff;
    }

    .all-content-main {
        padding-top: 22px;
    }

    .all-content-heading {
        margin: 0;
        padding: 0 16px 18px;
    }

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

    .profile-toolbar {
        position: relative;
        z-index: 3;
        display: block;
        overflow: hidden;
        margin: 0;
        padding: 12px 14px;
        border-bottom: 1px solid #e5e7ee;
        background: #fff;
    }

    .profile-pills {
        width: 100%;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 1px 0 5px;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    .profile-pills::-webkit-scrollbar {
        display: none;
    }

    .profile-pills a {
        flex: 0 0 auto;
        justify-content: center;
        min-width: 0;
        min-height: 38px;
        padding: 0 14px;
        border: 1px solid #dde1e9;
        border-radius: 7px;
        background: #f3f4f7;
        color: #323641;
        font-size: 15px;
        white-space: nowrap;
    }

    .profile-pills a:first-child {
        border-radius: 7px;
    }

    .profile-pills .is-active {
        border-color: #171a24;
        background: #171a24;
        color: #fff;
        box-shadow: 0 4px 10px rgba(23, 26, 36, 0.16);
    }

    .profile-pills .is-active::after {
        content: none;
    }

    .profile-home .pagination {
        gap: 7px;
        margin: 22px 14px 30px;
        padding: 12px 10px;
        border: 1px solid #dfe3eb;
        border-radius: 8px;
        background: #f5f6f9;
    }

    .profile-home .pagination > a,
    .profile-home .pagination > span {
        order: 2;
        min-height: 42px;
        border-color: #d9dee8;
        background: #fff;
        color: #252a35;
        box-shadow: 0 1px 2px rgba(24, 30, 42, 0.05);
    }

    .profile-home .pagination .is-current {
        border-color: #ff2f63;
        background: #ff2f63;
        color: #fff;
    }

    .profile-home .pagination .pagination-direction {
        order: 1;
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .profile-home .pagination .pagination-ellipsis {
        min-width: 1.25rem;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }

    .works-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px;
        padding-top: 12px;
    }

    .work-cover {
        border-radius: 0;
    }

    .copy-corner {
        top: 12px;
        right: 12px;
    }

    .work-cover-title {
        left: 10px;
        right: 10px;
        bottom: 10px;
        font-size: 15px;
    }

    .work-item h2,
    .work-description {
        display: none;
    }

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

    .search-bar {
        grid-column: 1 / -1;
        order: 3;
    }

    .site-nav {
        grid-column: 2;
        grid-row: 1;
    }

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

    .hero-stats {
        text-align: left;
    }

    .masonry {
        column-count: 2;
        column-gap: 0.75rem;
    }

    .image-card {
        margin-bottom: 0.75rem;
    }

    .card-body {
        padding: 0.8rem;
    }

    .article-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-row.has-cover {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .article-row > a {
        width: 108px;
        min-height: 132px;
        aspect-ratio: auto;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .article-row > a img {
        width: 100%;
        height: 100%;
        max-height: none;
        padding: 0;
        object-fit: cover;
    }

    .article-row > div {
        min-width: 0;
        padding: 0.72rem 0.78rem;
    }

    .article-row .eyebrow {
        display: block;
        overflow: hidden;
        margin-bottom: 0.28rem;
        font-size: 0.72rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .article-row h2 {
        display: -webkit-box;
        overflow: hidden;
        margin: 0 0 0.35rem;
        font-size: 1rem;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .article-row p {
        display: -webkit-box;
        overflow: hidden;
        margin: 0 0 0.38rem;
        font-size: 0.88rem;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .article-row time {
        display: block;
        overflow: hidden;
        font-size: 0.75rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-articles {
        width: auto;
        max-width: none;
        margin: 28px 16px 0;
    }

    .profile-articles .article-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-articles .article-card {
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 112px;
    }

    .profile-articles .article-card > div {
        padding: 0.75rem;
    }

    .post-related .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .post-related .article-card > div {
        padding: 0.72rem;
    }

    .post-related .article-card h3 {
        font-size: 1rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }

    .post-related .article-card p {
        font-size: 0.9rem;
        line-height: 1.55;
        -webkit-line-clamp: 3;
    }

    .admin-shell {
        padding: 0.75rem;
    }

    .admin-topbar,
    .cms-editor-head,
    .admin-section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .cms-row,
    .cms-seo-grid {
        grid-template-columns: 1fr;
    }

    .cms-label {
        padding-top: 0;
    }

    .cms-inline-label {
        align-items: flex-start;
        flex-direction: column;
        white-space: normal;
    }

    .cms-title-input,
    .cms-short-input,
    .cms-source-input,
    .cms-date-input,
    .cms-status-input {
        max-width: none;
        width: 100% !important;
    }

    .source-editor {
        min-height: 22rem;
    }
}

@media (max-width: 480px) {
    .masonry {
        column-count: 1;
    }

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

.mobile-reader-top,
.mobile-reader-bottom {
    display: none;
}

.post-breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
    margin-bottom: 1.4rem;
    color: var(--muted);
    font-size: 0.95rem;
}

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

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

.post-breadcrumb strong {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-sibling-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 2.5rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.post-sibling-link {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    min-height: 5rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.post-sibling-link > span {
    color: var(--muted);
    font-size: 0.8rem;
}

.post-sibling-link > strong {
    overflow: hidden;
    color: var(--ink);
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-sibling-link.is-next {
    text-align: right;
}

.post-sibling-link.is-disabled {
    opacity: 0.48;
}

@media (max-width: 760px) {
    .article-reader {
        background: #10110f;
        color: var(--ink);
    }

    .article-reader .site-header {
        display: none;
    }

    .mobile-reader-top {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 48px 48px;
        align-items: center;
        height: calc(64px + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) 6px 0;
        border-bottom: 1px solid rgba(244, 239, 230, 0.12);
        background: rgba(16, 17, 15, 0.96);
        color: var(--ink);
        backdrop-filter: blur(16px);
    }

    .mobile-reader-top a {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        color: var(--ink);
        text-decoration: none;
    }

    .mobile-reader-back {
        font-size: 42px;
        font-weight: 300;
        line-height: 1;
    }

    .mobile-reader-progress {
        min-width: 0;
        overflow: hidden;
        padding: 0 8px;
        color: var(--muted);
        font-size: 17px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-reader-detail span,
    .mobile-reader-recommend span {
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border: 2px solid currentColor;
        border-radius: 50%;
        font-size: 16px;
        font-weight: 800;
    }

    .mobile-reader-recommend span {
        width: 40px;
        border-radius: 999px;
        font-size: 13px;
    }

    .mobile-reader-home span {
        font-size: 30px;
        line-height: 1;
    }

    .article-reader .article-main {
        width: 100%;
        margin: 0;
        padding: calc(64px + env(safe-area-inset-top)) 0 calc(74px + env(safe-area-inset-bottom));
        background: #10110f;
    }

    .article-reader .post-page {
        max-width: none;
        margin: 0;
        padding: 26px 18px 38px;
        scroll-margin-top: calc(64px + env(safe-area-inset-top));
        background: #10110f;
        color: var(--ink);
    }

    .article-reader .post-breadcrumb,
    .article-reader .post-sibling-navigation {
        display: none;
    }

    .article-reader .post-page h1 {
        margin-bottom: 0.8rem;
        color: var(--ink);
        font-size: 1.58rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .article-reader .post-page .lead,
    .article-reader .post-page .meta-line,
    .article-reader .post-content {
        color: var(--muted);
    }

    .article-reader .post-content {
        font-size: 1.05rem;
        line-height: 1.9;
        overflow-wrap: anywhere;
    }

    .article-reader .post-content h2,
    .article-reader .post-content h3,
    .article-reader .post-content h4,
    .article-reader .post-content strong {
        color: var(--ink);
    }

    .article-reader .post-content blockquote {
        border-left-color: var(--accent);
        background: rgba(255, 255, 255, 0.05);
        color: var(--muted);
    }

    .article-reader .post-cover {
        width: calc(100% + 36px);
        max-width: none;
        margin: 1.25rem -18px 1.5rem;
        border-radius: 0;
    }

    .mobile-reader-bottom {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: calc(68px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid rgba(244, 239, 230, 0.12);
        background: rgba(16, 17, 15, 0.96);
        color: var(--ink);
        backdrop-filter: blur(16px);
    }

    .mobile-reader-action {
        display: flex;
        min-width: 0;
        min-height: 68px;
        flex-direction: column;
        gap: 3px;
        align-items: center;
        justify-content: center;
        color: var(--ink);
        font-size: 12px;
        text-decoration: none;
    }

    .mobile-reader-action-icon {
        display: grid;
        place-items: center;
        width: 29px;
        height: 29px;
        border: 2px solid currentColor;
        border-radius: 50%;
        font-size: 20px;
        line-height: 1;
    }

    .mobile-reader-action-icon.is-catalog {
        border-radius: 5px;
        font-size: 24px;
    }

    .mobile-reader-action.is-disabled {
        color: #64685f;
    }
}
/* Keep article pagination below floated source content. */
.post-content::after {
    content: "";
    display: block;
    clear: both;
}

.post-sibling-navigation {
    clear: both;
    width: 100%;
    max-width: 100%;
}

.post-sibling-link > span {
    white-space: nowrap;
}
.article-reader .post-page > .lead,
.article-reader .post-tags,
.article-reader .post-cover {
    display: none;
}
.reader-side-nav {
    display: none;
}

@media (min-width: 1000px) {
    .article-reader .reader-side-nav {
        display: block;
    }

    .reader-side-button {
        position: fixed;
        top: 52%;
        z-index: 45;
        display: flex;
        width: 72px;
        height: 210px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(183, 227, 109, 0.34);
        border-radius: 8px;
        background: rgba(25, 27, 24, 0.78);
        color: rgba(244, 239, 230, 0.94);
        text-decoration: none;
        transform: translateY(-50%);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38), 0 0 18px rgba(183, 227, 109, 0.12);
        backdrop-filter: blur(12px);
        transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    }

    .reader-side-button.is-previous {
        left: clamp(24px, 4vw, 56px);
    }

    .reader-side-button.is-next {
        right: clamp(24px, 4vw, 56px);
    }

    .reader-side-button:hover {
        border-color: rgba(183, 227, 109, 0.48);
        background: rgba(34, 38, 30, 0.94);
        color: var(--accent);
    }

    .reader-side-button.is-disabled {
        opacity: 0.58;
        pointer-events: none;
    }

    .reader-side-arrow {
        font-size: 3.35rem;
        font-weight: 300;
        line-height: 1;
    }

    .reader-side-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
