/* ===== 公共基础样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; font-size: 14px; line-height: 1.6; color: #333; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }

/* ===== 顶部导航 ===== */
.header { position: fixed; top: 0; left: 0; width: 100%; height: 80px; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(3px); z-index: 1000; transition: all 0.3s ease; border-bottom:1px solid #ddd;}
.header.scrolled { background: #fff; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); }
.header-inner { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; color: #333; font-size: 28px; font-weight: bold; letter-spacing: 2px; transition: color 0.3s; }
.logo-img {height:80px; margin-right: 10px; }
.header:not(.scrolled) .logo { color: #fff; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; font-size: 16px; padding: 10px 0; transition: color 0.3s; font-weight: 500; }
.nav-link:hover { color: #e65a00; }
.nav-item .on{ color: #e65a00 !important;}
.header:not(.scrolled) .nav-link { color: #000; }
.header:not(.scrolled) .nav-link:hover { color: #ff6b00; }
.nav-arrow { margin-left: 5px; font-size: 12px; transition: transform 0.3s; color: inherit; }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }
.header:not(.scrolled) .nav-arrow { color: #000; }
.dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(20px); background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); opacity: 0; visibility: hidden; transition: all 0.3s ease; overflow: hidden; min-width: 700px; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-inner { display: flex; }
.dropdown-menu { flex: 1; padding: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px 30px; }
.dropdown-item { display: flex; align-items: center; padding: 10px 15px; border-radius: 8px; transition: all 0.3s; }
.dropdown-item:hover { background: #f5f5f5; }
.dropdown-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #ff6b00 0%, #ff8c33 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0; }
.dropdown-icon i { color: #fff; font-size: 18px; }
.dropdown-text h4 { font-size: 15px; color: #333; margin-bottom: 3px; }
.dropdown-text p { font-size: 12px; color: #999; }
.dropdown-image { width: 250px; background: url('/static/default/images/dropdown-image.jpg') center/cover; position: relative; }
.dropdown-image::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); }
.dropdown-image-text { position: absolute; bottom: 20px; left: 20px; color: #fff; }
.dropdown-image-text h4 { font-size: 18px; margin-bottom: 5px; }
.dropdown-image-text p { font-size: 13px; opacity: 0.8; }
 .mobile-phone {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #ff6b00;
        font-size: 26px;
        font-weight: bold;
    }
/* 导航响应式 */
@media (max-width: 992px) { .nav { gap: 20px; } .dropdown { min-width: 500px; } .dropdown-image { display: none; } }
@media (max-width: 768px) { 
    .header { height: 60px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); }
    .header.scrolled { background: rgba(255, 255, 255, 0.95); }
    .logo { font-size: 20px; }
    .logo-img{height:55px;}
    .nav { display: none; }
    
    /* 移动端电话按钮 */
    .mobile-phone {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #ff6b00;
        font-size: 26px;
        font-weight: bold;
    }
}

/* ===== 网站底部 ===== */
.site-footer { background: #1a1a2e; }
.footer-main { padding: 60px 0 40px; }
.footer-content { display: flex; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-col { flex: 1; }
.footer-col-1 { flex: 1.5; }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-logo img { height: 90px; }
.footer-logo span { font-size: 24px; color: #fff; font-weight: bold; }
.footer-desc { font-size: 14px; color: #888; line-height: 1.8; margin-bottom: 20px; }

.footer-social { display: flex; gap: 15px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.3s; }
.footer-social a:hover { background: #ff6b00; }

.footer-title { font-size: 16px; color: #fff; font-weight: bold; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: #888; transition: color 0.3s; }
.footer-links a:hover { color: #ff6b00; }

.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #888; margin-bottom: 15px; }
.footer-contact i { color: #ff6b00; }

.footer-bottom { background: #111; padding: 20px 0; }
.footer-bottom-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-copyright { font-size: 13px; color: #666; }
.footer-copyright a { color: #666; }
.footer-copyright a:hover { color: #ff6b00; }
.footer-icp { font-size: 13px; color: #666; }

@media (max-width: 992px) { .footer-content { flex-wrap: wrap; } .footer-col { flex: none; width: calc(50% - 20px); } }
@media (max-width: 768px) { .footer-main { padding: 40px 0 30px; } .footer-col { width: 100%; } .footer-bottom-content { flex-direction: column; gap: 10px; text-align: center; } }

/* ===== 公共辅助样式 ===== */
.color-primary { color: #ff6b00; }
.color-secondary { color: #999; }
.color-dark { color: #333; }
.color-light { color: #fff; }
.bg-primary { background-color: #ff6b00; }
.bg-light { background-color: #fff; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ===== 移动端底部导航 ===== */
@media (max-width: 767px) {
    /* 为body底部添加padding，给固定导航留出空间 */
    body {
        padding-bottom: 60px;
    }

    /* PC端footer在移动端隐藏 */
    .site-footer .footer-main,
    .site-footer .footer-bottom {
        display: none;
    }
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
}

@media (max-width: 767px) {
    .mobile-nav {
        display: flex;
    }
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.mobile-nav-item span {
    font-size: 11px;
}

.mobile-nav-item:active {
    background: rgba(0,0,0,0.05);
}

.mobile-nav-item.active {
    color: #ff6b00;
}

.mobile-nav-item.active i {
    transform: scale(1.1);
}

/* 一键拨号按钮特殊样式 */
.mobile-nav-item[href^="tel:"] {
    color: #ff6b00;
}

/* ===== 服务项目弹出菜单 ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-services-menu {
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
    display: none;
}

.mobile-services-menu.active {
    transform: translateY(0);
    display: block;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    position: sticky;
    top: 0;
    background: #fff;
}

.menu-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-close:active {
    background: #eee;
    transform: scale(0.95);
}

.menu-list {
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.menu-item:active {
    background: #f9f9f9;
}

.menu-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c33 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    margin-right: 15px;
}

.menu-item span {
    font-size: 15px;
    flex: 1;
}

.menu-item::after {
    content: '\f054';
    font-family: FontAwesome;
    font-size: 12px;
    color: #ccc;
}

.menu-item:active i {
    transform: scale(1.1);
}