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

:root {
    --brand-color: #6c52ff;
    --brand-color-dark: #4f3bff;
    --brand-surface: rgba(108, 82, 255, 0.16);
    --brand-surface-strong: rgba(108, 82, 255, 0.25);
    --text-primary: #12121f;
    --text-secondary: #2c2f3d;
    --text-muted: #6b7285;
    --surface: #ffffff;
    --surface-alt: #f5f5ff;
    --shadow-soft: 0 1.5rem 3rem rgba(76, 63, 142, 0.12);
    --shadow-card: 0 .25rem 1.5rem rgba(18, 20, 60, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(180deg, #6c52ff1a 0%, #6c52ff00 55%), var(--surface-alt);
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: .0625rem solid var(--brand-surface);
    box-shadow: var(--shadow-soft);
    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: 1.75rem;
}

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: var(--brand-color);
    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(135deg, rgba(108, 82, 255, 0.9), rgba(79, 59, 255, 0.65));
    -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: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: .625rem 1.25rem;
    border-radius: 1.25rem;
    border: .0625rem solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-color);
    background-color: var(--brand-surface);
    border-color: rgba(108, 82, 255, 0.35);
    box-shadow: 0 .75rem 2.5rem rgba(76, 63, 142, 0.2);
}

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

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

.language-toggle {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .375rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    border: .0625rem solid rgba(108, 82, 255, 0.25);
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 8.125rem;
    justify-content: space-between;
    box-shadow: 0 .5rem 1.5rem rgba(76, 63, 142, 0.14);
}

.language-toggle:hover {
    border-color: rgba(108, 82, 255, 0.45);
    box-shadow: 0 .75rem 2rem rgba(76, 63, 142, 0.22);
}

.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: var(--surface);
    border: .0625rem solid rgba(108, 82, 255, 0.2);
    border-radius: .75rem;
    box-shadow: 0 .75rem 2.25rem rgba(76, 63, 142, 0.14);
    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 {
    display: block;
    text-decoration: none;
    padding: .8rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.language-option:hover {
    background-color: var(--brand-surface);
    color: var(--brand-color);
}

.language-option.active {
    background-color: rgba(108, 82, 255, 0.2);
    color: var(--brand-color);
    font-weight: 600;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(108, 82, 255, 0.08));
    padding: 5.5rem 0 4.5rem;
    text-align: center;
}

.hero-banner::before,
.hero-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    z-index: 0;
}

.hero-banner::before {
    width: 22rem;
    height: 22rem;
    background: rgba(108, 82, 255, 0.28);
    top: -8rem;
    left: -6rem;
}

.hero-banner::after {
    width: 18rem;
    height: 18rem;
    background: rgba(137, 120, 255, 0.24);
    bottom: -6rem;
    right: -4rem;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.banner-title .banner-accent {
    color: var(--brand-color);
}

.banner-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 40rem;
    margin: 0 auto;
}

/* Search Hero Section */
.search-hero {
    background: linear-gradient(180deg, rgba(108, 82, 255, 0.08), rgba(108, 82, 255, 0));
    padding: 1.5rem 0 1.75rem;
    text-align: center;
    color: var(--brand-color);
}

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

.search-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    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: .3rem;
    border: .0625rem solid rgba(108, 82, 255, 0.22);
    box-shadow: 0 1.5rem 3rem rgba(74, 59, 170, 0.12);
}

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

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

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

.search-btn:hover {
    background: #3a3d46;
    transform: translateY(-0.125rem) scale(1.02);
    box-shadow: 0 .75rem 1.75rem rgba(34, 37, 48, 0.25);
}

.search-results-info {
    margin-top: 1rem;
    color: rgba(15, 23, 42, 0.65);
}

.search-results-info strong {
    color: var(--brand-color);
}

/* Blog Chips Section */
.blog-chips-wrap {
    padding: 2.75rem 0;
    background: transparent;
}

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

.chip {
    display: inline-block;
    padding: .75rem 1.6rem;
    border-radius: 3.125rem;
    background: rgba(108, 82, 255, 0.08);
    color: var(--text-muted);
    text-decoration: none;
    border: .0625rem solid rgba(108, 82, 255, 0.15);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 .85rem 2rem rgba(76, 63, 142, 0.08);
}

.chip:hover {
    background: rgba(108, 82, 255, 0.2);
    border-color: rgba(108, 82, 255, 0.35);
    color: var(--brand-color);
    box-shadow: 0 1.1rem 2.4rem rgba(76, 63, 142, 0.16);
}

.chip.is-active {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
    box-shadow: 0 1.25rem 2.75rem rgba(76, 63, 142, 0.22);
}

.chip.is-active:hover {
    background: var(--brand-color-dark);
    border-color: var(--brand-color-dark);
}

