﻿/* index11 移动端平替 - 高级权威版 */

/* ===== 移动端汉堡菜单按钮（子页面也需要） ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-left: 12px;
  z-index: 1001;
}
.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1d2129;
  margin: 3px 0;
  transition: 0.3s;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* 子页面移动端"首页"快捷链接（PC 端隐藏） */
.m-header-home {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: #3370ff;
  text-decoration: none;
  margin-right: 12px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; margin: 0; padding: 0; background: #fff; }

  /* 只在首页存在 mobile-home 时隐藏其后的桌面 layout；
     子页面没有 mobile-home，需要正常显示 layout */
  .mobile-home ~ .layout { display: none !important; }

  #app { display: block; }

  .mobile-home {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1d1d1f;
    background: #fff;
    min-height: 100vh;
  }

  /* ===== 顶部栏 ===== */
  .m-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; height: 52px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.05);
    position: sticky; top: 0; z-index: 100;
  }
  .m-topbar a { white-space: nowrap; }
  /* 顶栏右侧动作组：登录/注册 + 联系客服，靠右对齐（与 PC 一致） */
  .m-topbar-actions {
    display: flex; align-items: center; gap: 10px;
    margin-left: auto; flex: 0 0 auto;
  }
  /* 顶栏里只有这两个动作，不再需要原来的左间距（index.html 内联样式定义了 margin-left，这里提高一级优先级盖掉） */
  .m-topbar .m-topbar-entry { margin-left: 0; }
  .m-logo { display: flex; align-items: center; }
  .m-logo img { height: 28px; width: auto; }
  .m-topbar-btn {
    font-size: 13px; padding: 6px 16px; border-radius: 8px;
    background: #3370ff; color: #fff; text-decoration: none; font-weight: 500;
  }
  /* 窄屏放不下全部快捷链接（测试支付/开发文档）时收紧，避免溢出换行
     （必须放在上方基础规则之后，同优先级下靠后者生效） */
  @media (max-width: 480px) {
    .m-topbar { padding: 0 10px; }
    .m-topbar-entry { font-size: 11.5px; margin-left: 7px; }
    .m-topbar-btn { padding: 5px 11px; font-size: 12px; }
    .m-logo img { height: 22px; }
  }
  @media (max-width: 360px) {
    .m-topbar { padding: 0 8px; }
    .m-topbar-entry { font-size: 11px; margin-left: 5px; }
    .m-topbar-btn { padding: 4px 9px; font-size: 11px; }
    .m-logo img { height: 20px; }
  }

  /* ===== Hero ===== */
  .m-hero {
    text-align: center; padding: 44px 20px 36px;
    background: linear-gradient(175deg, #eef4ff 0%, #fff 40%);
    position: relative; overflow: hidden;
  }
  .m-hero::before {
    content: ''; position: absolute; top: -60px; left: -60px;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(51,112,255,.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .m-hero::after {
    content: ''; position: absolute; bottom: 0; right: -40px;
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(51,112,255,.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .m-hero-tags { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; position: relative; z-index: 1; }
  .m-hero-tag {
    font-size: 13px; font-weight: 600; padding: 7px 18px; border-radius: 999px;
    background: rgba(255,255,255,.8); color: #555;
    border: 1px solid rgba(0,0,0,.06);
    transition: all .25s;
  }
  .m-hero-tag.active { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }

  .m-hero h1 {
    font-size: 30px; font-weight: 800; line-height: 1.25;
    letter-spacing: -.5px; margin: 0 0 14px; position: relative; z-index: 1;
    transition: opacity .35s, transform .35s;
  }
  .m-hero-desc {
    font-size: 14px; color: #666; line-height: 1.7; margin: 0 auto 28px;
    max-width: 340px; position: relative; z-index: 1;
    transition: opacity .35s, transform .35s;
  }

  .m-hero-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 28px; position: relative; z-index: 1; }
  .m-stat { text-align: center; }
  .m-stat-num { display: block; font-size: 22px; font-weight: 800; color: #1d1d1f; letter-spacing: -.5px; }
  .m-stat-label { display: block; font-size: 11px; color: #999; margin-top: 4px; }

  .m-btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; max-width: 300px; height: 50px;
    background: #3370ff; color: #fff; text-decoration: none;
    border-radius: 14px; font-size: 16px; font-weight: 600;
    box-shadow: 0 8px 24px rgba(51,112,255,.3);
    transition: all .25s; position: relative; z-index: 1;
  }
  .m-btn-primary.dark { background: #1d1d1f; box-shadow: 0 8px 24px rgba(0,0,0,.2); }

  /* ===== 通用区块 ===== */
  .m-section { padding: 44px 20px; }
  .m-section-label {
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: #3370ff; margin-bottom: 10px; text-align: center;
  }
  .m-section-title { font-size: 24px; font-weight: 800; text-align: center; margin: 0 0 10px; letter-spacing: -.5px; }
  .m-section-desc { font-size: 14px; color: #888; text-align: center; margin: 0 0 32px; line-height: 1.6; }
  .m-accent { color: #3370ff; }

  /* ===== 核心优势卡片 ===== */
  .m-features { display: grid; gap: 14px; }
  .m-feature {
    background: #fff; border-radius: 16px; padding: 24px 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.04);
    display: flex; flex-direction: column;
    transition: all .3s;
  }
  .m-feature-icon {
    width: 48px; height: 48px; margin-bottom: 16px;
    background: #eef4ff; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
  }
  .m-feature-icon svg { width: 28px; height: 28px; }
  .m-feature strong { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
  .m-feature span { font-size: 13px; color: #888; line-height: 1.65; }

  /* ===== 行业方案 ===== */
  .m-solutions { display: grid; gap: 12px; }
  .m-solution {
    background: #fafbfc; border-radius: 16px; padding: 20px;
    border-left: 3px solid #3370ff;
  }
  .m-solution-badge {
    display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px;
    border-radius: 6px; background: #eef4ff; color: #3370ff; margin-bottom: 10px;
  }
  .m-solution strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
  .m-solution span { font-size: 13px; color: #888; line-height: 1.65; }

  /* ===== CTA ===== */
  .m-cta {
    text-align: center; padding: 48px 20px;
    background: linear-gradient(180deg, #eef4ff, #dce8ff 40%, #fff 100%);
    border-radius: 24px 24px 0 0;
  }
  .m-cta h2 { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
  .m-cta p { font-size: 14px; color: #666; margin: 0 0 28px; line-height: 1.7; }

  /* ===== 底部 ===== */
  .m-footer { padding: 36px 20px 28px; background: #1d1d1f; color: #fff; }
  .m-footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
  .m-footer-links a { font-size: 13px; color: rgba(255,255,255,.65); text-decoration: none; }
  .m-footer-divider { height: 1px; background: rgba(255,255,255,.1); margin-bottom: 20px; }
  .m-footer-info p { font-size: 12px; color: rgba(255,255,255,.4); margin: 0 0 8px; line-height: 1.6; }
  .m-footer-info a { color: rgba(255,255,255,.5); text-decoration: none; }
  .m-footer-copy { margin-top: 12px !important; }

  /* ===== 子页面桌面布局矫正 ===== */
  /* 子页面（无 mobile-home）的 desktop layout 在手机上正常显示时需要覆盖桌面端固定宽度 */

  /* 桌面版 .home-container 在手机端不需要首页的固定高度 */
  .home-container[data-v-d08b3604] {
    min-height: auto !important;
    overflow: visible !important;
  }

  /* 桌面版底部在手机端需要自适应宽度 */
  .footer_wrap[data-v-7efa5356] {
    min-width: 100% !important;
    margin-top: 40px !important;
  }
  .footer_wrap .footer_container[data-v-7efa5356] {
    width: 100% !important;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .footer_wrap .footer_container .footer_main[data-v-7efa5356] {
    padding-top: 30px;
  }
  .footer_wrap .footer_container .footer_middle[data-v-7efa5356] {
    flex-wrap: wrap;
    gap: 16px;
    margin-right: 0;
  }
  .footer_wrap .footer_container .footer_middle > div[data-v-7efa5356] {
    flex: 1 1 40%;
    min-width: 120px;
  }
  .footer_wrap .footer_container .footer_itemtitle[data-v-7efa5356] {
    font-size: 15px;
    margin-bottom: 12px;
  }
  .footer_wrap .footer_container .footer_itemsubtitle[data-v-7efa5356] {
    height: auto;
    margin-bottom: 8px;
  }
  .j-site-footer-bottom[data-v-7efa5356] {
    width: 100% !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
    padding: 16px 0;
  }
  .j-site-footer-copyright[data-v-7efa5356] {
    margin-left: 0;
  }

  /* 确保 layout 不溢出屏幕 */
  .layout[data-v-d08b3604] {
    overflow-x: hidden;
  }

  /* 文章内容区图片自适应 */
  .article-body img,
  .article-content img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 文章内容区表格、代码块防止溢出 */
  .article-body table,
  .article-content table,
  .article-body pre,
  .article-content pre {
    max-width: 100% !important;
    overflow-x: auto !important;
  }

  /* ===== 子页面头部移动端适配 ===== */

  /* —— header 容器 — 覆盖桌面端 fixed + 大 padding —— */
  .header[data-v-23a91798] {
    position: sticky !important;
    top: 0;
    z-index: 999;
    height: 52px !important;
    padding: 0 16px !important;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);
  }

  /* —— content — 覆盖桌面端 1192px 固定宽度 —— */
  .header .content[data-v-23a91798] {
    width: 100% !important;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
  }

  /* —— logo — 覆盖桌面端 150px 固定宽度 —— */
  .header .content .logo[data-v-23a91798] {
    width: auto;
    padding-right: 8px;
    flex-shrink: 0;
  }
  .header .content .logo img[data-v-23a91798] {
    height: 36px;
    width: auto;
  }

  /* —— 菜单 — 默认隐藏，点击汉堡后下拉展开 —— */
  .header .menu[data-v-23a91798] {
    display: none !important;
  }
  .header .menu.open[data-v-23a91798] {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 0;
    padding: 12px 16px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }

  /* 展开后内部菜单样式 */
  .header .menu.open .arco-menu-horizontal .arco-menu-inner {
    padding: 0 !important;
  }
  .header .menu.open .arco-menu-overflow-wrap {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }
  .header .menu.open .arco-menu-item,
  .header .menu.open .arco-menu-pop {
    display: block !important;
    padding: 12px 4px !important;
    width: 100%;
    margin-left: 0 !important;
    border-bottom: 1px solid #f2f3f5;
    font-size: 15px;
    line-height: 1.4;
  }
  .header .menu.open .arco-menu-item:last-child {
    border-bottom: none;
  }
  .header .menu.open .arco-menu-item a {
    display: block;
    width: 100%;
  }

  /* —— 操作区 (CTA 按钮 + 汉堡) — 始终在右侧可见 —— */
  .header .actions[data-v-23a91798] {
    display: flex !important;
    width: auto !important;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* —— 汉堡菜单按钮 —— */
  .mobile-menu-toggle {
    display: flex !important;
    margin-left: 12px;
  }

  /* —— CTA 按钮紧凑样式 —— */
  .header .actions .arco-btn.merchant[data-v-23a91798] {
    font-size: 13px;
    padding: 6px 15px;
    border-radius: 8px;
    background: #3370ff;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
  }
  .header .actions .arco-btn.merchant .arco-icon-user {
    display: none;
  }

  /* —— 隐藏 Arco 菜单的 "…" 溢出镜像元素 —— */
  .header .arco-menu-overflow-sub-menu-mirror {
    display: none !important;
  }
  .header .arco-menu-pop-header .arco-menu-icon-suffix {
    display: none;
  }

  /* —— 首页快捷链接（子页面显示） —— */
  .m-header-home {
    display: inline !important;
    font-size: 14px;
    font-weight: 600;
    color: #3370ff;
    text-decoration: none;
    margin-right: 10px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   PC 端顶栏导航 · 点击热区放大（配合 index11 顶栏菜单）
   --------------------------------------------------------------------------
   现象：Arco 横向菜单里的 <a> 是行内元素，鼠标必须精确停在文字上才点得到，
   菜单项自带的左右 12px 内边距、上下留白全是死区。
   做法（纯 CSS，不改 DOM、不动布局）：
     1) 菜单项上下各加 8px 内边距 + 等量负外边距 —— 外边距盒子仍是 30px，
        flex 布局完全不受影响，但 hover 底色与热区变成 46px 高；
     2) 给 <a> 加一个透明伪元素铺满整个菜单项盒子（含左右内边距），
        落在伪元素上的点击会算在所属 <a> 上，于是「看着能点的地方」全都能点。
   只在 ≥769px 生效：窄屏是纵向堆叠菜单，热区撑大会误点到相邻项。
   ========================================================================== */
@media (min-width: 769px) {
  .header .arco-menu-horizontal .arco-menu-item,
  .header .arco-menu-horizontal .arco-menu-pop {
    position: relative;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: -8px;
    margin-bottom: -8px;
  }

  /* 透明热区：铺满整个菜单项盒子（左右含 12px 内边距） */
  .header .arco-menu-horizontal .arco-menu-item > a::before,
  .header .arco-menu-horizontal .arco-menu-pop-header > a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 6px;
    background-color: transparent;
  }
}

/* ==========================================================================
   顶栏入口链接 · 父子层级下拉
   --------------------------------------------------------------------------
   后台「皮肤入口链接 → 编辑菜单」里给条目选了「上级菜单」，首页就会把子项
   收进上级的下拉层里（本文件是全站顶栏样式的唯一来源，改这一处两份顶栏都生效）
   ========================================================================== */
.header .arco-menu-pop { position: relative; }
/* Arco 自带的 .arco-menu-inner 是 overflow:auto，会把悬浮下拉层裁掉，顶栏里放开 */
.header .arco-menu-inner { overflow: visible; }
.header .arco-menu-pop > .nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  padding: 6px;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.header .arco-menu-pop:hover > .nav-sub,
.header .arco-menu-pop:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header .nav-sub-link {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #4e5969;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.header .nav-sub-link:hover { background: #f1f5ff; color: #165dff; }

@media (max-width: 768px) {
  /* 移动端是纵向菜单：子项直接展开平铺并缩进，不做悬浮层 */
  .header .arco-menu-pop > .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    padding: 0 0 4px 18px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
}
