/*
Theme Name: 转存侠
Description: 转存侠 · 先看懂，再转存。独立主题，答案引擎式书籍模板。
Author: 转存侠
Version: 2.6.37
Text Domain: zhuancunxia
*/


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f0f3f8;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 72px;
}
a {
    color: #4f6af5;
    text-decoration: none;
    transition: color 0.25s;
}
a:hover {
    color: #3b4fe0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 72px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s;
}
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #1e293b;
    border-radius: 4px;
    transition: 0.3s;
}
.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f6af5, #7c5cfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0 1.5rem;
}
.nav-links a {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.25s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f6af5, #7c5cfc);
    transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-links a.active {
    color: #1e293b;
    font-weight: 600;
}
.nav-search {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1 1 280px;
    max-width: 380px;
    margin: 0 1rem;
}
.nav-search input {
    flex: 1;
    padding: 0.5rem 1.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 40px 0 0 40px;
    font-size: 0.9rem;
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    transition: 0.3s;
    min-width: 0;
    font-weight: 400;
}
.nav-search input:focus {
    border-color: #4f6af5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 106, 245, 0.1);
}
.nav-search button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0 40px 40px 0;
    background: linear-gradient(135deg, #4f6af5, #7c5cfc);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.nav-search button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(79, 106, 245, 0.35);
}
.auth-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}
.auth-links a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    transition: 0.25s;
}
.auth-links a:first-child {
    color: #475569;
    border: 1.5px solid transparent;
}
.auth-links a:first-child:hover {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.04);
}
.auth-links a:last-child {
    background: linear-gradient(135deg, #4f6af5, #7c5cfc);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(79, 106, 245, 0.25);
}
.auth-links a:last-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 106, 245, 0.35);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    z-index: 98;
}
.nav-overlay.show {
    display: block;
}
.nav-mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    z-index: 99;
    padding: 2rem 1.8rem;
    transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.06);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.nav-mobile-menu.show {
    left: 0;
}
.nav-mobile-header {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f6af5, #7c5cfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}
.nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}
.nav-mobile-links a {
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    color: #334155;
    font-weight: 500;
    transition: 0.2s;
    font-size: 1rem;
}
.nav-mobile-links a:hover {
    background: rgba(79, 106, 245, 0.08);
    color: #4f6af5;
}
.nav-mobile-links .nav-sep {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 0.5rem 0;
}

.article-page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 3rem;
}
.post-top-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    padding: 0 0 0.75rem 0;
    flex-wrap: wrap;
}
.post-top-nav a {
    color: #64748b;
    font-weight: 450;
}
.post-top-nav a:hover {
    color: #4f6af5;
}
.post-top-nav span {
    color: #cbd5e1;
}
.post-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    margin-top: 0.25rem;
}
.post-detail-main {
    min-width: 0;
}

