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

:root {
    --brand-color: #10b981;
    --brand-color-dark: #0d946a;
    --brand-color-light: rgba(16, 185, 129, 0.2);
    --brand-surface: rgba(16, 185, 129, 0.1);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --surface: #ffffff;
    --surface-alt: #f4fbf8;
    --shadow-soft: 0 .75rem 2.5rem rgba(13, 148, 136, 0.08);
    --shadow-card: 0 .25rem 1.5rem rgba(15, 23, 42, 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, rgba(240, 253, 244, 0.7), 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(16, 185, 129, 0.65), rgba(5, 122, 85, 0.95));
    -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(16, 185, 129, 0.4);
    box-shadow: 0 .75rem 2.5rem rgba(16, 185, 129, 0.18);
}

.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(16, 185, 129, 0.2);
    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(13, 148, 136, 0.12);
}

.language-toggle:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 .75rem 2rem rgba(13, 148, 136, 0.18);
}

.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(16, 185, 129, 0.2);
    border-radius: .75rem;
    box-shadow: 0 .75rem 2.25rem rgba(13, 148, 136, 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 {
    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(16, 185, 129, 0.16);
    color: var(--brand-color);
    font-weight: 600;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), var(--brand-surface));
    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(16, 185, 129, 0.35);
    top: -8rem;
    left: -6rem;
}

.hero-banner::after {
    width: 18rem;
    height: 18rem;
    background: rgba(16, 185, 129, 0.25);
    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: var(--brand-surface);
    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: 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: .3rem;
    border: .0625rem solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 1.5rem 3rem rgba(13, 148, 136, 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: var(--brand-color);
    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: var(--brand-color-dark);
    transform: translateY(-0.125rem) scale(1.02);
    box-shadow: 0 .75rem 1.75rem rgba(16, 185, 129, 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: var(--surface);
    color: var(--text-muted);
    text-decoration: none;
    border: .0625rem solid rgba(16, 185, 129, 0.15);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 .85rem 2rem rgba(15, 23, 42, 0.06);
}

.chip:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--brand-color);
    box-shadow: 0 1.1rem 2.4rem rgba(16, 185, 129, 0.12);
}

.chip.is-active {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
    box-shadow: 0 1.25rem 2.75rem rgba(16, 185, 129, 0.25);
}

.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(16, 185, 129, 0.12);
    box-shadow: 0 .75rem 2.4rem rgba(15, 23, 42, 0.08);
    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(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.3);
}

.blog-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(5, 102, 70, 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.25), 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(16, 185, 129, 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(16, 185, 129, 0.12);
    border: .0625rem solid rgba(16, 185, 129, 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(16, 185, 129, 0.12);
    color: var(--brand-color);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 .75rem 1.75rem rgba(16, 185, 129, 0.15);
}

.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(16, 185, 129, 0.25);
}

.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(16, 185, 129, 0.2);
}

/* Footer */
.footer {
    background: #0c1110;
    color: rgba(226, 243, 237, 0.88);
    padding: 4.5rem 0 2.5rem;
    position: relative;
}

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

.footer-card {
    background: linear-gradient(180deg, rgba(34, 52, 47, 0.95), rgba(28, 41, 37, 0.86));
    border-radius: 2rem;
    padding: clamp(2.75rem, 5vw, 3.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
    gap: clamp(1.75rem, 4vw, 3rem);
    box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.35);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.35rem;
    color: #ecfdf5;
}

.footer-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.5));
    color: #ecfdf5;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.footer-description {
    color: rgba(226, 243, 237, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 19rem;
}

.footer-actions {
    display: flex;
    gap: 0.75rem;
}

.footer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: rgba(9, 17, 15, 0.6);
    border: 1px solid rgba(236, 253, 245, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.footer-action img {
    width: 1.3rem;
    height: 1.3rem;
    filter: brightness(1.3);
}

.footer-action:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.45);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.75rem 1.8rem rgba(16, 185, 129, 0.25);
}

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