/* 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;
    align-items: stretch;
}

@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 {
    position: relative;
    background: var(--surface);
    border-radius: 1.1rem;
    overflow: hidden;
    border: .0625rem solid rgba(108, 82, 255, 0.12);
    box-shadow: 0 .75rem 2.4rem rgba(76, 63, 142, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card > a {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-0.375rem);
    box-shadow: 0 1.5rem 3rem rgba(76, 63, 142, 0.18);
    border-color: rgba(108, 82, 255, 0.35);
}

.blog-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(108, 82, 255, 0.85), rgba(79, 59, 255, 0.95));
    position: relative;
    overflow: hidden;
}

.blog-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 55%);
}

.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.125rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-title {
    color: var(--brand-color);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
    flex: 1;
}

.blog-meta {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(108, 82, 255, 0.08);
}

.blog-author-time {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-author-time .author {
    font-weight: 500;
    color: var(--text-secondary, var(--text-muted));
}

.blog-author-time .dot {
    margin: 0 0.125rem;
}

.blog-author-time .date {
    color: var(--text-muted);
}

.blog-author-time .read {
    color: var(--text-muted);
}

/* 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: var(--surface);
    border-radius: 3.125rem;
    box-shadow: 0 1rem 2.5rem rgba(76, 63, 142, 0.12);
    border: .0625rem solid rgba(108, 82, 255, 0.12);
}

.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: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: .0625rem solid transparent;
}

.pagination a:hover {
    background: rgba(108, 82, 255, 0.16);
    color: var(--brand-color);
    border-color: rgba(108, 82, 255, 0.35);
    box-shadow: 0 .75rem 1.75rem rgba(76, 63, 142, 0.16);
}

.pagination .current,
.pagination .page-numbers.current {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
    font-weight: 600;
    box-shadow: 0 1rem 2.5rem rgba(76, 63, 142, 0.22);
}

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

.pagination .dots {
    color: rgba(15, 23, 42, 0.3);
    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: var(--brand-color);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-muted);
    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: var(--brand-color);
    color: white;
    text-decoration: none;
    border-radius: 1.5625rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: var(--brand-color-dark);
    transform: translateY(-0.125rem) scale(1.01);
    box-shadow: 0 .85rem 2rem rgba(76, 63, 142, 0.18);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #f7f6ff 0%, #ffffff 65%);
    color: var(--text-secondary);
    padding: 4rem 0 2.5rem;
}

.footer .container {
    max-width: 75rem;
}

.footer-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.75rem;
    padding: clamp(2.5rem, 5vw, 3.25rem);
    border: 1px solid rgba(108, 82, 255, 0.14);
    box-shadow: 0 1.25rem 2.8rem rgba(76, 63, 142, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
    color: var(--brand-color);
    transform: translateX(4px);
}

.footer-partners {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(108, 82, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-partners-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-partners-list {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.footer-legal {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(108, 82, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

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

.legal-links a {
    color: inherit;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: var(--brand-color);
}

.copyright {
    color: var(--text-muted);
    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-card {
        padding: 2.5rem;
    }

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

    .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: 3rem 0 1.75rem;
    }

    .footer-card {
        padding: 2.25rem 1.75rem;
        gap: 1.75rem;
    }

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

    .footer-partners {
        align-items: flex-start;
    }

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

    .legal-links {
        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;
    }

    .blog-author-time {
        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: 2.5rem 0 1.5rem;
    }

    .footer-card {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

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

    .footer-legal {
        gap: 1rem;
    }

    .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-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.article {
    max-width: 100%;
    min-width: 0; /* 防止内容溢出 */
}

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

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    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: var(--text-secondary);
}

/* 段落间距 */
.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: var(--text-primary);
    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 var(--brand-color);
    background: rgba(108, 82, 255, 0.08);
    font-style: italic;
    color: var(--text-secondary);
}

/* 图片样式 */
.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: rgba(108, 82, 255, 0.14);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--brand-color-dark);
}

.article-content pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #1f223c;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 1.5rem 3rem rgba(31, 34, 60, 0.35);
}

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

.article-content pre code,
.article-content .wp-block-code code {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.65;
    white-space: pre;
    overflow-wrap: normal;
    tab-size: 4;
}

.article-content .wp-block-table {
    margin: 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-content .wp-block-table table {
    margin: 0;
    min-width: 560px;
}

/* 链接样式 */
.article-content a {
    color: var(--brand-color);
    text-decoration: underline;
    transition: color 0.2s;
}

.article-content a:hover {
    color: var(--brand-color-dark);
}

/* 分隔线 */
.article-content hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px solid rgba(108, 82, 255, 0.2);
}

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

.article-content th,
.article-content td {
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
}

.article-content th {
    background: rgba(108, 82, 255, 0.08);
    font-weight: 600;
}

/* 文章底部 */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(108, 82, 255, 0.2);
}

.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: var(--surface);
    border: 1px solid rgba(108, 82, 255, 0.18);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    min-height: 100px;
    flex: 1;
    max-width: 48%;
}

.post-nav-item:not(.disabled):hover {
    background: rgba(108, 82, 255, 0.1);
    border-color: rgba(108, 82, 255, 0.4);
    box-shadow: 0 1.1rem 2.4rem rgba(76, 63, 142, 0.2);
    transform: translateY(-2px);
}

