/* 基础样式设置 */
html {
    font-size: 16px;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(180deg, #66A8FE 0%, #179EF6 100%);
}

/* 针对393px设计图的响应式处理 */
@media screen and (max-width: 393px) {
    html {
        font-size: 16px;
    }
}

/* 针对更大屏幕的适配 */
@media screen and (min-width: 393px) and (max-width: 414px) {
    html {
        font-size: calc(16px + (18 - 16) * (100vw - 393px) / (414 - 375));
    }
}

@media screen and (min-width: 414px) {
    html {
        font-size: 18px;
    }
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
form,
blockquote {
    margin: 0 auto;
    padding: 0;
}

body {
    font: 1rem/1.5 "Arial", "Microsoft Yahei", "微软雅黑";
    width: 100%;
    min-height: 100vh;
    text-align: left;
    background: url(./images/bg03.png) no-repeat left bottom;
    background-size: 8.0625rem;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
}

/* 基础元素样式 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

a:active {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ol,
ul,
li,
dl,
dd {
    margin: 0 auto;
    padding: 0;
    list-style-type: none;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/*头部*/
.header {
    height: 4.125rem;
    background: url(./images/bg01.png) no-repeat left top;
    background-size: contain;
}

/* 顶部装饰 */
.header-decoration {
    width: 9.6875rem;
    height: 16.4375rem;
    background: url(./images/bg02.png) no-repeat right top;
    position: absolute;
    right: 0;
    top: 4.9375rem;
    background-size: contain;
    z-index: 0;
}

/* 页面容器 */
.page-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* logo */
.logo {
    height: 1.875rem;
    background: url(./images/logo.png) no-repeat left top;
    background-size: contain;
    margin: 1.25rem auto;
}

/* 内容区 */
.container {
    position: relative;
}

/* 为容器添加背景图片 */
.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    background: url(./images/bg04.png) no-repeat center top;
    background-size: 100% auto;
    z-index: 1;
    bottom: 0;
}

/* 为容器添加向下偏移的背景色 */
.container::after {
    content: "";
    position: absolute;
    top: 150px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #d7f1ff, #E5F4FF);
    z-index: 0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* 机器人 */
.robot {
    width: 6.25rem;
    height: 4.75rem;
    position: absolute;
    top: -0.625rem;
    right: 0.625rem;
    background: url(./images/robot.png) no-repeat center center;
    background-size: contain;
    animation: floatAndRotate 5s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatAndRotate {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(2deg);
    }

    75% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

.robot::after {
    content: "";
    width: 3rem;
    height: 0.4rem;
    background-color: #085586;
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(6px);
}

/* 模拟键盘输入效果 */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(12, end);
    font-size: 18px;
    padding: 1.2rem 0 0 1.2rem;
    position: relative;
    font-weight: 600;
    z-index: 2;
}

.typewriter::after {
    content: "_";
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 外层容器 */
.wrapper {
    z-index: 1;
    position: relative;
    padding: 2.5rem 1.2rem 0.1rem 1.2rem;
}

/* 对话输入框模拟 */
.chatInput {
    height: 2.75rem;
    padding: 2px;
    border-radius: 30px;
    background: linear-gradient(to right, #34A5EB, #86CD2F);
    position: relative;
    margin-bottom: 2rem;
}

.chatInput .plcaeholder {
    display: block;
    background-color: #fff;
    height: 2.75rem;
    line-height: 2.75rem;
    border-radius: 30px;
    color: #C7C4C4;
    padding-left: 20px;
}

.chatInput::after {
    content: "";
    position: absolute;
    height: 2rem;
    width: 2rem;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: url(./images/btn-01.png) no-repeat center center;
    background-size: contain;
}

/* 咨询业务栏目 */
.biz-wrapper {
    background-color: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 1.5rem;
}

.biz-title {
    height: 2rem;
    line-height: 2rem;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    padding-left: 1rem;
}

.biz-title::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 1rem;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #149BF0;
    border-radius: 3px;
}

.biz-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.biz-one {
    width: calc(50% - 0.5rem);
    height: 2.5rem;
    margin-top: 1rem;
}

.biz-one:nth-child(1),
.biz-one:nth-child(2) {
    margin-top: 0.5rem;
}

.biz-one a {
    border-radius: 30px;
    display: block;
    height: 2.5rem;
    line-height: 2.5rem;
    padding-left: 2.5rem;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    background-position: 0.725rem center;
    background-size: 24px;
    background-repeat: no-repeat;
}

/* 底部 */
.footer {
    padding: 1.25rem 0;
    margin: auto;
    text-align: center;
    font-size: 0.75rem;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer span {
    padding: 0 0.3rem;
}

.footer::after,
.footer::before {
    content: "";
    height: 1px;
    background-color: #fff;
    width: 40px;
}