.header {
    background-color:  #00000033;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 0 120px;
    height: 100%;
}

.header .logo {
    display: flex;
    align-items: center;
    margin-top: 0;
}

.header .logo img {
    height: 26px;
    /* height: 32px; */
    width: auto;
    display: block;
}

.header .logo .logo-dark {
    display: none;
}

.header .nav-links {
    display: flex;
    align-items: stretch;
    margin-top: 0;
    height: 100%;
}

.header .nav-links > a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    margin-top: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.header .nav-links a:hover {
    color: #ffffff;
}

.header .header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header .search-icon {
    color: #e0e0e0;
    display: flex;
    align-items: center;
    margin-top: 0;
    transition: color 0.3s;
}

.header .search-icon:hover {
    color: #ffffff;
}

.header .btn-purchase {
    background-color: var(--g-color-default);
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 16px;
    border-radius: 4px;
    margin-top: 0;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.header .btn-purchase:hover {
    background-color: var(--g-color-default);
}

.lang-switch {
    position: relative;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    white-space: nowrap;
}

.lang-current:hover {
    color: #ffffff;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0px 0;
}

.lang-switch:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 12px 12px;
    margin: 0;
    color: #333 !important;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
    text-align: center;
}

.lang-dropdown a:hover {
    background-color: #f5f5f5;
    color: var(--g-color-default) !important;
}

/* Header Hover State */
.header:has(.has-mega-menu:hover) {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header:has(.has-mega-menu:hover) .logo .logo-light {
    display: none;
}

.header:has(.has-mega-menu:hover) .logo .logo-dark {
    display: block;
}

.header:has(.has-mega-menu:hover) .nav-links > a,
.header:has(.has-mega-menu:hover) .nav-links > .nav-item > a {
    color: #333333;
}

.header:has(.has-mega-menu:hover) .nav-links > a:hover,
.header:has(.has-mega-menu:hover) .nav-links > .nav-item > a:hover {
    color: var(--g-color-default);
}

.header:has(.has-mega-menu:hover) .search-icon,
.header:has(.has-mega-menu:hover) .lang-switch {
    color: #333333;
}

.header:has(.has-mega-menu:hover) .search-icon:hover,
.header:has(.has-mega-menu:hover) .lang-current:hover {
    color: var(--g-color-default);
}

/* Mega Menu */
.nav-item.has-mega-menu {
    position: static;
    height: 100%;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.nav-item.has-mega-menu > a {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
    cursor: pointer;
    margin: 0;
    padding: 0 16px;
}

.nav-item.has-mega-menu > a:hover {
    color: #ffffff;
}

.nav-item.has-mega-menu:hover > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--g-color-default);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 90;
    border-top: 1px solid #f0f0f0;
}

.nav-item.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* mega-menu: 限制下拉最大高度为当前视口高度(减去顶栏 64px),sidebar 和 content 内容超出时各自出现滚动条 */
.downloads-mega-menu,
.product-mega-menu {
    max-height: calc(100vh - 64px);
    overflow: hidden;
}

.downloads-mega-menu .mega-menu-inner,
.product-mega-menu .mega-menu-inner {
    max-height: inherit;
}

/* flex 子项需 min-height:0 + box-sizing:border-box 才能正常触发溢出滚动 */
.downloads-mega-menu .mega-sidebar,
.product-mega-menu .mega-sidebar,
.downloads-mega-menu .mega-content,
.product-mega-menu .mega-content {
    max-height: calc(100vh - 64px - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    box-sizing: border-box;
}

/* 产品中心 / 资料下载 滚动条样式:深青色滑块 8px 宽,带 1px 白色边框,与 product.css 保持一致 */
.downloads-mega-menu .mega-sidebar::-webkit-scrollbar,
.downloads-mega-menu .mega-content::-webkit-scrollbar,
.product-mega-menu .mega-sidebar::-webkit-scrollbar,
.product-mega-menu .mega-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.downloads-mega-menu .mega-sidebar::-webkit-scrollbar-track,
.downloads-mega-menu .mega-content::-webkit-scrollbar-track,
.product-mega-menu .mega-sidebar::-webkit-scrollbar-track,
.product-mega-menu .mega-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.downloads-mega-menu .mega-sidebar::-webkit-scrollbar-thumb,
.downloads-mega-menu .mega-content::-webkit-scrollbar-thumb,
.product-mega-menu .mega-sidebar::-webkit-scrollbar-thumb,
.product-mega-menu .mega-content::-webkit-scrollbar-thumb {
    background: rgba(20, 50, 60, 0.55);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.25s ease;
}

.downloads-mega-menu .mega-sidebar::-webkit-scrollbar-thumb:hover,
.downloads-mega-menu .mega-content::-webkit-scrollbar-thumb:hover,
.product-mega-menu .mega-sidebar::-webkit-scrollbar-thumb:hover,
.product-mega-menu .mega-content::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 50, 60, 0.85);
}