.article-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem 2.25rem 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.3s;
    margin-bottom: 1.5rem;
}
.article-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.article-cat-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4f6af5;
    background: rgba(79, 106, 245, 0.08);
    padding: 0.1rem 1rem;
    border-radius: 40px;
    letter-spacing: 0.3px;
    margin-bottom: 0.6rem;
}
.article-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.article-deck {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0.8rem;
    font-weight: 450;
}
.article-byline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 1.5rem;
}
.article-byline .dot {
    color: #cbd5e1;
}
.article-prose {
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.article-prose p {
    margin-bottom: 0.75rem;
}
.article-prose p:last-child {
    margin-bottom: 0;
}

.download-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem 2rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.3s;
    margin-bottom: 1.5rem;
}
.download-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.download-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eef2f6;
    letter-spacing: -0.2px;
}
.dl-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.dl-panel {
    border: 1px solid #eef2f6;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s;
}
.dl-panel:hover {
    border-color: #d5dce6;
}
.dl-panel.is-open {
    border-color: #d5dce6;
}
.dl-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: #fafcff;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    transition: background 0.2s;
    text-align: left;
    font-family: inherit;
    gap: 0.5rem;
}
.dl-panel-head:hover {
    background: #f1f4f9;
}
.dl-panel-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.dl-panel-title::before {
    content: '📦';
    font-size: 1rem;
}
.dl-panel-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    transition: transform 0.3s;
}
.dl-panel.is-open .dl-panel-arrow {
    transform: rotate(180deg);
}
.dl-panel-body {
    padding: 0 1.2rem 1.2rem 1.2rem;
    display: none;
    background: #fafcff;
    border-top: 1px solid #eef2f6;
}
.dl-panel.is-open .dl-panel-body {
    display: block;
}
.dl-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.2rem 0;
}
.dl-file-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 150px;
}
.dl-file-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f172a;
    word-break: break-all;
}
.dl-file-link:hover {
    color: #4f6af5;
}
.dl-file-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}
.dl-action-btn {
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.dl-copy-btn {
    background: #f1f4f9;
    color: #475569;
}
.dl-copy-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.dl-copy-btn.copied {
    background: #d1fae5;
    color: #065f46;
}
.dl-download-btn {
    background: linear-gradient(135deg, #4f6af5, #7c5cfc);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 106, 245, 0.2);
}
.dl-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 106, 245, 0.3);
}
.dl-failure {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eef2f6;
    font-size: 0.85rem;
    color: #94a3b8;
}
.dl-failure-count {
    margin: 0;
}
.dl-failure-btn {
    padding: 0.25rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.dl-failure-btn:hover {
    background: #f1f4f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
.dl-failure-btn.login {
    background: #f1f4f9;
    border-color: transparent;
}
.dl-failure-btn.login:hover {
    background: #e2e8f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}
.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.post-count {
    font-size: 0.9rem;
    color: #94a3b8;
    background: #f1f4f9;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-weight: 500;
}
.article-list-plain {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.article-list-item {
    display: block;
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}
.article-list-item:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
    border-color: #d5dce6;
}
.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}
.article-list-item:hover .item-title {
    color: #4f6af5;
}
.item-title .search-match {
    background: #fef3c7;
    color: #b45309;
    padding: 0 0.2rem;
    border-radius: 4px;
    font-weight: 700;
}
.item-excerpt {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-excerpt .search-match {
    background: #fef3c7;
    color: #b45309;
    padding: 0 0.2rem;
    border-radius: 4px;
    font-weight: 500;
}
.item-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    gap: 1rem;
}

.search-header {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}
.search-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.search-header h1 .highlight {
    color: #4f6af5;
    background: rgba(79, 106, 245, 0.08);
    padding: 0 0.3rem;
    border-radius: 6px;
}
.search-header .result-count {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 0.2rem;
}
.search-header .result-count strong {
    color: #0f172a;
    font-weight: 600;
}

.no-results {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.no-results .icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.no-results h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
}
.no-results p {
    color: #64748b;
    margin-top: 0.3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    background: #f1f4f9;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.pagination a:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.pagination .current {
    background: linear-gradient(135deg, #4f6af5, #7c5cfc);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 106, 245, 0.3);
}
.pagination .disabled {
    color: #cbd5e1;
    background: transparent;
    cursor: default;
}

.inlink-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.pager-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    transition: all 0.25s;
    flex: 1;
    min-width: 120px;
    max-width: 48%;
}
.pager-item:hover {
    border-color: #d5dce6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}
.pager-item.is-empty {
    opacity: 0.3;
    pointer-events: none;
}
.pager-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pager-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f172a;
}
.pager-item.next {
    text-align: right;
}

.inlink-related {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem 2rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.inlink-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eef2f6;
    letter-spacing: -0.2px;
}
.inlink-related-text {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.inlink-related-text li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f4f9;
    transition: 0.2s;
}
.inlink-related-text li:last-child {
    border-bottom: none;
}
.inlink-related-text li:hover {
    padding-left: 0.4rem;
}
.inlink-related-text a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 450;
    flex-wrap: wrap;
}
.inlink-related-text a:hover {
    color: #4f6af5;
}
.related-text-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
    white-space: nowrap;
}

