/* 全局样式 - Header 和 Footer */

/* ==================== 阿里巴巴普惠体字体子集 ==================== */
/* Regular 字重 - 合并两份字体子集 */
@font-face {
    font-family: "阿里巴巴普惠体";
    font-weight: 400;
    src: url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/VVTnlJaAIFln.woff2") format("woff2"),
         url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/2EoiAP0hdXlo.woff") format("woff");
    font-variation-settings: normal;
    font-display: swap;
}

@font-face {
    font-family: "阿里巴巴普惠体";
    font-weight: 400;
    src: url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/Qz6ciWlhHivc.woff2") format("woff2"),
         url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/6hXZb2pFOijN.woff") format("woff");
    font-variation-settings: normal;
    font-display: swap;
    unicode-range: U+4E00-9FFF;
}

/* Medium 字重 - 合并两份字体子集 */
@font-face {
    font-family: "阿里巴巴普惠体";
    font-weight: 500;
    src: url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/gKxPsqjla3wt.woff2") format("woff2"),
         url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/X47TgVqnSuFt.woff") format("woff");
    font-variation-settings: normal;
    font-display: swap;
}

@font-face {
    font-family: "阿里巴巴普惠体";
    font-weight: 500;
    src: url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/Qz6ciWlhHivc.woff2") format("woff2"),
         url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/6hXZb2pFOijN.woff") format("woff");
    font-variation-settings: normal;
    font-display: swap;
    unicode-range: U+4E00-9FFF;
}

/* SemiBold 字重 - 合并两份字体子集 */
@font-face {
    font-family: "阿里巴巴普惠体";
    font-weight: 600;
    src: url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/3hoCtkBSy350.woff2") format("woff2"),
         url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/c9XRxC2ovQJa.woff") format("woff");
    font-variation-settings: normal;
    font-display: swap;
}

@font-face {
    font-family: "阿里巴巴普惠体";
    font-weight: 600;
    src: url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/Qz6ciWlhHivc.woff2") format("woff2"),
         url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/6hXZb2pFOijN.woff") format("woff");
    font-variation-settings: normal;
    font-display: swap;
    unicode-range: U+4E00-9FFF;
}

/* Bold 字重 - 合并两份字体子集 */
@font-face {
    font-family: "阿里巴巴普惠体";
    font-weight: 700;
    src: url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/3hoCtkBSy350.woff2") format("woff2"),
         url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/c9XRxC2ovQJa.woff") format("woff");
    font-variation-settings: normal;
    font-display: swap;
}

@font-face {
    font-family: "阿里巴巴普惠体";
    font-weight: 700;
    src: url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/Qz6ciWlhHivc.woff2") format("woff2"),
         url("https://at.alicdn.com/wf/webfont/kP94RJUGgPH3/6hXZb2pFOijN.woff") format("woff");
    font-variation-settings: normal;
    font-display: swap;
    unicode-range: U+4E00-9FFF;
}

/* ==================== CSS Reset ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

body {
    font-family: "阿里巴巴普惠体", "Microsoft YaHei", Arial, sans-serif;
    font-weight: 400;
    font-variation-settings: normal;
}

ol, ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

/* ==================== REM 布局基础 ==================== */
html {
    font-size: 16px; /* 1rem = 16px，基于 1920px 设计稿 */
}

/* 响应式 rem 基准 - 移到 responsive.css 中统一管理 */

/* 占位空间，防止内容被固定头部遮挡 */
.header-spacer {
    height: 4.0625rem;
}

/* ==================== Header 样式 ==================== */
/* Header 样式 */

/* Header 组件样式 - 使用 header-component 前缀避免污染 */
.header-component * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header-component {
    width: 100%;
    height: 4.0625rem;
    background-color: #f8f9fa;
    border-bottom: 0.0625rem solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-component .header-container {
    max-width: 75.0rem;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo 区域 */
.header-component .header-logo {
    width: 10.75rem;
    height: 2.875rem;
    display: flex;
    align-items: center;
    margin-right: 1.875rem;
    justify-content: center;
}

.header-component .header-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 导航菜单 */
.header-component .header-nav {
    display: flex;
    align-items: center;
    gap: 1.875rem;
    flex: 1;
    justify-content: flex-end;
}

/* WordPress兼容类名 */
.header-component .menu {
    display: flex;
    list-style: none;
    gap: 0.625rem;
}

.header-component .nav-list {
    display: flex;
    list-style: none;
    gap: 0.625rem;
}

.header-component .menu-item,
.header-component .nav-item {
    position: relative;
}

.header-component .menu-item > .sub-menu {
    list-style: none;
}

.header-component .nav-link {
    color: #1A2233;
    font-size: 1.0rem;
    text-decoration: none;
    padding: 0.8rem 0.75rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.header-component .nav-link:hover {
    color: #1890ff;
}

.header-component .dropdown-icon {
    width: 0.6875rem; /* 11px ÷ 16 = 0.6875rem */
    height: 0.375rem; /* 6px ÷ 16 = 0.375rem */
    margin-left: 0.375rem;
    object-fit: contain;
}

/* 下拉菜单 */
.header-component .sub-menu,
.header-component .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    padding: 0.75rem 0;
    min-width: 9.375rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    margin-top: 0.625rem;
    z-index: 1001;
}

.header-component .menu-item:hover > .sub-menu,
.header-component .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.header-component .sub-menu .menu-item,
.header-component .dropdown-menu .menu-item {
    position: static;
}

.header-component .dropdown-item {
    padding: 0.625rem 1.25rem;
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 0.875rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.header-component .dropdown-item:hover {
    background-color: #f5f5f5;
    color: #1890ff;
}

/* 右侧按钮区域 */
.header-component .header-actions {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
}

.header-component .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.header-component .btn-login {
    background-color: transparent;
    color: #1890ff;
    border: 0.0625rem solid #1890ff;
}

.header-component .btn-login:hover {
    color: #FFF;
    border-color: #1890ff;
    background-color: #1890ff;
}

.header-component .btn-trial {
    background-color: #0062FF;
    color: #fff;
    border: 0.0625rem solid #0062FF;
}

.header-component .btn-trial:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
}

/* 移动端菜单按钮 */
.header-component .mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 1.875rem;
    height: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.header-component .mobile-menu-btn span {
    width: 100%;
    height: 0.1875rem;
    background-color: #1A2233;
    border-radius: 0.125rem;
    transition: all 0.3s;
}

.header-component .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.header-component .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.header-component .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.4375rem, -0.4375rem);
}




