﻿/* seemb14 layout shell – header/footer/nav from seemb9 app.css */
html {
    height: 100%;
    /* Keep the vertical scrollbar gutter reserved so the viewport width
       stays constant when navigating between short and tall pages.
       Without this, the page jitters horizontally whenever a page's
       content crosses the "needs scrollbar / doesn't need scrollbar"
       threshold (e.g. switching from Brand → Classification). */
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    min-height: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body > .app {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    width: 100%;
    margin-top: 0 !important;
    padding-top: 0 !important;
    /* Collapse anonymous flex items from BOM / whitespace between includes */
    font-size: 0;
    line-height: 0;
}

body > .app > * {
    font-size: 14px;
    line-height: normal;
}

body > .app > .layout-container {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}

body > .app > .layout-container > #app-footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
    width: 100%;
}

/* Siblings of the footer inside .layout-container should not grab
   the leftover space from the footer. The main content area is
   usually wrapped in <main> / <section class="app-main"> / page
   wrappers; let them shrink naturally but not push the footer up. */
body > .app > .layout-container > main,
body > .app > .layout-container > section,
body > .app > .layout-container > #index {
    flex: 0 0 auto;
    width: 100%;
}

/* =============================================================
   Footer `.up` – compact height.
   Reduces the tall 60px top/bottom padding + large line-height that
   was pushing the .up block to ~415px. Targets spacing only, keeps
   colors / backgrounds / layout unchanged. Nothing is deleted.
   ============================================================= */
#app-footer .up {
    padding: 28px 0 22px !important;
}

#app-footer .up .py-\[10px\] {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* Column titles – tighter spacing + unified case/font.
   Matches the `#index ._title` rules on the homepage so the
   footer column heads look typographically consistent with
   section titles (all UPPERCASE, same font family, same tracking). */
#app-footer .up .left .title,
#app-footer .up .left .title a {
    font-family: inter-tight, "Inter", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 22px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    margin-bottom: 8px !important;
    color: #fff !important;
}

/* Link / text rows – compact line-height */
#app-footer .up .left .children .name,
#app-footer .up .left .children a.name {
    line-height: 22px !important;
    font-size: 13px !important;
}

/* QR code – smaller so the column doesn't dominate the height */
#app-footer #qrcode {
    padding: 6px !important;
}

#app-footer #qrcode img {
    width: 99px !important;
    height: 99px !important;
}

/* Subscribe input – shrink the tall 44px box + add visible border
   and background so the field stands out on the solid theme-color
   footer. Frosted-white style keeps the themed look intact without
   creating a harsh white block. */
#app-footer .input-box {
    position: relative;
    height: 38px !important;
    margin-top: 6px;
    background-color: rgba(255, 255, 255, .14) !important;
    border: 1px solid rgba(255, 255, 255, .38) !important;
    border-radius: 6px !important;
    overflow: hidden;
}

#app-footer .footer-subscribe-msg {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .92);
}

#app-footer .footer-subscribe-msg.is-success {
    color: #b8f5d0;
}

#app-footer .footer-subscribe-msg.is-error {
    color: #ffd0d0;
}

#app-footer .subscribeForm .input-box input {
    width: 100%;
    height: 100%;
    padding: 0 44px 0 12px;
    border: 0;
    outline: none;
    background-color: transparent !important;
    color: #fff !important;
}

#app-footer .input-box input::-moz-placeholder {
    color: rgba(255, 255, 255, .7) !important;
}

#app-footer .input-box input::placeholder {
    color: rgba(255, 255, 255, .7) !important;
}

#app-footer .input-box button,
#app-footer .input-box i {
    width: 38px !important;
    background-color: rgba(255, 255, 255, .22) !important;
    border: 0 !important;
    cursor: pointer;
}

#app-footer .input-box button {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    padding: 0;
}

#app-footer .input-box button:hover,
#app-footer .input-box i:hover {
    background-color: rgba(255, 255, 255, .32) !important;
}

#app-footer .input-box button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#app-footer .input-box button i {
    position: static;
    width: auto !important;
    background-color: transparent !important;
    color: #fff !important;
    font-size: 16px;
}

/* Links logos row below subscribe – tighter margins */
#app-footer .app-footer-links {
    margin-top: 10px !important;
}

#app-footer .app-footer-links.friendly {
    margin-top: 12px !important;
}