.post-inlinks-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.inlink-block {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.3s;
}
.inlink-block:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.inlink-block-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eef2f6;
    letter-spacing: -0.2px;
}
.inlink-cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.inlink-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 12px;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
}
.inlink-cat-list li a:hover {
    background: rgba(79, 106, 245, 0.06);
    color: #0f172a;
}
.inlink-cat-list li.is-current a {
    background: rgba(79, 106, 245, 0.08);
    color: #4f6af5;
    font-weight: 600;
}
.inlink-cat-list .count {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    background: #f1f4f9;
    padding: 0.05rem 0.6rem;
    border-radius: 40px;
}
.inlink-cat-list li.is-current .count {
    background: rgba(79, 106, 245, 0.12);
    color: #4f6af5;
}
.inlink-hot-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.inlink-hot-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.4rem 0.4rem 0.2rem;
    border-radius: 12px;
    transition: 0.2s;
}
.inlink-hot-list li:hover {
    background: rgba(79, 106, 245, 0.04);
}
.inlink-hot-list li a {
    color: #1e293b;
    font-size: 0.9rem;
    flex: 1;
    font-weight: 450;
}
.inlink-hot-list li a:hover {
    color: #4f6af5;
}
.rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f4f9;
    flex-shrink: 0;
}
.inlink-hot-list li:nth-child(1) .rank {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #b91c1c;
}
.inlink-hot-list li:nth-child(2) .rank {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}
.inlink-hot-list li:nth-child(3) .rank {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}
.inlink-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.inlink-quick a {
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f1f4f9;
    color: #475569;
    transition: 0.2s;
    border: 1px solid transparent;
}
.inlink-quick a:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #0f172a;
    color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 200;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.site-footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2.5rem 1.5rem;
    margin-top: 2.5rem;
}
.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}
.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    font-size: 0.9rem;
}
.site-footer-nav a {
    color: #64748b;
    font-weight: 450;
}
.site-footer-nav a:hover {
    color: #4f6af5;
}
.site-footer-dot {
    color: #cbd5e1;
}
.site-footer-main {
    font-size: 0.85rem;
    color: #94a3b8;
}
.site-footer-name {
    font-weight: 600;
    color: #475569;
}
.site-footer-sep {
    color: #cbd5e1;
}
.site-footer-extra {
    color: #94a3b8;
}
.site-footer-powered {
    font-size: 0.8rem;
    color: #cbd5e1;
}
.site-footer-powered a {
    color: #94a3b8;
}
.site-footer-powered a:hover {
    color: #4f6af5;
}

@media (max-width: 1024px) {
    .post-detail-layout {
        grid-template-columns: 1fr;
    }
    .post-inlinks-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
    .navbar {
        padding: 0 1.25rem;
        height: 64px;
    }
    .nav-hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
    }
    .nav-search {
        flex: 1 1 auto;
        max-width: 180px;
        margin: 0 0.5rem;
    }
    .nav-search input {
        font-size: 0.8rem;
        padding: 0.35rem 0.9rem;
    }
    .nav-search button {
        padding: 0.35rem 0.9rem;
        font-size: 0.8rem;
    }
    .auth-links a {
        font-size: 0.8rem;
        padding: 0.25rem 0.8rem;
    }
    .auth-links a:last-child {
        padding: 0.25rem 0.8rem;
    }
    .article-page-wrap {
        padding: 0.75rem 0.75rem 2rem;
    }
    .article-card {
        padding: 1.25rem 1rem;
    }
    .article-title {
        font-size: 1.4rem;
    }
    .download-card {
        padding: 1rem 1rem 1rem;
    }
    .dl-panel-head {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    .dl-panel-body {
        padding: 0 1rem 1rem 1rem;
    }
    .dl-file-row {
        flex-direction: column;
        align-items: stretch;
    }
    .dl-file-actions {
        justify-content: flex-start;
    }
    .inlink-related {
        padding: 1.25rem 1rem;
    }
    .post-inlinks-sidebar {
        grid-template-columns: 1fr;
    }
    .inlink-pager {
        flex-direction: column;
    }
    .pager-item {
        max-width: 100%;
    }
    .pager-item.next {
        text-align: left;
    }
    .search-header {
        padding: 1.25rem 1rem;
    }
    .search-header h1 {
        font-size: 1.3rem;
    }
    .article-list-item {
        padding: 1.25rem 1rem;
    }
    .item-title {
        font-size: 1rem;
    }
    .item-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
    .site-footer {
        padding: 1.5rem 0.75rem;
    }
}
@media (max-width: 480px) {
    .nav-search {
        max-width: 130px;
    }
    .nav-search input {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    .nav-search button {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    .auth-links a {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    .auth-links a:last-child {
        padding: 0.2rem 0.5rem;
    }
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    .article-title {
        font-size: 1.2rem;
    }
    .article-deck {
        font-size: 0.9rem;
    }
}