/* Firefox */
.downloads-mega-menu .mega-sidebar,
.downloads-mega-menu .mega-content,
.product-mega-menu .mega-sidebar,
.product-mega-menu .mega-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(20, 50, 60, 0.55) transparent;
}

/* 解决方案下拉:最大高度为视口高度(减去顶栏 64px),内容超出时网格区域出现滚动条 */
.solutions-menu {
    max-height: calc(100vh - 64px);
    overflow: hidden;
}

.solutions-menu .mega-menu-inner.solutions-inner {
    max-height: inherit;
}

.solutions-menu .solutions-grid {
    max-height: calc(100vh - 64px - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mega-menu-inner {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    min-height: 400px;
}

.mega-sidebar {
    width: 250px;
    border-right: 1px solid #f0f0f0;
    padding-right: 20px;
}

.mega-category {
    margin-bottom: 20px;
}

.mega-category-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

.mega-category-list {
    display: flex;
    flex-direction: column;
}

.mega-category-list a {
    font-size: 13px !important;
    color: #666 !important;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 0 !important;
}

.mega-category-list a:hover,
.mega-category-list a.active {
    background-color: #f5f5f5;
    color: #333 !important;
    font-weight: bold;
}

.mega-category-list a .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: inline-block;
    object-fit: contain;
}

.mega-content {
    flex: 1;
    padding-left: 40px;
    display: flex;
    gap: 30px;
}

/* Product mega menu: switch products by sub-series */
.product-mega-menu .product-group {
    display: none;
    gap: 30px;
    flex-wrap: wrap;
}

.product-mega-menu .product-group.active {
    display: flex;
}

/* Downloads mega menu: 完全复用 .mega-category / .mega-category-title / .mega-category-list a
   的通用样式,仅需额外控制右侧 downloads-group 的显隐(子项粗细/颜色/缩进等与产品菜单保持一致) */
.downloads-mega-menu .downloads-group {
    display: none;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.downloads-mega-menu .downloads-group.active {
    display: flex;
}

.product-card {
    width: 200px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: auto;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.product-desc {
    font-size: 12px;
    color: #888;
}

/* 产品中心 / 下载中心:产品卡片下的产品名和型号居中 */
.product-mega-menu .product-card .product-title,
.product-mega-menu .product-card .product-desc,
.downloads-mega-menu .product-card .product-title,
.downloads-mega-menu .product-card .product-desc,
.volume-card .product-title {
    text-align: center;
}

/* Product mega menu: 产品中心总标题(可点击) */
.mega-category--header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ececec;
}

.mega-category-title--header {
    /* 与一级产品系列 mega-category-title 同款文本样式,加上 a 标签可点击特性;
       去掉 padding-left / border-left 以与下方的 .mega-category-title 视觉左对齐 */
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    padding: 6px 8px 6px 10px;
    margin-bottom: 0;
    border-radius: 4px;
    border-left: 0;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.mega-category-title--header:hover {
    background-color: #f5f5f5;
    color: var(--g-color-default);
}

.mega-category-title--header.active {
    background-color: #f0f6ff;
    color: var(--g-color-default);
    box-shadow: inset 3px 0 0 var(--g-color-default);
}

/* Product mega menu: 总册详情面板(总册 1 / 总册 2) - 由 title 触发同时展示两张卡 */

/* 右侧 volume 详情面板:与 product-group 一起受 .active 控制 */
.product-mega-menu .volume-detail,
.downloads-mega-menu .volume-detail {
    display: none;
    width: 100%;
}

.product-mega-menu .volume-detail.active,
.downloads-mega-menu .volume-detail.active {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

/* 总册卡片:与 .product-card 视觉一致(共用 .product-title / .product-desc 文本样式) */
.volume-card {
    width: 200px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
    cursor: pointer;
}

.volume-card:hover {
    transform: translateY(-5px);
}

.volume-card img {
    /* 与 .product-card img 完全一致:宽度撑满,高度按原图比例,四周灰底 */
    width: 100%;
    height: auto;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 4px;
    display: block;
}

/* 以下样式直接复用全局 .product-title / .product-desc,确保总册卡片与产品卡完全一致
   - .product-title: 14px / bold / #333 / margin-bottom: 5px
   - .product-desc:  12px / #888
*/

/* Solutions Mega Menu */
.mega-menu-inner.solutions-inner {
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    min-height: auto;
    padding: 30px 40px;
    min-width: 1200px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.solution-card {
    width: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

.solution-card img {
    width: 100%;
    height: auto;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* 解决方案 - 行业卡片图片:固定 800:600 (4:3) 等比,防止不同尺寸图撑变形 */
.solution-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 4px;
}

.solution-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
    background-color: #f9f9f9;
}

.solution-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* Simple Dropdown Menu */
.nav-item.has-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.nav-item.has-dropdown > a {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
    cursor: pointer;
    margin: 0;
    padding: 0 16px;
}

.nav-item.has-dropdown > a:hover {
    color: #ffffff;
}

.nav-item.has-dropdown:hover > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--g-color-default);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    color: #333333 !important;
    padding: 10px 20px !important;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    text-align: center;
    margin: 0 !important;
    height: auto !important;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--g-color-default) !important;
}

/* ============= 移动端菜单按钮（汉堡） ============= */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}
.mobile-menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============= 移动端遮罩 ============= */
.mobile-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1099;
}
.mobile-mask.show {
    opacity: 1;
    visibility: visible;
}

