/* 追踪查询页样式 */

.page-search {
    --search-footer-bg: #183a6d;
    min-height: 100vh;
    background: var(--search-footer-bg);
    color: #ffffff;
}

.page-search .site-header {
    background: transparent;
}

/* 全屏主区域：上图下文，footer 不依赖背景图底部条 */
.search-main {
    min-height: 100vh;
}

.search-hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--search-footer-bg);
}

/* 主视觉舞台：背景 cover 仅作用于此区域 */
.search-hero-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.search-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #041428;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

.search-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(4, 20, 40, 0.28) 0%,
        rgba(4, 20, 40, 0.08) 45%,
        rgba(24, 58, 109, 0.35) 100%
    );
    pointer-events: none;
}

.search-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 48px) 24px 140px;
    box-sizing: border-box;
}

/* 主标题 */
.search-hero-title {
    margin: 0 0 40px;
    font-family: 'Alimama ShuHeiTi', '阿里妈妈数黑体', 'PingFang SC',
        'Microsoft YaHei', sans-serif;
    font-size: 70px;
    font-weight: bold;
    line-height: normal;
    text-align: center;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #ffffff;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5);
}

/* 搜索面板（使用设计稿背景图） */
.search-panel {
    width: 1140px;
    max-width: 100%;
    height: 200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    background-position: center center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* 搜索框：输入区 + 按钮一体 */
.search-panel-row {
    display: flex;
    align-items: center;
    width: 1060px;
    max-width: 100%;
    height: 64px;
    padding: 0 1px 0 20px;
    box-sizing: border-box;
    border-radius: 16px;
    opacity: 1;
    background: rgba(176, 198, 222, 0.2);
    border: 1px solid #b0c6de;
    gap: 0;
    margin-top: 20px;
}

.search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 16px 0 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 20px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #ffffff;
}

.search-input::placeholder {
    color: #a2a7b0;
    opacity: 1;
}

.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    width: 119px;
    height: 62px;
    padding: 0;
    border: none;
    border-radius: 0 15px 15px 0;
    opacity: 1;
    background: #0268ef;
    color: #ffffff;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: normal;
    cursor: pointer;
    transition: filter var(--transition), background var(--transition);
}

.search-submit img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    /* 白图标黑底：在蓝色按钮上隐藏黑色底 */
    mix-blend-mode: lighten;
}

.search-submit:hover {
    filter: brightness(1.08);
}

.search-submit:active {
    filter: brightness(0.96);
}

.search-tagline {
    margin: 0;
    width: 100%;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: normal;
    text-align: center;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #ffffff;
    margin-top: 20px;
}

.search-tagline span {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

/* 「精准定位」下方蓝色短下划线 */
.search-tagline span::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70px;
    height: 5px;
    margin-left: -35px;
    opacity: 1;
    background: #0162e4;
}

.search-tip {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #ffb4b4;
}

.search-tip:not([hidden]) {
    display: block;
}

/* 四大能力 */
.search-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 40px;
    width: 100%;
    max-width: 1100px;
    margin: 106px auto 0;
    padding: 0;
    list-style: none;
}

.search-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-feature-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: contain;
}

.search-feature-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.search-feature-copy strong {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

.search-feature-copy span {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
}

/* 右下角二维码：落在主视觉底部，紧贴 footer 上方 */
.search-qr {
    position: absolute;
    right: 48px;
    bottom: 30px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
    text-align: center;
    pointer-events: auto;
}

.search-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.search-qr-item img {
    width: 96px;
    height: 96px;
    background: #ffffff;
    padding: 4px;
    box-sizing: border-box;
    object-fit: contain;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.search-qr-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

/* 底部版权区：叠加上传的底部背景条，不依赖主图 cover */
.search-footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 14px 48px;
    box-sizing: border-box;
    background-color: var(--search-footer-bg);
    background-image: url('../image/search/zhuizongchaxun_bg_footer.png');
    background-position: center center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.search-footer-copy {
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.search-footer-copy p {
    margin: 0;
}

/* 无障碍隐藏 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 入场动效 */
.search-hero-title,
.search-panel,
.search-features {
    animation: search-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.search-panel {
    animation-delay: 0.12s;
}

.search-features {
    animation-delay: 0.24s;
}

@keyframes search-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .search-hero-title {
        font-size: 48px;
        margin-bottom: 32px;
    }

    .search-panel {
        width: 100%;
        height: auto;
        min-height: 180px;
        padding: 28px 24px;
    }

    .search-panel-row {
        width: 100%;
    }

    .search-features {
        gap: 20px 24px;
        margin-top: 40px;
    }

    .search-feature-icon {
        width: 56px;
        height: 56px;
    }

    .search-feature-copy strong {
        font-size: 16px;
    }

    .search-feature-copy span {
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .search-hero-inner {
        padding: calc(var(--header-height) + 32px) 20px 130px;
    }

    .search-hero-title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .search-panel {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 24px 16px;
        background-color: rgba(6, 24, 52, 0.72);
        background-image: none !important;
        border: 1px solid rgba(59, 139, 255, 0.35);
        border-radius: 16px;
        box-shadow: 0 0 40px rgba(59, 139, 255, 0.12);
    }

    .search-panel-row {
        width: 100%;
        height: auto;
        min-height: 56px;
        padding: 4px 4px 4px 14px;
        flex-wrap: nowrap;
    }

    .search-input {
        font-size: 15px;
        padding-right: 10px;
    }

    .search-submit {
        width: 96px;
        height: 48px;
        border-radius: 0 12px 12px 0;
        font-size: 15px;
    }

    .search-tagline {
        font-size: 14px;
    }

    .search-tagline span::after {
        width: 56px;
        height: 4px;
        margin-left: -28px;
    }

    .search-features {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
        margin-top: 36px;
    }

    .search-feature {
        gap: 12px;
    }

    .search-feature-icon {
        width: 48px;
        height: 48px;
    }

    .search-footer {
        min-height: 0;
        padding: 16px 20px;
    }

    .search-qr {
        right: 20px;
        bottom: 16px;
        gap: 12px;
    }

    .search-qr-item img {
        width: 72px;
        height: 72px;
    }

    .search-qr-item p {
        font-size: 12px;
    }

    .search-footer-copy {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .search-features {
        grid-template-columns: 1fr;
    }

    .search-hero-title {
        font-size: 24px;
    }
}
