@font-face {
    font-family: 'Source';
    font-weight: bold;
    src: url("/font/SourceHanSansCN-Medium.ttf")
}
@font-face {
    font-family: 'Source';
    src: url("/font/SourceHanSansCN-Normal.ttf")
}
* {
    font-family: "Source", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans CJK",serif
}
html {
    overflow-x: hidden;
}
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
main {
    min-height: calc(100vh - 157px);
}
#main-footer {
    background-color: #F7FAFC;
    padding-top: 100px;
    height: 176px;
}
#main-nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.nav-logo {
    background-image: url("/img/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 110px;
    height: 30px;
}
.nav-container {
    height: 62px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-item {
    display: inline-block;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover {
    color: #009688;
}

.arrow {
    transform: translate(2px, 2px);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}


/* 子菜单样式 */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    padding: 0.5rem 0;
    border-radius: 4px;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-item {
    width: 100%;
}

.submenu-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.submenu-link:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

/* 响应式设计 - 平板和手机 */
@media screen and (max-width: 768px) {
    #main-footer {
        height: 100px !important;
        padding-top: 40px;
    }
    div.footer-text {
        height: 40px !important;
    }
    .nav-container {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        justify-content: space-between;
    }

    /* 移动端子菜单 */
    .submenu {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        transform: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s;
        padding: 0;
    }

    .has-submenu.submenu-open .submenu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        padding: 0.5rem 0;
    }

    .has-submenu.submenu-open .arrow {
        transform: rotate(-180deg);
    }

    .submenu-link {
        padding: 0.75rem 2.5rem;
        font-size: 0.95rem;
    }

    /* 汉堡菜单动画 */
    .nav-toggle.active .hamburger:nth-child(1) {
        transform: translate(-5px, 6px) rotate(-45deg) ;
    }

    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger:nth-child(3) {
        transform: translate(-5px, -11px) rotate(45deg) ;
    }
}

/* 更小的屏幕优化 */
@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }
}

#index-img {
    width: 100vw;
    height: 384px;
    background-image: url("/img/banner.png");
    background-size: cover;
}
#index-content {
    width: 1200px;
    margin: 0 auto;
    padding-top: 100px;
}
#index-title {
    color: #232323;
    font-size: 46px;
    font-weight: bold;
}
#index-sub-title {
    margin-top: 10px;
    color: #606266;
    font-size: 20px;
}
/* 平板设备 */
@media screen and (max-width: 768px) {
    #index-img {
        height: 300px;
        background-position: center center;
    }
}

/* 手机设备 */
@media screen and (max-width: 480px) {
    .contact-modal-body {
        min-height: 550px !important;
    }
    #ming-dao-iframe-popup {
        height: 520px !important;
    }
    #ming-dao-iframe-popup,.contact-modal-body {
        max-width: 80vw;
    }
    div#index-img {
        height: 250px;
        background-position: center center;
    }
    div.footer-copyright {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .mobile-break {
        display: block ;
    }
    div#index-img {
        width: 100vw;
        height: 384px;
        background-image: url("/img/banner.png");
        background-size: cover;
    }
    div#index-content {
        width: 100vw;
        margin: 0 auto;
        padding-top: 100px;
        padding-left: 30px;
        padding-right: 30px;
    }
    .footer-copyright {
        height: 60px !important;
    }
    main {
         min-height: calc(100vh - 180px) !important;
    }
    #index-title {
        font-size: 25px !important;
    }
    .stats-main-container {
        flex-direction: column !important;
    }
    .detail-container-container-container {
        width: 300px !important;
    }
    .left-stats {
        width: 300px !important;
    }
    .detail-container-container {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .icon-detail {
        width: 150px !important;
    }
    .text-section {
        order: 1;
    }
    .image-section {
        order: 2;
    }
}

/* PC */
@media screen and (min-width: 1000px) {
    .stats-main-container {
        max-width: 1200px !important;
        width: 1200px !important;
    }
    .left-stats {
        width: 315px !important;
    }
    .simple-card-container {
        justify-content: space-between !important;
    }
    .icon-detail:hover * {
        transform: scale(1.1);
    }
    .icon-detail * {
        transition: all 150ms ease-in;
    }
    .simple-card:hover  {
        transform: translateY(-3px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    .simple-card  {
        transition: all 150ms ease-in;
    }
    .simple-card {
        cursor: default;
    }
    .content-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    .has-submenu .nav-link {
        cursor: default;
    }
    #index-content-container .index-card:nth-child(3) .simple-card-container {
        gap: 3rem;
    }
}

/* PC - 超大屏幕  */
@media screen and (min-width: 2000px) {
    #index-img {
        height: 425px;
    }
}

/* PC - 超大屏幕  */
@media screen and (min-width: 2300px) {
    #index-img {
        height: 500px;
    }
}

/* PC - 超大屏幕  */
@media screen and (min-width: 3000px) {
    #index-img {
        height: 680px;
    }
    #index-content {
        padding-top: 250px;
    }
}

.bg-color {
    background-color: #009688;
}
.color-gray {
    color: #666666;
}
div.footer-text {
    height: 88px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}
div.footer-copyright {
    height: 88px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999999;
    background-color: #18181C;
    text-align: center;
}
.index-card {
    width: 100%;

}
.index-card-content {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.index-card-title {
    font-weight: bold;
    font-size: 26px;
    color: #232323;
}
.index-card-subtitle {
    max-width: 100vw;
    font-size: 20px;
    color: #5C5D5F;
}

.simple-card {
    height: 250px;
    width: 286px;
    background: #FFFFFF;
    box-shadow: 0px 1px 8px 3px rgba(226,229,233,0.28);
}
.simple-card-header {
    width: 222px;
    height: 80px;
    border-bottom: 1px solid #F2F3F3;
}
.simple-card-content:not(:first-child) {
    padding-left: 25px;
    padding-right: 30px;
    padding-top: 12px;
    padding-bottom: 3px;
    height: 160px;
}
.simple-card-icon img {
    width: 32px;
    height: 32px;
    margin-right: 15px;
}
.icon-detail {
    width: 221px;
    height: 174px;
    background: linear-gradient( 258deg, #212228 0%, #30343D 100%);
    transition: all 150ms ease-in;
    cursor: default;
}
.main-button {
    color: white;
    width: 104px;
    height: 34px;
    background: #009688;
    border-radius: 4px;
}
#index-img .main-button {
    margin-top: 16px;
}

#spd-container .index-card:nth-child(2) {
    background-image: url('/img/背景.png') !important;
    background-size: 100vw auto;
}

#spd-container > div:nth-child(1) .simple-card {
    height: 270px;
}
#spd-container > div:nth-child(1) .simple-card-content:not(:first-child) {
    height: 180px;
}
#device-container .image-section img {
    zoom: 0.6;
}
#spd-lr-container .image-section img {
    zoom: 0.6;
}
::selection {
    background-color: #009688; /* 绿色背景 */
    color: white; /* 白色文字，可根据需要调整 */
}

::-moz-selection {
    background-color: #009688; /* Firefox 浏览器兼容 */
    color: white;
}