.post-nav-item.disabled {
    background: transparent;
    border: 0px dashed rgba(108, 82, 255, 0.2);
    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: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.post-nav-item .nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    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: var(--brand-color);
}

/* ===================================
 * 侧边栏样式
 * =================================== */
.article-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: flex-start; /* 防止拉伸 */
}

.sidebar-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.sidebar-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #e2e8f0;
}

/* 目录盒子 */
.toc-box {
    max-height: 500px;
    overflow-y: auto;
}

.toc-box::-webkit-scrollbar {
    width: 6px;
}

.toc-box::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.toc-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.toc-box::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.toc-content {
    font-size: 0.9rem;
}

.toc-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

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

.toc-content a {
    color: #64748b;
    text-decoration: none;
    display: block;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.toc-content a:hover {
    color: var(--brand-color);
    background: #f8f9ff;
}

.toc-content a.active {
    color: var(--brand-color);
    background: #f0edff;
    font-weight: 600;
}

.toc-content li li {
    margin-left: 1rem;
    font-size: 0.85rem;
}

.toc-content li li li {
    margin-left: 2rem;
    font-size: 0.8rem;
}

/* 广告盒子 - 使用 NiuProxy 主题紫色 */
.ad-box {
    background: linear-gradient(135deg, #6c52ff 0%, #4f3bff 100%);
    border: none;
    color: white;
    padding: 1.25rem;
}

.ad-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.ad-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ad-feature {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    padding-left: 0.25rem;
}

.ad-button {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 0;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.ad-button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* 平板适配 */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 280px;
        gap: 2rem;
    }

    .sidebar-box {
        padding: 1.25rem;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 隐藏侧边栏 */
    .article-sidebar {
        display: none;
    }

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

    .article {
        max-width: 100%;
    }

    .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;
    }
}

/* ===================================
 * 作者信息板块样式
 * =================================== */
.author-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(108, 82, 255, 0.03) 0%, rgba(108, 82, 255, 0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(108, 82, 255, 0.15);
}

.author-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(108, 82, 255, 0.2);
}

.author-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(108, 82, 255, 0.3);
    box-shadow: 0 4px 12px rgba(108, 82, 255, 0.2);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.author-info {
    flex: 1;
}

.author-name-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-muted);
    background: rgba(108, 82, 255, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.author-bio p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.brand-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(108, 82, 255, 0.15);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.brand-description p,
.brand-services p,
.brand-disclaimer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.brand-services-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
}

.brand-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.08);
    border-left: 3px solid rgba(255, 193, 7, 0.6);
    border-radius: 8px;
}

.brand-disclaimer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* 移动端适配 - 作者板块 */
@media (max-width: 768px) {
    .author-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .author-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }

    .author-name-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===================================
 * FAQ折叠样式 - 简洁版
 * =================================== */
.rank-math-list-item,
.rank-math-faq-item,
.schema-faq-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #ffffff;
}

.rank-math-list-item:hover,
.rank-math-faq-item:hover,
.schema-faq-section:hover {
    border-color: #d1d5db;
}

.rank-math-question,
.schema-faq-question {
    cursor: pointer;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #111827;
    background: transparent;
    transition: background 0.2s ease;
    position: relative;
    user-select: none;
}

.rank-math-question:hover,
.schema-faq-question:hover {
    background: #f9fafb;
}

/* 简洁箭头图标 */
.rank-math-question::after,
.schema-faq-question::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.rank-math-list-item:not(.faq-collapsed) .rank-math-question::after,
.rank-math-faq-item:not(.faq-collapsed) .rank-math-question::after,
.schema-faq-section:not(.faq-collapsed) .schema-faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

/* 答案区域 */
.rank-math-answer,
.schema-faq-answer {
    max-height: 2000px;
    opacity: 1;
    padding: 0 1.5rem 1.25rem 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    background: transparent;
}

.faq-collapsed .rank-math-answer,
.faq-collapsed .schema-faq-answer {
    max-height: 0;
    opacity: 0;
    padding: 0 1.5rem;
}

.rank-math-answer p,
.schema-faq-answer p {
    margin: 0;
    line-height: 1.7;
    color: #6b7280;
    font-size: 0.95rem;
}

.rank-math-answer p:not(:last-child),
.schema-faq-answer p:not(:last-child) {
    margin-bottom: 0.75rem;
}

/* 答案中的链接样式 */
.rank-math-answer a,
.schema-faq-answer a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rank-math-answer a:hover,
.schema-faq-answer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .rank-math-question,
    .schema-faq-question {
        padding: 1rem 2.5rem 1rem 1rem;
        font-size: 0.95rem;
    }

    .rank-math-question::after,
    .schema-faq-question::after {
        right: 1rem;
        font-size: 0.7rem;
    }

    .rank-math-answer,
    .schema-faq-answer {
        padding: 0 1rem 1rem 1rem;
    }

    .faq-collapsed .rank-math-answer,
    .faq-collapsed .schema-faq-answer {
        padding: 0 1rem;
    }
}
