.site-header {
    height: var(--header-height);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
    width: min(88%, 1640px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-logo {
    flex: 0 0 auto;
    width: 232px;
}

.site-nav {
    flex: 1 1 auto;
    height: 100%;
}

.site-nav ul {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 44px;
}

.site-nav a {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    color: #303030;
    font-size: 15px;
    white-space: nowrap;
    transition: color var(--transition);
    z-index: 1;
}

.site-nav a:hover {
    color: var(--primary);
    font-weight: 600;
}

.site-nav a.active {
    height: 42px;
    margin: 0 -20px;
    padding: 0 20px;
    align-self: center;
    color: #ffffff;
    background: var(--primary);
    font-weight: 600;
}

/* ===== 产品中心 悬停下拉面板 ===== */
.site-nav li.has-sub {
    height: 100%;
    display: flex;
    align-items: center;
}

.site-nav li.has-sub:hover > a:not(.active) {
    color: var(--primary);
    font-weight: 600;
}

.site-nav .nav-sub {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #2e2e2e;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.32s ease, transform 0.42s ease, visibility 0.42s ease;
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.22);
}

.site-nav li.has-sub:hover .nav-sub,
.site-nav li.has-sub:focus-within .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav .nav-sub__inner {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 240px;
    gap: 54px;
    padding: 36px 0 40px;
    align-items: stretch;
}

.site-nav .nav-sub__media {
    height: 208px;
    display: block;
    position: relative;
    overflow: hidden;
    background: #000000;
}

.site-nav .nav-sub__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.site-nav .nav-sub__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.8) 100%);
}

.site-nav .nav-sub__media strong,
.site-nav .nav-sub__media span {
    position: absolute;
    left: 20px;
    z-index: 2;
    color: #ffffff;
}

.site-nav .nav-sub__media strong {
    bottom: 42px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.site-nav .nav-sub__media span {
    bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.site-nav .nav-sub__media:hover img {
    transform: scale(1.06);
}

.site-nav .nav-sub__list {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    column-gap: 46px;
    align-content: center;
    justify-content: initial;
    gap: 0 46px;
}

.site-nav .nav-sub__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav .nav-sub__list li:nth-child(1),
.site-nav .nav-sub__list li:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav .nav-sub__list a {
    height: 54px;
    display: flex;
    align-items: center;
    position: relative;
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.site-nav .nav-sub__list a::before {
    content: "";
    width: 0;
    height: 2px;
    margin-top: -1px;
    position: absolute;
    left: 0;
    top: 50%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.site-nav .nav-sub__list a:hover {
    padding-left: 20px;
    color: #ffffff;
    font-weight: 400;
}

.site-nav .nav-sub__list a:hover::before {
    width: 12px;
}

.site-nav .nav-sub__side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav .nav-sub__side p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 0.16em;
    line-height: 1.4;
}

.site-nav .nav-sub__side strong {
    margin-top: 8px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.site-nav .nav-sub__more {
    height: 38px;
    margin-top: 22px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav .nav-sub__more:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 400;
}

.header-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    color: #303030;
    font-size: 14px;
    white-space: nowrap;
}

.header-tools b {
    color: var(--primary);
    font-weight: 600;
}

.search-btn,
.nav-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.search-btn {
    width: 28px;
    height: 28px;
    position: relative;
}

.search-btn::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 3px solid #333333;
    border-radius: 50%;
    position: absolute;
    left: 3px;
    top: 3px;
}

.search-btn::after {
    content: "";
    width: 11px;
    height: 3px;
    background: #333333;
    position: absolute;
    right: 2px;
    bottom: 5px;
    transform: rotate(45deg);
    transform-origin: center;
}

.search-box {
    width: 220px;
    padding: 10px;
    display: none;
    position: absolute;
    top: 54px;
    right: 0;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.search-box.open {
    display: block;
}

.search-box input {
    width: 100%;
    border: 1px solid var(--line);
    padding: 9px 10px;
    font-size: 14px;
    outline: none;
}

.nav-toggle {
    display: none;
    width: 36px;
    height: 28px;
    border-top: 3px solid #333333;
    border-bottom: 3px solid #333333;
    position: relative;
}

.nav-toggle::before {
    content: "";
    height: 3px;
    background: #333333;
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
}