#app-footer .friendly .image-box {
    display: block;
    height: 60px;
    margin: 0 0 10px;
    overflow: hidden;
    width: 175px;
}

#app-footer .friendly .image-box img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

#app-footer .friendly .text.name {
    color: #fff;
    display: inline-block;
    margin: 0 12px 8px 0;
}

#app-footer .app-footer-links .image-box {
    margin-bottom: 6px !important;
}

#app-footer .down .footer-icp,
#app-footer .down .footer-tech-support {
    display: inline-block;
    margin-left: 10px;
}

#app-footer .down .footer-friend-links {
    display: inline-block;
    margin-left: 10px;
}

#app-footer .down .footer-friend-links a {
    margin-left: 6px;
}

#app-footer .down .footer-friend-links a:first-of-type {
    margin-left: 4px;
}

/* Column vertical gap on wrap */
#app-footer .up .left > .item {
    margin-bottom: 8px;
}

/* Responsive: keep mobile from ballooning height too */
@media (max-width: 991.98px) {
    #app-footer .up {
        padding: 22px 0 18px !important;
    }

    #app-footer .up .left > .item {
        margin-bottom: 14px;
    }
}

/* =============================================================
   Footer `.down` – transparent + merged into bottom of `.up`.
   - Kill any background-color / border so there is no visible
     strip or divider line under the copyright row.
   - Pull `.down` up flush against `.up` and shrink its own padding
     so the copyright line reads as the last row of the footer
     rather than a separate bar beneath it.
   - Text: light (rgba-white) so it stays legible on top of the
     solid theme color applied to `.up` / `#app-footer` below.
   ============================================================= */
#app-footer .down,
#app-footer .down:hover,
#app-footer .down:hover .iconfont,
#app-footer .down:hover a,
#app-footer .down a,
#app-footer .down a:hover {
    background-color: transparent !important;
    color: rgba(255, 255, 255, .55) !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    letter-spacing: .2px;
}

/* Copyright text strip – slightly smaller, subdued typography */
#app-footer .down .left {
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    letter-spacing: .2px;
}

#app-footer .down {
    padding: 10px 0 14px !important;
    margin-top: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    /* Subtle divider above the copyright row – gives a light visual
       break between footer columns (`.up`) and the copyright line
       without reintroducing a heavy bar. Uses translucent white so
       it auto-adapts to whatever primary theme color `.up` carries. */
    border-top: 1px solid rgba(255, 255, 255, .14) !important;
}

#app-footer .down .py-\[10px\] {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    width: 100%;
}

/* Keep `.up` bottom padding tight but leave small breathing room
   so the copyright line reads as the last row of the footer. */
#app-footer .up {
    padding-bottom: 14px !important;
}

/* =============================================================
   Footer background – remove the decorative `d1.png` pattern
   inherited from earlier in the file and switch to a solid
   color driven by the CMS "网站主题" (site theme) setting.

   How it tracks the backend:
     master.blade.php injects `$config['theme']` into JS and calls
     `changeThemeColor(key, value)` which sets the CSS variable
     `--{key}-color` on `:root`.  Using `var(--primary-color)` here
     means whenever the admin saves a new primary color, the footer
     background updates automatically on next page load.

   Both `#app-footer` and `.up` are painted with the same color so
   the transparent `.down` below still sits on the themed block.
   ============================================================= */
#app-footer {
    background: var(--primary-color, #4066b8) !important;
}

#app-footer .up {
    background-color: var(--primary-color, #4066b8) !important;
}

/* =============================================================
   Top navigation menu – tighter item spacing + right-aligned.
   Original rule (earlier in file) pinned `.navbar-nav` to
   `min-width: 860px` and the markup uses `justify-between`
   so items stretched across the full width with huge gaps.
   Shrink to content width, switch to `gap` for consistent item
   spacing, and push the whole group to the right.
   ============================================================= */
@media (min-width: 992px) {
    #app-header .navbar-nav {
        min-width: 0 !important;
        width: auto !important;
        justify-content: flex-end !important;
        gap: 24px;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    #app-header .navbar-nav > li {
        flex: 0 0 auto !important;
    }
}

/* =============================================================
   Header utility controls – search + language.
   Desktop (≥992px): icon-only search button that expands into a
   slide-out panel anchored under the header, plus a pill-shaped
   language switcher (globe icon + short code + caret) backed by a
   hidden native <select> for legacy redirect logic.
   Mobile (<992px): desktop controls are hidden; the existing
   mobile search toggler and the legacy inline form handle search,
   and the language pill still works inside the drawer.
   ============================================================= */

