:root {
    --primary-color: #8257E6;
    --secondary-color: #6F48C9;
    --background-color: #F8F9FA;
    --text-color: #333;
    --text-secondary: #666666;     /* 次要文字颜色 */
    --text-light: #999999;         /* 浅色文字 */
}

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    padding-top: 108px; /* 桌面端导航栏高度 */
}
a {
    text-decoration: none;
}
ul{
    padding: 0;
    margin: 0;
}
li{
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}
.contact-section .container:first-child{
    margin-bottom: 200px;
}

/* 通用标题样式 */
.section-title {
    color: #20184E;
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

/* 通用图标样式 */
.contact-icon {
    width: 32px;
    height: 32px;
}

/* 通用文本样式 */
.contact-text {
    color: #20184E;
    font-size: 1.5rem;
}

.contact-section {
    padding: 125px 0 80px;
    background: white;
    position: relative;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 310px;
    background: url(../images/bg-img2.png) no-repeat bottom;
    width: 136px;
    height: 531px;
    z-index: 0;
}
.contact-section::after {
    content: '';
    position: absolute;
    bottom: -180px;
    background: url(../images/bg-img3.png) no-repeat bottom right;
    width: 346px;
    height: 531px;
    z-index: 0;
    right: 0px;
    background-size: 80%;
}
/* 硬件菜单横向滚动 */
.hardware-menu {
    position: relative;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #ddd;
    justify-content: space-between;
    border-bottom: 1px solid #E1E1EB; /* 灰色分割线 */
}

/* 新增选中效果 */
.hardware-menu-item.active .hardware-menu-link {
    color: #6909E1;
}
.hardware-menu-item.active {
    border-bottom: 2px solid #400E7F; /* 选中状态线条 */
}
.hardware-menu-link {
    color: #333;
    transition: color 0.3s ease;
}

.hardware-menu-item {
    flex-shrink: 0;
    width: 160px;
    transition: transform 0.3s ease;
}
.hardware-img{
    width: 150px;
    height: 100px;
    margin-bottom: 1.5rem;
}
.hardware-menu-link img {
    width: 100%;
    height: 100%;
}

.hardware-menu-link p {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.hardware-menu-item:hover p{
    color: #400E7F;
}
.hardware-menu-item.active p{
    color: #400E7F;
}
.hardware-content,.hardware-features{
    margin-top: 5rem;
}
.title-other{
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #20184E;
    text-align: center;
    padding: 0 12%;
    line-height: 2.5rem;
}
.hardware-features{
    display: flex;
    flex-flow: row wrap;
    gap: 128px;
}
.features-left{
    width: 40%;
}
.features-right {
    width: 49%;
    text-align: left;
    padding-top: 24px;
}
.perture-big{
    width: 100%;
    padding: 24px;
    aspect-ratio: 3 / 2;
}
.perture-big img{
    width: 100%;
    height: 100%;
    box-shadow: #792dd51a 0px 2px 10px;
}
.perture-smail{
    margin-top: 1rem;
    width: 100%;
    height: auto;
}
.perture-smail ul{
    display: flex;
    flex-flow: row wrap;
    gap: 16px;
}
.perture-smail li{
    width: 47%;
    padding: 24px;
    aspect-ratio: 3 / 2
}
.perture-smail li:hover{
    border: solid 1px var(--primary-color);
    border-radius: 10px;
}
.perture-smail img{
    width: 100%;
    height: 100%;
}
.hardware-name{
    font-size: 2.25rem;
    font-weight: 600;
    color: #20184E;
    margin-bottom: 4.5rem;
    position: relative;
}
.hardware-name::after{
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    background: #000;
    left: 0;
    position: absolute;
    margin-top: 2rem;
}
.backBtn{
    background: var(--primary-color);
    border-radius: 60px;
    padding: 12px 40px;
    color: #fff;
    font-size: 1rem;
    border: none;
    box-shadow: none;
    text-align: center;
}
.hardware-text-one {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 2.5rem;
}
.hardware-text-one li{
    position: relative;
    margin-left: 36px;
}
.hardware-text-one li::before{
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    border-radius: 1px;
    background-color: #000000;
    margin-right: 0.5rem;
    position: absolute;
    top: 20px;
    left: -36px;
}
.hardware-text-two{
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 30px;
    margin: 40px 0 64px;
    text-align: justify;
}
/* 移动端适配 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    .contact-section .container:first-child{
        margin-bottom: 4rem;
    }
    .contact-section::before,.contact-section::after {
        content: none;
    }
    .backBtn{
        padding: 12px 32px;
        font-size: 1rem;
    }
    .hardware-features {
        gap: 90px;
    }
    
}

@media (max-width: 991px) {
    body {
        padding-top: 48px; /* 移动端导航栏高度 */
    }

    /* 联系部分适配 */
    .contact-section {
        padding: 40px 0 8px;
    }
    .contact-section .container:first-child{
        margin-bottom: 3rem;
    }
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    .hardware-content,.hardware-features{
        margin-top: 4rem;
    }
    .hardware-features {
        gap: 70px;
    }
    .title-other{
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
        line-height: 2rem;
    }
    .backBtn{
        padding: 12px 32px;
        font-size: 0.85rem;
    }
    .hardware-name {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    .hardware-name::after {
        width: 80px;
        margin-top: 1.25rem;
    }
    
}

@media (max-width: 767px) {
    .container {
        padding: 0 30px;
    }
    .contact-content {
        position: relative;
        padding: 3rem 1rem;
    }  
    .contact-section .container:first-child{
        margin-bottom: 3rem;
    }
    .hardware-menu {
        gap: 16px;
    }
    .hardware-img {
        margin-bottom: 0.75rem;
    }
    .hardware-menu-link p {
        margin-bottom: 0.75rem;
    }
    .hardware-content,.hardware-features{
        margin-top: 3rem;
    }
    .title-other{
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 2rem;
    }
    .backBtn{
        padding: 4px 24px;
        font-size: 0.85rem;
    }
    .features-left{
        width: 100%;
    }
    .features-right {
        width: 100%;
        padding-top: 0;
    }
    .perture-big {
        width: 100%;
        height: auto;
        padding: 16px;
    }
    .perture-smail {
        margin-top: 0.5rem;
    }
    .perture-smail li {
        width: 46%;
        height: 120px;
        padding: 16px;
    }
    .hardware-name {
        font-size: 1.5rem;
    }
    .hardware-name::after {
        width: 80px;
        margin-top: 1rem;
    }
    .hardware-text-one {
        font-size: 1rem;
        line-height: 2rem;
    }
    .hardware-text-two {
        font-size: 0.85rem;
        line-height: 28px;
        margin: 24px 0 40px;
    }
}




