﻿@font-face {
	font-family: 'iconfont';
	src: url('../fonts/font_3152891_vfk50lg2xy_1.woff2') format('woff2');
}
.iconfont {font-family:"iconfont";font-size:30px;font-style:normal;-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}

/* PC侧边栏容器 */
.fixedNav { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 9999; border-radius: 8px 0 0 8px; }
.fixedNav dd { margin: 0; position: relative; background: #0909B7; border-bottom: 1px solid rgba(255,255,255,0.1); width: 80px; }
.fixedNav dd > a { display: block; padding: 12px 0; text-align: center; color: #fff; transition: all 0.3s ease; text-decoration: none; }
.fixedNav dd > a:hover { background: #0909B7; }
.fixedNav dd .mfont12 { font-size: 11px; margin-top: 4px; opacity: 0.9; color:#fff; text-align: center; line-height: 1.2; }

/* 侧边栏弹窗 */
.showNav {
    position: absolute; right: 100%; top: 5px; margin-right: 5px; background: #0909B7; color: #fff; padding: 22px;
    visibility: hidden; opacity: 0; transform: translateX(15px);
    transition: all 0.3s ease; border-radius: 4px; box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
    z-index: 10001; white-space: nowrap;
}
.fixedNav dd:hover .showNav { visibility: visible !important; opacity: 1 !important; transform: translateX(0) !important; }

/* 回到顶部样式 */
.scroll-top-item { cursor: pointer; padding: 12px 0; background: #0909B7 !important; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; border-bottom: 0; text-align: center; }
.scroll-top-item.active-progress { opacity: 1; visibility: visible; transform: translateY(0); }
.progress-wrap { position: relative; height: 42px; width: 42px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.progress-wrap .iconfont { font-family: "iconfont" !important; font-size: 24px !important; color: #fff; z-index: 5; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.progress-circle { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; z-index: 1; pointer-events: none; }
.progress-circle path.track { fill: none; stroke: rgba(255,255,255,0.2); stroke-width: 4; }
.progress-circle path.bar { fill: none; stroke: #ffffff; stroke-width: 4; }

/* ============================================================
   新增加的在线留言弹窗样式 (前缀 rf- 确保不冲突)
   ============================================================ */
/* ============================================================
   新增加的在线留言弹窗样式 (完美适配 WPForms 真实表单)
   ============================================================ */
.rf-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 100001; visibility: hidden; opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.rf-modal-overlay.rf-active { visibility: visible; opacity: 1; }

.rf-modal-box {
    background: #fff; width: 90%; max-width: 650px; border-radius: 12px;
    overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.85) translateY(30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.rf-modal-overlay.rf-active .rf-modal-box { transform: scale(1) translateY(0); }

.rf-modal-header {
    background: #0909B7; color: #fff; padding: 22px 30px;
    display: flex; justify-content: space-between; align-items: center;
}
.rf-modal-header h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: 1px; }
.rf-close-modal { font-size: 32px; cursor: pointer; line-height: 1; opacity: 0.7; transition: 0.3s; }
.rf-close-modal:hover { opacity: 1; }

.rf-modal-body { padding: 35px; }

/* --- WPForms 核心容器与自带样式重置 --- */
.rf-modal-body .wpforms-container { margin: 0 !important; padding: 0 !important; max-width: 100% !important; width: 100% !important; }
.rf-modal-body .wpforms-form { margin: 0 !important; padding: 0 !important; }

/* --- 智能网格布局：替代以前的 .rf-form-row --- */
.rf-modal-body .wpforms-field-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* 默认电脑端一行排两个 */
    gap: 20px !important;
    margin-bottom: 20px !important;
}

/* 每个表单项容器基础样式 */
.rf-modal-body .wpforms-field {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    grid-column: span 2; /* 默认让所有项全宽（如大段留言框） */
    clear: none !important;
    float: none !important;
    width: 100% !important;
}

/* 智能识别：让单行文本、电话、邮箱、下拉选择框自动变半宽（一行排两个） */
.rf-modal-body .wpforms-field-text,
.rf-modal-body .wpforms-field-phone,
.rf-modal-body .wpforms-field-email{
    grid-column: span 1 !important;
}

/* --- 表单标签文字样式 --- */
.rf-modal-body .wpforms-field-label {
    font-size: 14px !important;
    color: #444 !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    display: block !important;
}
/* 必填项的红星 * 号 */
.rf-modal-body .wpforms-required-label {
    color: #0909B7 !important;
    margin-left: 3px !important;
}

/* --- 输入框、下拉框、大文本域样式完美复刻 --- */
.rf-modal-body .wpforms-field input,
.rf-modal-body .wpforms-field select,
.rf-modal-body .wpforms-field textarea {
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.3s !important;
    background: #f9f9f9 !important;
	max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.rf-modal-body .wpforms-field input:focus,
.rf-modal-body .wpforms-field select:focus,
.rf-modal-body .wpforms-field textarea:focus {
    border-color: #0909B7 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1) !important;
}

/* --- 提交按钮样式完美复刻 --- */
.rf-modal-body .wpforms-submit-container {
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
}
.rf-modal-body .wpforms-submit {
    width: 100% !important;
    background: #0909B7 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 17px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    margin-top: 10px !important;
    letter-spacing: 1px !important;
}
.rf-modal-body .wpforms-submit:hover {
    background: #0909B7 !important;
    box-shadow: 0 5px 15px rgba(102, 0, 0, 0.3) !important;
}
.rfc-form-privacy {
    font-size: 12px;
    color: rgb(187, 187, 187);
    text-align: center;
    margin-top: 10px;
}
/* 移动端底栏及弹窗自适应隔离 */
.linkbtns { display: none; }
@media only screen and (max-width: 1100px) {
    .fixedNav { display: none !important; }
    .nav-main.mobile-active { display: block !important; opacity: 1 !important; visibility: visible !important; }
    .nav-item.submenu-open .submenu { display: block !important; }
    .linkbtns { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; height: 60px; background: #fff; z-index: 999; list-style: none; padding: 0; margin: 0; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
    .linkbtns li { width: 50%; text-align: center; line-height: 60px; }
    .linkbtns li a { display: block; font-size: 15px; color: #0909B7; text-decoration: none; font-weight: bold; }
    .linkbtns li:nth-child(2) { background: #0909B7; }
    .linkbtns li:nth-child(2) a { color: #fff; }

    /* 移动端弹窗与表单智能单列坍塌 */
    .rf-modal-body .wpforms-field-container {
        grid-template-columns: 1fr !important; /* 强制变为单列排版 */
        gap: 15px !important;
    }
    .rf-modal-body .wpforms-field {
        grid-column: span 1 !important;
    }
    .rf-modal-box { width: 95%; margin: 10px; border-radius: 8px; }
    .rf-modal-body { padding: 20px; }
}