#app-header .header-utility {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
}

#app-header .header-icon-btn,
#app-header .header-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, .12);
    background: #fff;
    color: #374151;
    cursor: pointer;
    padding: 0;
    transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
    font-family: inherit;
}

#app-header .header-icon-btn {
    width: 36px;
}

#app-header .header-icon-btn .iconfont {
    font-size: 16px;
    line-height: 1;
}

#app-header .header-icon-btn:hover,
#app-header .header-lang-btn:hover {
    border-color: var(--primary-color, #4066b8);
    color: var(--primary-color, #4066b8);
    background: #fff;
}

#app-header .header-icon-btn[aria-expanded="true"],
#app-header .header-lang-btn[aria-expanded="true"] {
    border-color: var(--primary-color, #4066b8);
    color: var(--primary-color, #4066b8);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

/* ---- Search panel (desktop) ---- */
#app-header .header-search {
    position: relative;
}

#app-header .header-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: flex;
    align-items: center;
    width: 340px;
    height: 44px;
    padding: 0 6px 0 14px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 1000;
}

#app-header .header-search.open .header-search-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#app-header .header-search-panel-icon {
    color: #9ca3af;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}

#app-header .header-search-panel .search_input {
    flex: 1;
    border: 0 !important;
    outline: none;
    background: transparent;
    height: 100%;
    font-size: 14px;
    color: #111827;
    padding: 0;
    min-width: 0;
    width: auto;
}

#app-header .header-search-panel .search_input::placeholder {
    color: #9ca3af;
}

#app-header .header-search-panel-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: var(--primary-color, #4066b8);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .18s ease, transform .15s ease;
}

#app-header .header-search-panel-submit:hover {
    background: var(--primary-color-hover, var(--primary-color, #4066b8));
    transform: translateX(1px);
}

#app-header .header-search-panel-submit svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* ---- Language pill ---- */
#app-header .header-lang {
    position: relative;
}

#app-header .header-lang-btn {
    padding: 0 10px 0 10px;
    gap: 6px;
    min-width: 72px;
}

#app-header .header-lang-btn .iconfont-globe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: currentColor;
}

#app-header .header-lang-btn .iconfont-globe svg {
    width: 16px;
    height: 16px;
    display: block;
}

#app-header .header-lang-code {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: inherit;
    line-height: 1;
}

#app-header .header-lang-caret {
    margin-left: 2px;
    opacity: .7;
    transition: transform .18s ease;
}

#app-header .header-lang-btn[aria-expanded="true"] .header-lang-caret {
    transform: rotate(180deg);
    opacity: 1;
}

#app-header .header-lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 1000;
}

#app-header .header-lang.open .header-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#app-header .header-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 13.5px;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

#app-header .header-lang-item + .header-lang-item {
    margin-top: 2px;
}

#app-header .header-lang-item:hover {
    background: rgba(64, 102, 184, .08);
    color: var(--primary-color, #4066b8);
}

#app-header .header-lang-item.active {
    background: rgba(64, 102, 184, .1);
    color: var(--primary-color, #4066b8);
    font-weight: 600;
}

#app-header .header-lang-item-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 22px;
    padding: 0 6px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
}

#app-header .header-lang-item.active .header-lang-item-code,
#app-header .header-lang-item:hover .header-lang-item-code {
    background: var(--primary-color, #4066b8);
    color: #fff;
}

#app-header .header-lang-item-name {
    flex: 1;
    line-height: 1.2;
}

/* ---- Mobile fallback (<992px) ---- */
@media (max-width: 991.98px) {
    #app-header .header-search {
        display: none !important;
    }

    /* The drawer stacks controls vertically, so give them full-width feel. */
    #app-header .header-utility {
        flex-wrap: wrap;
        gap: 10px;
        margin-left: 0;
        width: 100%;
    }

    #app-header .header-lang-btn {
        background: var(--primary-color, #4066b8);
        color: #fff;
        border-color: transparent;
    }

    #app-header .header-lang-btn:hover,
    #app-header .header-lang-btn[aria-expanded="true"] {
        background: var(--primary-color-hover, var(--primary-color, #4066b8));
        color: #fff;
        border-color: transparent;
    }

    #app-header .header-lang-menu {
        right: auto;
        left: 0;
    }
}

