/* Mobile/tablet responsive overrides. */

/* 右侧章节目录：标题较多时只滚动目录本身，避免撑出多屏高度。 */
.article-toc-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 140px);
}

.article-toc {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.article-toc:hover {
    scrollbar-color: var(--text-muted, var(--text-secondary, #64748b)) transparent;
}

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

.article-toc::-webkit-scrollbar-track {
    background: transparent;
}

.article-toc::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: transparent;
}

.article-toc:hover::-webkit-scrollbar-thumb {
    background: var(--text-muted, var(--text-secondary, #64748b));
}

.article-toc::-webkit-scrollbar-thumb:hover {
    background: var(--primary, #5b72f0);
}

.nav-toggle {
    display: none;
}

.documents-mobile-trigger,
.documents-mobile-backdrop,
.documents-mobile-close,
.news-mobile-trigger,
.news-mobile-backdrop,
.news-mobile-close,
.tutorial-mobile-trigger,
.tutorial-mobile-backdrop,
.tutorial-mobile-close,
.product-mobile-trigger,
.product-mobile-backdrop,
.product-mobile-close,
.product-mobile-directory {
    display: none;
}


.footer-section-toggle {
    all: unset;
    display: block;
    width: 100%;
    color: inherit;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    cursor: default;
}

.footer-toggle-icon {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --site-header-height: 68px;
    }

    html {
        scroll-padding-top: calc(var(--site-header-height) + 16px);
    }

    body {
        overflow-x: clip;
    }

    
    .nav-container {
        position: relative;
        height: var(--site-header-height);
        min-height: var(--site-header-height);
        padding: 10px 18px;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .logo {
        flex: 0 1 auto;
        min-width: 0;
        gap: 8px;
    }

    .logo-mark {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 18px;
        letter-spacing: 0.02em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 4px 18px 14px;
        background: var(--bg-card, #fff);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
        max-height: calc(100vh - var(--site-header-height));
        overflow-y: auto;
    }

    header nav.is-open {
        display: block;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
    }

    header nav li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    nav li:last-child {
        border-bottom: 0;
    }

    header nav a {
        display: block;
        width: 100%;
        padding: 13px 0;
        font-size: 16px;
        line-height: 1.4;
        color: inherit;
    }

    header nav a::after {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
        width: auto;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 6px;
    }

    
    .nav-actions .lang-switch {
        display: none;
    }

    .nav-actions .nav-action-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 36px;
        height: 36px;
        margin-left: 2px;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    
    .content-page-head {
        padding-top: calc(var(--site-header-height) + 22px);
        padding-bottom: 22px;
    }

    .documents-shell {
        padding-top: calc(var(--site-header-height) + 22px);
    }

    .page-intro h1 {
        font-size: clamp(30px, 9vw, 42px);
        overflow-wrap: anywhere;
    }

    .page-breadcrumb {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .content-shell {
        padding: 28px 18px 64px;
    }

    .news-article-shell {
        padding-top: 24px;
    }

    .content-page-head .container,
    .documents-shell .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    
    .article-reading-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .article-reading-main {
        order: 1;
        width: 100%;
        min-width: 0;
    }

    .article-sidebar-left {
        order: 2;
        width: 100%;
        min-width: 0;
    }

    
    .article-reading-layout .article-sidebar-right {
        display: none;
    }

    .article-main,
    .article-sidebar .sidebar-card {
        padding: 20px;
    }

    .article-body {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .article-body img {
        max-width: 100%;
        height: auto;
    }

    .article-body table,
    .article-body pre {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    
    .article-reading-layout .article-sidebar-left .article-related-card {
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .article-related-card h3 {
        margin-bottom: 4px;
        color: var(--text-muted, #64748b);
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.04em;
    }

    .article-related-list {
        gap: 0;
        border-top: 1px solid var(--border, rgba(148, 163, 184, 0.24));
    }

    .article-related-item {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 11px 0;
        background: transparent;
        border: 0;
        border-bottom: 1px solid var(--border, rgba(148, 163, 184, 0.24));
        border-radius: 0;
        transform: none;
    }

    .article-reading-layout .article-related-item:hover,
    .article-reading-layout .article-related-item.is-active {
        background: transparent;
        border-color: var(--border, rgba(148, 163, 184, 0.24));
        transform: none;
    }

    .article-related-title {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 15px;
        line-height: 1.5;
    }

    .article-related-date {
        flex: 0 0 auto;
        font-size: 12px;
        white-space: nowrap;
    }

    .product-reading-page .article-related-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .product-reading-page .article-related-date {
        flex: 0 0 auto;
        white-space: normal;
        font-size: 12px;
        line-height: 1.5;
    }

    
    .documents-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .documents-mobile-trigger {
        display: inline-flex;
        position: fixed;
        top: 45%;
        right: 0;
        z-index: 1190;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 48px;
        padding: 0;
        border: 1px solid var(--border, rgba(148, 163, 184, 0.24));
        border-right: 0;
        border-radius: 10px 0 0 10px;
        background: var(--bg-card, var(--bg-white, #fff));
        color: var(--text-primary, var(--text-dark, #1e293b));
        box-shadow: none;
        cursor: pointer;
        transform: translateY(-50%);
    }

    .documents-mobile-trigger svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .documents-mobile-backdrop {
        display: block;
        position: fixed;
        top: var(--site-header-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1180;
        background: rgba(15, 23, 42, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .documents-mobile-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .documents-mobile-close {
        display: inline-flex;
        position: absolute;
        top: 12px;
        right: 12px;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid var(--border, rgba(148, 163, 184, 0.24));
        border-radius: 8px;
        background: transparent;
        color: inherit;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .documents-sidebar {
        position: fixed;
        top: var(--site-header-height);
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 1200;
        width: min(86vw, 360px);
        max-height: none;
        padding: 18px 18px 24px;
        overflow-y: auto;
        border-radius: 16px 0 0 16px;
        box-shadow: none;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    .documents-sidebar.is-open {
        visibility: visible;
        box-shadow: -20px 0 50px rgba(15, 23, 42, 0.22);
        transform: translateX(0);
    }

    .documents-sidebar-title {
        margin-bottom: 10px;
        padding-right: 36px;
        color: var(--text-dark, #1e293b);
        font-size: 16px;
        letter-spacing: 0.04em;
        text-transform: none;
    }

    .documents-group-toggle {
        padding: 10px 4px;
        font-size: 15px;
    }

    .documents-subgroup-toggle {
        padding: 8px 4px 8px 12px;
        font-size: 14px;
    }

    .documents-article-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    .documents-main {
        order: 1;
        width: 100%;
        min-width: 0;
        min-height: 0;
    }

    
    .documents-layout > .article-sidebar-right {
        display: none;
    }

    .documents-main {
        padding: 22px 18px;
    }

    
    
    .news-list-layout > .sidebar-stack {
        display: contents;
    }

    .news-mobile-trigger {
        display: inline-flex;
        position: fixed;
        top: 45%;
        right: 0;
        z-index: 1190;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 48px;
        padding: 0;
        border: 1px solid var(--border, rgba(148, 163, 184, 0.24));
        border-right: 0;
        border-radius: 10px 0 0 10px;
        background: var(--bg-card, var(--bg-white, #fff));
        color: var(--text-primary, var(--text-dark, #1e293b));
        box-shadow: none;
        cursor: pointer;
        transform: translateY(-50%);
    }

    .news-mobile-trigger svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .news-mobile-backdrop {
        display: block;
        position: fixed;
        top: var(--site-header-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1180;
        background: rgba(15, 23, 42, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .news-mobile-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .news-mobile-close {
        display: inline-flex;
        position: absolute;
        top: 12px;
        right: 12px;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid var(--border, rgba(148, 163, 184, 0.24));
        border-radius: 8px;
        background: transparent;
        color: inherit;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .news-filter-card {
        position: fixed;
        top: var(--site-header-height);
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 1200;
        width: min(86vw, 360px);
        max-height: none;
        padding: 18px 18px 24px;
        overflow-y: auto;
        border-radius: 16px 0 0 16px;
        box-shadow: none;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    .news-filter-card.is-open {
        visibility: visible;
        box-shadow: -20px 0 50px rgba(15, 23, 42, 0.22);
        transform: translateX(0);
    }

    .news-filter-card h2 {
        padding-right: 36px;
    }

    #news-topic-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow: visible;
        padding-bottom: 0;
    }

    #news-topic-list .filter-btn {
        width: 100%;
        white-space: normal;
    }

    
    .news-list-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-list-card {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        align-items: stretch;
        width: 100%;
        min-width: 0;
        height: auto;
        border-radius: 16px;
    }

    .news-list-card .news-list-cover {
        width: 100%;
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }

    .news-list-card .news-list-cover img {
        width: 100%;
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .news-list-body {
        justify-content: center;
        padding: 14px;
        gap: 6px;
    }

    .news-list-body h3 {
        display: -webkit-box;
        overflow: hidden;
        font-size: 16px;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .news-list-body time {
        font-size: 12px;
    }

    .news-list-summary {
        display: none;
    }

    .news-fallback {
        min-height: 100%;
        padding: 12px;
        font-size: 13px;
    }

    
    .content-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .content-layout > .sidebar-stack,
    .content-layout > .content-stack {
        width: 100%;
        min-width: 0;
    }

    #tutorial-library .sidebar-stack {
        display: contents;
    }

    .tutorial-mobile-trigger {
        display: inline-flex;
        position: fixed;
        top: 45%;
        right: 0;
        z-index: 1190;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 48px;
        padding: 0;
        border: 1px solid var(--border, rgba(148, 163, 184, 0.24));
        border-right: 0;
        border-radius: 10px 0 0 10px;
        background: var(--bg-card, var(--bg-white, #fff));
        color: var(--text-primary, var(--text-dark, #1e293b));
        box-shadow: none;
        cursor: pointer;
        transform: translateY(-50%);
    }

    .tutorial-mobile-trigger svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .tutorial-mobile-backdrop {
        display: block;
        position: fixed;
        top: var(--site-header-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1180;
        background: rgba(15, 23, 42, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .tutorial-mobile-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .tutorial-mobile-close {
        display: inline-flex;
        position: absolute;
        top: 12px;
        right: 12px;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid var(--border, rgba(148, 163, 184, 0.24));
        border-radius: 8px;
        background: transparent;
        color: inherit;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .tutorial-filter-card {
        position: fixed;
        top: var(--site-header-height);
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 1200;
        width: min(86vw, 360px);
        max-height: none;
        padding: 18px 18px 24px;
        overflow-y: auto;
        border-radius: 16px 0 0 16px;
        box-shadow: none;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    .tutorial-filter-card.is-open {
        visibility: visible;
        box-shadow: -20px 0 50px rgba(15, 23, 42, 0.22);
        transform: translateX(0);
    }

    .tutorial-filter-card h2 {
        padding-right: 36px;
    }

    #tutorial-directory {
        display: flex;
        flex-direction: column;
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
    }

    #tutorial-directory .filter-btn {
        width: 100%;
        white-space: normal;
    }

    .tutorial-sections {
        gap: 28px;
    }

    .tutorial-section-title {
        margin-bottom: 10px;
        color: var(--text-primary, var(--text-dark, #1e293b));
        font-size: 20px;
    }

    .tutorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tutorial-card {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .tutorial-card:hover {
        transform: none;
        border-color: transparent;
        box-shadow: none;
    }

    .tutorial-cover {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 0;
        border-radius: 0;
        background: transparent;
    }

    .tutorial-cover img {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-radius: 10px;
        object-fit: cover;
    }

    .tutorial-code {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
        font-size: 10px;
        opacity: 1;
        transform: none;
    }

    .tutorial-title {
        position: static;
        display: -webkit-box;
        overflow: hidden;
        padding: 8px 2px 0;
        background: none;
        color: var(--text-primary, var(--text-dark, #1e293b));
        font-size: 13px;
        line-height: 1.45;
        opacity: 1;
        transform: none;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .tutorial-cover::after {
        display: none;
    }

    .tutorial-cover:hover .tutorial-title,
    .tutorial-cover:focus-visible .tutorial-title,
    .tutorial-cover:hover .tutorial-code,
    .tutorial-cover:focus-visible .tutorial-code {
        opacity: 1;
        transform: none;
    }

    
    .hero-slide-content {
        padding: calc(var(--site-header-height) + 36px) 18px 56px;
    }

    .hero-slide-content h2 {
        max-width: 100%;
        font-size: clamp(32px, 10vw, 44px);
        overflow-wrap: anywhere;
    }

    .hero-slide-content p {
        font-size: 15px;
    }

    .hero-btn {
        width: auto;
        min-width: 0;
    }

    .partner-showcase {
        padding: 32px 16px 48px;
    }

    .partner-showcase-card {
        padding: 16px;
    }

    .partner-showcase-image {
        width: 100%;
        height: auto;
    }

    
    .footer-main {
        padding: 52px 20px 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 0;
        min-width: 0;
    }

    .footer-section {
        min-width: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    }

    .footer-section h4 {
        margin: 0;
    }

    .footer-section-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 13px 0;
        cursor: pointer;
    }

    .footer-toggle-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        color: #94a3b8;
        font-size: 18px;
        line-height: 1;
    }

    .footer-toggle-icon::before {
        content: '+';
    }

    .footer-section.is-open .footer-toggle-icon::before {
        content: '鈭?;
    }

    .footer-column-links {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
        margin: 0 0 14px;
    }

    .footer-section.is-open .footer-column-links {
        display: grid;
    }

    .footer-column-links li {
        min-width: 0;
        margin-bottom: 8px;
    }

    .footer-column-links a {
        display: block;
        overflow-wrap: anywhere;
    }

    .footer-section-contact {
        border-bottom: 0;
        padding-top: 0;
    }

    .footer-section-contact h4 {
        margin: 0;
    }

    .footer-contact-links {
        grid-template-columns: 1fr;
    }

    .footer-contact-links .footer-contact-item,
    .footer-contact-links .footer-contact-link {
        padding: 4px 0;
    }

    .footer-bottom {
        padding: 20px 16px;
    }

    .footer-bottom p {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-copyright-suffix,
    .footer-beian-link {
        display: none;
    }

    .footer-copyright-main {
        overflow-wrap: anywhere;
    }

    .footer-section,
    .footer-contact-list {
        min-width: 0;
    }

    .footer-contact-item,
    .footer-contact-link {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .product-mobile-trigger {
        display: inline-flex;
        position: fixed;
        top: 45%;
        right: 0;
        z-index: 1190;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 48px;
        padding: 0;
        border: 1px solid var(--border, rgba(148, 163, 184, 0.24));
        border-right: 0;
        border-radius: 10px 0 0 10px;
        background: var(--bg-card, var(--bg-white, #fff));
        color: var(--text-primary, var(--text-dark, #1e293b));
        box-shadow: none;
        cursor: pointer;
        transform: translateY(-50%);
    }

    .product-mobile-trigger svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .product-mobile-backdrop {
        display: block;
        position: fixed;
        top: var(--site-header-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1180;
        background: rgba(15, 23, 42, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .product-mobile-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .product-mobile-directory {
        display: block;
        position: fixed;
        top: var(--site-header-height);
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 1200;
        width: min(86vw, 360px);
        max-height: none;
        padding: 18px 18px 24px;
        overflow-y: auto;
        border-radius: 16px 0 0 16px;
        background: var(--bg-card, var(--bg-white, #fff));
        border-left: 1px solid var(--border, rgba(148, 163, 184, 0.24));
        box-shadow: none;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    .product-mobile-directory.is-open {
        visibility: visible;
        box-shadow: -20px 0 50px rgba(15, 23, 42, 0.22);
        transform: translateX(0);
    }

    .product-mobile-close {
        display: inline-flex;
        position: absolute;
        top: 12px;
        right: 12px;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid var(--border, rgba(148, 163, 184, 0.24));
        border-radius: 8px;
        background: transparent;
        color: inherit;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .product-mobile-directory h2 {
        margin: 0 0 10px;
        padding-right: 36px;
        color: var(--text-primary, var(--text-dark, #1e293b));
        font-size: 18px;
    }

    .product-directory-group {
        border-top: 1px solid var(--border, rgba(148, 163, 184, 0.24));
    }

    .product-directory-group-link {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 13px 0;
        color: var(--text-primary, var(--text-dark, #1e293b));
        font-size: 15px;
        font-weight: 600;
    }

    .product-directory-group-link small {
        flex: 0 0 auto;
        color: var(--text-secondary, var(--text-muted, #64748b));
        font-size: 12px;
        font-weight: 400;
        white-space: nowrap;
    }

    .product-directory-items {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0 0 10px 10px;
    }

    .product-directory-items a {
        display: block;
        padding: 7px 4px;
        color: var(--text-secondary, var(--text-muted, #64748b));
        font-size: 14px;
        line-height: 1.45;
    }

    .product-directory-items a:hover {
        color: var(--primary, #5b72f0);
    }

    .product-category-block {
        scroll-margin-top: calc(var(--site-header-height) + 16px);
    }

    body.product-drawer-open {
        overflow: hidden;
    }

    body.nav-open {
        overflow: hidden;
    }

    body.documents-drawer-open {
        overflow: hidden;
    }

    body.news-drawer-open {
        overflow: hidden;
    }

    body.tutorial-drawer-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 16px;
    }

    .nav-actions .nav-action-link {
        padding: 7px 10px;
        font-size: 12px;
    }

    .page-intro h1 {
        font-size: 30px;
    }

    #tutorial-directory .filter-btn {
        font-size: 13px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .news-list-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .news-list-body h3 {
        font-size: 18px;
    }

    .tutorial-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