/* ============= 移动端抽屉 ============= */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background-color: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    display: none;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}
.mobile-drawer.open {
    transform: translateX(0);
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.mobile-drawer-logo img {
    height: 24px;
    width: auto;
    display: block;
}
.mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    padding: 0 4px;
}
.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}
.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    flex: 1;
}
.mobile-nav-item {
    border-bottom: 1px solid #f5f5f5;
}
.mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}
.mobile-nav-row .mobile-nav-title {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.mobile-nav-toggle {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: transform 0.3s;
}
.mobile-nav-toggle.open {
    transform: rotate(180deg);
}
.mobile-sub {
    display: none;
    background-color: #f8f8f8;
    padding: 4px 0 8px 0;
}
.mobile-sub.open {
    display: block;
}
.mobile-sub-block {
    padding: 6px 0;
}
.mobile-sub-title {
    padding: 8px 20px 4px;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
}
.mobile-sub-block > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-sub-block > ul > li {
    border-top: 1px solid #ececec;
}
.mobile-sub-block > ul > li:first-child {
    border-top: none;
}
.mobile-sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 10px 32px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.mobile-sub-toggle.open svg {
    transform: rotate(180deg);
}
.mobile-sub-toggle svg {
    transition: transform 0.3s;
}
.mobile-sub-leaf {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background-color: #ffffff;
}
.mobile-sub-leaf.open {
    display: block;
}
.mobile-sub-leaf li a {
    display: block;
    padding: 10px 20px 10px 44px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-top: 1px solid #f5f5f5;
}
.mobile-sub-leaf li:first-child a {
    border-top: none;
}
.mobile-sub-leaf li a:hover {
    color: var(--g-color-default);
}
.mobile-empty {
    display: block;
    padding: 10px 20px 10px 32px;
    color: #aaa;
    font-size: 13px;
}
/* 移动端 - 资料下载:产品总册入口(在 mobile-sub 内,样式与子系列 toggle 区分) */
.mobile-volume-block {
    padding: 6px 0;
    border-bottom: 1px solid #ececec;
    margin-bottom: 6px;
    background-color: #ffffff;
}
.mobile-volume-toggle {
    padding: 12px 20px !important;
    font-weight: 600;
    color: var(--g-color-default) !important;
    background-color: #f0f6ff;
}
.mobile-volume-toggle.open {
    background-color: #e1ecff;
}
/* 移动端 - 解决方案:行业列表(扁平列表,与子系列样式区分) */
.mobile-industry-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}
.mobile-industry-list li {
    border-top: 1px solid #f5f5f5;
}
.mobile-industry-list li:first-child {
    border-top: none;
}
.mobile-industry-list li a {
    display: block;
    padding: 10px 20px 10px 32px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.mobile-industry-list li a:hover {
    color: var(--g-color-default);
}
.mobile-drawer-footer {
    border-top: 1px solid #f0f0f0;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #ffffff;
    flex-shrink: 0;
}
.mobile-btn-purchase {
    display: block;
    text-align: center;
    background-color: var(--g-color-default);
    color: #ffffff;
    padding: 10px 0;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}
.mobile-btn-purchase:hover {
    background-color: var(--g-color-default);
}
.mobile-lang {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
}
.mobile-lang a {
    color: #666;
    text-decoration: none;
}
.mobile-lang a:hover {
    color: var(--g-color-default);
}

/* ============= 移动端响应式 ============= */
@media (max-width: 992px) {
    .header {
        height: 56px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    .header-container {
        padding: 0 16px;
        max-width: 100%;
    }
    .header .logo img {
        height: 22px;
    }
    .header .nav-links,
    .header .header-right {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 2;
    }
    .mobile-drawer {
        display: flex;
    }
}

@media (max-width: 992px) {
    .header:has(.mobile-drawer.open) {
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .header:has(.mobile-drawer.open) .logo .logo-light {
        display: none;
    }
    .header:has(.mobile-drawer.open) .logo .logo-dark {
        display: block;
    }
    .header:has(.mobile-drawer.open) .mobile-menu-toggle .bar {
        background-color: #333;
    }
}

/* ===== 顶部搜索弹窗 ===== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-overlay.show {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background-color: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transform: translateY(-12px);
    transition: transform 0.25s ease;
}

.search-overlay.show .search-modal {
    transform: translateY(0);
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px;
    flex-shrink: 0;
}

.search-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.search-modal-close {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.search-modal-close:hover {
    color: #1a1a1a;
    background-color: #f3f3f3;
}

.search-modal-body {
    padding: 0 24px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.search-input-form {
    margin: 0;
    padding: 0;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 12px;
    height: 40px;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrap:focus-within {
    border-color: var(--g-color-default);
    box-shadow: 0 0 0 3px rgba(43, 122, 251, 0.12);
}

.search-input-icon {
    color: #999;
    flex-shrink: 0;
    margin-right: 8px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1a1a1a;
    height: 100%;
}

.search-input::placeholder {
    color: #b0b0b0;
}

.search-recommend {
    margin-top: 18px;
}

.search-recommend-title {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.search-recommend-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: #fafafa;
    border-radius: 6px;
    padding: 6px 0;
}

.search-recommend-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #1a1a1a;
    transition: background-color 0.2s;
    gap: 12px;
}

.search-recommend-item:hover {
    background-color: #f0f0f0;
}

.search-recommend-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.search-recommend-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    flex-shrink: 0;
    min-width: 90px;
}

.search-recommend-desc {
    font-size: 13px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-recommend-empty {
    display: block;
    padding: 20px 12px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

@media (max-width: 768px) {
    .search-overlay {
        padding: 70px 12px 12px;
    }
    .search-modal {
        max-height: calc(100vh - 90px);
    }
    .search-modal-header {
        padding: 16px 16px 10px;
    }
    .search-modal-body {
        padding: 0 16px 16px;
    }
    .search-recommend-name {
        min-width: 70px;
        font-size: 13px;
    }
    .search-recommend-desc {
        font-size: 12px;
    }
}