/* iframe嵌入模式样式优化 */
.iframe-mode #menu {
    display: none !important;
}

/* 隐藏导航栏的sticky wrapper */
.iframe-mode #menu-sticky-wrapper {
    display: none !important;
}

.iframe-mode .fullscreen {
    padding-top: 0 !important;
}

/* 修复 banner 的负 top 值导致图标被裁切的问题 */
.iframe-mode .banner {
    top: 0 !important;
    padding-top: 30px !important;
}

/* 确保产品头部图标完全可见 */
.iframe-mode .product-header-icon {
    margin-top: 20px !important;
    margin-bottom: 30px !important;
}

/* 调整 overlay 的 margin */
.iframe-mode .overlay {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* 显示 footer 但隐藏返回顶部按钮 */
.iframe-mode #footer {
    display: block !important;
}

.iframe-mode #footer .scrollToTop {
    display: none !important;
}

.iframe-mode .head-btn a[href^="index.html"] {
    display: none !important;
}

.iframe-mode .navbar-brand {
    pointer-events: none !important;
    cursor: default !important;
}

/* iframe嵌入时的内容区域优化 */
.iframe-mode .section-block:first-of-type {
    padding-top: 20px !important;
}

.iframe-mode .landing {
    min-height: auto !important;
}

/* 隐藏所有按钮 */
.iframe-mode .btn-primary,
.iframe-mode .btn-default,
.iframe-mode .btn,
.iframe-mode button,
.iframe-mode .head-btn {
    display: none !important;
}

/* 隐藏种子用户申请按钮 */
.iframe-mode .seed-user-link {
    display: none !important;
}

/* 隐藏返回首页等外部链接的通用样式 */
.iframe-mode a[href^="index.html"],
.iframe-mode a[href^="http"],
.iframe-mode a[href^="//"] {
    pointer-events: none !important;
    opacity: 0.5 !important;
    cursor: default !important;
}

/* 备案链接特殊处理：保持可见但不可点击 */
.iframe-mode a[href="https://beian.miit.gov.cn/"] {
    pointer-events: none !important;
    opacity: 1 !important;
    cursor: default !important;
    color: inherit !important;
}

.iframe-mode a[href^="#"] {
    pointer-events: auto !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

/* 特别针对头部按钮区域的处理 */
.iframe-mode .head-btn {
    display: none !important;
}

/* 隐藏弹窗中的按钮 */
.iframe-mode .modal-close {
    display: none !important;
}
