/* --- 1. 全局 CSS Reset --- */
body { font-family: 'Roboto', Arial, sans-serif; font-size: 14px; color: #333; line-height: 1.5; }
.w1400 { max-width: 1400px; margin: 0 auto; position: relative; }
.clear { clear: both; display: block; height: 0; overflow: hidden; }
ul, li { list-style: none; }
a { text-decoration: none; transition: 0.3s; }

/* --- 2. Header 顶部布局 --- */
#head { width: 100%; position: relative; z-index: 999; }
.h_top { background: #333; color: #fff; padding: 10px 0; border-bottom: 1px solid #444; }
.h_tlx { width: 1400px; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; }
.h_tlx li { margin-left: 25px; font-size: 13px; }
.h_tlx li a { color: #fff; }
.h_tlx li i { margin-right: 5px; color: #a81c08; }
.top_social a { margin-left: 15px; font-size: 14px; color: #fff; }
.top_social a:hover { color: #a81c08; }

/* --- 3. 主导航布局 --- */
.h_dh { width: 100%; height: 80px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.dhcon { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { max-height: 60px; width: auto; }

nav .nav_ul { display: flex; }
nav .nav_ul > li { position: relative; }
nav .nav_ul > li > a { line-height: 80px; padding: 0 25px; font-size: 16px; font-weight: 500; color: #222; }

/* 菜单高亮逻辑 */
.nav_ul li.current-menu-item > a, 
.nav_ul li:hover > a { color: #a81c08; }

/* --- 4. WordPress 二级下拉菜单处理 --- */
.nav_ul .sub-menu {
    position: absolute; top: 80px; left: 0; background: #fff;
    min-width: 200px; box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.nav_ul li:hover > .sub-menu { opacity: 1; visibility: visible; top: 80px; }
.nav_ul .sub-menu li a { display: block; padding: 12px 20px; border-bottom: 1px solid #f9f9f9; font-size: 14px; }
.nav_ul .sub-menu li a:hover { background: #fdfdfd; padding-left: 25px; }

/* --- 5. 搜索框还原 --- */
.top_search { display: flex; align-items: center; margin-left: 20px; }
.top_search input { border: 1px solid #eee; padding: 5px 10px; border-radius: 4px 0 0 4px; }
.top_search .but1 { background: #a81c08; color: #fff; padding: 6px 12px; border-radius: 0 4px 4px 0; cursor: pointer; }


/* --- Footer 布局 --- */
footer { background: #f8f8f8; padding-top: 60px; border-top: 1px solid #eee; }
.home_faq_con { display: flex; justify-content: space-between; }
.home_faq_fl { width: 55%; }
.home_faq_fr { width: 40%; }

.faqcon ul li { margin-bottom: 25px; background: #fff; padding: 15px; border-radius: 4px; }
.faq_l { display: flex; }
.faq_l i.fa-q { color: #a81c08; font-weight: bold; margin-right: 15px; margin-top: 5px; }
.f_list h5 { font-size: 16px; margin-bottom: 8px; color: #222; }
.f_d { font-size: 13px; color: #666; display: flex; align-items: flex-start; }
.f_d i.fa-a { color: #444; margin-right: 10px; font-weight: bold; font-style: normal; }

/* 表单样式 */
.faq_inquiry .bt { font-size: 24px; font-weight: bold; margin-bottom: 20px; text-transform: uppercase; }
.form .necessary { display: flex; gap: 10px; margin-bottom: 10px; }
.form .necessary div { flex: 1; }
.form span { display: block; font-size: 12px; margin-bottom: 5px; color: #999; }
.form input, .form textarea { width: 100%; border: 1px solid #ddd; padding: 10px; background: #fff; }
.form textarea { height: 100px; }
.form button { background: #a81c08; color: #fff; border: none; padding: 10px 30px; cursor: pointer; margin-top: 10px; transition: 0.3s; }
.form button:hover { background: #333; }

/* 移动端固定菜单 */
.footmenu { display: none; position: fixed; bottom: 0; width: 100%; background: #333; z-index: 99; }
@media (max-width: 768px) {
    .footmenu { display: block; }
    .home_faq_con { flex-direction: column; }
    .home_faq_fl, .home_faq_fr { width: 100%; }
    .footmenu p { display: flex; }
    .footmenu a { flex: 1; color: #fff; text-align: center; padding: 10px 0; font-size: 12px; }
    .footmenu i { display: block; font-size: 18px; margin-bottom: 3px; }
}