:root {
    --header-height: 80px;
    --bg: #bfc4e0;
    --text: #e8ecff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: url("./img/gw01.png");

    /*background: #6f86ff;*/
    /*backdrop-filter: blur(6px);*/
    z-index: 1000;
}

.header-inner {
    height: 100%;
    width: min(1200px, 92vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    /*background: #9aa3c7;*/
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    color: white;
    font-size: 18px;
    cursor: pointer;
    height: 100%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    /*padding: 10px 50px;*/
}

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

.nav-link.is-active {
    color: #ffcd34;
    background: url("./img/gw03.png");
    /* 禁止重复平铺*/
    background-repeat: no-repeat;
    /* 让图片铺满容器（不变形） */
    background-size: cover;
    /* 图片居中显示 */
    background-position: center center;
}

html {
    scroll-behavior: smooth; /* 平滑滚动 */
}

.site-main {
    /*background: #3bb1d7;*/
    width: 100%;
    margin-top: var(--header-height);
    height: 2100px;

    background: url("./img/gw12.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.section-title-banner {
    width: 673px;
    height: 107px;
    background: url("./img/gw04.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}


.site-footer {
    /*position: fixed;*/
    left: 0;
    right: 0;
    bottom: 0;
    height: 506px;
    padding-top: 5px;

    /*background: #ffcd34;*/
    background: url("./img/gw06.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.footer-brand {
    height: 100%;
    width: 300px;
    padding: 5px;
    /*background: #bfc7ed;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-brand-image {
    height: 134px;
    width: 223px;
    background: url("./img/gw07.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.footer-contact {
    padding-left: 40px;
    /*background: #bfc7ed;*/
    width: 100%;
    padding-top: calc(250px - 223px);
}

.contact-icon--location {
    height: 36px;
    width: 36px;
    background: url("./img/gw08.png");
    background-repeat: no-repeat;
    /*background-size: cover;*/
    background-position: center center;
}

.contact-icon--phone {
    height: 36px;
    width: 36px;
    background: url("./img/gw09.png");
    background-repeat: no-repeat;
    /*background-size: cover;*/
    background-position: center center;
}

.contact-icon--email {
    height: 36px;
    width: 36px;
    background: url("./img/gw10.png");
    background-repeat: no-repeat;
    /*background-size: cover;*/
    background-position: center center;
}

.footer-inner {
    height: 100%;
    width: min(900px, 90vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-divider {
    background: url("./img/gw11.png");
    background-repeat: no-repeat;
    /*background-size: cover;*/
    background-position: center center;
}

/*轮播图配置-开始*/
/* 轮播容器 */
.carousel {
    position: relative;
    width: 1220px;
    height: 388px;
    /*background: rebeccapurple;*/
    /*overflow: hidden;*/
}

/* 卡片容器 */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 单张卡片 */
.carousel-item {
    position: absolute;
    top: 0;
    left: 50%;
    width: 585px;
    height: 388px;
    transform-origin: center;
    transition: all 0.5s ease;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

/* 关键：让图片填满卡片 */
.carousel-item img {
    width: 100%;
    height: 100%;
    /*object-fit: cover; !* 铺满且不变形 *!*/
    display: block;
    /* border-radius: 12px; 和卡片圆角保持一致 */
}

/* 中间激活卡片 */
.carousel-item.active {
    transform: translateX(-50%) scale(1);
    z-index: 10;
    background: #409eff;
}

/* 左侧卡片 */
.carousel-item.prev {
    transform: translateX(-110%) scale(0.83);
    z-index: 5;
    background: #67c23a;
    opacity: 0.5;
}

/* 右侧卡片 */
.carousel-item.next {
    transform: translateX(10%) scale(0.83);
    z-index: 5;
    background: #e6a23c;
    opacity: 0.5;
}

/* 隐藏其他卡片 */
.carousel-item.hide {
    opacity: 0;
    transform: translateX(-50%) scale(0.7);
    z-index: 1;
}

/* 左右箭头 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 128px;
    height: 85px;

    /*border-radius: 50%;*/
    /*background: rgba(0, 0, 0, 0.1);*/
    border: none;
    /*color: #fff;*/
    /*font-size: 16px;*/
    cursor: pointer;
    z-index: 20;
}

.prev-btn {
    left: 150px;
    background: url("./img/gw05.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.next-btn {
    right: 150px;
    background: url("./img/gw05-1.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* 指示器 */
.dots {
    position: absolute;
    /*调整位置，负数在外面，正数在里面*/
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;

    cursor: pointer;
    background: #c0c4cc;
}

.dot.active {
    background: #ffd58b;
}

/*轮播图配置-结束*/

.home-hero {
    width: 100%;
    padding-top: 792px;
    height: 980px;
}

.home-hero-button-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.home-hero-button {
    height: 108px;
    width: 359px;
    background: url("./img/gw18.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
}

.home-hero-button-text {
    margin: 0;
    font-size: 36px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 0 #1d7105,
    -1px 1px 0 #1d7105,
    1px -1px 0 #1d7105,
    -1px -1px 0 #1d7105;
    /*-webkit-text-stroke: 1px #1d7105;*/
}

.home-hero-title-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-hero-title {
    color: #fff7b7;
    font-size: 30px;
    font-weight: bold;
}

.home-features-section {
    width: 100%;
    height: calc(100% - 980px - 506px);
}

.section-title-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title-wrap--top-gap {
    padding-top: 10px;
}

.section-title-text {
    margin: 0;
    width: 100%;
    height: 100%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    font-weight: bold;
}

.home-carousel-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 490px;
}

.site-footer-top {
    height: calc(50% - 1px);
}

.footer-main-row {
    width: 100%;
    height: 100%;
    display: flex;
}

.footer-contact-title {
    color: #ffd58b;
    font-size: 30px;
    font-weight: bold;
    margin: 25px 0;
}

.footer-contact-row {
    display: flex;
    align-items: center;
}

.footer-contact-row--split {
    gap: 50px;
}

.footer-contact-group {
    display: flex;
    align-items: center;
}

.footer-contact-text {
    font-size: 18px;
    color: #e1dbef;
    margin: 10px;
}

.footer-contact-text--underline {
    border-bottom: 1px solid #e1dbef;
}

.contact-icon {
    height: 36px;
    width: 36px;
    background-repeat: no-repeat;
    background-position: center center;
}

.site-footer-bottom {
    height: calc(50% - 1px);
}

.footer-inner--bottom {
    padding-top: 0;
}

.footer-bottom-content {
    width: 100%;
    height: 100%;
}

.footer-age-row {
    width: 100%;
    display: flex;
}

.footer-age-label {
    color: #aba1c3;
    font-size: 80px;
    margin: 5px;
}

.footer-age-text {
    color: #8b83a0;
    font-size: 17px;
    text-indent: 2em;
}

.footer-links-row {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    color: #aba1c3;
}

.footer-link {
    color: #ff64dc;
}

@media (max-width: 768px) {
    :root {
        --header-height: auto;
    }

    .site-header {
        position: static;
        height: auto;
        padding: 10px 0;
        background-size: cover;
    }

    .header-inner {
        width: 94vw;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .logo {
        width: 100%;
        justify-content: center;
        height: auto;
    }

    .logo img {
        max-width: 170px;
        width: 45vw;
        height: auto;
    }

    .nav-link {
        width: calc(50% - 10px);
        min-height: 44px;
        font-size: 14px;
        padding: 6px 4px;
        text-align: center;
    }

    .nav-link p {
        margin: 0;
    }

    .site-main {
        margin-top: 0;
        height: auto;
        min-height: 100vh;
        background-position: top center;
    }

    .home-hero {
        height: auto;
        padding-top: 24vw;
        padding-bottom: 30px;
    }

    .home-hero-button {
        height: 58px;
        width: 309px;
        padding-bottom:  0;
    }

    .home-hero-button-text {
        margin: 0;
        font-size: 20px;
    }

    .home-hero-title {
        font-size: 22px;
        text-align: center;
        padding: 0 14px;
    }

    .home-features-section {
        height: auto;
        padding-bottom: 24px;
    }

    .section-title-banner {
        width: 92vw;
        max-width: 673px;
        height: 60px;
        background-size: 100% 100%;
    }

    .section-title-text {
        font-size: 20px;
    }

    .home-carousel-wrap {
        height: auto;
        padding: 12px 0 28px;
    }

    .carousel {
        width: 94vw;
        max-width: 500px;
        height: 220px;
        margin: 0 auto;
    }

    .carousel-item {
        width: 72vw;
        max-width: 320px;
        height: 220px;
    }

    .carousel-item.prev {
        display: none;
    }

    .carousel-item.next {
        display: none;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        background-size: contain;
    }

    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }

    .dots {
        bottom: -24px;
    }

    .img666 {
        width: 100%;
    }

    .site-footer {
        height: auto;
        padding: 20px 0;
        background-size: cover;
    }

    .site-footer-top,
    .site-footer-bottom {
        height: auto;
    }

    .footer-inner {
        width: 94vw;
        height: auto;
        display: block;
    }

    .footer-main-row {
        height: auto;
        display: block;
    }

    .footer-brand {
        width: 100%;
        height: auto;
    }

    .footer-brand-image {
        width: 160px;
        height: 96px;
    }

    .footer-contact {
        padding: 8px 0 0;
    }

    .footer-contact-title {
        font-size: 22px;
        margin: 12px 0;
    }

    .footer-contact-row,
    .footer-contact-row--split,
    .footer-contact-group {
        display: block;
    }

    .contact-icon {
        margin-top: 8px;
    }

    .footer-contact-text {
        margin: 6px 0 10px;
        font-size: 15px;
        word-break: break-word;
    }

    .footer-age-row {
        display: block;
    }

    .footer-age-label {
        font-size: 44px;
        margin: 0 0 8px 0;
    }

    .footer-age-text {
        font-size: 14px;
        text-indent: 1.5em;
        margin: 0;
    }

    .footer-links-row {
        display: block;
    }

    .footer-copyright,
    .footer-link {
        display: block;
        margin: 8px 0;
    }

    .footer-bottom-content > div:last-child p {
        font-size: 14px !important;
        text-indent: 1.5em !important;
        word-break: break-word;
    }
}