/* ==================== Footer 样式 ==================== */
/* Footer 样式 */

/* Footer 组件样式 - 使用 footer-component 前缀避免污染 */
.footer-component * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.footer-component {
    width: 100%;
    background-color: #1A2233;
    padding: 5.0rem 0 0;
}

.footer-component .footer-container {
    max-width: 75.0rem;
    margin: 0 auto;
}

.footer-component .footer-main {
    display: flex;
    justify-content: space-between;
    padding-bottom: 3.75rem;
}

/* 左侧联系信息区域 */
.footer-component .footer-left {
    width: 20.0rem;
}

.footer-component .footer-logo {
    width: 16.125rem;
    height: 4.3125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.875rem;
}

.footer-component .footer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.footer-component .contact-info {
    margin-bottom: 1.875rem;
}

.footer-component .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.9375rem;
    color: #a0aec0;
    font-size: 0.875rem;
}

.footer-component .contact-icon {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.25rem;
    display: inline-block;
    vertical-align: middle;
}

.footer-component .contact-label {
    margin-right: 0.5rem;
    color: #718096;
}

.footer-component .contact-value {
    margin-top: 0;
    margin-bottom: 1.875rem;
    font-size: 1.125rem;
    color: #fff;
}

.footer-component .qr-codes {
    display: flex;
    gap: 1.25rem;
}

.footer-component .qr-code-item {
    text-align: center;
}

.footer-component .qr-code {
    width: 6.25rem;
    height: 6.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    background-color: #fff;
    border-radius: 0.25rem;
    padding: 0.3125rem;
}

.footer-component .qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-component .qr-label {
    color: #a0aec0;
    font-size: 0.75rem;
}

/* 右侧导航链接区域 */
.footer-component .footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 6.25rem;
    padding-left: 6.25rem;
}

.footer-component .footer-column {
    min-width: 7.5rem;
}

.footer-component .column-title {
    color: #fff;
    font-size: 1.0rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.footer-component .column-links {
    list-style: none;
}

.footer-component .column-link {
    margin-bottom: 0.75rem;
}

/* 二级标题样式 */
.footer-component .column-link.column-subtitle {
    color: #ffffff;
    font-size: 0.75rem; /* 12px ÷ 16 = 0.75rem */
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.7rem;
}

.footer-component .column-link a {
    color: #a0aec0;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-component .column-link a:hover {
    color: #fff;
}

/* 底部备案信息 */
.footer-component .footer-bottom {
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
    padding: 1.875rem 0;
    text-align: center;
}

.footer-component .footer-bottom-content {
    max-width: 75.0rem;
    margin: 0 auto;
    color: #8D8B8E;
    font-size: 0.75rem;
    line-height: 1.8;
}

.footer-component .footer-bottom-content p {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem; /* 6px ÷ 16 = 0.375rem */
}

.footer-component .footer-bottom-content a {
    color: #8D8B8E;
    text-decoration: none;
    transition: all .3s;
}

.footer-component .footer-bottom-content .police-link {
    display: flex;
}
.footer-component .footer-bottom-content a:hover {
    color: #ffffff;
}




/* 公安备案图标 */
.police-icon {
    width: 0.75rem; /* 12px ÷ 16 = 0.75rem */
    margin-right: 0.5rem;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}


/* ==================== WOW.js 动画优化 ==================== */
/* 防止动画时出现横向滚动条 */
.wow {
    visibility: hidden;
}

.wow.animate__animated {
    visibility: visible;
}

/* 确保所有section不会超出视口 */
section {
    overflow: hidden;
}

/* 防止动画元素超出容器 */
.content-component {
    overflow: hidden;
}
