/*
 * @Author: 陈万照 <mr_chen_100@163.com>
 * @Date: 2024-01-18 10:53:39
 * @LastEditors: 陈万照 <mr_chen_100@163.com>
 * @LastEditTime: 2024-02-02 16:27:38
 * @Description: 主样式文件
 */

@import "./reset.css";
@import "./reset-extend.css";
@import "./var.css";

@font-face {
    font-family: "Montserrat-Regular";
    /*src: url("/statics/home/fonts/Montserrat-Regular.otf");*/
    src: url("https://oss.hisense-syxs.com/Montserrat-Regular.otf");
    /* 确保文本在网页字体加载期间保持可见 */
    font-display: swap;
}

[v-cloak] {
    display: none !important;
}

.font-montserrat-regular {
    font-family: "Montserrat-Regular";
    letter-spacing: 0;
}

/* iconfont */
.hx-iconfont {
    font-size: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: inherit;
    color: inherit;
}

/* 让锚点滚动不要顶着窗口顶部 */
:target {
    scroll-margin-top: 25vh;
}

/* 根元素 */
html,
body {
    scroll-behavior: smooth;
}

/* 全局样式 */
body {
    font-family: var(--app-font-family);
    font-size: var(--app-font-size);
    line-height: var(--app-line-height);
    background: var(--app-page-background);
    color: var(--app-text-color);
    letter-spacing: var(--app-letter-spacing);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #c0c0c0 #f0f0f0; /* Firefox */
}

/* Chrome, Safari, Opera */
body::-webkit-scrollbar {
    width: 12px; /* 宽度 */
    height: 12px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1; /* 滚动条轨道背景色 */
}

body::-webkit-scrollbar-thumb {
    background-color: #c0c0c0; /* 滚动条手柄颜色 */
    border-radius: 6px; /* 圆角 */
    border: 3px solid #f0f0f0; /* 边框样式 */
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #a0a0a0; /* 鼠标悬停时手柄颜色 */
}

/* 小滚动条 */
.hx-mini-scrollbar {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #c0c0c0 #f0f0f0; /* Firefox */
}

/* Chrome, Safari, Opera */
.hx-mini-scrollbar::-webkit-scrollbar {
    width: 6px; /* 宽度 */
    height: 4px;
}

.hx-mini-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1; /* 滚动条轨道背景色 */
}

.hx-mini-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--app-theme-color); /* 滚动条手柄颜色 */
    border-radius: 6px; /* 圆角 */
    border: 3px solid var(--app-theme-color); /* 边框样式 */
}

.hx-mini-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: var(--app-theme-color); /* 鼠标悬停时手柄颜色 */
}

