:root {
    --site-max-width: 1320px;
    --color-text: #333333;
    --font-nav: 16px;
    /* 导航链接字号 */
    --color-nav: #000000;
    /* 导航链接默认色 */
    --color-nav-active: #1b52ed;
    /* 导航链接悬浮/选中色 */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
}

/* header */
.index-main {
    /* 共用背景已移到 .hero（包裹 header + banner 的容器） */
}

/* hero：包裹 header 与 banner，背景图宽度 100%、高度覆盖这两块总高 */
.hero {
    width: 100%;
    background-color: #FFFFFF;
    background-image: url(../img/banner.png);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
    height: 919px;
    /* 头部已固定脱流，这里补出原本 header 占的高度，banner 不会上移 */
    padding-top: 90px;
}

/* 头部常驻顶部：滚动后导航也一直可见；顶端时透明，离开顶端由 .is-scrolled 加白底 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
}

.header.is-scrolled {
    background-color: #ffffff;
}

.header-container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    height: 90px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;



}

.logo {
    width: 200px;
    padding-left: 15px;
}

.logo img {
    width: 100%;
}

nav.web-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    align-items: center;
    gap: 30px;
    padding: 0 15px;
}

nav.web-nav a {
    font-size: var(--font-nav);
    color: var(--color-nav);
    /* 默认黑色，取自 :root */
    text-decoration: none;
    transition: color 0.2s ease;
    /* 悬浮变色更平滑（可选） */
}

/* 悬浮，或当前选中页（给当前链接加 class="active"）时变蓝 */
nav.web-nav a:hover,
nav.web-nav a.active,
nav.web-nav a:active {
    color: var(--color-nav-active);
}

.icon-nav-1,
.phone-nav {
    display: none;
}

/* banner 主体：内容区最大 1320px，居中，与 header-container 对齐 */
.banner .banner-container {
    background: transparent;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    height: 829px;
    position: relative;
}

/* 文字块：垂直居中；右侧距 banner-container 右边 100px（1920 设计稿 → 5.2083vw，随视口等比缩放） */
.banner .banner-container .banner-content {
    position: absolute;
    top: 50%;
    right: min(100px, 5.2083vw);
    transform: translateY(-50%);
}

.banner .banner-container .banner-content .big-title {
    font-weight: 700;
    font-size: 72px;
    color: #000000;
    margin: 24px 0;
}

.banner .banner-container .banner-content .sub-title {
    font-size: 24px;
    color: #333333;
}

.banner .banner-container .banner-content button {
    width: 140px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid transparent;
    background-color: #000000;
    color: white;
}

.icon-to-right {
    color: #FFFFFF;
    font-size: 20px;
}

.tips {
    max-width: 1320px;
    width: 100%;
    height: 1078px;
    margin: 0 auto;
    padding: 115px 10px;
    display: grid;
    grid-template-columns: 620fr 24fr 656fr;

}

.tips .tips-left {
    grid-column: 1;
    height: 100%;
    background-color: #1B52ED;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

}

.tips .tips-left img {
    width: 255px;
    height: 398px;
    border: 1px solid red;
}

.tips .tips-left .desc {
    font-size: 20px;
    line-height: 20px;
    color: #FFFFFF;
    border: 1px solid red;
}

.tips .tips-left .title {
    font-size: 48px;
    line-height: 96px;
    font-weight: 700;
    color: #FFFFFF;
    border: 1px solid red;
}

.tips .tips-left .content {
    font-size: 18px;
    line-height: 31.5px;
    font-weight: 400;
    color: #CCD9FF;
    border: 1px solid red;
    
}

.tips .tips-right {
    grid-column: 3;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    text-align: center;
}

.tips .tips-right div.tips-right-top {
    background-color: #FFC700;
    height: 49%;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;

}

.tips .tips-right div:first-child img {
    width: 239px;
    height: 161px;
}

.tips .tips-right div.tips-right-bottom {
    background-color: #FF6A00;
    height: 49%;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.tips .tips-right div:last-child img {
    width: 230px;
    height: 80px;
}

@media (max-width: 767px) {

    /*头部*/
    nav.web-nav {
        display: none;

    }

    .icon-nav-1 {
        display: block;
        padding-right: 15px;
    }


    .header {
        background-color: #fff;
        height: 70px;
    }

    .header .header-container {
        height: 70px;
    }


    nav.phone-nav {
        display: none;
        z-index: 25;
        padding: 15px;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    }


    nav.phone-nav.is-open {
        display: flex;

    }

    nav.phone-nav a {
        display: block;
        height: 40px;
        line-height: 40px;
        padding: 0 20px;
        border-bottom: 1px dashed #ccc;
        color: var(--color-text);
        text-decoration: none;
        transition: color 0.2s ease;
        font-size: 14px;
    }

    /* 悬浮 / 当前选中页高亮（与桌面端统一） */
    nav.phone-nav a:hover,
    nav.phone-nav a.active {
        color: var(--color-nav-active);
    }

    /* banner*/
    .hero {
        width: 100%;
        background-color: #FFFFFF;
        background-image: url(../img/banner.png);
        background-repeat: no-repeat;
        /* 手机端：与电脑端一致，图片按原始尺寸显示、不缩放不压缩，从左边开始往右铺，超出部分裁掉 */
        background-position: left top;
        background-size: auto;
        height: 919px;
    }

    /* banner 文字：手机端单独字号 */
    .banner .banner-container .banner-content .big-title {
        font-size: 26px;
        font-weight: 600;
    }

    .banner .banner-container .banner-content .sub-title {
        font-size: 20px;
    }
}