/* 基础主题变量 */
:root {
    --main-bg-color: #ffffff;
    --title-color: #000000;
    --footer-bg-color: #2c3134;
    --input-bg-color: #f6f6f8;
    --input-placeholder-color: #777777;
    --text-color: #333333;
    --text-active-color: #3c71f5;
    --btn-primary-bg-color: #3c71f5;
    --btn-primary-text-color: #ffffff;
    --nav-height: 3.14286rem;
    --content-width: 64.28571rem;
    --footer-height: 22.35714rem;
    --content-height: calc(100vh - var(--nav-height));
    --common-border-radius: 0.71429rem;
    --button-border-radius: 0.28571rem;
}

#nav {
    z-index: 9999;
}

.mobile-logout {
    display: none;
}

main {
    background-color: #F6F6F6;
}

@font-face {
    font-family: 'PingFang SC'; /* 你想要的字体名称 */
    src: url('/static/font/PingFang.ttf') format('truetype'); /* 字体文件的路径和格式 */
    font-weight: normal; /* 字体粗细 */
    font-style: italic; /* 字体风格，如normal, italic等 */
}

body {
    font-family: 'PingFang SC', sans-serif; /* 使用自定义字体，如果浏览器不支持则回退到sans-serif */
}


html {
    font-size: 14px;
}

.h-\[453px\] {
    height: 32.35714rem !important;
}

.leading-\[20px\] {
    --tw-leading: 1.42857rem !important;
    line-height: 1.42857rem !important;
}

.h-\[2px\] {
    height: 0.18286rem !important;
}

.w-\[60px\] {
    width: 4.28571rem !important;
}

.leading-\[17px\] {
    --tw-leading: 1.21429rem !important;
    line-height: 1.21429rem !important;
}

.leading-\[15px\] {
    --tw-leading: 1.07143rem !important;
    line-height: 1.07143rem !important;
}

.leading-\[28px\] {
    --tw-leading: 2rem !important;
    line-height: 2rem !important;
}

.text-\[20px\] {
    font-size: 1.42857rem !important;
}

.text-\[14px\] {
    font-size: 1rem !important;
}

.leading-\[19px\] {
    --tw-leading: 1.35714rem !important;
    line-height: 1.35714rem !important;
}

.w-\[274px\] {
    width: 19.57143rem !important;
}

.min-h-\[249px\] {
    min-height: 17.78571rem !important;
}

.userdropmenu {
    position: relative;
    display: inline-block;
}

.userdropmenu-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    right: 0;
    top: 30px;
}

.userdropmenu-content a {
    font-size: 14px;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.userdropmenu-content #logoutId {
    font-size: 14px;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.userdropmenu-divider {
    height: 1px;
    margin: 4px 0;
    overflow: hidden;
    line-height: 0;
    background-color: #e8e8e8;
}

.layui-input:focus, .layui-textarea:focus {
    border-color: #3C71F5 !important;
    box-shadow: 0 0 0 3px rgba(22, 183, 119, .08);
}

@media screen and (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media screen and (max-width: 1200px) {
    #slogan-list {
        gap: 10px;
        justify-content: space-between;
    }
}

@media screen and (min-width: 1024px) {
    html {
        font-size: 18px;
    }

    .text-\[15px\] {
        font-size: 1.07143rem !important;
    }

    .text-\[12px\] {
        font-size: 0.85714rem !important;
    }

    .text-\[11px\] {
        font-size: 0.78571rem !important;
    }

    .w-\[159px\] {
        width: 11.35714rem !important;
    }

    .text-\[9px\] {
        font-size: 0.64286rem !important;;
    }

    .gap-\[56px\] {
        gap: 4rem !important;
    }

    .w-\[56px\] {
        width: 4rem !important;
    }

    .h-\[56px\] {
        height: 4rem !important;
    }

    .h-\[79px\] {
        height: 5.64286rem !important;
    }

    .gap-\[15px\] {
        gap: 1.07143rem !important;
    }

    .w-\[210px\] {
        width: 15rem !important;
    }
}


/* 通用容器 */
.block {
    width: var(--content-width, 900px);
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    .block {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Header 视觉与交互 */
header {
    height: var(--nav-height, 44px);
    user-select: none;
    box-shadow: 0px 3px 9px rgba(0, 0, 0, 0.08);
    display: block;
    box-sizing: border-box;
    transition: all .3s ease-in-out;
}

header > div::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transition: all .3s ease-in-out;
}

header.home {
    background: transparent;
}

header.home > div::after {
    background: rgba(255, 255, 255, 0.3);
}

.register {
    color: var(--text-active-color);
    transition: all .3s ease-in-out;
}

.register:hover, .login:hover {
    opacity: .8;
}

.register:active, .login:active {
    opacity: .8;
    transform: translate(0, 1px);
}

.link {
    transition: all .3s ease-in-out;
}

.link.active {
    color: var(--text-active-color);
    position: relative;
}

.login {
    background-color: var(--btn-primary-bg-color);
    color: var(--btn-primary-text-color);
    transition: all .3s ease-in-out;
}

nav::-webkit-scrollbar {
    display: none;
}

@media screen and (max-width: 840px) {
    nav {
        margin-left: 15px;
    }
}

.header-title {
    display: none;
}

.header-inner {
    outline: none;
}

/* Logo 文本颜色（导航区域） */
#logo2 span {
    color: #ffffff;
    transition: color .2s ease-in-out;
}

#logo2.light span {
    color: var(--text-color);
}