/* 内容区 */
.hx-container {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.hx-wrapper {
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden;
}

@media (max-width: 1420px) {
    .hx-auto-padding-sides {
        padding-left: var(--app-padding-sides) !important;
        padding-right: var(--app-padding-sides) !important;
    }
}

/* 按钮 */
.hx-button {
    color: var(--app-btn-text-color);
    font-size: var(--app-btn-font-size);
    padding: var(--app-btn-padding);
    border: 1px solid var(--app-btn-border-color);
    border-radius: var(--app-btn-border-radius);
    background: var(--app-btn-background);
    transition-duration: var(--app-btn-transition-duration);
    transition-property: var(--app-btn-transition-property);
    position: relative;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hx-button > span {
    position: relative;
    z-index: 1;
}

.hx-button-arrow {
    margin-left: 0.25em;
    position: relative;
    z-index: 1;
    color: inherit;
}

.hx-button-icon {
    margin-right: 0.25em;
    position: relative;
    z-index: 1;
    color: inherit;
}

.hx-button:hover {
    opacity: 0.9;
}

/* 链接按钮 */
.hx-button[link] {
    --app-btn-border-color: transparent;
    --app-btn-background: transparent;

    border: none;
    padding: 0;
    border-radius: 0;
    overflow: visible;
}

/* 镂空按钮 */
.hx-button[hollow] {
    --app-btn-background: transparent;
}

/* 无边框按钮 */
.hx-button[b-none] {
    border: none;
}

/* 背景边框按钮 */
.hx-button[b-image] {
    /*background-image: url("/statics/home/images/bg-button-border.png");*/
    background-position: left top;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border: 2px solid #6b5aff;
}

/* 边框按钮 */
.hx-button[b-white] {
    --app-btn-border-color: rgba(255, 255, 255, 0.3);
}

.hx-button[b-light] {
    --app-btn-border-color: var(--app-text-color-light);
}

/* 黑色文字按钮 */
.hx-button[t-black] {
    --app-btn-text-color: #333333;
}

/* 辅助色文字按钮 */
.hx-button[t-light] {
    --app-btn-text-color: var(--app-text-color-light);
}

.hx-button[t-lighter] {
    --app-btn-text-color: var(--app-text-color-lighter);
}

/* 按钮效果 */
.hx-button[h-fill]::before {
    content: "";
    width: 120%;
    height: 120%;
    position: absolute;
    left: -10%;
    top: -10%;
    background: #333333;
    z-index: 0;
    transition-duration: var(--app-btn-transition-duration);
    transition-property: transform, opacity;
    transform: scaleX(0);
    opacity: 0;
    transform-origin: left center;
    border-radius: inherit;
}

.hx-button[h-fill]:hover {
    border-color: #333333;
    color: #ffffff;
}

.hx-button[h-fill]:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

/* 按钮效果 */
.hx-button[h-fill-white]::before {
    content: "";
    width: 120%;
    height: 120%;
    position: absolute;
    left: -10%;
    top: -10%;
    background: #ffffff;
    z-index: 0;
    transition-duration: var(--app-btn-transition-duration);
    transition-property: transform, opacity;
    transform: scaleX(0);
    opacity: 0;
    transform-origin: left center;
    border-radius: inherit;
}

.hx-button[h-fill-white]:hover {
    border-color: #333333;
    color: #333333;
}

.hx-button[h-fill-white]:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

/* 按钮效果 */
.hx-button[h-linear] {
    --app-btn-border-color: transparent;
    --app-btn-background: transparent;
}

.hx-button[h-linear]::after {
    content: "";
    width: 100%;
    height: 300%;
    position: absolute;
    left: 0;
    top: -100%;
    background: var(--app-theme-linear-gradient);
    z-index: 0;
    transition: transform var(--app-btn-transition-duration);
}

.hx-button[h-linear]:hover {
    border-color: transparent;
    color: #ffffff;
}

.hx-button[h-linear]:hover::after {
    transform: rotate(360deg);
}

/* 按钮效果 */
.hx-button[h-link]::before {
    content: "";
    width: 94%;
    height: 40%;
    position: absolute;
    left: 3%;
    bottom: 0;
    background: var(--app-theme-color);
    z-index: 0;
    transition-duration: var(--app-btn-transition-duration);
    transition-property: transform, opacity;
    transform: scaleX(0);
    opacity: 0;
    transform-origin: left center;
    border-radius: inherit;
}

.hx-button[h-link]:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

/* 标题 */
.hx-title-h1 {
    font-size: var(--app-h1-font-size);
    font-weight: var(--app-h1-font-weight);
    line-height: var(--app-h1-line-height);
}

.hx-title-h2 {
    font-size: var(--app-h2-font-size);
    font-weight: var(--app-h2-font-weight);
    line-height: var(--app-h2-line-height);
}

.hx-title-l3 {
    font-size: var(--app-l3-font-size);
    font-weight: var(--app-l3-font-weight);
    line-height: var(--app-l3-line-height);
}

.hx-title-h3 {
    font-size: var(--app-h3-font-size);
    font-weight: var(--app-h3-font-weight);
    line-height: var(--app-h3-line-height);
}

.hx-title-h4 {
    font-size: var(--app-h4-font-size);
    font-weight: var(--app-h4-font-weight);
    line-height: var(--app-h4-line-height);
}

.hx-title-h6 {
    font-size: var(--app-h6-font-size);
    font-weight: var(--app-h6-font-weight);
    line-height: var(--app-h6-line-height);
}

.hx-title-l5 {
    font-size: var(--app-l5-font-size);
    font-weight: var(--app-l5-font-weight);
    line-height: var(--app-l5-line-height);
}

.hx-title-l6 {
    font-size: var(--app-l6-font-size);
    font-weight: var(--app-l6-font-weight);
    line-height: var(--app-l6-line-height);
}

/* 标题组 */
.hx-titles {
    text-align: center;
}

.hx-titles.h2h6 .hx-title-h6 {
    margin-top: 0.6em;
}

.hx-titles.l3l6 .hx-title-l6 {
    margin-top: 1em;
}

.hx-titles.h316 .hx-title-l6 {
    margin-top: 0.56em;
}

.hx-titles.h6l6 .hx-title-l6 {
    margin-top: 0.38em;
}

.hx-titles.h2l5 .hx-title-l5 {
    margin-top: 0.95em;
}

.hx-titles.h2l6 .hx-title-l6 {
    margin-top: 1.44em;
}

.hx-bigest-title {
    background-image: url("/statics/home/images/65.png");
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    width: 100%;
    text-align: left;
}

/* 大段文本 */
.hx-section {
    font-size: var(--app-section-font-size);
    line-height: var(--app-section-line-height);
}

/* 消息提示点点 */
.hx-msg-dot {
    position: relative;
    cursor: pointer;
}

.hx-msg-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    background: var(--app-theme-linear-gradient);
    right: -12px;
    top: 0;
}

/* 省略号 */
/* 针对单行文本溢出 */
.ellipsis-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2; /* 指定最多显示两行 */
}

