/* 协议 / 关于页（cms_about_show → video/protocol.html）页面前缀 ap-* */

/* 协议页：防横向撑破放在内容区，避免 body overflow 裁切顶栏下拉 */
.ap-doc .ap-page,
.ap-doc .cs_footer{
  overflow-x:clip;
}
.ap-doc .cs_site_header.cs_sticky_header{
  background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.06);
  overflow:visible;
}
.ap-doc.chome-page .cs_site_header .cs_main_header,
.ap-doc.chome-page .cs_site_header .cs_main_header_in{
  height:var(--lp-header-h, 64px);
}
.ap-doc .cs_site_header .container,
.ap-doc .cs_site_header .cs_main_header,
.ap-doc .cs_site_header .cs_main_header_in{
  overflow:visible;
}
.ap-doc .header-login-btn.chome-header-cta{
  width:auto;
  min-width:0;
  height:auto;
  padding:0;
  margin:0;
  gap:10px;
  background:transparent;
  border-radius:0;
  color:inherit;
  font-size:14px;
}
.ap-doc .chome-link-login,
.ap-doc .chome-link-register{
  font-size:14px;
  font-weight:400;
  line-height:36px;
  text-decoration:none;
  cursor:pointer;
  transition:color .2s ease;
}
.ap-doc .chome-link-login{
  color:#6f7485;
}
.ap-doc .chome-link-register{
  color:#605DFF;
  font-weight:500;
}
.ap-doc .chome-link-login:hover,
.ap-doc .chome-link-register:hover{
  color:#4b48d6;
}
.ap-doc .chome-header-sep{
  color:#d0d4de;
  font-size:13px;
  line-height:36px;
  user-select:none;
}

/* 顶栏导航：与官网首页同一套字号/字重/hover 下划线 */
@media (min-width: 1200px) {
  .ap-doc .cs_site_header .cs_nav {
    height: 100%;
  }
  .ap-doc .cs_site_header .cs_nav_list {
    display: flex !important;
    align-items: center;
    height: 100%;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .ap-doc .cs_site_header .cs_nav_list > li {
    margin: 0;
    height: 100%;
  }
  .ap-doc .cs_site_header .cs_nav_list > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #151827;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .ap-doc .cs_site_header .cs_nav_list > li > a::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 18px;
    height: 2px;
    width: auto;
    border-radius: 1px;
    background: #605dff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
    pointer-events: none;
  }
  .ap-doc .cs_site_header .cs_nav_list > li > a:hover,
  .ap-doc .cs_site_header .cs_nav_list > li > a:focus-visible {
    color: #605dff;
  }
  .ap-doc .cs_site_header .cs_nav_list > li > a:hover::before,
  .ap-doc .cs_site_header .cs_nav_list > li > a:focus-visible::before {
    width: auto;
    transform: scaleX(1);
  }
}
@media (max-width: 1199.98px) {
  .ap-doc .cs_site_header .cs_nav_list > li > a::before {
    display: none;
  }
  .ap-doc .cs_site_header .cs_nav_list > li > a {
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #151827;
  }
  .ap-doc .cs_site_header .cs_nav_list > li > a:hover {
    color: #605dff;
    background: #f0f1ff;
  }
}

/* 页脚：与首页 cp-lp-footer-dark 一致（协议页不加载 landing-v2） */
.ap-doc .cs_footer.cp-lp-footer-dark{
  background:#151726 !important;
  color:rgba(255,255,255,.72);
}
.ap-doc .cs_footer.cp-lp-footer-dark .cs_footer_widget_title{color:#fff !important}
.ap-doc .cs_footer.cp-lp-footer-dark a{color:rgba(255,255,255,.72) !important}
.ap-doc .cs_footer.cp-lp-footer-dark a:hover{color:#fff !important}
.ap-doc .cs_footer.cp-lp-footer-dark .cp-lp-footer-desc{font-size:14px;line-height:1.7;color:rgba(255,255,255,.65)}
.ap-doc .cs_footer.cp-lp-footer-dark .cp-lp-footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.1);
  padding:18px 0 28px;
  font-size:13px;
  color:rgba(255,255,255,.5);
}
.ap-doc .cs_footer.cp-lp-footer-dark .cp-lp-footer-bottom a{color:rgba(255,255,255,.5) !important}