/* =============================================================
   Breadcrumb (app-breadcrumb) – unified across every menu page.
   Source: resources/views/components/app-nav.blade.php. Labels
   come from translations and category names, so casing varies
   ("home page", "real-time info", "Products"). We normalize with
   `text-transform: capitalize` + inter-tight + consistent size.
   ============================================================= */
.app-breadcrumb {
    position: relative;
    z-index: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    font-family: inter-tight, "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: .02em;
    color: #6b7280;
}

.app-breadcrumb::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #f5f5f5;
    border-bottom: 1px solid #ebebeb;
    pointer-events: none;
}

.app-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 24px;
    gap: 0 2px;
}

.app-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.app-breadcrumb-text {
    display: inline-block;
    padding: 2px 0;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: capitalize;
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
    transition: color .18s ease;
}

.app-breadcrumb-link:hover {
    color: var(--primary-color, #4066b8);
}

.app-breadcrumb-item.is-current .app-breadcrumb-text {
    color: #111827;
    font-weight: 600;
}

.app-breadcrumb-sep {
    display: inline-block;
    margin: 0 8px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
}

.sp-breadcrumb {
    margin-bottom: 16px;
}

@media (max-width: 767.98px) {
    .app-breadcrumb {
        padding-top: 6px;
        padding-bottom: 6px;
        font-size: 12.5px;
    }

    .app-breadcrumb-text {
        max-width: 60vw;
    }

    .app-breadcrumb-sep {
        margin: 0 6px;
    }
}

/* =============================================================
   Footer typography polish (layout-safe)

   Only touches typography-only properties (font-family / font-size /
   font-weight / letter-spacing / line-height / text-rendering). No
   widths / heights / paddings / margins / colors / backgrounds are
   changed, so every column keeps its current position & box size.

   Font stack uses the already-loaded `inter-tight` webfont, falls
   back to the SF/Segoe/Roboto system stack for Latin text, then to
   PingFang SC / Microsoft YaHei for CJK so Chinese glyphs render
   consistently next to the Latin ones instead of the browser default.
   ============================================================= */
#app-footer {
    font-family: inter-tight, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "微软雅黑", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "tnum" on, "lnum" on;
}

/* Column titles: Products / About / WeChat / Contact Us */
#app-footer .up .left .title,
#app-footer .up .left .title a {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    line-height: 1.5 !important;
}

/* Link rows under each column title */
#app-footer .up .left .children .name,
#app-footer .up .left .children a,
#app-footer .up .left .children a.name {
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: .01em !important;
    line-height: 22px !important;
}

/* The small "phone:" / "email:" labels that precede the actual value */
#app-footer .up .left .children .name span {
    font-weight: 500 !important;
    letter-spacing: .02em !important;
}

/* Subscribe input + placeholder – keep size, unify font & tracking */
#app-footer .input-box input,
#app-footer .input-box input::placeholder,
#app-footer .input-box input::-moz-placeholder {
    font-family: inherit !important;
    font-size: 13px !important;
    letter-spacing: .02em !important;
}

/* Copyright strip at the bottom */
#app-footer .down,
#app-footer .down .left,
#app-footer .down a {
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    letter-spacing: .02em !important;
    line-height: 1.6 !important;
}

/* Slightly emphasise the ICP / external links inside the copyright
   line so they read as interactive without changing their color. */
#app-footer .down a {
    font-weight: 500 !important;
}

#app-footer .down .image-box {
    align-items: center;
    gap: 8px;
}

#app-footer .down .image-box img {
    display: block;
    height: 22px;
    width: auto;
}

/* Mobile: down-size by one step so text doesn't wrap awkwardly in the
   narrower copyright strip. Still purely a typography adjustment. */
@media (max-width: 767.98px) {
    #app-footer .up .left .title,
    #app-footer .up .left .title a {
        font-size: 14px !important;
    }

    #app-footer .up .left .children .name,
    #app-footer .up .left .children a.name {
        font-size: 12.5px !important;
        line-height: 20px !important;
    }

    #app-footer .down,
    #app-footer .down .left,
    #app-footer .down a {
        font-size: 12px !important;
    }
}

