/* ============================================
   移动端 SEO 备用内容样式
   这些样式仅在 noscript 环境下显示
   ============================================ */

/* SEO 备用导航 - 默认隐藏 */
a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* 可选：保留 :active 自定义效果，或直接重置 */
a:active {
  background-color: transparent;
}

/* 为了可访问性，为键盘焦点保留可见样式（不依赖颜色） */
a:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.m-seo-nav {
    display: none;
}

noscript .m-seo-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: #1f1570;
}

noscript .m-seo-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

/* SEO 备用页脚 - 默认隐藏 */
.m-seo-footer {
    display: none;
}

noscript .m-seo-footer {
    display: block;
    background: #2f3033;
    color: #d1d1d1;
    padding: 24px 16px;
}

noscript .m-seo-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

noscript .m-seo-footer-col h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 14px;
}

noscript .m-seo-footer-col a,
noscript .m-seo-footer-col span {
    display: block;
    color: #d1d1d1;
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 6px;
}

noscript .m-seo-footer-copy {
    text-align: center;
    font-size: 11px;
    color: #888;
    border-top: 1px solid #444;
    padding-top: 16px;
    margin-top: 16px;
}

/* ============================================
   原有样式
   ============================================ */

.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #edf0f7;
}

/* 让所有移动端页面即使未引入 index.css 也能避开固定顶部导航遮挡 */
.m-page {
    padding-top: calc(56px + env(safe-area-inset-top));
}

.m-header-logo {
    color: #243157;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.m-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.m-header-buy {
    text-decoration: none;
    color: #fff;
    background: #0166ff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
}

.m-header-menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e8edf8;
    background: #fff;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.m-header-menu-btn i {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 1px;
    background: #42507a;
}

.m-nav-drawer-mask {
    position: fixed;
    inset: 0;
    z-index: 88;
    background: rgba(14, 24, 50, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.m-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    width: min(82vw, 320px);
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.24s ease;
    box-shadow: -10px 0 30px rgba(29, 49, 99, 0.15);
    display: flex;
    flex-direction: column;
}

.m-nav-drawer-head {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid #edf0f7;
}

.m-nav-drawer-head strong {
    font-size: 16px;
    color: #22335f;
}

.m-nav-close-btn {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #5e6a8c;
}

.m-nav-list {
    margin: 0;
    padding: 10px 10px 20px;
    list-style: none;
    overflow-y: auto;
}

.m-nav-list a {
    display: block;
    text-decoration: none;
    color: #4f5c7e;
    padding: 11px 10px;
    border-radius: 10px;
    font-size: 14px;
}

.m-nav-list a.is-active {
    color: #0148a4;
    background: #eef3ff;
    font-weight: 600;
}

/* 导航分组样式 */
.m-nav-group {
    /* border-bottom: 1px solid #f0f2f7; */
}

.m-nav-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 10px; */
}

.m-nav-group-title {
    display: block;
    text-decoration: none;
    color: #22335f;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.m-nav-toggle-btn {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #8a94a9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.m-nav-toggle-btn svg {
    transition: transform 0.2s ease;
}

.m-nav-group.is-expanded .m-nav-toggle-btn svg {
    transform: rotate(180deg);
}

.m-nav-sub-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 0 10px;
}

.m-nav-group.is-expanded .m-nav-sub-list {
    max-height: 300px;
}

.m-nav-sub-link {
    display: block;
    text-decoration: none;
    color: #4f5c7e;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.m-nav-sub-link:last-child {
    margin-bottom: 10px;
}

.m-nav-sub-link.is-active {
    color: #0148a4;
    background: #eef3ff;
    font-weight: 500;
}

.m-nav-group.has-active-child .m-nav-group-title {
    color: #0148a4;
}

.m-nav-open .m-nav-drawer-mask {
    opacity: 1;
    pointer-events: auto;
}

.m-nav-open .m-nav-drawer {
    transform: translateX(0);
}


.floating-boxes {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.floating-box {
    width: calc(100/750 * 70vw);
    height: calc(100/750 * 70vw);
    background-color: #0148A4;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 12px;
    color: #ffffff;
    white-space: nowrap;
}

.floating-boxes:hover .floating-box {
    background-color: #0148A4;
}

.floating-boxes.active .floating-box:not(:last-child) {
    width: calc(100/750 * 340vw);
    height: calc(100/750 * 70vw);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.floating-boxes.active .floating-box:last-child {
    width: calc(100/750 * 340vw);
    height: calc(100/750 * 400vw);
    align-items: center;
}

.floating-box-content {
    display: none;
}

.floating-boxes.active .floating-box-content {
    display: block;
    color: #fff;
}

.floating-boxes.active .floating-box.floating-box-phone {
    height: calc(100/750 * 190vw);
    align-items: flex-start;
}

.floating-boxes.active .floating-box.floating-box-phone .floating-box-content {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    align-items: flex-start;
    justify-content: center;
}


.floating-boxes.active .floating-box.floating-box-phone p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: calc(100/750 * 10vw);
    color: #fff;
    margin: 0;
}


.floating-boxes.active .floating-box.floating-box-phone p:first-child {
    margin: 0 0 calc(100/750 * 10vw);
}

.floating-boxes.active .floating-box.floating-box-phone a {
    color: #fff;
    text-decoration: none;
}

.floating-boxes.active .floating-box:last-child .floating-box-content {
    margin-left: 0;
}

.floating-box-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.floating-boxes .icon {
    width: calc(100/750 * 70vw);
    height: calc(100/750 * 70vw);
    flex-shrink: 0;
}

.floating-boxes .floating-box .icon.icon-go-top {
    background: url("https://mstatic.ofpay.com/marketing/upload/b05f2dbdac674f9c928b1e055db7c523.png") no-repeat;
    background-size: 100% 100%;
}

.floating-boxes .floating-box .icon.icon-phone {
    background: url("https://mstatic.ofpay.com/marketing/upload/b517abe7a5d04627ae0b221d93395ef0.png") no-repeat;
    background-size: 100% 100%;
}

.floating-boxes .floating-box .icon.icon-email {
    background: url("https://mstatic.ofpay.com/marketing/upload/6b97550cd06e400282eaba2c58e9c798.png") no-repeat;
    background-size: 100% 100%;
}

.floating-boxes .floating-box .icon.icon-qrcode {
    background: url("https://mstatic.ofpay.com/marketing/upload/1ebf246ef43a47ffbd620542b4dd331a.png") no-repeat;
    background-size: 100% 100%;
}

.floating-boxes .floating-box .icon.icon-online-service {
    background: url("https://mstatic.ofpay.com/marketing/upload/0f650ae0b3834a35ab0b0b07dd6fce34.png") no-repeat;
    background-size: 100% 100%;
}

.floating-boxes .floating-box .fh-qy-qrcode {
    width: calc(100/750 * 280vw);
    height: calc(100/750 * 280vw);
    background: url("https://mstatic.ofpay.com/marketing/upload/09f204e0059842cc94234eb9c99bd05b.png") no-repeat;
    background-size: 100% 100%;
    margin-top: 10px;
    display: none;
}

.floating-boxes.active .floating-box:last-child .fh-qy-qrcode {
    display: block;
}

.online-kefu-btn {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 290px;
    z-index: 1000;
    width: 55px;
    height: 55px;
    background: url("https://mstatic.ofpay.com/marketing/upload/33b77902f9134dbe802dca66fb9bc14b.png") no-repeat;
    background-size: 100% 100%;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.online-kefu-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.news-detail-page .news-detail-container {
    padding: 76px 12px 16px;
}
