/* 计算机视觉服务页面样式 */
@import './first.css';

body {
    background: #EBF0F6;
}

.content_box {
    width: 70%;
    max-width: 1480px;
    margin: 0 auto;
}

.content_bottom {
    padding-bottom: 100px;
}

/* 英雄区域 */
.banner_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background: url(/static/images/computerVision/banner.png) no-repeat center center;
    overflow: hidden;
    /*aspect-ratio: 24 / 7;*/
    background-size: 100% 100%;
    aspect-ratio: 1920 / 400;
    /*background-size: 100% auto;*/
    /*height: 400px;*/
    /*}*/
}
.banner_box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    margin-left: 11.25%;
    max-width: 32%;
}



.hero-content .service {
    color: #000;
    font-weight: 700;
    font-size: 34px;
    font-family: Source Han Sans SC-Bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-content .subtitle {
    font-size: 18px;
    color: #303030;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-family: Source Han Sans SC-Bold;
}

.hero-content .features {
    font-size: 20px;
    color: #000;
    font-family: Source Han Sans SC-Bold;
}




/* 相关产品 */
.platforms {
    position: relative;
    background: transparent;
    z-index: 10;
}

.platforms h2 {
    margin-top: 70px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 36px;
    font-family: Source Han Sans SC-Bold;
}

.platform-cards {
    display: grid;
    column-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    justify-items: center;
    overflow: visible;
    box-sizing: border-box;
    padding: 8px;
}

.platform_card {
    background: #fff;
    width: 100%;
    border-radius: 8px;
    transition: all 0.5s ease;
    overflow: hidden;
    box-sizing: border-box;
    padding:8px;
    padding-bottom: 10px;

}

.platform_card:hover {
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.platform_card p {
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 500;
    font-size: 16px;
    color: #666666;
    line-height: 30px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    padding-left: 16px;
    padding-right: 16px;
}

.stage-image {
    width: 100%;
     height: 160px;
    border-radius: 11px;
    overflow: hidden;
}
.stage-image2{
    height: auto;
}

.stage-image img {
    transition: all 0.5s ease;
}

.platform_card:hover .stage-image img {
    transform: scale(1.05);
}

.stage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform_card h3 {
    font-weight: bold;
    font-size: 20px;
    color: #000000;
    margin-top: 5px;
    padding-left: 16px;
}

/* 整体介绍 */
.introduction {}

.introduction h2 {
    /* margin-top: 70px; */
    margin-top: 60px;
    margin-bottom: 5px;
    text-align: center;
    font-size: 36px;
    font-family: Source Han Sans SC-Bold;
}

.introduction .subtitle {
    margin-bottom: 40px;
    text-align: center;
    font-size: 20px;
    color: #313131;
    font-family: Source Han Sans CN-Regular;
}

.subtitle_content {
    border-radius: 18px;
    background: white;
    padding: 8px;
    display: flex;
}

.subtitle_text {
    padding: 16px 24px;
    color: rgba(0, 0, 0, 0.8);
    color-scheme: light;
    font-family: Source Han Sans CN-Regular;
    font-size: 16px;
    line-height: 24px;
}


/* 整体架构图 */
.architecture {
    /* background: white; */
}

.architecture h2 {
    margin-top: 70px;
    margin-bottom: 5px;
    text-align: center;
    font-size: 36px;
    font-family: Source Han Sans SC-Bold;
}

.architecture .subtitle {
    margin-bottom: 40px;
    text-align: center;
    font-size: 20px;
    color: #313131;
    font-family: Source Han Sans CN-Regular;
}

.arch-diagram {
    width: 100%;
    box-sizing: border-box;
    border-radius: 18px;
    background: #fff;
    padding: 24px;
}

.arch-diagram img {
    width: 100%;
}



/* 计算机视觉算法清单 */
.algorithms h2 {
    margin-top: 70px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 36px;
    font-family: Source Han Sans SC-Bold;
}

.algorithm_tabs {
    display: flex;
    justify-content: space-between;
    padding: 0 8.19%;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 1px;
}

.tab_content {
    margin-top: 40px;
}

.tab-button {
    font-size: 24px;
    font-weight: 400;
    color: rgba(0,0,0,0.8);
    font-family: Source Han Sans SC-Bold;
    font-style: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;

}

.tab-button:hover {
    color: rgba(0,0,0,1);;

}

.tab-button.active {
    color: #000;
    /*font-weight: bold;*/
    font-style: normal;
    text-transform: none;
    font-weight: 400;

}

.tab-button.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #202329;
    position: absolute;
    bottom: -11px;
    left: 0;
    transition: all 0.3s ease;
}

.tab-button img {
    width: 24px;
    margin-right: 5px;
    object-fit: contain;
}

.tab-button img:nth-child(1) {
    display: inline-block;
}

.tab-button img:nth-child(2) {
    display: none;
}

.tab-button.active img:nth-child(1) {
    display: none;
}

.tab-button.active img:nth-child(2) {
    display: inline-block;
}

.tab-button span {
    display: flex;
    align-items: center;
    line-height: 1;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.algorithm_grid {
    display: grid;
    /* grid-template-columns: repeat(4, minmax(300px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.algorithm-card {
    background: white;
    border-radius: 10px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
    overflow: hidden;
    transition: all 0.3s ease;
}

/* .algorithm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
} */

.image_box {
    width: 100%;
    height: 200px;
    box-sizing: border-box;
    padding: 8px;
    padding-bottom: 0;
    /* display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.05); */
    border-radius: 10px;
    overflow: hidden;
}

.algorithm-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.algorithm-card h4 {
    font-size: 20px;
    font-weight: 500;
    font-family: Source Han Sans SC-Bold;
    color: #000;
    text-align: left;

    margin: 16px 16px;
}

.difficulty {
    display: flex;
    align-items: center;
    padding: 0 0 32px 16px;
    gap: 1rem;
}

.difficulty span {
    font-size: 1.4rem;
    color: #666;
}

.stars {
    font-size: 1.6rem;
    color: #ffc107;
    font-weight: bold;
}







/* 超大屏 */
/* @media (min-width: 1921px) {
    .content_box {
        width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content {
        margin-left: auto;
        margin-right: auto;
        width: 1400px;
        max-width: 1400px;
    }

    .platform-cards {
        grid-template-columns: repeat(5, minmax(220px, 1fr));
    }

    .algorithm_grid {
        grid-template-columns: repeat(4, minmax(260px, 1fr));
    }
} */

/* 大桌面 1440 - 1920 */
/* @media (min-width: 1440px) and (max-width: 1920px) {
    .content_box {
        width: 80%;
        margin-left: 10%;
    }

    .hero-content {
        margin-left: 11.25%;
        max-width: 50%;
    }

    .platform-cards {
        grid-template-columns: repeat(5, minmax(210px, 1fr));
    }

    .algorithm_grid {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
    }
} */

/* 普通桌面 1200 - 1439 */
/* @media (min-width: 1200px) and (max-width: 1439px) {
    .content_box {
        width: 88%;
        margin-left: 6%;
    }

    .hero-content {
        margin-left: 6%;
        max-width: 56%;
    }

    .hero-content .service {
        font-size: 30px;
    }

    .hero-content .subtitle {
        font-size: 17px;
    }

    .hero-content .features {
        font-size: 22px;
    }

    .platform-cards {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
        gap: 20px;
    }

    .platform_card h3 {
        font-size: 1.8rem;
    }

    .algorithm_tabs {
        padding: 0 4%;
    }

    .tab-button {
        font-size: 20px;
    }

    .algorithm_grid {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
        gap: 20px;
    }

    .footer-box {
        padding: 0 2rem;
    }

    .footer-content {
        width: calc(100% - 18rem);
    }
} */

/* 小桌面 / 平板横屏 992 - 1199 */
/* @media (min-width: 992px) and (max-width: 1199px) {
    .content_box {
        width: 90%;
        margin-left: 5%;
    }

    .banner_box {
        aspect-ratio: 1920 / 650;
        background-size: cover;
        background-position: center;
    }

    .hero-content {
        margin-left: 5%;
        max-width: 65%;
    }

    .hero-content .service {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .hero-content .subtitle {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .hero-content .features {
        font-size: 20px;
        line-height: 1.6;
    }

    .platforms h2,
    .introduction h2,
    .architecture h2,
    .algorithms h2 {
        font-size: 32px;
    }

    .introduction .subtitle,
    .architecture .subtitle {
        font-size: 18px;
    }

    .platform-cards {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 20px;
    }

    .platform_card h3 {
        font-size: 1.6rem;
    }

    .platform_card p {
        font-size: 14px;
        line-height: 24px;
    }

    .subtitle_content {
        flex-direction: column;
    }

    .subtitle_content .stage-image {
        width: 100%;
    }

    .subtitle_text {
        padding: 20px;
        font-size: 15px;
        line-height: 26px;
    }

    .algorithm_tabs {
        padding: 0;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-button {
        font-size: 18px;
    }

    .tab-button img {
        width: 20px;
    }

    .algorithm_grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 18px;
    }

    .image_box {
        height: 180px;
    }

    .algorithm-card h4 {
        font-size: 18px;
    }

    .difficulty span,
    .stars {
        font-size: 1.2rem;
    }

    .footer-box {
        padding: 0 2rem;
        gap: 2rem;
    }

    .footer-content {
        width: calc(100% - 12rem);
    }

    .footer-info {
        top: 0;
        gap: 20px;
    }

    .footer-info-item {
        width: calc(50% - 10px);
    }
} */

/* 平板 768 - 991 */
/* @media (min-width: 768px) and (max-width: 991px) {
    .content_box {
        width: 92%;
        margin-left: 4%;
    }

    .content_bottom {
        padding-bottom: 70px;
    }

    .banner_box {
        aspect-ratio: 16 / 9;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
    }

    .hero-content {
        margin-left: 5%;
        margin-right: 5%;
        max-width: 80%;
    }

    .hero-content .service {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-content .subtitle {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .hero-content .features {
        font-size: 18px;
        line-height: 1.6;
    }

    .platforms h2,
    .introduction h2,
    .architecture h2,
    .algorithms h2 {
        font-size: 28px;
        margin-top: 50px;
        margin-bottom: 24px;
    }

    .introduction .subtitle,
    .architecture .subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .platform-cards {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        gap: 20px;
    }

    .platform_card h3 {
        font-size: 1.5rem;
    }

    .platform_card p {
        font-size: 14px;
        line-height: 22px;
    }

    .subtitle_content {
        flex-direction: column;
        padding: 12px;
    }

    .subtitle_text {
        padding: 16px 12px 8px;
        font-size: 15px;
        line-height: 25px;
    }

    .arch-diagram {
        padding: 16px;
    }

    .algorithm_tabs {
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        justify-items: center;
    }

    .tab-button {
        font-size: 17px;
        width: 100%;
        justify-content: center;
        padding-bottom: 10px;
    }

    .tab-button.active::after {
        bottom: 0;
    }

    .tab_content {
        margin-top: 24px;
    }

    .algorithm_grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 16px;
    }

    .image_box {
        height: 170px;
    }

    .algorithm-card h4 {
        font-size: 17px;
        margin: 14px 14px;
    }

    .difficulty {
        padding: 0 0 24px 14px;
        gap: 12px;
    }

    .difficulty span,
    .stars {
        font-size: 1.1rem;
    }

    .footer {
        padding: 2rem 0 2.5rem;
    }

    .footer-box {
        flex-direction: column;
        padding: 0 1.5rem;
        gap: 2rem;
    }

    .footer-content {
        width: 100%;
    }

    .footer-info {
        top: 0;
        flex-direction: column;
        gap: 20px;
    }

    .footer-info-item {
        width: 100%;
    }

    .qrcode {
        display: flex;
        justify-content: center;
    }
} */

/* 手机 576 - 767 */
/* @media (min-width: 576px) and (max-width: 767px) {
    .content_box {
        width: 94%;
        margin-left: 3%;
    }

    .content_bottom {
        padding-bottom: 60px;
    }

    .banner_box {
        aspect-ratio: auto;
        min-height: 280px;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
    }

    .hero-content {
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-content .service {
        font-size: 22px;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .hero-content .subtitle {
        font-size: 14px;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .hero-content .features {
        font-size: 16px;
        line-height: 1.6;
    }

    .platforms h2,
    .introduction h2,
    .architecture h2,
    .algorithms h2 {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .introduction .subtitle,
    .architecture .subtitle {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .platform-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .platform_card h3 {
        font-size: 1.4rem;
        margin-top: 0.8rem;
    }

    .platform_card p {
        font-size: 14px;
        line-height: 22px;
    }

    .subtitle_content {
        flex-direction: column;
        padding: 10px;
    }

    .subtitle_text {
        padding: 14px 10px 6px;
        font-size: 14px;
        line-height: 24px;
    }

    .arch-diagram {
        padding: 12px;
        border-radius: 12px;
    }

    .algorithm_tabs {
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tab-button {
        font-size: 15px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        text-align: center;
        padding-bottom: 8px;
    }

    .tab-button img {
        width: 18px;
        margin-right: 4px;
    }

    .tab-button span {
        display: inline-block;
        line-height: 1.4;
    }

    .tab-button.active::after {
        bottom: 0;
    }

    .tab_content {
        margin-top: 20px;
    }

    .algorithm_grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .image_box {
        height: 180px;
    }

    .algorithm-card h4 {
        font-size: 16px;
        margin: 12px;
    }

    .difficulty {
        padding: 0 0 20px 12px;
        gap: 10px;
    }

    .difficulty span,
    .stars {
        font-size: 1rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-box {
        flex-direction: column;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .footer-content {
        width: 100%;
    }

    .footer-info {
        top: 0;
        flex-direction: column;
        gap: 16px;
    }

    .footer-info-item {
        gap: 12px;
    }

    .footer-icon {
        width: 38px;
        height: 38px;
    }

    .footer-info-text span {
        font-size: 14px;
    }

    .footer-info-text p {
        font-size: 13px;
        line-height: 1.6;
    }

    .qrcode {
        display: flex;
        justify-content: center;
    }

    .qrcode dt {
        width: 100px;
        height: 100px;
    }
} */

/* 小手机 <= 575 */
/* @media (max-width: 575px) {
    .content_box {
        width: 94%;
        margin-left: 3%;
    }

    .content_bottom {
        padding-bottom: 50px;
    }

    .banner_box {
        aspect-ratio: auto;
        min-height: 240px;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
    }

    .hero-content {
        max-width: 92%;
        margin: 0 auto;
    }

    .hero-content .service {
        font-size: 20px;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }

    .hero-content .subtitle {
        font-size: 13px;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }

    .hero-content .features {
        font-size: 14px;
        line-height: 1.6;
    }

    .platforms h2,
    .introduction h2,
    .architecture h2,
    .algorithms h2 {
        font-size: 22px;
        margin-top: 36px;
        margin-bottom: 18px;
    }

    .introduction .subtitle,
    .architecture .subtitle {
        font-size: 14px;
        margin-bottom: 18px;
        line-height: 1.5;
        padding: 0 6px;
    }

    .platform-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .platform_card {
        border-radius: 10px;
    }

    .platform_card h3 {
        font-size: 1.2rem;
        margin-top: 0.7rem;
    }

    .platform_card p {
        font-size: 13px;
        line-height: 20px;
    }

    .subtitle_content {
        flex-direction: column;
        padding: 8px;
        border-radius: 12px;
    }

    .subtitle_text {
        padding: 12px 8px 4px;
        font-size: 13px;
        line-height: 22px;
    }

    .arch-diagram {
        padding: 10px;
        border-radius: 12px;
    }

    .algorithm_tabs {
        padding: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .tab-button {
        font-size: 13px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        text-align: center;
        padding-bottom: 6px;
    }

    .tab-button img {
        width: 16px;
        margin-right: 4px;
    }

    .tab-button.active::after {
        bottom: 0;
        height: 2px;
    }

    .tab_content {
        margin-top: 18px;
    }

    .algorithm_grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .image_box {
        height: 160px;
        padding: 6px;
        padding-bottom: 0;
    }

    .algorithm-card h4 {
        font-size: 15px;
        margin: 10px 10px;
    }

    .difficulty {
        padding: 0 0 18px 10px;
        gap: 8px;
    }

    .difficulty span,
    .stars {
        font-size: 0.95rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer-box {
        flex-direction: column;
        padding: 0 0.8rem;
        gap: 1.2rem;
    }

    .footer-content {
        width: 100%;
    }

    .footer-info {
        top: 0;
        flex-direction: column;
        gap: 14px;
    }

    .footer-info-item {
        gap: 10px;
        align-items: flex-start;
    }

    .footer-icon {
        width: 34px;
        height: 34px;
    }

    .footer-info-text span {
        font-size: 13px;
        margin-bottom: 0.3rem;
    }

    .footer-info-text p {
        font-size: 12px;
        line-height: 1.6;
        word-break: break-all;
    }

    .qrcode {
        display: flex;
        justify-content: center;
    }

    .qrcode dt {
        width: 90px;
        height: 90px;
    }

    .qrcode-text {
        font-size: 12px;
    }
} */