/**
 * Full Screen Template - Custom Fixes
 * 修复全屏模板的显示问题
 */

/* 移除页面默认的白色背景 */
html,
body {
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 确保 full_screen_holder 填满页面，无任何间隙 */
.full_screen_holder {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* 确保 full_screen_inner 填满整个容器 */
.full_screen_inner {
    position: relative !important;
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 确保每个 section 填满视口，无任何间隙 */
.full_screen_section {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* 第一个 section：无 padding */
.full_screen_section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 其他 section：为 header 留空间 */
.full_screen_section:not(:first-child) {
    padding-top: 100px !important;
}

/* fullPage.js 内部容器 - 关键修复 */
.fp-section {
    height: 100vh !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.fp-tableCell {
    height: 100% !important;
    width: 100% !important;
    display: table-cell !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fp-scrollable {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 修复 fullPage.js 的滚动容器 */
#fullpage {
    position: relative !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Header 固定浮动 */
body .page_header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

/* 导航点位置 */
#fp-nav {
    z-index: 1001 !important;
}

/* 确保 WPBakery 的行和列填满 section */
.full_screen_section .vc_row,
.full_screen_section .wpb_row {
    height: 100% !important;
    margin: 0 !important;
}

.full_screen_section .vc_column_container,
.full_screen_section .wpb_column {
    height: 100% !important;
}

/* 隐藏 footer */
footer,
.footer_top_holder,
.footer_bottom_holder {
    display: none !important;
}

/* 默认隐藏所有导航下划线（包括激活状态） */
.main_menu a .underline_dash,
.vertical_menu a .underline_dash {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 只有鼠标悬停时显示下划线 */
.main_menu a:hover .underline_dash,
.vertical_menu a:hover .underline_dash {
    opacity: 1 !important;
    visibility: visible !important;
}