/* =============================================================
   Product LIST pages (#products) — shrink each product thumbnail
   by 5% visually without touching the grid geometry.
   Scope: only the list-style structure
       .phoneproducts .products-image .content > .item > .image-box > img
   which is rendered by productList / search / brandDetail blades.
   The homepage product grid (.index-products .content > .item)
   is intentionally NOT matched, so nothing else moves.
   We scale the <img> in place; the .image-box keeps the same
   outer box (same position / same reserved slot in the row), so
   layout and neighbour positions are preserved.
   ============================================================= */
.phoneproducts .products-image .content > .item > .image-box > img,
#products .phoneproducts .products-image .content > .item > .image-box > img {
    transform: scale(.95) !important;
    transform-origin: center center !important;
}

/* =============================================================
   Header – navbar vertical breathing room on the inner row.
   ============================================================= */
#app-header .navbar {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

@media (max-width: 991.98px) {
    #app-header .navbar {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

body > .app > #app-header {
    flex-shrink: 0;
}

/* =============================================================
   Mobile drawer navigation (seemb9) – slide-in panel from right
   with backdrop, integrated search, and language list footer.
   Desktop layout uses .desktop-nav-shell unchanged.
   ============================================================= */
#app-header .desktop-nav-shell {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

@media (min-width: 992px) {
    #app-header .menu-list {
        display: flex !important;
        flex: 1;
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
    }
}

#app-header .mobile-drawer-backdrop,
#app-header .mobile-drawer-inner {
    display: none;
}

