* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 .125rem .625rem rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    position: relative; /* ensure positioned children (hamburger) align to header */
}

/* Left Box: Logo */
.nav-brand {
    flex: 0 0 auto;
}

/* Right Box: Navigation + Language Switcher */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav {
    display: flex;
    align-items: center;
}

.language-switcher {
    flex: 0 0 auto;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: .3125rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 1.5625rem;
    height: .1875rem;
    background: #333;
    border-radius: .125rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(.4375rem, .4375rem);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(.4375rem, -0.4375rem);
}

.logo {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    /* gap: 2rem; */
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: .625rem 1.25rem;
    border-radius: 1.25rem;
}

.nav-link:hover,
.nav-link.active {
    /* color: #666FBA;
    background-color: rgba(102, 111, 186, 0.1); */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: .3125rem;
    left: 1.25rem;
    right: 1.25rem;
    height: .1875rem;
    background-color: #666bfa;
    border-radius: .125rem;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.language-switcher {
    position: relative;
    margin-left: 1.25rem;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .375rem 1rem;
    background: white;
    border: .0625rem solid #e5e7eb;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    min-width: 8.125rem;
    justify-content: space-between;
    box-shadow: 0 .0625rem .1875rem rgba(0, 0, 0, 0.1);
}

.language-toggle:hover {
    border-color: #d1d5db;
    box-shadow: 0 .125rem .375rem rgba(0, 0, 0, 0.15);
}

.globe-icon {
    font-size: 1rem;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    margin-left: .25rem;
    position: relative;
    width: 1rem;
    height: 1rem;
}

.arrow svg {
    width: 1rem;
    height: 1rem;
    transition: opacity 0.3s ease;
}

.arrow .arrow-down {
    display: block;
}

.arrow .arrow-up {
    display: none;
}

.language-dropdown.active .arrow .arrow-down {
    display: none;
}

.language-dropdown.active .arrow .arrow-up {
    display: block;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + .25rem);
    left: 0;
    right: 0;
    background: white;
    border: .0625rem solid #e5e7eb;
    border-radius: .5rem;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.625rem);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: .75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option.active {
    background-color: #f0f4ff;
    color: #4f46e5;
    font-weight: 600;
}

/* Hero Banner */
.hero-banner {
    background: #f2f0fe;
    padding: 5rem 0;
    text-align: center;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.banner-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 37.5rem;
    margin: 0 auto;
}

/* Search Hero Section */
.search-hero {
    background: #f2f0fe;
    padding: 1.25rem 0;
    text-align: center;
    color: white;
}

.search-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.02em;
}

.search-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.search-wrap {
    max-width: 37.5rem;
    margin: 0 auto 2rem;
}

.search-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 3.125rem;
    padding: .25rem;
    box-shadow: 0 .5rem 2rem rgba(0, 0, 0, 0.1);
}

.search-inner input[type="search"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
    border-radius: 3.125rem;
}

.search-inner input[type="search"]::placeholder {
    color: #94a3b8;
}

.search-btn {
    padding: .75rem;
    background: #1e293b;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
}

.search-btn:hover {
    background: #334155;
    transform: scale(1.05);
}

.search-results-info {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.search-results-info strong {
    color: white;
}

/* Blog Chips Section */
.blog-chips-wrap {
    padding: 2.5rem 0;
    background: #fff;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    align-items: center;
    max-width: 62.5rem;
    margin: 0 auto;
}

.chip {
    display: inline-block;
    padding: .75rem 1.5rem;
    border-radius: 3.125rem;
    background: white;
    color: #64748b;
    text-decoration: none;
    border: .0625rem solid #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.chip.is-active {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
}

.chip.is-active:hover {
    background: #374151;
    border-color: #374151;
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

@media (max-width: 75rem) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48rem) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Very small screens: keep toggle visible and slightly adjust position */
@media (max-width: 23rem) { /* ~368px */
    .mobile-menu-toggle {
        right: 12px;
        padding: 4px;
    }
}

.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 .25rem 1.25rem rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.12);
}

.blog-image {
    height: 12.5rem;
    background: linear-gradient(45deg, #1e293b, #334155);
    position: relative;
    overflow: hidden;
}

.blog-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,#6366f1,#8b5cf6)
}

.blog-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.375rem;
    font-weight: 700;
    z-index: 2;
}



.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Modern Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

