/*========== 字体引入 ==========*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap');

/*========== css变量 ==========*/
:root {
    --main-color: #443;
    --border-radius: 95% 4% 97% 5% / 4% 94% 3% 95%;
    --border-radius-hover: 4% 95% 6% 95% / 95% 4% 92% 5%;
    --border: .2rem solid var(--main-color);
    --border-hover: .2rem dashed var(--main-color);
}

/*========== 基础css ========*/
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .3s linear;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    /* 瞄点跳转时,可视区padding-top 7rem */
    scroll-padding-top: 7rem;
    scroll-behavior: smooth;
}

section {
    padding: 2rem 9%;
}

.heading {
    font-size: 9rem;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: .05rem var(--main-color);
    letter-spacing: .2rem;
    text-align: center;
    pointer-events: none;
    position: relative;
}

.heading span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: var(--main-color);
    font-size: 3rem;
}

.btn {
    display: inline-block;
    padding: .9rem 1.5rem;
    border: var(--border);
    border-radius: var(--border-radius);
    color: var(--main-color);
    background: none;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1.7rem;
}

.btn:hover {
    border-radius: var(--border-radius-hover);
    border: var(--border-hover);
}

/*========== header =========*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    padding: 0 9%;
}

.header .logo {
    display: flex;
    align-items: center;
}

.header .logo img {
    height: 8rem;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}


.header .logo i {
    padding-left: .5rem;
}

.header .navbar {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.header .navbar a {
    margin: 0 1rem;
    font-size: 1.7rem;
    color: var(--main-color);
    text-decoration: none;
}

.header .navbar a.active {
    color: #f48fb1;
    border-bottom: .3rem solid #f48fb1;
    padding-bottom: .1rem;
}

.header .navbar .contact-btn {
    background-color: #f4a5a5;
    color: white !important;
    border-radius: .7rem;
    padding: .7rem 2rem;
}

.header .navbar .popup{
    display: none; /* 默认隐藏 */
    position: absolute;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-size: 1.5rem;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1000;
}

.header .navbar .popup::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -.5rem;
    border-width: .5rem;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.header .btn {
    margin-top: 0;
}

#menu-btn {
    font-size: 3rem;
    color: var(--main-color);
    cursor: pointer;
    display: none;
}

/*========== home =========*/
.home {
    /*min-height: 100vh;*/
    padding-top: 12rem;
    background: url(../images/home-bg.png) no-repeat;
    background-position: center;
    background-size: cover;
}

.home .row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 20rem;
    flex-direction: column;
    min-height: 55rem;
}

.home .row .content {
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 25vh;
    font-style: italic;
}

    /* 新的气泡弹框样式 - 公众号按钮 */
.home .row .qrcode-bubble {
    position: absolute;
    background: white;
    color: black;
    padding: 1.5rem 2rem;
    border-radius: .8rem;
    box-shadow: 0 .4rem .8rem rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    white-space: nowrap;
    z-index: 1000;
    display: none; /* 默认隐藏 */
    /*top: 50%;  !* 垂直居中按钮 *!*/
    left: 100%; /* 放置在按钮的右侧 */
    transform: translateX(10px) translateY(-50%); /* 居中对齐按钮并微调位置 */
    /*min-width: 150px; !* 设置最小宽度 *!*/
}

.home .row .qrcode-bubble::after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%; /* 将箭头垂直居中 */
    transform: translateY(-50%); /* 调整箭头垂直居中 */
    border-width: .8rem;
    border-style: solid;
    border-color: transparent white transparent transparent; /* 设置箭头颜色为白色，指向左侧 */
}

.home .row .image {
    flex: 1 1 42rem;
    padding-top: 10rem;
    text-align: center;
}

.home .row .image img {
    height: 35rem;
    animation: float 4s linear infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0rem);
    }

    50% {
        transform: translateY(-7rem);
    }
}

.home .row .content h3 {
    font-size: 6.5rem;
    color: var(--main-color);
    text-transform: uppercase;
}

.home .image-slider {
    text-align: center;
    padding: 3rem 0;
}

.home .image-slider img {
    height: 9rem;
    margin: 0 .5rem;
    cursor: pointer;
    margin-top: 5rem;
}

.home .image-slider img:hover {
    transform: translateY(-2rem);
}

/*========== about ==========*/
.about {
    background: url(../images/about-bg.png) no-repeat;
    /*min-height: 100vh;*/
    padding-top: 12rem;
    background-position: center;
    background-size: cover;
}

.about .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.about .row .content {
    flex: 1 1 42rem;
    max-width: 48vw;
    /*height: 75vh;*/
    display: flex;
    flex-direction: column;
}

.about .row .content .title {
    color: #ed8787;
    font-size: 7rem;
    line-height: 1.8;
    letter-spacing: 1rem;
    font-style: italic;
}

.about .row .content p {
    color: #ed8787;
    font-size: 3rem;
    line-height: 9rem;
    text-indent: 7rem;
    padding: 1rem 0;
    letter-spacing: 5px;
    font-style: italic;
}

.about .row .content .footer {
    margin-top: auto;
    font-size: 1.5rem
}

/*========== footer ==========*/
.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(23rem, auto));
    gap: 1.5rem;
}

.footer .box-container .box h3 {
    font-size: 2.5rem;
    padding: 1rem 0;
    color: var(--main-color);
}

.footer .box-container .box a {
    display: block;
    font-size: 1.5rem;
    padding: 1rem 0;
    color: var(--main-color);
}

.footer .box-container .box a i {
    padding-right: .5rem;
}

.footer .box-container .box a:hover i {
    padding-right: 2rem;
}

.footer .credit {
    text-align: center;
    font-size: 2rem;
    padding: 2rem 1rem;
    margin-top: 1rem;
    color: var(--main-color);
}

.footer .credit span {
    border-bottom: var(--border-hover);
}


/*========== breakpoints ==========*/
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 3rem;
    }

    section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .heading {
        font-size: 6rem;
    }

    .heading span {
        font-size: 2.3rem;
    }

    #menu-btn {
        display: initial;
    }

    #menu-btn.fa-times {
        transform: rotate(180deg);
    }

    .header .navbar {
        position: absolute;
        left: 0;
        right: 0;
        top: 99%;
        height: 0;
        overflow: hidden;
        background: #fff;
        transition: height .6s;
    }

    .header .navbar.active {
        border-top: 1px solid #eee;
        height: 330px;
    }

    .header .navbar a {
        display: block;
        font-size: 2.2rem;
        margin: 0;
        padding: 1.5rem 2rem;
    }

    .home {
        text-align: center;
    }

    .home .row .content h3 {
        font-size: 4rem;
    }

    .menu .box-container .box {
        margin-left: 0;
        margin-top: 6rem;
        flex-flow: column;
        text-align: center;
    }

    .menu .box-container .box img {
        margin-left: 0;
        margin-top: -6rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .home .row .image img {
        height: auto;
        width: 100%;
    }
}
