@charset "utf-8";
/*
 * Granklin consolidated theme layer (v17).
 * Contains the former versioned responsive/UI/accessibility override layers
 * in their original cascade order. Keep article.css and product-content.css
 * scoped and loaded after this file on their respective detail pages.
 */

/* ==========================================================================
   Responsive / internationalization baseline
   ========================================================================== */
/* Granklin v3: multilingual, RTL and responsive hardening. */

:root { --text-leading: 1.65; }
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; word-break: normal; }
main { min-inline-size: 0; }
img, video, canvas, svg { max-inline-size: 100%; }

/* Long-language resilience */
:where(h1,h2,h3,h4,h5,h6,p,a,button,label,li,td,th) { overflow-wrap: break-word; }
:lang(en), :lang(ru), :lang(ar) { hyphens: auto; }
:lang(ja), :lang(zh), :lang(ko) { line-break: strict; }

/* Header/nav: retain one-line top-level items but give them elastic spacing. */
.navigation > ul { column-gap: clamp(18px, 1.45vw, 30px); row-gap: 0; }
.navigation > ul > li { padding: 0; }
.navigation > ul > li > a { white-space: nowrap; }
.navigation .navigation-sub { inset-inline-start: 0; left: auto; }
.navigation .navigation-sub ul li a {
    min-inline-size: 12rem;
    max-inline-size: min(30rem, 85vw);
    padding-inline: 25px 55px;
    white-space: normal;
    line-height: 1.45;
    padding-block: 14px;
}
.header-tools > :where(a, button) { margin-left: 0; margin-inline-start: 20px; }