.ellipsis-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3; /* 指定最多显示两行 */
}

.ellipsis-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 4; /* 指定最多显示两行 */
}

.ellipsis-5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 5; /* 指定最多显示两行 */
}

/* 多行文本下划线动效 */
.hx-underline-transition {
    background-image: linear-gradient(transparent calc(100% - 0.5em), var(--app-theme-color) 0.5em);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 0% 100%;
    transition: background-size 1s ease;
    display: inline;
}

.hx-underline-transition:hover {
    background-position: left;
    background-size: 100% 100%;
}

/* 分页器 */
.hx-pagination {
    text-align: center;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
    background: #333333;
}

/* 视频播放器 */
#videoPlayer:not(.xgplayer-is-cssfullscreen) {
    width: 0 !important;
    height: 0 !important;
}

#videoPlayer + .video-player-close-btn {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 100000;
    color: #ffffff;
    mix-blend-mode: screen;
    cursor: pointer;
    transition-duration: var(--app-transition-duration);
    transition-property: color;
    display: none;
}

#videoPlayer.xgplayer-is-cssfullscreen + .video-player-close-btn {
    display: block;
}

#videoPlayer + .video-player-close-btn:hover {
    color: #ff0000;
}

/* Element UI */
.hx-center-message-box {
    width: 100%;
    max-width: 600px;
}

.hx-center-message-box .el-message-box__title {
    font-weight: bold;
}

.hx-center-message-box .el-message-box__content {
    overflow: hidden auto;
    max-height: 60vh;
    text-align: justify;
}

/* 小滚动条 */
.hx-center-message-box .el-message-box__content {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #c0c0c0 #f0f0f0; /* Firefox */
}

/* Chrome, Safari, Opera */
.hx-center-message-box .el-message-box__content::-webkit-scrollbar {
    width: 6px; /* 宽度 */
    height: 4px;
}

.hx-center-message-box .el-message-box__content::-webkit-scrollbar-track {
    background: #f1f1f1; /* 滚动条轨道背景色 */
}

.hx-center-message-box .el-message-box__content::-webkit-scrollbar-thumb {
    background-color: var(--app-theme-color); /* 滚动条手柄颜色 */
    border-radius: 6px; /* 圆角 */
    border: 3px solid var(--app-theme-color); /* 边框样式 */
}

.hx-center-message-box .el-message-box__content::-webkit-scrollbar-thumb:hover {
    background-color: var(--app-theme-color); /* 鼠标悬停时手柄颜色 */
}

/* 768 */
@media (max-width: 768px) {
    .hx-center-message-box {
        width: 90%;
        max-width: none;
    }

    .el-message {
        min-width: 300px;
    }
}

/* Swiper 左右切换按钮在火狐浏览器上会重复出现 */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

table{
    border-collapse: collapse;
    border-spacing: 0;
}

td {
    border: 1px solid #dedede;
}