.pagination .wp-pagenavi,
.pagination ul {
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: .75rem 1rem;
    background: white;
    border-radius: 3.125rem;
    box-shadow: 0 .25rem 1.25rem rgba(0, 0, 0, 0.08);
    border: .0625rem solid #f1f5f9;
}

.pagination a,
.pagination span,
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: .5rem .75rem;
    border-radius: 1.25rem;
    text-decoration: none;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: .0625rem solid transparent;
}

.pagination a:hover {
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
}

.pagination .current,
.pagination .page-numbers.current {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
    font-weight: 600;
}

.pagination .prev,
.pagination .next {
    padding: .5rem 1rem;
    font-size: 0.85rem;
}

.pagination .dots {
    color: #cbd5e1;
    cursor: default;
    font-weight: 600;
}

.pagination .dots:hover {
    background: transparent;
    color: #cbd5e1;
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 5rem 0;
}

.no-results h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.no-results p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 31.25rem;
    margin-left: auto;
    margin-right: auto;
}

.back-to-blog {
    display: inline-block;
    padding: .75rem 1.5rem;
    background: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 1.5625rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: #5856eb;
    transform: translateY(-0.125rem);
    box-shadow: 0 .25rem 1rem rgba(99, 102, 241, 0.3);
}

/* Footer */
.footer {
    background: #000;
    color: white;
    padding: 3.75rem 0 1.25rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: hsla(0,0%,100%,.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #666bfa;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 0;
    border-top: .0625rem solid hsla(0,0%,100%,.1);
    margin-bottom: 2rem;
}

.contact-title,
.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-icons,
.social-icons {
    display: flex;
    gap: 1rem;
}

.contact-icon,
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;

    border-radius: .5rem;
    text-decoration: none;

}

.contact-icon:hover,
.social-icon:hover {
    background: #6467ee;
}

.contact-icon img,
.social-icon img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: .0625rem solid hsla(0,0%,100%,.1);
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: hsla(0,0%,100%,.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}



.copyright {
    color: #64748b;
    font-size: 0.85rem;
}

/* Responsive Design */