/* Text blocks must grow with translated content instead of clipping at fixed px heights. */
.index-news-content p,
.news-content p {
    height: auto;
    min-block-size: 2.8em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.news-content h3 a {
    height: auto;
    min-block-size: 2.8em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.detail-product-special ul li p {
    padding-left: 0;
    padding-inline-start: 15px;
    white-space: normal;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.detail-product-special ul li p::before { left: auto; inset-inline-start: 0; }
.next-article ul li a {
    white-space: normal;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-block-size: 3.2em;
}
.page-breadcrumb span { white-space: normal; overflow-wrap: anywhere; }

/* Logical spacing for major text-bearing components. */
.about-banner-desc { left: auto; inset-inline-start: 0; padding-left: 0; padding-inline-start: 160px; }
.about-special-content { margin-left: 0; margin-inline-start: 120px; padding-left: 0; padding-inline-start: 120px; border-left: 0; border-inline-start: 1px solid #fff; }
.about-advant-content ul li div { padding-left: 0; padding-inline-start: 15px; }
.news-category ul li { margin-right: 0; margin-inline-end: 15px; }
.news-lists ul { margin-left: 0; margin-inline-start: -45px; }
.news-lists ul li { padding-left: 0; padding-inline-start: 45px; }
.next-article ul { margin-left: 0; margin-inline-start: -25px; }
.next-article ul li { padding-left: 0; padding-inline-start: 25px; }

/* CTA arrows and padding follow writing direction. */
.index-product-more a,
.detail-app-item a,
.news-content-nopic > a { padding-left: 0; padding-right: 0; padding-inline: 25px 60px; }
.index-product-more a i,
.detail-app-item a i,
.news-content-nopic > a i,
.product-aside-title a i {
    right: auto;
    inset-inline-end: 20px;
}

/* Hero text: static image remains a valid, complete first paint. */
.banner-text { left: auto; inset-inline-start: 0; }
.banner-text-item { left: auto; inset-inline-start: 160px; max-inline-size: min(760px, calc(100vw - 200px)); }
.banner-text-item h1, .banner-text-item h3 { text-wrap: balance; }
.banner-text-item p { max-inline-size: 52ch; }

/* Direction-aware adjustments */
html[dir="rtl"] body { text-align: start; }
html[dir="rtl"] .navigation .navigation-sub { inset-inline-start: 0; right: auto; }
html[dir="rtl"] .page-breadcrumb b { transform: rotate(225deg); }
html[dir="rtl"] .index-product-more a i,
html[dir="rtl"] .detail-app-item a i,
html[dir="rtl"] .news-content-nopic > a i,
html[dir="rtl"] .product-aside-title a i { transform: rotate(225deg); }
html[dir="rtl"] .banner-text-item { transform-origin: 100% 50%; }
html[dir="rtl"] .about-banner-desc,
html[dir="rtl"] .product-banner-desc { text-align: start; }

/* Intermediate widths and long UI strings */
@media (max-width: 1600px) {
    .banner-text-item { inset-inline-start: 100px; max-inline-size: min(700px, calc(100vw - 140px)); }
}
@media (max-width: 1440px) {
    .banner-text-item { inset-inline-start: 60px; }
}
@media (max-width: 1200px) {
    .banner-text-item { inset-inline-start: 30px; max-inline-size: calc(100vw - 60px); }
    .about-banner-desc { padding-inline-start: 60px; }
    .about-special-content { margin-inline-start: 80px; padding-inline-start: 80px; }
    .footer-wx { margin-inline-start: 40px; }
}
@media (max-width: 960px) {
    .about-special-content { margin-inline-start: 0; padding-inline-start: 0; border-inline-start: 0; }
    .footer-wx { margin-inline-start: 0; }
}
@media (max-width: 860px) {
    .news-lists ul { margin-inline-start: -25px; }
    .news-lists ul li { padding-inline-start: 25px; }
}
@media (max-width: 768px) {
    .about-banner-desc { padding-inline: 15px; }
    .banner-text-item { inset-inline-start: 0; max-inline-size: none; padding-inline: 15px; }
    .next-article ul { margin-inline-start: 0; }
    .next-article ul li { padding-inline-start: 0; }
}
@media (max-width: 480px) {
    .banner { min-height: 560px; height: min(100svh, 760px); }
    .banner-text-item h1, .banner-text-item h3 { font-size:clamp(26px, 8vw, 32px); }
    .banner-text-item p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .banner .slide-item img { opacity: 1 !important; }
    .banner canvas.banner-effect-canvas { display:none !important; }
}

/* Static demo placeholders are intentionally non-navigable. */
a[aria-disabled="true"] { cursor: default; }

/* v4 desktop header stability: .flex wraps globally, but the top navigation must not. */
.header .container,
.header-right,
.navigation > ul,
.header-tools { flex-wrap: nowrap; }
.header-logo,
.header-tools { flex: 0 0 auto; }
.navigation { min-inline-size: 0; }
.navigation > ul { align-items: center; }

/* Long-language desktop navigation gets a slightly denser rhythm before mobile takeover. */
:where(html[lang^="en"], html[lang^="ru"], html[lang^="de"], html[lang^="fr"]) .navigation > ul {
    column-gap: clamp(10px, .9vw, 18px);
}
:where(html[lang^="en"], html[lang^="ru"], html[lang^="de"], html[lang^="fr"]) .navigation > ul > li > a {
    font-size: clamp(15px, 1.05vw, 18px);
}

@media (min-width:1201px) and (max-width:1380px) {
    .header .container { padding-inline: 30px; }
    .navigation > ul { column-gap: 10px; }
    .navigation > ul > li > a { font-size: 16px; }
    .header-tools > :where(a, button) { margin-inline-start: 14px; }
}

/* Semantic buttons replacing javascript: links keep the original visual language. */
.ui-control-reset {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

/* Better text expansion for translations. */
.footer-nav-item h3,
.footer-nav-item a,
.index-app-title,
.index-product-title,
.index-news-title,
.product-title,
.news-detail-title,
.detail-product-title { min-inline-size: 0; overflow-wrap: anywhere; }

html[dir="rtl"] .header-tools > :where(a, button) { margin-inline-start: 20px; margin-left: 0; }
html[dir="rtl"] .banner-effect-canvas { transform: scaleX(-1); }

/* Translated CTA labels are allowed to wrap instead of being clipped by fixed line-height boxes. */
.banner-text-item a,
.about-banner-desc a,
.product-banner-desc a,
.index-product-more a,
.index-app-more a,
.detail-app-item a,
.news-content-nopic > a,
.solution-cases-more a {
    line-height: 1.35;
    min-block-size: 44px;
    padding-block: 12px;
    white-space: normal;
    text-align: center;
}

.index-news-types ul,
.news-category ul { gap: 10px; flex-wrap: wrap; }
.index-news-types ul li,
.news-category ul li { min-inline-size: 0; }
.index-news-types ul li :is(a,button),
.news-category ul li :is(a,button) { line-height: 1.35; padding-block: 10px; }

.footer-nav { gap: clamp(18px, 2vw, 42px); }
.footer-nav-item { min-inline-size: min(150px, 100%); flex: 1 1 150px; }
.footer-nav-item a { white-space: normal; }

@media (max-width: 640px) {
    .banner-text-item a { min-inline-size: min(180px, 80vw); }
    .index-news-types ul, .news-category ul { gap: 8px; }
}

/* ==========================================================================
   Semantic quality / multilingual resilience
   ========================================================================== */
/* Granklin v5 quality baseline: semantics, accessibility and multilingual resilience. */

/* Heading tag upgrades keep the original visual design. */
.page-title h2 { position: relative; line-height: 1.4; font-size: 36px; color: #333; }
.page-title h2 span { display: block; }
.detail-product-title h2 { margin-top: 15px; font-size: 32px; }
.index-special-title h2 { font-size: 36px; }
.index-news-title h2 { font-size: 36px; color: var(--default); }
.index-contact-title h2 { font-size: 36px; color: #172045; }
.contact-map-wx h2 { font-size: 20px; color: var(--default); }

/* Footer headings are navigation labels, not page-outline headings. */
.footer-nav-item .footer-heading { margin-bottom: 35px; font-size: 20px; }
.footer-nav-item .footer-heading a { color: inherit; }
.footer-wx .footer-heading { color: #fff; padding-top: 25px; text-align: center; }

/* Native buttons used for dialogs should retain the former div controls' appearance. */
.close-alert-search,
.close-burger,
.member-nav-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.close-alert-search:focus-visible,
.close-burger:focus-visible,
.navbar:focus-visible,
.header-search:focus-visible,
.member-nav-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Static demo disabled links are visually neutral and not presented as crawlable URLs. */
a[aria-disabled="true"] { cursor: default; }

/* Industry application overview added for substantive, unique page content. */
.solution-overview {
    padding-block: clamp(38px, 5vw, 72px);
    background: #fff;
}
.solution-overview .container { max-width: 1100px; }
.solution-overview h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.35;
    color: #222;
}
.solution-overview p {
    margin: 0 0 14px;
    color: #555;
    line-height: 1.9;
    font-size: 16px;
    overflow-wrap: anywhere;
}

/* Article content semantics and long-language safety. */
.news-detail-content h2 {
    margin: 28px 0 14px;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.4;
    color: #222;
}
.news-detail-content p,
.solution-overview p,
.contact-infos p,
.footer-nav-item a {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Contact information is now a semantic address element without browser italic styling. */
.contact-infos { font-style: normal; }

/* Pagination demo controls should not look like real indexable links when disabled. */
.paging [aria-disabled="true"] { cursor: default; }

/* Accessible member forms and navigation. */
.member-aside .member-nav-toggle {
    display: block;
    width: 100%;
    text-align: start;
    padding-inline-start: 15px;
    font-size: 24px;
}
.member-register .sr-only + input,
.member-order-item .sr-only + input,
.member-order-item .sr-only + textarea,
.member-order-item .sr-only + select { margin-top: 0; }

@media (max-width: 1200px) {
    .page-title h2 { font-size: 28px; }
    .detail-product-title h2 { font-size: 28px; }
}
@media (max-width: 768px) {
    .page-title h2 { font-size: 24px; }
    .detail-product-title h2 { font-size: 22px; }
    .index-special-title h2,
    .index-news-title h2,
    .index-contact-title h2 { font-size: 24px; }
    .contact-map-wx h2 { font-size: 16px; }
    .footer-nav-item .footer-heading { margin-bottom: 15px; padding-bottom: 15px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.4); }
    .footer-wx .footer-heading { display: none; }
    .member-aside .member-nav-toggle { font-size: 18px; padding: 20px 15px; }
}
@media (max-width: 640px) {
    .page-title h2 { font-size: 20px; }
    .footer-nav-item .footer-heading { margin-bottom: 10px; padding-bottom: 10px; font-size: 14px; }
}

/* RTL: logical alignment for newly introduced content. */
html[dir="rtl"] .solution-overview,
html[dir="rtl"] .news-detail-content,
html[dir="rtl"] .member-aside .member-nav-toggle { text-align: start; }

/* v5 interactive controls: buttons preserve the former anchor appearance. */
.index-app-list button { appearance:none; -webkit-appearance:none; border:0; background:transparent; font:inherit; cursor:pointer; }
.index-news-types button { appearance:none; -webkit-appearance:none; background:transparent; font:inherit; cursor:pointer; }
.about-video-trigger { appearance:none; -webkit-appearance:none; cursor:pointer; font:inherit; }
.about-banner-desc .about-video-trigger {
    position: relative;
    z-index: 1;
    margin-top: 50px;
    display: inline-block;
    padding: 0 50px;
    line-height: 50px;
    font-size: 18px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
}
.about-banner-desc .about-video-trigger::after {
    position:absolute; top:0; inset-inline-start:0; content:''; width:0; height:100%; background:rgba(255,255,255,.2); z-index:-1; backdrop-filter:blur(40px); -webkit-backdrop-filter:blur(40px); transition:width .3s;
}
.about-banner-desc .about-video-trigger:hover::after { width:100%; }
@media (max-width: 768px) { .about-banner-desc .about-video-trigger { margin-top:30px; padding:0 30px; line-height:40px; font-size:16px; } }
@media (max-width: 640px) { .about-banner-desc .about-video-trigger { margin-top:20px; padding:0 20px; line-height:40px; font-size:14px; } }

/* Remove text truncation patterns that break English/Russian/Arabic content. */
.page-breadcrumb span { white-space: normal; }
.product-sendarticle ul li a {
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.6;
}
.product-hotarticle ul li a h3 {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
}
.detail-product-special ul li p {
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    line-height: 1.65;
}
.next-article ul li a {
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
}
.solution-cases-title h3 {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-block-size: 2.8em;
}
.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible {
    outline: 2px solid var(--default);
    outline-offset: 3px;
}

.solution-overview h3,
.product-selection-guide h2,
.product-selection-note h2,
.news-editorial-intro h2 {
    margin: 24px 0 12px;
    font-size: clamp(20px, 1.8vw, 28px);
    line-height: 1.4;
    color: #222;
}
.solution-guidance-list { margin-top: 12px; }
.solution-guidance-list li {
    position: relative;
    padding-inline-start: 18px;
    margin-block: 8px;
    color: #555;
    line-height: 1.8;
}
.solution-guidance-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: .75em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--default);
}
.product-selection-guide,
.product-selection-note,
.news-editorial-intro {
    padding-block: clamp(28px, 3.4vw, 46px);
}
.product-selection-guide p,
.product-selection-note p,
.news-editorial-intro p {
    max-width: 980px;
    margin-block: 8px;
    color: #56625b;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.product-selection-note { padding-inline: max(15px, calc((100% - 1200px) / 2)); background:#f8f9fa; }
.news-editorial-intro { background:#fff; }
.news-category button {
    appearance:none; -webkit-appearance:none; font:inherit; cursor:pointer;
}

/* v6 semantic content refinements */
.solution-cases ul li .solution-case-card{display:block;}
.solution-cases ul li .solution-case-card:hover .solution-cases-pic img{transform:scale(1.1);}
.solution-cases ul li .solution-case-card:hover .solution-cases-title h3{color:var(--default);}
.product-tags span{display:inline-block;margin:0 8px 8px 0;padding:0 10px;line-height:1.8;background-color:#eee;}
.news-category a{display:block;color:inherit;}

.tag-placeholder{display:inline-block;margin:0 8px 8px 0;padding:0 10px;line-height:1.8;background:#eee;color:#666;}
.paging button{font:inherit;}

/* ==========================================================================
   Floating site tools / global UI
   ========================================================================== */
/* Granklin v7 floating site tools + UI hardening
 * Stable on desktop/mobile/file://, keyboard accessible, RTL/safe-area aware.
 */

.site-tools {
    position: fixed;
    z-index: 980;
    inset-inline-end: max(14px, env(safe-area-inset-right));
    inset-block-end: max(22px, calc(env(safe-area-inset-bottom) + 14px));
    display: flex;
    flex-direction: column;
    gap: 6px;
    direction: ltr;
}

.site-tools__item {
    position: relative;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(18, 54, 76, .12);
    border-radius: 2px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.97);
    color: #4d555b;
    box-shadow: 0 8px 24px rgba(10, 37, 55, .14);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    backdrop-filter: blur(8px);
}

.site-tools__item:hover,
.site-tools__item:focus-visible,
.site-tools__item[aria-expanded="true"] {
    background: var(--default, #087f9c);
    border-color: var(--default, #087f9c);
    color: #fff;
}

.site-tools__item svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.site-tools__item--wechat[aria-expanded="true"] {
    background: #168a43;
    border-color: #168a43;
}

.site-tools__item--top {
    opacity: .72;
}

.site-tools__item--top.is-scrolled {
    opacity: 1;
}

.site-tools__item::before {
    content: attr(data-label);
    position: absolute;
    inset-inline-end: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    width: max-content;
    max-width: 240px;
    padding: 7px 10px;
    border-radius: 3px;
    background: rgba(24, 31, 36, .94);
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-tools__item:hover::before,
.site-tools__item:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.site-tools__wechat-panel {
    position: absolute;
    inset-inline-end: calc(100% + 12px);
    inset-block-end: 0;
    width: 220px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(20, 57, 77, .12);
    border-radius: 8px;
    background: #fff;
    color: #28343a;
    box-shadow: 0 14px 38px rgba(9, 36, 54, .22);
    text-align: center;
    writing-mode: horizontal-tb;
    word-break: normal;
    overflow-wrap: break-word;
}

.site-tools__wechat-panel[hidden] { display: none !important; }

.site-tools__wechat-panel::after {
    content: "";
    position: absolute;
    inset-inline-end: -7px;
    inset-block-end: 65px;
    width: 12px;
    height: 12px;
    border-block-start: 1px solid rgba(20,57,77,.12);
    border-inline-end: 1px solid rgba(20,57,77,.12);
    background: #fff;
    transform: rotate(45deg);
}

.site-tools__wechat-panel img {
    display: block;
    width: 150px;
    height: 148px;
    margin: 0 auto 10px;
    object-fit: contain;
    background: #fff;
}

.site-tools__wechat-panel strong {
    display: block;
    margin: 0 24px 4px;
    font-size: 16px;
    line-height: 1.4;
    color: #172c37;
}

.site-tools__wechat-panel p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6c7479;
}

.site-tools__wechat-close {
    position: absolute;
    inset-block-start: 7px;
    inset-inline-end: 7px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: transparent;
    color: #6a7378;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.site-tools__wechat-close:hover,
.site-tools__wechat-close:focus-visible {
    background: #eef3f5;
    color: #172c37;
}

/* Prevent the floating tools from being clipped by translated/body overflow rules. */
.site-tools,
.site-tools * {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .site-tools {
        inset-inline-end: max(8px, env(safe-area-inset-right));
        inset-block-end: max(68px, calc(env(safe-area-inset-bottom) + 58px));
        gap: 5px;
    }

    .site-tools__item {
        width: 44px;
        height: 44px;
        box-shadow: 0 6px 18px rgba(10, 37, 55, .15);
    }

    .site-tools__item svg {
        width: 20px;
        height: 20px;
    }

    /* Tooltips are desktop affordances. They must not become vertical strips on narrow screens. */
    .site-tools__item::before { display: none; }

    .site-tools__wechat-panel {
        width: min(226px, calc(100vw - 76px));
        padding: 15px 14px 14px;
        border-radius: 7px;
    }

    .site-tools__wechat-panel img {
        width: 138px;
        height: 136px;
    }

    .site-tools__wechat-panel strong {
        margin-inline: 26px;
        font-size: 15px;
    }

    .site-tools__wechat-panel p {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .site-tools {
        inset-inline-end: max(6px, env(safe-area-inset-right));
    }
    .site-tools__item {
        width: 44px;
        height: 44px;
    }
    .site-tools__wechat-panel {
        width: min(214px, calc(100vw - 68px));
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-tools__item,
    .site-tools__item::before { transition: none !important; }
}

/* RTL: keep icons LTR while anchoring panel on the logical inner side. */
html[dir="rtl"] .site-tools { direction: rtl; }
html[dir="rtl"] .site-tools__item svg { transform: none; }
html[dir="rtl"] .site-tools__wechat-panel { direction: rtl; }

/* v7 quality continuation: do not clip translated text in common content components. */
.page-breadcrumb span,
.product-sendarticle ul li a,
.product-hotarticle ul li a h3,
.detail-product-special ul li p,
.next-article ul li a,
.solution-cases-title h3 {
    white-space: normal;
}

/* Do not rely on reset-level outline suppression; component styles may enhance this further. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 2px solid var(--default, #087f9c);
    outline-offset: 3px;
}

/* ==========================================================================
   Footer / sidebar / layout refinement
   ========================================================================== */
/* Granklin v8: footer + sidebar refinement. Loaded after the previous baseline styles. */

/* ---------- Content + sidebar layout ---------- */
.product-boxs {
    align-items: flex-start;
    gap: clamp(24px, 2.2vw, 38px);
}
.product-left {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding-right: 0;
}
.product-right {
    flex: 0 0 clamp(300px, 21vw, 328px);
    width: auto;
    min-width: 0;
    align-self: flex-start;
    position: sticky;
    top: 96px;
}
.product-aside-item {
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid #e5ebe7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(24, 70, 40, .055);
}
.product-aside-title {
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1ee;
}
.product-aside-title h3 {
    position: relative;
    margin: 0;
    padding-inline-start: 13px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: #26352c;
}
.product-aside-title h3::before {
    position: absolute;
    inset-inline-start: 0;
    top: .22em;
    width: 3px;
    height: 1.05em;
    border-radius: 2px;
    background: var(--default);
    content: '';
}
.aside-more {
    margin-inline-start: auto;
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1;
    color: #7b887f;
}
.aside-more:hover,
.aside-more:focus-visible { color: var(--default); }

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.product-tags span,
.product-tags a {
    margin: 0;
    padding: 5px 10px;
    border: 1px solid #e3e9e5;
    border-radius: 4px;
    background: #f5f7f5;
    color: #55645a;
    font-size: 13px;
    line-height: 1.45;
}
.product-tags a:hover,
.product-tags a:focus-visible {
    border-color: var(--default);
    background: var(--default);
    color: #fff;
}

.product-sendarticle { margin-top: 4px; }
.product-sendarticle ul {
    counter-reset: sidebar-article;
}
.product-sendarticle ul li {
    counter-increment: sidebar-article;
    position: relative;
    min-height: 50px;
    padding: 14px 0 14px 34px;
    padding-inline: 34px 0;
    border-bottom: 1px solid #edf1ee;
}
.product-sendarticle ul li:first-child { border-top: 0; }
.product-sendarticle ul li:last-child { border-bottom: 0; padding-bottom: 10px; }
.product-sendarticle ul li::before {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eef4f0;
    color: var(--default);
    content: counter(sidebar-article, decimal-leading-zero);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    line-height: 22px;
    text-align: center;
    transform: translateY(-50%);
}
.product-sendarticle ul li a {
    display: -webkit-box;
    padding: 0;
    padding-inline-start: 0;
    white-space: normal;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: #34443a;
    font-size: 14px;
    line-height: 1.65;
}
.product-sendarticle ul li a:hover,
.product-sendarticle ul li a:focus-visible { color: var(--default); }

.product-hotarticle { margin-top: 16px; }
.product-hotarticle ul li { margin-top: 0; }
.product-hotarticle ul li a {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    overflow: visible;
}
.product-hotarticle ul li a img {
    width: 96px;
    height: 72px;
    border-radius: 5px;
    object-fit: cover;
}
.product-hotarticle ul li a h3 {
    position: static;
    width: auto;
    padding: 0;
    color: #34443a;
    white-space: normal;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.product-hotarticle ul li a h3::after { display: none; }
.product-hotarticle ul li a:hover img { transform: scale(1.035); }
.product-hotarticle ul li a:hover h3,
.product-hotarticle ul li a:focus-visible h3 { color: var(--default); background: transparent; }

@media (max-width: 1200px) {
    .product-boxs { gap: 26px; }
    .product-left,
    .product-right { width: 100%; flex-basis: 100%; }
    .product-right {
        position: static;
        top: auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
    .product-aside-item { margin-bottom: 0; }
    .product-hotarticle ul { display: block; margin: 0; }
    .product-hotarticle ul li { width: auto; padding: 0; }
}
@media (max-width: 900px) and (min-width: 641px) {
    .product-right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .product-aside-item { padding: 18px; }
    .product-right .product-aside-item:last-child { grid-column: 1 / -1; }
    .product-right .product-hotarticle ul li a {
        grid-template-columns: 104px minmax(0, 1fr);
    }
}
@media (max-width: 640px) {
    .product-right { grid-template-columns: 1fr; }
    .product-aside-item { padding: 20px; }
    .product-right .product-aside-item:last-child { grid-column: auto; }
}
@media (max-width: 480px) {
    .product-aside-item { padding: 18px 15px; border-radius: 6px; }
    .product-hotarticle ul li a { grid-template-columns: 88px minmax(0,1fr); gap: 12px; }
    .product-hotarticle ul li a img { width: 88px; height: 66px; }
}

/* ---------- Case/news list detail action ---------- */
.case-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--default);
    font-size: 14px;
    font-weight: 600;
}
.case-more i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}
.case-more:hover,
.case-more:focus-visible { color: #0f512b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-brand-deep); }
.site-footer .footer-bg {
    padding: 54px 0 40px;
    background: linear-gradient(135deg, var(--color-brand-strong) 0%, var(--color-brand-deep) 55%, #11532e 100%);
}
.site-footer .footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: clamp(36px, 4vw, 72px);
}
.site-footer .footer-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: 28px;
    width: auto;
}
.site-footer .footer-nav-item {
    min-width: 0;
    padding: 0;
    margin: 0;
}
.site-footer .footer-nav-item .footer-heading {
    margin: 0 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255,255,255,.17);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}
.site-footer .footer-nav-item .footer-heading a { color: #fff; }
.site-footer .footer-nav-item ul { display: block; }
.site-footer .footer-nav-item ul li { margin: 0 0 9px; }
.site-footer .footer-nav-item ul li a {
    color: rgba(232,245,236,.76);
    font-size: 14px;
    line-height: 1.55;
}
.site-footer .footer-nav-item ul li a:hover,
.site-footer .footer-nav-item ul li a:focus-visible { color: #fff; }
.site-footer .footer-nav-contact ul li a { overflow-wrap: anywhere; }

.footer-contact-card {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) 118px;
    gap: 18px;
    align-items: center;
    padding-inline-start: 30px;
    border-inline-start: 1px solid rgba(255,255,255,.16);
    color: #fff;
}
.footer-contact-copy { min-width: 0; }
.footer-contact-kicker {
    margin-bottom: 8px;
    color: rgba(255,255,255,.55);
    font-size: 11px;
    letter-spacing: .14em;
}
.footer-contact-title {
    margin-bottom: 16px;
    color: #fff;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
}
.footer-contact-phone,
.footer-contact-mail {
    display: block;
    color: rgba(238,248,241,.84);
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.footer-contact-phone { font-size: 18px; font-weight: 600; color: #fff; }
.footer-contact-mail { margin-top: 4px; font-size: 12px; }
.site-footer .footer-wx {
    display: block;
    width: auto;
    margin: 0;
    text-align: center;
}
.site-footer .footer-wx img {
    display: block;
    width: 112px;
    height: 110px;
    margin: 0 auto;
    border: 5px solid #fff;
    background: #fff;
}
.footer-wx-title {
    margin-top: 10px;
    color: rgba(255,255,255,.8);
    font-size: 12px;
    line-height: 1.4;
}
.footer-sub { background: #104b29; }
.footer-sub .container { padding-top: 18px; padding-bottom: 18px; }
.footer-friend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,.13);
}
.footer-friend-label {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.footer-friend a {
    color: rgba(232,245,236,.72);
    font-size: 13px;
}
.footer-friend a:hover,
.footer-friend a:focus-visible { color: #fff; }
.site-footer .copyright-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0 0;
    border: 0;
}
.site-footer .copyright-info p,
.site-footer .copyright-info p a {
    color: rgba(232,245,236,.68);
    font-size: 12px;
    line-height: 1.5;
}
.site-footer .copyright-info p a:hover,
.site-footer .copyright-info p a:focus-visible { color: #fff; }

@media (max-width: 1280px) {
    .site-footer .footer-main { grid-template-columns: minmax(0,1fr) 255px; gap: 34px; }
    .site-footer .footer-nav { grid-template-columns: repeat(3, minmax(120px,1fr)); gap: 28px 34px; }
    .footer-contact-card { grid-template-columns: 1fr; padding-inline-start: 24px; }
}
@media (max-width: 900px) {
    .site-footer .footer-bg { padding: 38px 0 30px; }
    .site-footer .footer-main { grid-template-columns: 1fr; gap: 28px; }
    .site-footer .footer-nav { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px 22px; }
    .footer-contact-card {
        grid-template-columns: minmax(0,1fr) 112px;
        padding: 22px 0 0;
        border-inline-start: 0;
        border-top: 1px solid rgba(255,255,255,.15);
    }
}
@media (max-width: 640px) {
    .site-footer .footer-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
    .site-footer .footer-bg { padding: 34px 0 28px; }
    .site-footer .footer-nav { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 20px; }
    .site-footer .footer-nav-item .footer-heading { margin-bottom: 12px; padding-bottom: 9px; font-size: 14px; }
    .site-footer .footer-nav-item ul li { margin-bottom: 7px; }
    .site-footer .footer-nav-item ul li a { font-size: 12px; }
    .footer-contact-card { grid-template-columns: minmax(0,1fr) 96px; gap: 14px; }
    .site-footer .footer-wx img { width: 94px; height: 92px; border-width: 4px; }
    .footer-contact-title { font-size: 15px; margin-bottom: 10px; }
    .footer-contact-phone { font-size: 16px; }
    .footer-contact-mail { font-size: 11px; }
    .footer-friend { gap: 8px 14px; }
    .site-footer .copyright-info { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (max-width: 380px) {
    .site-footer .footer-nav { grid-template-columns: 1fr; }
    .footer-contact-card { grid-template-columns: 1fr; }
    .site-footer .footer-wx { text-align: start; }
    .site-footer .footer-wx img { margin-inline: 0; }
}

/* 404 gets the same footer, so its main section should use a viewport minimum rather than a fixed full height. */
.page404 { min-height: 72vh; height: auto; }

/* RTL compatibility for the new modules. */
html[dir="rtl"] .footer-contact-card { direction: rtl; }
html[dir="rtl"] .product-sendarticle ul li a { text-align: start; }

/* ==========================================================================
   WeChat / contact / tag enhancements
   ========================================================================== */
/* v9: personal WeChat copy UX, contact page without map, tag-link semantics. */

/* ---------- Reusable copy button ---------- */
.wechat-copy-button {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}
.wechat-copy-button:hover,
.wechat-copy-button:focus-visible { opacity: .84; }

/* Footer uses a personal/business WeChat QR rather than a public-account label. */
.footer-wx-id {
    margin-top: 5px;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
}
.footer-wx-id strong { color: #fff; font-weight: 600; }
.footer-wx-copy {
    display: none;
    width: fit-content;
    min-width: 84px;
    max-width: 96px;
    min-height: 32px;
    margin: 8px auto 0;
    padding: 0 10px;
    border-color: rgba(255,255,255,.58);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}
.footer-wx-copy:hover,
.footer-wx-copy:focus-visible { background: rgba(255,255,255,.16); opacity: 1; }

/* Site tools WeChat card. Copy action is deliberately surfaced on pad/mobile. */
.site-tools__wechat-id {
    margin: 2px 0 4px !important;
    color: #394b54 !important;
    font-size: 13px !important;
}
.site-tools__wechat-id b { color: #168a43; font-weight: 700; }
.site-tools__wechat-copy {
    display: none;
    width: 100%;
    margin-top: 11px;
    border-color: #168a43;
    background: #168a43;
    color: #fff;
}
.site-tools__wechat-copy:hover,
.site-tools__wechat-copy:focus-visible { background: #117638; opacity: 1; }

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .footer-wx-copy,
    .site-tools__wechat-copy { display: inline-flex; align-items: center; justify-content: center; }
    .footer-wx-copy { display: inline-flex; }
    .site-tools__wechat-panel { width: min(238px, calc(100vw - 80px)); }
}

@media (max-width: 560px) {
    .footer-wx-id { white-space: normal; }
    .footer-wx-copy {
        width: auto;
        min-width: 80px;
        max-width: 88px;
        min-height: 32px;
        padding-inline: 8px;
        font-size: 10.5px;
    }
    .site-tools__wechat-copy { min-height: 40px; }
}

@media (max-width: 380px) {
    .footer-wx-copy { margin-inline: 0; max-width: 92px; }
}

/* ---------- Sidebar hot tags are real links ---------- */
.product-tags a {
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.product-tags a[aria-current="page"] {
    border-color: var(--default);
    background: var(--default);
    color: #fff;
}

/* ---------- Contact page: no map; China + Korea information cards ---------- */
.contact-page-section {
    padding: 0 0 clamp(64px, 7vw, 110px);
    background: linear-gradient(180deg, #f7f8f7 0%, #fff 52%, #f7f9f8 100%);
}
.contact-page-title {
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(48px, 6vw, 82px) 0 clamp(32px, 4vw, 54px);
    text-align: center;
}
.contact-page-title > p:first-child { margin-bottom: 8px; }
.contact-page-intro {
    max-width: 680px;
    margin: 16px auto 0 !important;
    color: #66746c !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    text-transform: none !important;
}
.contact-region-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr);
    gap: clamp(20px, 2.6vw, 38px);
    align-items: stretch;
}
.contact-region-card {
    min-width: 0;
    padding: clamp(26px, 3vw, 42px);
    border: 1px solid #e2e8e4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(22, 66, 42, .07);
}
.contact-region-card--korea {
    background: linear-gradient(145deg, #f8fbf9 0%, #eef5f1 100%);
}
.contact-region-head {
    padding-bottom: 22px;
    border-bottom: 1px solid #e6ece8;
}
.contact-region-head > p {
    margin: 0 0 7px;
    color: var(--default);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .16em;
}
.contact-region-head h2 {
    margin: 0;
    color: #1e2f26;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.35;
    font-weight: 600;
}
.contact-region-head span {
    display: block;
    margin-top: 9px;
    color: #758179;
    font-size: 14px;
    line-height: 1.6;
}
.contact-region-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
    margin: 6px 0 0;
    font-style: normal;
}
.contact-detail-item {
    min-width: 0;
    padding: 22px 0;
    border-bottom: 1px solid #edf1ee;
}
.contact-detail-item--wide { grid-column: 1 / -1; }
.contact-detail-item > span {
    display: block;
    margin-bottom: 8px;
    color: #88938c;
    font-size: 12px;
    line-height: 1.4;
}
.contact-detail-item strong,
.contact-detail-item strong a {
    color: #25372d;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.contact-detail-item a:hover,
.contact-detail-item a:focus-visible { color: var(--default); }
.contact-secondary {
    display: block;
    margin-top: 3px;
    color: #53645a;
    font-size: 14px;
    line-height: 1.5;
}
.contact-wechat-card {
    display: grid;
    grid-template-columns: 122px minmax(0,1fr);
    gap: 22px;
    align-items: center;
    margin-top: 28px;
    padding: 20px;
    border-radius: 9px;
    background: #f4f8f5;
}
.contact-wechat-card img {
    display: block;
    width: 122px;
    height: 120px;
    border: 5px solid #fff;
    background: #fff;
    object-fit: contain;
}
.contact-wechat-kicker {
    margin: 0 0 5px;
    color: var(--default);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .14em;
}
.contact-wechat-copy h3 {
    margin: 0 0 8px;
    color: #22352a;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
}
.contact-wechat-copy > p:not(.contact-wechat-kicker) {
    margin: 0;
    color: #65736a;
    font-size: 14px;
    line-height: 1.6;
}
.contact-wechat-copy > p strong { color: #168a43; }
.contact-wechat-button {
    margin-top: 12px;
    border-color: #168a43;
    background: #168a43;
    color: #fff;
}
.contact-region-note {
    margin-top: 28px;
    padding: 19px 20px;
    border-inline-start: 3px solid var(--default);
    border-radius: 0 7px 7px 0;
    background: rgba(255,255,255,.72);
}
.contact-region-note strong {
    color: #23362b;
    font-size: 15px;
}
.contact-region-note p {
    margin-top: 6px;
    color: #647169;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 1050px) {
    .contact-region-grid { grid-template-columns: 1fr; }
    .contact-region-card--korea .contact-region-details { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .contact-region-card--korea .contact-detail-item--wide { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .contact-page-title { text-align: start; }
    .contact-page-intro { margin-inline: 0 !important; }
    .contact-region-card { padding: 24px 20px; border-radius: 9px; }
    .contact-region-details,
    .contact-region-card--korea .contact-region-details { grid-template-columns: 1fr; gap: 0; }
    .contact-detail-item--wide { grid-column: auto; }
    .contact-wechat-card { grid-template-columns: 106px minmax(0,1fr); gap: 16px; padding: 16px; }
    .contact-wechat-card img { width: 106px; height: 104px; }
}
@media (max-width: 440px) {
    .contact-region-card { padding: 22px 16px; }
    .contact-wechat-card { grid-template-columns: 1fr; }
    .contact-wechat-card img { width: 130px; height: 128px; }
    .contact-wechat-button { width: 100%; min-height: 42px; }
}

html[dir="rtl"] .contact-region-note {
    border-inline-start: 3px solid var(--default);
    border-radius: 7px 0 0 7px;
}

/* ==========================================================================
   Accessibility / WCAG baseline
   ========================================================================== */
/* Granklin v10 WCAG 2.2 AA engineering baseline */

/* Strong, consistent keyboard focus across the site. */
:where(a[href], button, input, select, textarea, summary, [role="tab"], [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #111;
}

/* Header controls: preserve desktop rhythm, provide large touch targets on touch/mobile. */
.header-search,
.header-user {
    min-inline-size: 32px;
    min-block-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .header-tools > :where(a, button),
    .header-search,
    .header-user {
        min-inline-size: 44px;
        min-block-size: 44px;
    }
    .header-tools > :where(a, button) { margin-inline-start: 6px; margin-left: 0; }
}

/* Swiper navigation is now a real button. Keep previous visual appearance. */
button.swiper-button-prev,
button.swiper-button-next {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}
button.swiper-button-prev:focus-visible,
button.swiper-button-next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #111;
}
/* Swiper 14 uses injected SVG icons by default. The project disables injection and
   provides a small CSS arrow for empty navigation buttons so custom image buttons
   (About page) are not duplicated. */
button.swiper-button-prev:empty::before,
button.swiper-button-next:empty::before {
    content: "";
    display: block;
    inline-size: 10px;
    block-size: 10px;
    border-block-start: 2px solid currentColor;
    border-inline-end: 2px solid currentColor;
}
button.swiper-button-prev:empty::before { transform: rotate(-135deg); }
button.swiper-button-next:empty::before { transform: rotate(45deg); }

/* Tab panels and tab focus. */
[role="tab"] { touch-action: manipulation; }
[role="tab"]:focus-visible { position: relative; z-index: 2; }
[role="tabpanel"][hidden] { display: none !important; }

/* Footer contrast: all normal text exceeds the prior marginal contrast. */
.site-footer .footer-nav-item ul li a { color: #f1f8f3; }
.footer-contact-kicker { color: #e4f2e8; }
.footer-contact-mail,
.footer-wx-id,
.footer-wx-title,
.footer-friend,
.footer-friend a { color: #eef7f0; }
.site-footer .footer-copy,
.site-footer .footer-bottom,
.site-footer .footer-bottom a { color: #edf6ef; }

/* Video accessibility copy. */
.video-access-text {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid #dbe5df;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}
.video-access-text summary { cursor: pointer; font-weight: 600; color: var(--color-brand); }
.video-access-text p { margin-top: 8px; }

/* Member/noindex pages now expose consistent landmarks and skip navigation. */
.member-footer {
    margin: 28px auto 0;
    padding: 18px 16px 28px;
    text-align: center;
    color: #56625c;
    font-size: 13px;
    line-height: 1.7;
}
.member-footer a { text-decoration: underline; text-underline-offset: 2px; }

/* At narrow reflow widths, do not trap text in fixed single-line layouts. */
@media (max-width: 480px) {
    :where(.page-breadcrumb, .product-aside-item, .footer-nav-item, .contact-card, .member-box) {
        max-inline-size: 100%;
    }
    :where(.page-breadcrumb a, .page-breadcrumb span, .footer-nav-item a, .contact-card a) {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
}

/* Windows High Contrast / forced colors support. */
@media (forced-colors: active) {
    * { forced-color-adjust: auto; }
    :where(a[href], button, input, select, textarea, summary, [role="tab"]):focus-visible {
        outline: 3px solid Highlight !important;
        outline-offset: 3px;
        box-shadow: none !important;
    }
    .site-tools__item,
    .site-tools__wechat-panel,
    .product-aside-item,
    .contact-card,
    .footer-contact-card {
        border: 1px solid CanvasText !important;
        background: Canvas !important;
        color: CanvasText !important;
        box-shadow: none !important;
    }
    .site-footer,
    .footer-bg { background: Canvas !important; color: CanvasText !important; }
    .site-footer a { color: LinkText !important; }
}

/* More-contrast user preference where supported. */
@media (prefers-contrast: more) {
    body { color: #333; }
    a { text-decoration-thickness: 2px; }
    .site-footer .footer-nav-item ul li a,
    .footer-contact-kicker,
    .footer-contact-mail,
    .footer-wx-id { color: #fff; }
}

/* Desktop dropdowns are keyboard reachable, not hover-only. */
.navigation > ul > li:focus-within > .navigation-sub { display: block; }

/* Dialog close controls also meet touch target guidance on coarse pointers. */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .close-alert-search,
    .close-burger,
    .site-tools__wechat-close,
    .video-dialog-close {
        min-inline-size: 44px;
        min-block-size: 44px;
    }
}

/* 400%/narrow reflow protection: floating tools become a compact bottom row. */
@media (max-width: 480px) {
    .site-tools {
        flex-direction: row;
        inset-inline-end: max(8px, env(safe-area-inset-right));
        inset-block-end: max(8px, calc(env(safe-area-inset-bottom) + 8px));
        gap: 4px;
    }
    .site-tools__wechat-panel {
        inset-inline-end: 0;
        inset-block-end: calc(100% + 10px);
        width: min(230px, calc(100vw - 24px));
    }
    .site-tools__wechat-panel::after { display: none; }
    body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* Text contrast corrections for legacy #777/#999 utility text. */
.page-breadcrumb span,
.member-breadcrumb span,
.member-logout a,
.member-user-infos ul li span,
.member-notice ul li div { color: #666 !important; }
.alert-search-form input { color: #666; }
:where(input, textarea)::placeholder { color: #666; opacity: 1; }

/* Homepage product selector is a real keyboard-operable tab set. */
.index-product-item[role="tab"] {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: inherit;
    font: inherit;
}
.index-product-item[role="tab"][aria-selected="true"] h3 { color: var(--default); }

/* Product thumbnails are keyboard-operable buttons, not click-only images. */
.detail-product-thumb {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}
.detail-product-thumb img { display: block; width: 100%; height: auto; }
.detail-product-thumb.is-active,
.detail-product-thumb[aria-pressed="true"] {
    outline: 2px solid var(--default);
    outline-offset: -2px;
}

/* Member demo actions use buttons instead of fake # links. */
.member-logout-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #666;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
button.paging-link {
    border: 0;
    font: inherit;
}

.page404-header {
    position: absolute;
    z-index: 5;
    inset-block-start: 20px;
    inset-inline-start: clamp(18px, 4vw, 60px);
}
.page404-header img { display: block; width: min(190px, 42vw); height: auto; }

/* ==========================================================================
   Homepage news / responsive pagination
   ========================================================================== */
/* v11 - homepage news image cards + responsive article pagination */

/* Homepage news: make image demos visually explicit and consistent across mixed source ratios. */
.index-news-swiper { display: block; }
.index-news-swiper[hidden] { display: none !important; }
.index-news-pic {
    border-radius: 8px;
    aspect-ratio: 507 / 260;
    background: #eef4f0;
}
.index-news-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.index-news-content {
    padding-block: 22px 26px;
}
.index-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b756f;
    font-size: 14px;
}
.index-news-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding-inline: 10px;
    border-radius: 999px;
    background: #edf6f0;
    color: var(--color-brand-strong);
    font-size: 13px;
    font-weight: 600;
}
.index-news-meta time { color: #747d78; }
.index-news-content h3 { margin-top: 12px; }
.index-news-content p {
    margin-top: 14px;
    height: auto;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Accessible, single-DOM pagination. */
.article-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 0 78px;
}
.article-page-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.article-page-number,
.article-page-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid #d9e2dc;
    border-radius: 6px;
    background: #fff;
    color: #34433a;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.article-page-number:hover,
.article-page-number:focus-visible,
.article-page-action:hover,
.article-page-action:focus-visible {
    border-color: var(--default);
    background: #f1f8f3;
    color: var(--default);
    box-shadow: 0 0 0 3px rgba(23,102,56,.10);
}
.article-page-number.is-current {
    border-color: var(--default);
    background: var(--default);
    color: #fff;
    font-weight: 700;
}
.article-page-action { min-width: 78px; }
.article-page-action.is-disabled {
    border-color: #e5e8e6;
    background: #f6f7f6;
    color: #9aa19d;
    cursor: not-allowed;
}
.article-page-ellipsis {
    min-width: 24px;
    text-align: center;
    color: #858d88;
}
.article-page-status { display: none; color: #526057; font-size: 14px; white-space: nowrap; }

@media (max-width: 1024px) {
    .article-pagination { gap: 8px; padding-bottom: 62px; }
    .article-page-list { gap: 6px; }
    .page-desktop-only { display: none; }
}

@media (max-width: 640px) {
    .index-news-pic { border-radius: 6px; }
    .index-news-content { padding-block: 16px 22px; }
    .index-news-meta { font-size: 13px; }

    .article-pagination {
        justify-content: space-between;
        gap: 8px;
        padding: 18px 0 48px;
    }
    .article-page-list { display: none; }
    .article-page-status { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
    .article-page-action {
        min-width: 88px;
        min-height: 44px;
        padding-inline: 14px;
    }
}

@media (max-width: 380px) {
    .article-page-action { min-width: 80px; padding-inline: 10px; }
    .article-page-status { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .article-page-number,
    .article-page-action { transition: none; }
}

/* ==========================================================================
   Header / mobile navigation stabilization
   ========================================================================== */
/* Granklin v12 - responsive navigation icon repair */

/* Keep the hamburger out of desktop navigation. The previous accessibility
   layer accidentally forced display:inline-flex at every width. */
.navbar {
    display: none;
    box-sizing: border-box;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
}

/* Stable three-line icon for Pad/mobile. */
@media (max-width: 1200px) {
    .navbar {
        display: inline-flex;
        flex: 0 0 44px;
        inline-size: 44px;
        block-size: 44px;
        min-inline-size: 44px;
        min-block-size: 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-left: 0;
        margin-inline-start: 6px;
        cursor: pointer;
    }

    .navbar span {
        display: block;
        flex: 0 0 auto;
        inline-size: 28px;
        block-size: 2px;
        margin: 0 !important;
        border-radius: 2px;
        background-color: #fff;
        transform: none;
    }

    .header-active .navbar span {
        background-color: #333;
    }
}

/* The close control is independent from the trigger and stays a clear X. */
.close-burger {
    position: fixed;
    top: 12px;
    right: auto;
    inset-inline-end: 12px;
    z-index: 7;
    inline-size: 44px;
    block-size: 44px;
    min-inline-size: 44px;
    min-block-size: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.close-burger span {
    position: absolute;
    top: 50%;
    left: 50%;
    inline-size: 26px;
    block-size: 2px;
    margin: 0;
    border-radius: 2px;
    background: #222;
    transform-origin: center;
}

.close-burger span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-burger span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.close-burger:hover span,
.close-burger:focus-visible span {
    background: var(--default);
}

/* Prevent legacy rules from turning the icon into a horizontal flex row. */
@media (min-width: 1201px) {
    .navbar {
        display: none !important;
    }
}

@media (forced-colors: active) {
    .navbar span,
    .close-burger span {
        background: ButtonText;
        forced-color-adjust: auto;
    }
}

/* ==========================================================================
   Language selector / locale navigation
   ========================================================================== */
.language-switcher {
    position: relative;
    flex: 0 0 auto;
    margin-inline-start: 12px;
    color: #fff;
}
.language-switcher > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-block-size: 38px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: var(--radius-pill, 999px);
    color: inherit;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    list-style: none;
    user-select: none;
    white-space: nowrap;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.language-switcher > summary::-webkit-details-marker { display: none; }
.language-switcher > summary::marker { display: none; content: ''; }
.language-switcher > summary:hover,
.language-switcher[open] > summary {
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.10);
}
.language-switcher-icon {
    inline-size: 18px;
    block-size: 18px;
    flex: 0 0 18px;
}
.language-switcher-short { display: none; font-weight: 600; }
.language-switcher-chevron {
    inline-size: 7px;
    block-size: 7px;
    margin-block-start: -3px;
    border-inline-end: 1.5px solid currentColor;
    border-block-end: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.language-switcher[open] {
    z-index: 150;
}
.language-switcher[open] .language-switcher-chevron {
    margin-block-start: 3px;
    transform: rotate(225deg);
}
.language-switcher-menu {
    position: absolute;
    z-index: 120;
    inset-block-start: calc(100% + 10px);
    inset-inline-end: 0;
    inline-size: 164px;
    padding: 7px;
    border: 1px solid var(--color-border, #dfe6e2);
    border-radius: var(--radius-md, 8px);
    background: #fff;
    box-shadow: 0 12px 32px rgba(20,43,29,.16);
}
.language-switcher-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 38px;
    padding: 0 11px;
    border-radius: 5px;
    box-sizing: border-box;
    color: var(--color-text, #26322b);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    text-decoration: none;
}
.language-switcher-menu a:hover,
.language-switcher-menu a:focus-visible { background: var(--color-surface-soft, #f2f6f3); color: var(--color-brand, #1d6537); }
.language-switcher-menu a[aria-current] {
    background: #edf6f0;
    color: var(--color-brand, #1d6537);
    font-weight: 700;
}
.header-active .language-switcher { color: #333; }
.header-active .language-switcher > summary {
    border-color: #d7dfda;
    background: rgba(255,255,255,.84);
}
.header-active .language-switcher > summary:hover,
.header-active .language-switcher[open] > summary {
    border-color: #a8b8ae;
    background: #f6f9f7;
}

/* Compact desktop form around the breakpoint where the full nav is still shown. */
@media (max-width: 1380px) and (min-width: 1201px) {
    .language-switcher-label { display: none; }
    .language-switcher-short { display: inline; }
    .language-switcher > summary { inline-size: 42px; padding-inline: 0; gap: 0; }
    .language-switcher-icon,
    .language-switcher-chevron { display: none; }
}

/* Pad/mobile language navigation lives inside the existing mobile navigation dialog. */
.burger-language {
    display: none;
    margin: 20px 20px max(28px, env(safe-area-inset-bottom));
    padding: 20px 0 0;
    border-top: 1px solid #e1e7e3;
}
.burger-language-title {
    margin: 0 0 12px;
    color: #66726b;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .08em;
}
.burger-language-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}
.burger-language-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-block-size: 44px;
    padding: 8px 10px;
    border: 1px solid #dce4df;
    border-radius: 7px;
    background: #fff;
    color: #344039;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
}
.burger-language-list a:hover,
.burger-language-list a:focus-visible,
.burger-language-list a[aria-current] {
    border-color: var(--color-brand, #1d6537);
    background: #edf6f0;
    color: var(--color-brand, #1d6537);
}
@media (max-width: 1200px) {
    /* 1025–1200 keeps the existing compact/mobile-navigation entry. */
    .language-switcher--header { display: none; }
    .burger-language { display: block; }
}

/*
 * v22: keep language switching directly accessible in the Header on Pad/mobile; menu links are isolated from Header action sizing.
 * The full language menu inside the mobile dialog remains as a secondary entry.
 */
@media (max-width: 1024px) {
    .header .container {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    .header-right {
        min-inline-size: 0;
        margin-inline-start: auto;
    }
    .header-tools {
        min-inline-size: 0;
        flex-wrap: nowrap;
        align-items: center;
    }
    .language-switcher--header {
        display: block;
        margin-inline-start: 0;
    }
    .language-switcher--header > summary {
        min-block-size: 44px;
        padding-inline: 9px;
        gap: 6px;
        border-color: rgba(255,255,255,.34);
        font-size: 13px;
    }
    .header-active .language-switcher--header > summary {
        border-color: #d7dfda;
    }
    .language-switcher-menu {
        inset-inline-start: auto;
        inset-inline-end: 0;
        inline-size: min(208px, calc(100vw - 24px));
        max-inline-size: calc(100vw - 24px);
        max-block-size: min(70vh, 360px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .language-switcher-menu a {
        min-block-size: 44px;
    }
    .navbar {
        margin-inline-start: 2px;
    }
}

/* Phones use a short but still explicit language control in the Header. */
@media (max-width: 640px) {
    .language-switcher--header > summary {
        inline-size: 48px;
        min-inline-size: 48px;
        padding-inline: 0;
        gap: 4px;
    }
    .language-switcher--header .language-switcher-label { display: none; }
    .language-switcher--header .language-switcher-short { display: inline; }
    .language-switcher--header .language-switcher-icon {
        inline-size: 16px;
        block-size: 16px;
        flex-basis: 16px;
    }
    .language-switcher--header .language-switcher-chevron { display: none; }
    .header-tools > :where(a, button) {
        margin-inline-start: 2px;
    }
    .navbar { margin-inline-start: 2px; }
}

/* Ultra-narrow phones: protect the single-row Header without hiding features. */
@media (max-width: 390px) {
    .header .container { padding-inline: 10px; }
    .header-logo svg { height: 18px; }
    .language-switcher--header > summary {
        inline-size: 40px;
        min-inline-size: 40px;
        min-block-size: 40px;
    }
    .language-switcher--header .language-switcher-icon { display: none; }
    .header-search,
    .header-user,
    .header-tools > :where(a, button) {
        min-inline-size: 40px;
        inline-size: 40px;
        min-block-size: 40px;
        block-size: 40px;
    }
    .navbar {
        flex-basis: 40px;
        inline-size: 40px;
        min-inline-size: 40px;
        block-size: 40px;
        min-block-size: 40px;
        gap: 5px;
    }
    .navbar span { inline-size: 24px; }
}

@media (max-width: 340px) {
    .header .container { padding-inline: 8px; }
    .header-logo svg { height: 17px; }
    .language-switcher--header > summary,
    .header-search,
    .header-user,
    .header-tools > :where(a, button),
    .navbar {
        inline-size: 38px;
        min-inline-size: 38px;
        block-size: 40px;
        min-block-size: 40px;
    }
}

@media (max-width: 420px) {
    .burger-language { margin-inline: 15px; }
    .burger-language-list { grid-template-columns: 1fr 1fr; gap: 7px; }
    .burger-language-list a { font-size: 13px; }
}
@media (forced-colors: active) {
    .language-switcher > summary,
    .language-switcher-menu,
    .burger-language-list a { border: 1px solid ButtonText; background: Canvas; color: CanvasText; box-shadow: none; }
    .language-switcher-menu a[aria-current],
    .burger-language-list a[aria-current] { outline: 2px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) {
    .language-switcher > summary,
    .language-switcher-chevron { transition: none; }
}

/* ==========================================================================
   PC / Pad / Mobile screenshot audit refinements (v19)
   - 768px-class tablets keep useful multi-column density.
   - Phones remain single-column for readability and touch targets.
   ========================================================================== */
@media (min-width: 641px) and (max-width: 900px) {
    .product-boxs { gap: 22px; }
    .page-breadcrumb { padding-block: 18px; }
    .product-right .product-aside-title h3 { font-size: 16px; }
    .product-right .product-tags { gap: 6px; margin-top: 14px; }
    .product-right .product-tags a { padding: 4px 8px; font-size: 12px; }
    .product-sendarticle ul li { min-height: 46px; padding-block: 11px; }
    .site-footer .footer-nav-item .footer-heading { margin-bottom: 13px; padding-bottom: 9px; font-size: 15px; }
    .site-footer .footer-nav-item ul li { margin-bottom: 7px; }
    .site-footer .footer-nav-item ul li a { font-size: 13px; }
}
