* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-height: 60px;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    padding: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    height: var(--header-height);
}

.header .logo {
    height: 40px;
    margin-left: 20px;
}

.nav-menu {
    display: flex;
    flex: 1;
    height: 100%;
}

.pageItem {
    color: white;
    font-size: 20px;
    width: 180px;
    height: 100%;
    text-align: center;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pageItem.active {
    background: #56aaff;
    color: #fff;
}

.pageItem:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu {
    margin-left: 40px;
}

.nav-toggle {
    display: none;
}

.logo {
    height: 40px;
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero .logo {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    height: 40px;
    width: auto;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.welcome {
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.text-content {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-content img {
    width: 100%;
    height: auto;
}

.image-group {
    flex: 1;
    max-width: 585px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-group>img {
    width: 100%;
    height: auto;
}

.image-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.image-row img {
    width: calc(33.33% - 7px);
    height: auto;
}

.banner2-section {
    min-height: 100vh;
    position: relative;
    background: url("./images/banner6.png") center/cover no-repeat;
    /* background-color: #ededed; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.banner2-section img {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%);
    max-width: 600px;
    height: auto;
    height: auto;
    margin-bottom: 20px;
}

.banner3-section {
    min-height: 100vh;
    position: relative;
    background: url("./images/banner3.png") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 20px;
    margin: 40px 0;
}

.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.card-item {
    width: 308px;
    aspect-ratio: 308/489;
    max-width: 100%;
}

.card-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banner4-section {
    min-height: 100vh;
    position: relative;
    background: url("./images/banner8.png") center/cover no-repeat;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: 40px 20px;
}

.banner4-section .article-img {
    max-width: 100%;
    -webkit-filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, .7));
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, .7));
}

.iconBox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.banner4-section .iconBox img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.banner5-section {
    min-height: 100vh;
    position: relative;
    background: url("./images/banner5.png") center/cover no-repeat;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.banner5-section img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-bottom: 20px;
}

.footer {
    background: white;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer img {
    max-width: 100%;
    height: auto;
}

.footer .bottom-logo {
    max-width: 200px;
}

.footer .line {
    max-width: 800px;
}

.footer .zhuti {
    max-width: 400px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
}

.term-page {
    height: 100vh;
    overflow-y: auto;
    background-image: url('./images/banner3.png');
    background-size: cover;
    background-position: center;
}

.term-main {
    width: 100%;
    max-width: 1000px;
    padding: 60px 40px 200px 40px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: calc(var(--header-height) + 15px);
    margin-bottom: 15px;
    position: relative;
    color: #333333;
    background-color: #f5f5f5e0;
}

.term-main .title {
    font-size: 24px;
    text-align: center;
}

.term-main .date {
    text-align: center;
    padding-bottom: 30px;
}

.term-main p {
    text-indent: 2em;
    line-height: 2em;
}

.term-main h4 {
    line-height: 2em;
    margin-top: 1em;
}


/* 大屏幕优化 */
@media (min-width: 1400px) {

    .welcome,
    .cards-container {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* 中等屏幕 */
@media (max-width: 1200px) {
    .welcome {
        padding: 30px 15px;
    }

    .cards-container {
        gap: 15px;
    }

    .card-item {
        width: calc(50% - 15px);
        max-width: 308px;
    }

    .banner5-section img {
        max-width: 600px;
    }
}

/* 平板设备 */
@media (max-width: 1024px) {
    .welcome {
        flex-direction: column;
        padding: 30px 20px;
    }

    .text-content,
    .image-group {
        max-width: 100%;
        width: 100%;
    }

    .text-content img {
        max-width: 600px;
        margin: 0 auto;
    }

    .image-group {
        align-items: center;
    }

    .image-row {
        max-width: 585px;
        width: 100%;
    }

    .banner5-section img {
        max-width: 500px;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem;
    }

    .header .logo {
        width: auto;
        height: 30px;
    }

    .banner2-section img {
        max-width: calc(100% - 40px);
    }

    .product-banner3-section .p-title {
        width: 100%;
        max-width: 320px;
    }

    .welcome {
        padding: 20px 15px;
        gap: 30px;
    }

    .text-content img {
        width: 100%;
    }

    .image-row {
        flex-direction: column;
        gap: 15px;
    }

    .image-row img {
        width: 100%;
    }

    .card-item {
        width: 100%;
        max-width: 308px;
    }

    .cards-container {
        gap: 20px;
    }

    .footer {
        padding: 20px;
    }

    .footer .line {
        width: 90%;
    }

    .banner5-section img {
        max-width: 100%;
    }

    .iconBox {
        gap: 15px;
    }

    .banner4-section {
        min-height: 60vw;
    }

    .banner4-section .iconBox img {
        width: 80px;
        height: 80px;
    }

    img {
        max-width: 100vw;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    :root {
        --header-height: 50px;
    }

    .header .logo {
        margin-left: 10px;
    }

    .nav-menu {
        margin-left: 20px;
    }

    .pageItem {
        font-size: 16px;
        width: 6em;
    }

    .welcome {
        padding: 15px 10px;
        gap: 20px;
    }

    .cards-container {
        padding: 15px 10px;
        gap: 15px;
    }

    .banner4-section .article-img {
        background-color: #4560BB80;
        padding: 10px;
        filter: none;
        box-shadow: 0 0 3px #FFFFFF30;
    }

    .banner4-section .iconBox img {
        width: 60px;
        height: 60px;
    }

    .term-main {
        margin-top: calc(var(--header-height));
        margin-bottom: 15px;
    }
}

.product-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-hero .product-logo {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    height: 40px;
    width: auto;
}

.product-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-banner2-section {
    min-height: 100vh;
    position: relative;
    /* background: url("./images/banner6.png") center/cover no-repeat; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.product-banner3-section {
    min-height: 100vh;
    position: relative;
    background: url("./images/banner4.png") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 20px;
    margin: 40px 0;
}

.product-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.product-card-item {
    max-width: 308px;
    width: 100%;
    /* aspect-ratio: 308/489; */
}

.product-card-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-banner4-section {
    min-height: 100vh;
    position: relative;
    background: url("./images/banner3.png") center/cover no-repeat;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: 40px 20px;
}

.product-iconBox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.product-banner4-section .article-img {
    max-width: 100%;
}

.product-banner4-section .product-iconBox img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.product-footer {
    background: white;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.product-footer img {
    max-width: 100%;
    height: auto;
}

.product-footer .product-bottom-logo {
    max-width: 200px;
}

.product-footer .product-line {
    max-width: 800px;
}

.product-footer .product-zhuti {
    max-width: 400px;
}

@media (max-width: 768px) {
    .product-banner4-section .product-iconBox img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .product-banner4-section .product-iconBox img {
        width: 60px;
        height: 60px;
    }

    .product-cards-container {
        gap: 20px;
    }

    .product-banner3-section .p-title {
        width: 100%;
        max-width: 220px;
    }
}