/*
Theme Name: 锅炉设备企业主题
Theme URI: https://example.com
Author: 豫冀热能
Author URI: https://example.com
Description: 专业的锅炉设备制造企业WordPress主题
Version: 1.0
License: GPL v2 or later
Text Domain: boiler-company
*/

/* ===== 重置样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ===== 全局样式 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 修复页面布局，确保内容居中显示 */
body {
    overflow-x: hidden;
}

/* 确保所有section内容都居中显示 */
section {
    width: 100%;
    margin: 0 auto;
}

/* 确保容器在所有设备上都能正确显示 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

/* 修复可能导致布局混乱的浮动问题 */
* {
    box-sizing: border-box;
}

/* 确保主要内容区域正确显示 */
main {
    width: 100%;
    margin: 0 auto;
}

/* ===== 顶部信息栏 ===== */
.top-info-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
}

.top-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.welcome-text {
    font-weight: 500;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.top-link:hover {
    color: #1a5276;
}

.separator {
    color: #ccc;
}

.inquiry-info {
    color: #e74c3c;
    font-weight: 600;
}

.inquiry-info i {
    margin-right: 5px;
}

/* ===== Logo和公司信息栏 ===== */
.company-bar {
    padding: 20px 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.company-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.company-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-name {
    font-size: 28px;
    font-weight: 700;
    color: #1a5276;
    margin: 0;
    line-height: 1;
}

.company-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.company-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
    color: #3498db;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.company-feature i {
    font-size: 10px;
}

.company-tagline {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* 联系电话区域 */
.contact-section {
    flex-shrink: 0;
}

.hotline {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s;
    min-width: 220px;
}

.hotline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.hotline-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.hotline-info {
    display: flex;
    flex-direction: column;
}

.hotline-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 3px;
}

.hotline-number {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* ===== 主要导航菜单 - 电脑端保持不变 ===== */
.main-nav {
    background-color: #1a5276;
    height: 50px;
    position: relative;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    justify-content: center;
}

.nav-item {
    position: relative;
    height: 100%;
    min-width: 120px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    height: 100%;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 20px;
    line-height: 50px !important;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.nav-link:hover {
    background-color: #2471a3;
    color: white;
}

.nav-item.active .nav-link {
    background-color: #2471a3;
    color: white;
}

.nav-item:first-child .nav-link {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.dropdown-arrow {
    font-size: 8px;
    margin-left: 8px;
    transition: transform 0.3s;
    position: relative;
    top: 1px;
}

/* ===== 子菜单样式 - 电脑端保持不变 ===== */
.sub-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 120px;
    display: none;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.2s ease-in-out;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.menu-item-has-children:hover .sub-menu-wrapper {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.menu-item-has-children:hover .nav-link .dropdown-arrow {
    transform: rotate(180deg);
}

.sub-menu {
    background-color: #1a5276;
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 0 0 4px 4px;
    border: none;
    border-top: none;
    width: 100%;
    position: relative;
    z-index: 1001;
    min-width: 120px;
}

.sub-menu-item {
    margin: 0;
    border-right: none;
}

.sub-menu-item:last-child {
    border-bottom: none;
}

.sub-menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    padding: 0 20px;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    line-height: 50px !important;
    white-space: nowrap;
    background-color: transparent;
    border: none;
    text-align: center;
    width: 100%;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.sub-menu-link:hover {
    background-color: #2471a3;
    color: white;
    padding-left: 15px;
}

/* ===== 移动端响应式修复 ===== */

/* 汉堡菜单按钮 - 只在移动端显示 */
.mobile-menu-toggle {
    display: none;
    background: #2471a3;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 4px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

/* 只在768px以下的移动设备上应用以下样式 */
@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* 导航内容初始隐藏 */
    .nav-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a5276;
        z-index: 999;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .nav-content.active {
        display: block !important;
    }
    
    /* 导航菜单垂直排列 */
    .nav-menu {
        flex-direction: column;
        height: auto;
        padding: 0;
        justify-content: flex-start;
    }
    
    .nav-item {
        width: 100%;
        min-width: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        height: auto;
    }
    
    .nav-link {
        justify-content: space-between;
        padding: 15px 20px !important;
        text-align: left;
        border-right: none !important;
        border-left: none !important;
        height: auto;
        min-height: 50px;
        line-height: normal !important;
        font-size: 15px;
    }
    
    /* 移动端子菜单处理 */
    .sub-menu-wrapper {
        position: static !important;
        width: 100% !important;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        box-shadow: none !important;
        display: none; /* 默认隐藏 */
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0;
    }
    
    .sub-menu-wrapper.active {
        display: block !important;
    }
    
    .sub-menu {
        width: 100%;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    
    .sub-menu-link {
        padding-left: 40px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 14px;
        text-align: left !important;
        justify-content: flex-start !important;
        border-right: none !important;
    }
    
    .sub-menu-link:hover {
        padding-left: 45px !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    /* 移动端其他样式调整 */
    .top-info-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .company-content {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-section {
        flex-direction: column;
        text-align: center;
    }
    
    .company-features {
        justify-content: center;
    }
    
    .hotline {
        width: 100%;
        justify-content: center;
    }
}

/* 其他响应式保持原样 */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-item {
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .company-name {
        font-size: 22px;
    }
    
    .company-features {
        gap: 10px;
    }
    
    .company-feature {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .hotline {
        padding: 12px 20px;
    }
    
    .hotline-number {
        font-size: 18px;
    }
}

/* ===== 页脚样式 ===== */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
    border-radius: 2px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer ul li a:hover {
    color: white;
}

.footer p {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.8;
}

.footer hr {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    height: 1px;
    margin: 30px 0;
}

.footer .bottom-footer {
    text-align: center;
    padding-top: 20px;
    color: #95a5a6;
    font-size: 13px;
}

/* ===== 其他样式 ===== */
.card-img-top {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.card-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-text {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.text-muted {
    color: #7f8c8d;
    font-size: 14px;
}

/* ===== 技术优势样式 ===== */
.advantage-item {
    padding: 35px 25px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
    height: 100%;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
    background-color: white;
}

.advantage-icon {
    margin-bottom: 25px;
}

.advantage-icon i {
    font-size: 52px;
    color: #3498db;
    transition: all 0.3s;
}

.advantage-item:hover .advantage-icon i {
    transform: scale(1.1);
}

.advantage-item h5 {
    color: #333;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 20px;
}

.advantage-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* 客户Logo样式 */
.client-logo-container {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.client-logo {
    max-height: 70px;
    max-width: 100%;
    width: auto;
    transition: all 0.3s;
    opacity: 0.9;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.client-logo-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

/* 新闻卡片样式 */
.news-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background-color: white;
    margin-bottom: 30px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

.news-card .card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-card .card-title a:hover {
    color: #3498db;
}

.news-card .text-muted {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* ===== 打印样式 ===== */
@media print {
    .main-nav, .footer, .mobile-menu-toggle {
        display: none;
    }
    
    body {
        font-size: 14px;
    }
    
    .container {
        max-width: 100%;
    }
}
/* Font Awesome修复 */
.fa, .fas, .far, .fab { font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important; }