/* Tablet */
@media (min-width: 48.0625rem) and (max-width: 64rem) {
    .container {
        max-width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .nav-link {
        padding: .625rem 1rem;
    }
}

/* Mobile */
@media (max-width: 48rem) {
    /* Container */
    .container {
        padding-left: .9375rem;
        padding-right: .9375rem;
    }

    /* Header responsive */
    .header .container {
        padding: 0.8rem .9375rem;
        justify-content: space-between;
        flex-direction: row;
    }

    /* Show mobile menu toggle: place it absolute on the right side of the header */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        order: 2;
        z-index: 1200; /* ensure it's above nav-right */
        background: transparent;
        border: none;
        padding: 6px;
    }

    .nav-brand {
        order: 1;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Hide nav by default on mobile */
    .nav-right {
        position: fixed;
        top: 60px; /* place menu under the sticky header */
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        box-shadow: 0 .25rem .75rem rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
        order: 3;
    }

    /* Show nav when active */
    .nav-right.active {
        transform: translateY(0);
        opacity: 1;
    }

    nav {
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-link {
        padding: .75rem 1rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
        border-radius: .5rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(102, 111, 186, 0.1);
    }

    .language-switcher {
        width: 100%;
        margin-left: 0;
    }

    .language-toggle {
        width: 100%;
        justify-content: center;
        padding: .625rem 1rem;
        font-size: 0.95rem;
    }

    /* Banner */
    .hero-banner {
        padding: 2.5rem 0;
    }

    .banner-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .banner-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .blog-logo {
        font-size: 1.8rem;
    }

    /* Blog Section */
    .blog-section {
        padding: 2.5rem 0;
    }

    .blog-card {
        max-width: 100%;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .blog-excerpt {
        font-size: 0.85rem;
    }

    /* Search Hero */
    .search-hero {
        padding: 1.875rem 0;
    }

    .search-hero-title {
        font-size: 2rem;
    }

    .search-inner {
        padding: .375rem;
    }

    .search-inner input[type="search"] {
        padding: .875rem 1.25rem;
        font-size: 0.95rem;
    }

    .search-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Chips */
    .chips {
        gap: .5rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: .625rem;
    }

    .chip {
        padding: .625rem 1.125rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Pagination */
    .pagination ul {
        padding: .5rem .75rem;
        gap: .375rem;
    }

    .pagination a,
    .pagination span {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8rem;
        padding: 0 .5rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-links,
    .contact-icons {
        justify-content: center;
    }
}

@media (max-width: 30rem) {
    .container {
        padding-left: .625rem;
        padding-right: .625rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* Banner */
    .hero-banner {
        padding: 1.875rem 0;
    }

    .banner-title {
        font-size: 1.75rem;
    }

    .banner-subtitle {
        font-size: 0.9rem;
    }

    .blog-logo {
        font-size: 1.5rem;
    }

    /* Blog Cards */
    .blog-card {
        border-radius: .75rem;
    }

    .blog-title {
        font-size: 1.1rem;
    }

    .blog-excerpt {
        font-size: 0.8rem;
    }

    .blog-date {
        font-size: 0.75rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-excerpt {
        font-size: 0.85rem;
    }

    /* Search Hero */
    .search-hero {
        padding: 1.25rem 0;
    }

    .search-hero-title {
        font-size: 1.75rem;
    }

    .search-inner {
        padding: .3125rem;
    }

    .search-inner input[type="search"] {
        padding: .75rem 1rem;
        font-size: 0.9rem;
    }

    .search-btn {
        width: 2.25rem;
        height: 2.25rem;
    }

    /* Chips */
    .chips {
        gap: .375rem;
    }

    .chip {
        padding: .5rem .875rem;
        font-size: 0.8rem;
    }

    /* Pagination */
    .pagination ul {
        padding: .375rem .5rem;
        gap: .25rem;
    }

    .pagination a,
    .pagination span {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
        padding: 0 .375rem;
    }

    /* Footer */
    .footer {
        padding: 1.875rem 0 .9375rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section ul li a {
        font-size: 0.85rem;
    }

    .copyright {
        font-size: 0.8rem;
    }

    /* Article content adjustments */
    .article-section {
        padding: 2rem 0;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-content p {
        font-size: 0.95rem;
    }

    .article-content img {
        max-width: 100%;
    }
}

/* ===================================
 * 文章详情页样式
 * =================================== */
.article-section {
    padding: 3rem 0;
    background: #ffffff;
}

.article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.article-meta .sep {
    color: #cbd5e1;
}

.article-hero {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* ✅ 文章内容区域 - 关键样式 */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

/* 段落间距 */
.article-content p {
    margin-bottom: 1.5rem;
}

/* 标题样式和间距 */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h1 {
    font-size: 2rem;
}

.article-content h2 {
    font-size: 1.75rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content h4 {
    font-size: 1.25rem;
}

/* 列表样式和间距 */
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* 引用样式 */
.article-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #3b82f6;
    background: #f1f5f9;
    font-style: italic;
    color: #475569;
}

/* 图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    display: block;
}

/* 代码样式 */
.article-content code {
    padding: 0.2rem 0.4rem;
    background: #f1f5f9;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e11d48;
}

.article-content pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #1e293b;
    border-radius: 8px;
    overflow-x: auto;
}

.article-content pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
}

/* 链接样式 */
.article-content a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s;
}

.article-content a:hover {
    color: #2563eb;
}

/* 分隔线 */
.article-content hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

/* 表格样式 */
.article-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.article-content th {
    background: #f8fafc;
    font-weight: 600;
}

/* 文章底部 */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.post-tags {
    margin-bottom: 2rem;
}

/* 上下篇导航 */
.post-nav {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.post-nav:has(.post-nav-item:only-child) {
    justify-content: flex-start;
}

.post-nav:has(.prev:only-child) {
    justify-content: flex-start;
}

.post-nav:has(.next:only-child) {
    justify-content: flex-end;
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    transition: all 0.3s ease;
    min-height: 100px;
    flex: 1;
    max-width: 48%;
}

.post-nav-item:not(.disabled):hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.post-nav-item.disabled {
    background: transparent;
    border: 0px dashed #e2e8f0;
    cursor: default;
}

.post-nav-item.prev {
    align-items: flex-start;
}

.post-nav-item.next {
    align-items: flex-end;
    text-align: right;
}

.post-nav-item .nav-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.post-nav-item .nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-item:not(.disabled):hover .nav-title {
    color: #3b82f6;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .post-nav {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-nav-item {
        padding: 1rem;
        min-height: 80px;
    }

    .post-nav-item.next {
        align-items: flex-start;
        text-align: left;
    }
}