@media screen and (min-width: 769px) {
    header.home .register {
        color: #fff;
    }

    header.home .login {
        background-color: var(--btn-primary-text-color);
        color: var(--btn-primary-bg-color);
    }

    .home .link {
        color: #fff;
    }

    .home .link.active {
        color: #fff;
        font-weight: 500;
    }

    .home .link.active::after {
        background: #fff;
    }

    .link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--text-active-color);
    }
}
.layui-form-rest{
    width: 450px;
}

@media screen and (max-width: 768px) {
    .mobile-logout {
        display: block !important;
    }
    .layui-form-rest{
        width: auto;
    }

    .header-title {
        display: flex;
    }

    .header-inner {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 12.85714rem;
        background: #fff;
        padding-top: 2.85714rem;
        padding-bottom: 2.85714rem;
        z-index: 10;
        box-shadow: 3px 0 9px rgba(0, 0, 0, 0.08);
        transition: transform .3s ease-in-out;
        transform: translateX(-100%);
    }

    .header-inner.drawer-open {
        transform: translateX(0);
    }

    .header-inner.drawer-close {
        transform: translateX(-100%);
    }

    .block-view {
        flex-direction: column;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .block-view nav {
        flex-direction: column;
        flex-grow: 1;
        margin-left: 0;
        width: 100%;
        gap: 0;
        margin-top: 20px;
        margin-right: 0;
    }

    .block-view nav .link {
        height: auto;
        padding: 10px;
        justify-content: flex-start;
        width: 100%;
        padding-left: 40px;
        font-size: 14px;
        transition: none;
        align-items: center;
    }

    .block-view nav .link img {
        width: 10px;
        height: 10px;
        margin-top: -3px;
    }

    .block-view nav .link.active {
        background-color: var(--text-active-color);
        color: #fff;
    }

    .block-view nav .link + .link {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .login-block {
        flex-direction: column;
        width: 90%;
    }

    .login-block .login, .login-block .register {
        width: 100%;
        text-align: center;
        height: 40px;
    }

    .header-title {
        display: flex !important;
    }

    .kefu {
        display: none !important;
    }
}

/* 页面与模块 */
.page {
    margin-top: calc(0px - var(--nav-height));
}

.header-view {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.box {
    background: #fff;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.list .box {
    width: calc(50% - 0.53571rem);
    flex-shrink: 0;
}

.btn:hover {
    opacity: .8;
}

.process-bar.active {
    width: 100%;
    transition: width 3s .3s ease-in-out;
}

.cloud-list {
    background-image: url('/static/img/big-img/bg1.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.cloud-list .card {
    width: calc(33.333% - 23.25px);
    box-shadow: 0px 3px 15px rgba(63, 74, 109, 0.3);
    transition: all .3s ease-in-out;
}

.custom-view {
    background: linear-gradient(270deg, #D1ECFF 0%, #E9EBFF 100%);
    background-image: url('/static/img/big-img/bg5.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

.custom-view .card:nth-child(2) .btn {
    border-color: #00C4BC;
    color: #00C4BC;
}

.custom-view .card:nth-child(1) {
    border-bottom: 8px solid #84A1FF;
}

.custom-view .card:nth-child(2) {
    border-bottom: 8px solid #00C4BC;
}

.custom-view .card:nth-child(3) {
    border-bottom: 8px solid #3870FF;
}

.custom-view .card:nth-child(1) .icon {
    width: 57px;
    height: 72px;
    left: 16px;
    top: -49px;
}

.custom-view .card:nth-child(2) .icon {
    width: 74px;
    height: 89px;
    left: 13px;
    top: -57px;
}

.custom-view .card:nth-child(3) .icon {
    width: 93px;
    height: 93px;
    left: 10px;
    top: -60px;
}

.custom-view .card {
    width: calc(33.33% - 12px);
    border: 1px solid #fff;
    background: linear-gradient(270deg, #fff 0%, #fff 100%);
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.15);
}

.grid-view {
    background-image: url('/static/img/big-img/bg-title.webp');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center top;
}

.grid-view .card {
    box-shadow: 0px 5px 9px rgba(0, 0, 0, 0.1);
    background: linear-gradient(270deg, #F5F8FF 0%, #FFFFFF 100%);
    width: calc(25% - 12px);
}

.grid-view .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid;
    border-image: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)) 2 2;
    z-index: -1;
}

.bottom-view {
    background-image: url('/static/img/big-img/bg3.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.business-view {
    --item-width: calc((100% - 55px) / 6);
}

.business-view .card {
    background: linear-gradient(270deg, #F5F8FF 0%, #FFFFFF 100%);
    box-shadow: 0px 5px 17px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    width: calc(var(--item-width) + 26px);
    left: calc(((var(--item-width) + 10px) * var(--cur-index)) - 7px);
    transition: left .3s ease-in-out;
}

.business-view .card .inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 8px;
    border: 2px solid;
    border-image: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)) 2 2;
}

.business-view .card .inner {
    position: relative;
}

.business-view .item {
    width: var(--item-width);
}

.business-view .item:nth-child(3) img {
    width: 27px;
    height: 27px;
}

.business-view .item:nth-child(5) img {
    width: 21px;
    height: 21px;
}

/* Footer */
footer {
    height: var(--footer-height, 234px);
}

footer .inner {
    background-color: var(--footer-bg-color);
}

/*.link:hover{ text-decoration: underline; }*/
.title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* 对齐 hc-footer.vue 的响应式规则 */
@media screen and (max-width: 1200px) {
    .slogan-list {
        gap: 10px;
        justify-content: space-between;
    }

    .inner .block {
        justify-content: center;
    }

    .inner .logo {
        flex-grow: unset;
        margin-right: 10px;
    }

    .inner .item {
        width: 24%;
    }
}

@media screen and (max-width: 1024px) {
    .inner .item {
        width: calc(33.33% - 10px);
        text-align: center;
    }

    .inner .title {
        border-bottom: none;
        padding-bottom: 0;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .slogan-list {
        flex-wrap: wrap;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .slogan-list-wrapper {
        height: auto;
    }

    .slogan-list > div {
        flex-direction: column;
        width: calc(50% - 5px);
        align-items: center;
    }

    .inner {
        padding-top: 0px;
    }

    .inner .block {
        position: relative;
        padding-bottom: 20px;
        padding-top: 70px;
    }

    .inner .logo {
        position: absolute;
        top: 10px;
        width: 100%;
        justify-content: center;
        flex-shrink: 0;
    }
}

/* Help Button */
.kefu {
    width: 48px;
    background: linear-gradient(180deg, #1B5FEE 0%, #478FFF 100%);
    box-shadow: 0px 8px 17px rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    border: 1px solid #fff;
}

.helper {
    width: 48px;
    height: 48px;
    background: linear-gradient(180deg, #DFEBFD 0%, #FEFEFE 100%);
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #fff;
}

.kefu .txt {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.helper:hover {
    opacity: .8;
}

/* 网络安全承诺 */
.security {
    background-color: #f7f9fe;
    padding: 28px 0 38px;
    margin-top: 10px
}

.security .block {
    display: grid;
    grid-template-columns:1.3fr .7fr;
    gap: 24px;
    align-items: center;
    padding-bottom: 38px;
}

.security .title {
    color: #000;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.7rem;
    text-align: center;
    margin: 2.5rem auto 2.2rem auto;
}

.security .text {
    color: #3F3F3F;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7rem;
}

.security .cta {
    display: inline-block;
    border-radius: 8px;
    background: #3C71F5;
    color: #FFF;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 400;
    padding: 0.45rem 2.2rem;
    margin-top: 2rem;
}

.security .shield {
    position: relative;
    width: 100%;
    height: 100%;
}

.security .check {
    position: absolute;
    height: auto;
    left: -10%;
    top: 40%;
}

.helper-btn {
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .kefu {
        display: none;
    }

    .helper-btn {
        bottom: 10vh;
    }
}

/* 适配 */
@media screen and (min-width: 769px) {
    .cloud-list .card-list {
        min-height: 490px;
    }

    .cloud-list .card.active {
        box-shadow: 0px 17px 41px rgba(63, 74, 109, 0.9);
        padding-bottom: 46px;
        margin-top: 0;
        border-radius: 8px;
    }
}

@media screen and (max-width: 768px) {
    .business-view .list {
        gap: 8px;
    }

    .business-view {
        --item-width: calc((100% - 40px) / 6);
    }

    .business-view .content {
        display: block;
        margin-top: 20px;
    }

    .business-view .item {
        zoom: .65;
    }

    .business-view .item.active {
        color: #597EF7;
        background: #fff;
        border: 1px solid #597EF7;
        box-shadow: 0px 3px 6px rgba(26, 66, 194, 0.1);
    }

    .business-view .item.active > div {
        color: #597EF7;
    }

    .business-view .card-wrapper {
        margin-top: 40px;
    }

    .business-view .card {
        display: none;
    }

    .business-view .banner {
        margin-top: 20px;
    }

    .header-view {
        height: auto;
    }

    .header-view .box {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        padding-top: 25px;
        padding-bottom: 25px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        top: 328px;
        position: absolute;
        z-index: 20;
        height: 170px;
    }

    .header-view .box > div:first-child {
        width: 100%;
        padding-right: 30px;
    }

    .header-view .title-view {
        position: unset;
        margin-top: 86px;
        padding-left: 20px;
    }

    .header-view .title-view .content {
        width: 80%;
        text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
    }

    .header-view .tab-list {
        position: unset;
        margin-top: 42px;
    }

    .header-view > div {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
        height: auto;
        padding-bottom: 26px;
        overflow: visible;
        z-index: 20;
    }

    .func-view {
        padding-top: 184px;
    }

    .func-view .list {
        flex-direction: column;
    }

    .func-view .list .box {
        width: 100%;
    }

    .cloud-list .card-list {
        flex-direction: column;
        gap: 20px;
    }

    .cloud-list .card {
        width: 100%;
        margin-top: 0;
    }

    .business-view .banner {
        height: auto;
    }

    .business-view .banner img {
        width: 100%;
        height: auto;
    }

    .business-view > div {
        padding-bottom: 53px;
    }

    .grid-view .card {
        width: calc(50% - 7.5px);
    }

    .custom-view .card-list {
        flex-direction: column;
        gap: 80px;
    }

    .custom-view .card {
        width: 100%;
        min-height: 0;
    }

    .grid-view {
        background-size: 100% 180px;
    }

    .security .check {
        top: 50%;
    }
}

@media screen and (max-width: 1200px) {
    .business-view .card .inner {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media screen and (max-width: 950px) and (min-width: 769px) {
    .business-view .card .inner > div:last-child {
        white-space: normal;
    }

    .business-view .card {
        left: calc(((var(--item-width) + 10px) * var(--cur-index)) - 10px);
        height: 132px;
        top: -31px;
    }

    .business-view .card .inner {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media screen and (max-width: 950px) {
    .business-view .card-wrapper .item {
        flex-direction: column;
    }
}

/* Logo 样式（对齐 hc-logo.vue） */
.logo {
    color: #ffffff;
    transition: color 0.3s ease-in-out;
}

.logo.mini img {
    width: 20px;
    height: 20px;
}

.logo.mini span {
    font-size: 14px;
}

.logo.light {
    color: #333333;
}

/* 修复移动端抽屉与导航的收尾括号及选择器 */
@media screen and (max-width: 768px) {
    #site-header .header-inner.unload {
        display: none;
    }

    #site-header .header-inner.mobile-drawer {
        transition: transform 0.3s ease;
    }

    /* 激活项箭头与文字颜色在首页顶部保持白色 */
    #site-header.home #nav .link.active {
        color: #ffffff;
    }

    /* 抽屉未打开时隐藏导航与登录区 */
    .header-inner:not(.drawer-open) nav,
    .header-inner:not(.drawer-open) .login-block {
        display: none;
    }
}