@media (max-width: 991.98px) {
    #app-header .desktop-nav-shell {
        display: none !important;
    }

    #app-header .menu-list {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: block !important;
        flex: none !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        transform: none !important;
        pointer-events: none;
        overflow: hidden;
    }

    #app-header .menu-list.is-open {
        pointer-events: auto;
    }

    #app-header .mobile-drawer-backdrop {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.48);
        opacity: 0;
        transition: opacity 0.28s ease;
    }

    #app-header .menu-list.is-open .mobile-drawer-backdrop {
        opacity: 1;
    }

    #app-header .mobile-drawer-inner {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        max-width: 100%;
        height: 100%;
        background: #fff;
        box-shadow: -8px 0 32px rgba(15, 23, 42, 0.14);
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    #app-header .menu-list.is-open .mobile-drawer-inner {
        transform: translateX(0);
    }

    #app-header .mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-shrink: 0;
        min-height: 56px;
        padding: 0 16px;
        background: linear-gradient(135deg, var(--primary-color, #4066b8) 0%, #5a7ec8 100%);
        color: #fff;
    }

    #app-header .mobile-drawer-title {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    #app-header .mobile-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        cursor: pointer;
        transition: background 0.18s ease;
    }

    #app-header .mobile-drawer-close:hover {
        background: rgba(255, 255, 255, 0.22);
    }

    #app-header .mobile-drawer-close .iconfont {
        font-size: 16px;
        line-height: 1;
    }

    #app-header .mobile-drawer-search {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        margin: 14px 16px 8px;
        padding: 0 6px 0 12px;
        height: 42px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
    }

    #app-header .mobile-drawer-search__icon {
        flex-shrink: 0;
        font-size: 16px;
        color: #9ca3af;
    }

    #app-header .mobile-drawer-search__input {
        flex: 1;
        min-width: 0;
        height: 100%;
        border: 0 !important;
        outline: none;
        background: transparent;
        font-size: 14px;
        color: #111827;
        padding: 0;
    }

    #app-header .mobile-drawer-search__input::placeholder {
        color: #9ca3af;
    }

    #app-header .mobile-drawer-search__submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        border: 0;
        border-radius: 50%;
        background: var(--primary-color, #4066b8);
        color: #fff;
        cursor: pointer;
    }

    #app-header .mobile-drawer-nav {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 4px 0 12px;
        -webkit-overflow-scrolling: touch;
    }

    #app-header .mobile-drawer-menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #app-header .mobile-drawer-menu > .nav-item {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        border-bottom: 1px solid #f1f5f9;
    }

    #app-header .mobile-drawer-menu > .nav-item:last-child {
        border-bottom: none;
    }

    #app-header .mobile-drawer-menu .nav-link {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 18px !important;
        font-size: 15px !important;
        font-weight: 500;
        color: #1f2937 !important;
        text-align: left !important;
        text-decoration: none;
        transition: background 0.18s ease, color 0.18s ease;
    }

    #app-header .mobile-drawer-menu .nav-link:hover,
    #app-header .mobile-drawer-menu .nav-link:focus {
        background: rgba(64, 102, 184, 0.06);
        color: var(--primary-color, #4066b8) !important;
    }

    #app-header .mobile-drawer-menu .nav-link::before {
        display: none !important;
    }

    #app-header .mobile-drawer-foot {
        flex-shrink: 0;
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        background: #f8fafc;
        border-top: 1px solid #e5e7eb;
    }

    #app-header .mobile-drawer-lang__label {
        margin-bottom: 10px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #64748b;
    }

    #app-header .mobile-drawer-lang__list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #app-header .mobile-drawer-lang__item {
        margin: 0;
        padding: 0;
    }

    #app-header .mobile-drawer-lang__btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 36px;
        padding: 6px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #fff;
        color: #374151;
        font-family: inherit;
        font-size: 13px;
        cursor: pointer;
        transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    }

    #app-header .mobile-drawer-lang__item.is-active .mobile-drawer-lang__btn,
    #app-header .mobile-drawer-lang__btn:hover {
        border-color: var(--primary-color, #4066b8);
        background: rgba(64, 102, 184, 0.08);
        color: var(--primary-color, #4066b8);
    }

    #app-header .mobile-drawer-lang__code {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 28px;
        height: 22px;
        padding: 0 6px;
        border-radius: 4px;
        background: #f3f4f6;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    #app-header .mobile-drawer-lang__item.is-active .mobile-drawer-lang__code {
        background: var(--primary-color, #4066b8);
        color: #fff;
    }

    #app-header .mobile-drawer-lang__name {
        font-weight: 500;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* =============================================================
   seemb14 header (.app-header) – flush currency/lang bar to top
   app.css sets `header { display:flex; align-items:center; padding:10px }`
   which vertically centres the 40px .top-wrap against the taller
   .header-content row (~42px gap from viewport top). Stack sections
   vertically and remove outer padding instead.
   ============================================================= */
header.app-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

header.app-header .top-wrap {
    width: 100%;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
}

header.app-header .top-wrap > .container-fluid {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

header.app-header .header-content,
header.app-header .header-mobile {
    width: 100%;
    flex-shrink: 0;
}

/* Compact main nav row – tuned vertical padding / logo / nav links */
header.app-header .header-content {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    background-color: #fff;
}

/* Scroll-fixed nav – toggled by site_seemb14.js (.fixed + .nav-is-fixed) */
header.app-header .header-content.fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom-color: transparent !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    background-color: #fff;
}

header.app-header.nav-is-fixed {
    padding-bottom: var(--seemb14-nav-h, 75px);
}

@media (max-width: 991.98px) {
    header.app-header .header-mobile.fixed {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background-color: #fff;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    }

    header.app-header.nav-is-fixed-mobile {
        padding-bottom: var(--seemb14-mobile-nav-h, 52px);
    }
}

header.app-header .header-content .logo img {
    max-height: 58px !important;
}

header.app-header .header-content .menu-wrap > .navbar-nav > .nav-item > .nav-link {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
}

header.app-header .header-content .right-btn .nav-link {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
}

body > .app > header.app-header {
    flex-shrink: 0;
}

/* 移动端抽屉关闭按钮：PC 端（≥992px）不显示，仅移动端抽屉内出现 */
@media (min-width: 992px) {
    header.app-header .header-content .menu-wrap > .menu-close {
        display: none !important;
    }
}

/* 顶栏登录/注册 · 退出登录 入口：图标 + 文案 */
header.app-header .right-btn .auth-entry-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

header.app-header .right-btn .auth-entry-link__text {
    font-size: 13px;
    line-height: 1;
}

/* 顶栏已登录：脱敏邮箱 + 悬停下拉 */
header.app-header .right-btn .user-menu {
    position: relative;
}

header.app-header .right-btn .user-menu__panel {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 1000;
}

header.app-header .right-btn .user-menu:hover .user-menu__panel,
header.app-header .right-btn .user-menu:focus-within .user-menu__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

header.app-header .right-btn .user-menu__email {
    padding: 4px 16px 10px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
}

header.app-header .right-btn .user-menu__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

header.app-header .right-btn .user-menu__item:hover {
    background: #f5f5f5;
    color: var(--primary-color, #4066b8);
}

header.app-header .right-btn .user-menu__item .iconfont {
    font-size: 15px;
}

header.app-header .right-btn .user-menu__item--logout {
    color: #e8502a;
}

header.app-header .right-btn .user-menu__item--logout:hover {
    color: #e8502a;
}
