/* AnyDesk 博客列表与文章详情 */
.blog-page {
    min-height: 100vh;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-main {
    min-height: 70vh;
    padding: 132px 6% 100px;
    background: radial-gradient(circle at 12% 5%, rgba(239, 68, 59, 0.05) 0%, #ffffff 48%);
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
}

.news-wrap {
    width: 100%;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #6b7280;
    font-size: 14px;
}

.blog-breadcrumb a {
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
}

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

.features {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
    gap: 34px;
    min-width: 0;
}

.clearfix::after {
    display: table;
    clear: both;
    content: "";
}

.features > .left {
    position: sticky;
    top: 108px;
    padding: 20px;
    border: 1px solid #e8ebf0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.blog-menu-title {
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.features > .left ul,
.newsc > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.features > .left a {
    display: block;
    padding: 13px 16px;
    border-radius: 9px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.features > .left a:hover,
.features > .left a.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary-red), #ee713b);
    transform: translateX(2px);
}

.features > .right {
    min-width: 0;
    padding: 42px 46px;
    border: 1px solid #e8ebf0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.07);
}

.newsc,
.newsc > ul,
.newsc > ul > li,
.newsc > ul > li > div,
.blog-article {
    min-width: 0;
    max-width: 100%;
}

.newsc > h1,
.blog-article > .title {
    margin: 0;
    color: #1f2937;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.28;
}

.newsc > h1::after,
.blog-article > .title::after {
    display: block;
    width: 54px;
    height: 4px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-red), #ee8d3b);
    content: "";
}

.blog-list-intro {
    max-width: 760px;
    margin: 18px 0 10px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.8;
}

.newsc > ul > li {
    display: flex;
    gap: 26px;
    min-height: 186px;
    padding: 30px 0;
    border-bottom: 1px solid #edf0f4;
}

.newsc > ul > li:last-child {
    border-bottom: 0;
}

.newsc > ul > li > div:first-child {
    height: 146px;
    border: 1px solid #edf0f4;
    background: #f6f7f9;
}

.newsc > ul > li > div:first-child a,
.newsc > ul > li > div:first-child img {
    display: block;
    width: 100%;
    height: 100%;
}

.newsc > ul > li > div:first-child img {
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.newsc > ul > li:hover > div:first-child img {
    transform: scale(1.04);
}

.newsc h2 {
    margin: 2px 0 12px;
    font-size: 1.34rem;
    font-weight: 750;
    line-height: 1.48;
}

.newsc h2 a {
    color: #1f2937;
    font-weight: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.newsc h2 a:hover {
    color: var(--primary-red);
}

.newsc li p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.newsc li p a {
    margin-left: 5px;
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
}

.newsc li p a:hover {
    text-decoration: underline;
}

.pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pages a,
.pages span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.pages a:hover,
.pages .current {
    border-color: var(--primary-red);
    color: #ffffff;
    background: var(--primary-red);
}

.post-time {
    margin: 18px 0 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf0f4;
    color: #8a94a3;
    font-size: 14px;
}

.content {
    overflow-wrap: anywhere;
    color: #4b5563;
    font-size: 1.04rem;
    line-height: 1.92;
}

.content p,
.content ul,
.content ol,
.content blockquote,
.content pre,
.content table,
.content figure {
    margin: 0 0 1.45em;
}

.content h2,
.content h3,
.content h4 {
    margin: 1.7em 0 0.7em;
    color: #1f2937;
    font-weight: 750;
    line-height: 1.42;
}

.content h2 {
    padding-left: 13px;
    border-left: 4px solid var(--primary-red);
    font-size: 1.65rem;
}

.content h3 {
    font-size: 1.35rem;
}

.content a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.content img,
.content video,
.content iframe {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 12px;
}

.content blockquote {
    padding: 18px 22px;
    border-left: 4px solid var(--primary-red);
    border-radius: 0 10px 10px 0;
    background: #fff7f5;
}

.content pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 18px;
    border-radius: 10px;
    color: #e5e7eb;
    background: #111827;
}

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

.content th,
.content td {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.article-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #edf0f4;
}

.article-nav p {
    margin: 0;
    padding: 15px 17px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #6b7280;
    line-height: 1.6;
}

.article-nav a {
    color: #374151;
    font-weight: 650;
    text-decoration: none;
}

.article-nav a:hover {
    color: var(--primary-red);
}

.blog-detail-back {
    display: inline-flex;
    margin-top: 24px;
    align-items: center;
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
}

.blog-detail-back:hover {
    transform: translateX(-3px);
}

/* 深色模式 */
:root[data-theme="dark"] .site-main {
    background: radial-gradient(circle at 12% 5%, rgba(239, 68, 59, 0.09) 0%, var(--theme-bg) 48%) !important;
}

:root[data-theme="dark"] .features > .left,
:root[data-theme="dark"] .features > .right {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    box-shadow: var(--theme-shadow);
}

:root[data-theme="dark"] .blog-breadcrumb,
:root[data-theme="dark"] .blog-breadcrumb a,
:root[data-theme="dark"] .blog-menu-title,
:root[data-theme="dark"] .blog-list-intro,
:root[data-theme="dark"] .newsc li p,
:root[data-theme="dark"] .post-time,
:root[data-theme="dark"] .content,
:root[data-theme="dark"] .article-nav p {
    color: var(--theme-muted);
}

:root[data-theme="dark"] .features > .left a,
:root[data-theme="dark"] .newsc h2 a,
:root[data-theme="dark"] .content h2,
:root[data-theme="dark"] .content h3,
:root[data-theme="dark"] .content h4,
:root[data-theme="dark"] .article-nav a {
    color: var(--theme-heading);
}

:root[data-theme="dark"] .features > .left a:hover,
:root[data-theme="dark"] .features > .left a.active {
    color: #ffffff;
}

:root[data-theme="dark"] .newsc > ul > li,
:root[data-theme="dark"] .post-time,
:root[data-theme="dark"] .article-nav {
    border-color: var(--theme-border);
}

:root[data-theme="dark"] .newsc > ul > li > div:first-child,
:root[data-theme="dark"] .pages a,
:root[data-theme="dark"] .pages span,
:root[data-theme="dark"] .article-nav p,
:root[data-theme="dark"] .content th,
:root[data-theme="dark"] .content td {
    border-color: var(--theme-border);
    background: var(--theme-surface-raised);
}

:root[data-theme="dark"] .content blockquote {
    color: var(--theme-muted);
    background: rgba(239, 68, 59, 0.10);
}

@media (max-width: 980px) {
    .site-main {
        padding-right: 4%;
        padding-left: 4%;
    }

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

    .features > .left {
        position: static;
        padding: 13px;
    }

    .blog-menu-title {
        display: none;
    }

    .features > .left ul {
        display: flex;
    }

    .features > .left a {
        padding: 11px 18px;
    }
}

@media (max-width: 700px) {
    .site-main {
        padding-top: 110px;
        padding-bottom: 70px;
    }

    .features {
        gap: 20px;
    }

    .container,
    .news-wrap,
    .features,
    .features > .left,
    .features > .right,
    .newsc,
    .newsc > ul,
    .newsc > ul > li {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .features > .right {
        padding: 28px 20px;
        border-radius: 15px;
    }

    .newsc > ul > li {
        flex-direction: column;
        gap: 17px;
        padding: 24px 0;
    }

    .newsc > ul > li > div:first-child {
        flex: 0 0 auto !important;
        width: 100%;
        max-width: 100%;
        height: 205px;
    }

    .newsc > ul > li > div:nth-child(2) {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

@media (max-width: 430px) {
    .blog-breadcrumb {
        margin-bottom: 16px;
    }

    .features > .right {
        padding: 24px 16px;
    }

    .newsc > h1,
    .blog-article > .title {
        font-size: 1.75rem;
    }

    .newsc > ul > li > div:first-child {
        height: 180px;
    }
}
