/* 站点覆盖样式 */
.header .lan {
    position: relative;
    cursor: pointer;
}

.header .lan ul {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 9999;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 80px;
}

.header .lan.open ul {
    display: block;
}

.header .lan ul li a {
    display: block;
    padding: 8px 16px;
    white-space: nowrap;
}

.header .lan ul li a:hover,
.header .lan ul li a.cur {
    background: #10cfc9;
    color: #fff;
}

/* 分类页：锚点滚到产品区时避开 fixed header */
#products {
    scroll-margin-top: 100px;
}

/* 提交成功提示 */
.site-flash {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    max-width: 90%;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: opacity 0.4s, transform 0.4s;
}

.site-flash-success {
    background: #10cfc9;
    color: #fff;
}

.site-flash.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
    pointer-events: none;
}

/* 搜索页 — 混合结果列表 */
.search-page {
    width: 100%;
    padding: 40px 0 60px;
}

.search-page-form {
    display: flex;
    max-width: 720px;
    margin: 0 auto 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.search-page-form input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    border: 1px solid #e8e8e8;
    border-right: none;
    font-size: 16px;
    color: #333;
    background: #fff;
}

.search-page-form button {
    padding: 14px 32px;
    background: #10cfc9;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
    transition: background 0.2s;
}

.search-page-form button:hover {
    background: #0eb8b3;
}

.search-page-hint,
.search-page-meta {
    text-align: center;
    color: #666;
    margin-bottom: 28px;
    font-size: 15px;
}

.search-page-meta strong {
    color: #10cfc9;
}

.search-results {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.search-result-item {
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.search-result-item:hover {
    border-color: #10cfc9;
    box-shadow: 0 4px 20px rgba(16, 207, 201, 0.12);
}

.search-result-link {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
}

.search-result-link:hover {
    color: inherit;
}

.search-result-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-placeholder {
    display: block;
    width: 48px;
    height: 48px;
    background: url("/template/index/pc/images/search.png") center / contain no-repeat;
    opacity: 0.35;
}

.search-result-body {
    flex: 1;
    min-width: 0;
    position: relative;
    padding-top: 4px;
}

.search-result-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.6;
    border-radius: 3px;
    margin-bottom: 8px;
    font-weight: 500;
}

.search-result-product .search-result-badge {
    background: rgba(16, 207, 201, 0.12);
    color: #0a9e99;
}

.search-result-news .search-result-badge {
    background: rgba(100, 100, 100, 0.1);
    color: #666;
}

.search-result-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.search-result-link:hover .search-result-title {
    color: #10cfc9;
}

.search-result-excerpt {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    font-size: 13px;
    color: #aaa;
}

.search-result-title mark,
.search-result-excerpt mark {
    background: rgba(16, 207, 201, 0.25);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .search-page-form {
        flex-direction: column;
        box-shadow: none;
        border: 1px solid #e8e8e8;
        border-radius: 4px;
    }

    .search-page-form input[type="text"] {
        border-right: 1px solid #e8e8e8;
        border-bottom: none;
    }

    .search-result-link {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .search-result-thumb {
        width: 100%;
        height: 160px;
    }

    .search-result-title {
        font-size: 16px;
    }
}