/* 协议页页脚顶距：落地页大空白条在此无必要 */
.ap-doc .cs_footer > .cs_height_130{
  height:20px !important;
}
@media (max-width:991px){
  .ap-doc .cs_footer > .cs_height_130,
  .ap-doc .cs_footer > .cs_height_lg_80{
    height:12px !important;
  }
  .ap-doc .cs_footer .cs_height_62,
  .ap-doc .cs_footer .cs_height_lg_40{
    height:12px !important;
  }
  .ap-doc .ap-page{
    padding-bottom:24px;
  }
}

/* 顶栏高度改跟首页 64px（chome-page + padding-top），不再另加 spacer */

.ap-page{
  --ap-brand:#605DFF;
  --ap-brand-soft:rgba(96,93,255,.08);
  --ap-ink:#0f172a;
  --ap-ink-2:#334155;
  --ap-muted:#64748b;
  --ap-line:#e2e8f0;
  --ap-card:#fff;
  --ap-bg:#f4f6fb;
  --ap-radius:16px;
  background:
    radial-gradient(1200px 480px at 12% -10%,rgba(96,93,255,.10),transparent 55%),
    radial-gradient(900px 420px at 88% 0%,rgba(14,165,233,.06),transparent 50%),
    linear-gradient(180deg,var(--ap-bg) 0%,#eef1f7 100%);
  min-height:50vh;
  padding:28px 0 48px;
  color:var(--ap-ink);
}
/* 与 header/footer 共用 .container 宽与 gutter，勿另设 max-width/左右 padding */
.ap-shell{
  width:100%;
  box-sizing:border-box;
}
.ap-layout{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.ap-main-col{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.ap-nav{
  position:sticky;
  top:calc(var(--lp-header-h, 64px) - 37px);
  align-self:start;
  margin:0;
  background:var(--ap-card);
  border:1px solid var(--ap-line);
  border-radius:var(--ap-radius);
  padding:14px 10px;
  box-shadow:0 8px 28px rgba(15,23,42,.04);
}
.ap-nav-label{
  display:block;
  padding:6px 12px 12px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ap-muted);
}
.ap-nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.ap-nav-link{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  color:var(--ap-ink-2);
  text-decoration:none;
  line-height:1.35;
  transition:background .15s,color .15s;
}
.ap-nav-link:hover{
  background:rgba(15,23,42,.04);
  color:var(--ap-ink);
  text-decoration:none;
}
.ap-nav-link.is-active{
  background:var(--ap-brand-soft);
  color:var(--ap-brand);
}
.ap-main{
  background:var(--ap-card);
  border:1px solid var(--ap-line);
  border-radius:var(--ap-radius);
  box-shadow:0 10px 36px rgba(15,23,42,.05);
  padding:36px 40px 44px;
  min-width:0;
}
.ap-head{
  margin-bottom:28px;
  padding-bottom:22px;
  border-bottom:1px solid var(--ap-line);
}
.ap-title{
  margin:0 0 10px;
  font-size:32px;
  font-weight:750;
  line-height:1.25;
  color:var(--ap-ink);
  letter-spacing:-.02em;
}
.ap-meta{
  margin:0;
  font-size:13px;
  color:var(--ap-muted);
  line-height:1.5;
}
.ap-empty{
  margin:0;
  color:var(--ap-muted);
  font-size:15px;
  line-height:1.7;
}

/* CMS 正文排版 */
.ap-prose{
  max-width:100%;
  font-size:15.5px;
  line-height:1.75;
  color:var(--ap-ink-2);
}
.ap-prose > *:first-child{margin-top:0}
.ap-prose h1,
.ap-prose h2,
.ap-prose h3,
.ap-prose h4{
  color:var(--ap-ink);
  line-height:1.35;
  font-weight:700;
}
.ap-prose h1{
  font-size:1.5rem;
  margin:2rem 0 .9rem;
}
.ap-prose h2{
  font-size:1.25rem;
  margin:2.1rem 0 .85rem;
  padding-bottom:.55rem;
  border-bottom:1px solid var(--ap-line);
}
.ap-prose h3{
  font-size:1.05rem;
  margin:1.6rem 0 .65rem;
}
.ap-prose h4{
  font-size:1rem;
  margin:1.35rem 0 .5rem;
}
.ap-prose p{
  margin:0 0 1em;
}
.ap-prose ul,
.ap-prose ol{
  margin:0 0 1.1em;
  padding-left:1.35em;
}
.ap-prose ul{list-style:disc}
.ap-prose ol{list-style:decimal}
.ap-prose li{
  margin:0 0 .45em;
  padding-left:.15em;
}
.ap-prose li::marker{color:var(--ap-brand)}
.ap-prose a{
  color:var(--ap-brand);
  text-decoration:underline;
  text-underline-offset:2px;
}
.ap-prose a:hover{opacity:.85}
.ap-prose strong,
.ap-prose b{color:var(--ap-ink);font-weight:700}
.ap-prose blockquote{
  margin:1.2em 0;
  padding:.75em 1em;
  border-left:3px solid var(--ap-brand);
  background:var(--ap-brand-soft);
  color:var(--ap-ink-2);
  border-radius:0 10px 10px 0;
}
.ap-prose table{
  width:100%;
  border-collapse:collapse;
  margin:1.2em 0;
  font-size:14px;
}
.ap-prose th,
.ap-prose td{
  border:1px solid var(--ap-line);
  padding:.55em .7em;
  text-align:left;
  vertical-align:top;
}
.ap-prose th{
  background:#f8fafc;
  font-weight:700;
  color:var(--ap-ink);
}
.ap-prose img{
  max-width:100%;
  height:auto;
  border-radius:10px;
}
.ap-prose hr{
  border:0;
  border-top:1px solid var(--ap-line);
  margin:1.8em 0;
}

/* 页底轻量客服：与 ap-main 同列同宽 */
.ap-help{
  margin:0;
  width:100%;
}
.ap-help-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  background:var(--ap-card);
  border:1px solid var(--ap-line);
  border-radius:var(--ap-radius);
  padding:18px 22px;
  box-shadow:0 8px 28px rgba(15,23,42,.04);
}
.ap-help-text{
  min-width:0;
}
.ap-help-title{
  margin:0 0 4px;
  font-size:16px;
  font-weight:700;
  color:var(--ap-ink);
}
.ap-help-desc{
  margin:0;
  font-size:13px;
  color:var(--ap-muted);
  line-height:1.5;
}
.ap-help-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:42px;
  padding:0 18px;
  border:0;
  border-radius:10px;
  background:var(--ap-brand);
  color:#fff;
  font-size:14px;
  font-weight:650;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s,transform .15s;
}
.ap-help-btn:hover{
  background:#4f4cf0;
  color:#fff;
  text-decoration:none;
  transform:translateY(-1px);
}

@media (max-width:991px){
  .ap-layout{
    grid-template-columns:1fr;
    gap:12px;
  }
  .ap-main-col{gap:12px}
  .ap-nav{
    position:static;
    top:auto;
    padding:10px 12px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }
  .ap-nav-label{padding:2px 4px 10px}
  .ap-nav-list{
    flex-direction:row;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:8px;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    width:100%;
    max-width:100%;
  }
  .ap-nav-link{
    flex:0 0 auto;
    padding:8px 14px;
    border:1px solid var(--ap-line);
    border-radius:999px;
    font-size:13px;
    white-space:nowrap;
  }
  .ap-nav-link.is-active{
    border-color:transparent;
  }
  .ap-main{
    padding:20px 16px 24px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }
  .ap-head{margin-bottom:18px;padding-bottom:14px}
  .ap-title{font-size:24px}
  .ap-prose{max-width:none}
  .ap-help-inner{width:100%;box-sizing:border-box;padding:14px 16px}
}
@media (max-width:640px){
  .ap-page{padding:12px 0 28px}
  .ap-main{padding:16px 14px 20px;border-radius:14px}
  .ap-title{font-size:22px}
  .ap-help-inner{padding:14px}
  .ap-help-btn{width:100%;justify-content:center}
}