.footer-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f0fff4;
}

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

.footer-links a {
    color: rgba(226, 243, 237, 0.72);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

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

.footer-legal {
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    color: rgba(148, 163, 184, 0.65);
}

.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: #ecfdf5;
}

.copyright {
    color: rgba(226, 243, 237, 0.72);
    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 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: span 3;
        max-width: none;
    }

    .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 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
        padding: 2.25rem 1.75rem;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-actions {
        justify-content: flex-start;
    }

    .footer-description {
        max-width: none;
    }

    .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 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-logo {
        font-size: 1.2rem;
    }

    .footer-logo-badge {
        width: 2.5rem;
        height: 2.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(16, 185, 129, 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(16, 185, 129, 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: #064e3b;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 1.5rem 3rem rgba(6, 78, 59, 0.25);
}

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

/* 链接样式 */
.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(16, 185, 129, 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(16, 185, 129, 0.08);
    font-weight: 600;
}

/* 文章底部 */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(16, 185, 129, 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(16, 185, 129, 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(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 1.1rem 2.4rem rgba(16, 185, 129, 0.18);
    transform: translateY(-2px);
}

.post-nav-item.disabled {
    background: transparent;
    border: 0px dashed rgba(16, 185, 129, 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: #f0fdf4;
}

.toc-content a.active {
    color: var(--brand-color);
    background: #dcfce7;
    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;
}

/* 广告盒子 - 使用 ColaProxy 主题绿色 */
.ad-box {
    background: linear-gradient(135deg, #10b981 0%, #0d946a 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: 48px 0 32px;
    padding: 32px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.author-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 20px;
}
.author-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
/* 首字母圆形头像 */
.author-avatar-initial {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
    user-select: none;
}
.author-info {
    flex: 1;
    min-width: 0;
}
.author-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.author-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.author-role {
    font-size: 0.82rem;
    color: #16a34a;
    font-weight: 500;
}
.author-bio {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* ===================================
 * 品牌 / 团队介绍
 * =================================== */
.brand-section {
    margin: 0 0 32px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}
.brand-description {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 24px;
}
.brand-services-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}
.brand-services-intro {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 12px;
}
.brand-services-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.brand-services-list li {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
    padding-left: 1.25em;
    position: relative;
}
.brand-services-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 700;
}

/* ===================================
 * 免责声明
 * =================================== */
.disclaimer-section {
    margin: 0 0 32px;
    padding: 20px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.disclaimer-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.disclaimer-text {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ===================================
 * RankMath FAQ 折叠样式
 * =================================== */
.rank-math-faq-item,
.rank-math-list-item,
.schema-faq-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.rank-math-faq-item:hover,
.rank-math-list-item:hover {
    box-shadow: 0 2px 12px rgba(99,102,241,0.08);
}
.rank-math-question,
.schema-faq-question {
    padding: 16px 20px;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.15s;
}
.rank-math-question:hover,
.schema-faq-question:hover {
    background: #f1f5f9;
}
.rank-math-question::after,
.schema-faq-question::after {
    content: '﹢';
    font-size: 1.2rem;
    color: #6366f1;
    transition: transform 0.25s;
    flex-shrink: 0;
    margin-left: 12px;
}
.rank-math-faq-item:not(.faq-collapsed) .rank-math-question::after,
.rank-math-list-item:not(.faq-collapsed) .rank-math-question::after,
.schema-faq-section:not(.faq-collapsed) .schema-faq-question::after {
    content: '－';
}
.rank-math-answer,
.schema-faq-answer {
    padding: 16px 20px;
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.75;
    border-top: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}
/* 折叠状态隐藏答案 */
.faq-collapsed .rank-math-answer,
.faq-collapsed .schema-faq-answer {
    display: none;
}

/* 响应式：小屏 */
@media (max-width: 640px) {
    .author-section,
    .brand-section {
        padding: 20px;
    }
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .author-header {
        justify-content: center;
    }
}
