/* 基础样式 */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    user-select: none;
    overflow-x: auto;
    font-family: 'Rajdhani', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 布局容器 */
.main-layout-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

.main-layout-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    opacity: 0.15;
    pointer-events: none;
}

.el-container {
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

.el-main {
    padding: 0 !important;
    margin: 0 !important;
    background-color: #ffffff;
}

/* 公共组件样式 */
#header, #footer {
    width: 100%;
}

/* 响应式基础设置 */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(1vh);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* v-html内容样式 */
div[data-v-html-content] {
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
}

div[data-v-html-content] img,
div[data-v-html-content] video,
div[data-v-html-content] iframe {
    max-width: 100%;
    height: auto;
}

p[data-v-html-content] {
    max-width: 100%;
    overflow: hidden;
    /*word-break: break-word;*/
    word-break: break-all;
    font-size: 16px;
    line-height: 24px;
    text-align: justify;
}

p[data-v-html-content] p {
    margin: 1em 0;
    line-height: inherit;
}

p[data-v-html-content] h1,
p[data-v-html-content] h2,
p[data-v-html-content] h3,
p[data-v-html-content] h4,
p[data-v-html-content] h5,
p[data-v-html-content] h6 {
    text-indent: 0;
    margin: 1.5em 0 1em;
    font-weight: 500;
    line-height: 1.4;
}

p[data-v-html-content] img,
p[data-v-html-content] video,
p[data-v-html-content] iframe {
    max-width: 100% !important;
    border-radius: 4px;
    text-indent: 0em !important;
}

p[data-v-html-content] div,
p[data-v-html-content] figure,
p[data-v-html-content] pre,
p[data-v-html-content] blockquote {
    max-width: 100%;
    overflow: hidden;
}

p[data-v-html-content] ul,
p[data-v-html-content] ol {
    margin: 1em 0;
    padding-left: 1.5em;
    line-height: 24px;
}

p[data-v-html-content] strong,
p[data-v-html-content] b {
    font-weight: 500;
}

p[data-v-html-content] a {
    color: #30559a;
    text-decoration: underline;
}

p[data-v-html-content] a:hover {
    color: #1d3c70;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #30559A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(22, 93, 255, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0E42D2;
    transform: translateY(-5px);
}
