/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', 'Microsoft Yahei', 'Helvetica', sans-serif;
    background: #f5f7fa;
    color: #1f2a3e;
    line-height: 1.5;
}
.container {
    width: 1400px;
    margin: 0 auto;
}
@media (max-width: 1440px) { .container { width: 1280px; } }
@media (max-width: 1280px) { .container { width: 1080px; } }
@media (max-width: 1080px) { .container { width: 94%; } }

/* ========== 头部样式 ========== */
.site-header {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 18px 0;
}
.logo img { height: 45px; width: auto; }
.nav ul {
    display: flex;
    list-style: none;
    gap: 36px;
}
.nav ul li {
    position: relative;
}
.nav ul li a {
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    color: #1f2a3e;
    padding: 8px 0;
    position: relative;
}
.nav ul li a:hover, .nav ul li.active a { color: #1a5aaa; }
.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a5aaa;
    transition: 0.3s;
}
.nav ul li a:hover::after, .nav ul li.active a::after { width: 100%; }
.tel {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: #1a5aaa;
    font-weight: bold;
}
.tel svg { width: 22px; height: 22px; fill: #1a5aaa; }
@media (max-width: 1080px) { .nav ul { gap: 20px; } .tel { font-size: 18px; } }
@media (max-width: 768px) { .header-inner { flex-direction: column; gap: 15px; } .nav ul { flex-wrap: wrap; justify-content: center; } }

/* ========== 下拉菜单竖排样式 ========== */
.nav ul li.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 170px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 100;
    display: block !important;
    flex-direction: column !important;
    border: 1px solid #eef2f8;
}
.nav ul li.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav ul li.has-dropdown .dropdown li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.nav ul li.has-dropdown .dropdown li a {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    color: #4a5568 !important;
    font-weight: normal !important;
    text-align: left !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.2s;
}
.nav ul li.has-dropdown .dropdown li a:hover {
    background: #f0f4fa !important;
    color: #1a5aaa !important;
    padding-left: 24px !important;
}
.has-dropdown > a::after {
    content: "▼";
    font-size: 10px;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.2s;
    color: #8a9aaa;
}
.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}
@media (max-width: 768px) {
    .nav ul li.has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        /* 关键修改：默认隐藏 */
        display: none !important;
    }
    /* 当父级有 .open 类时显示子菜单 */
    .nav ul li.has-dropdown.open .dropdown {
        display: block !important;
    }
    .dropdown li a {
        white-space: normal !important;
    }
}

/* ========== 过渡banner（与其他页面一致） ========== */
.product-detail-banner {
    background: linear-gradient(135deg, #1a5aaa 0%, #0e3d6e 100%);
    padding: 40px 0;
    color: #fff;
}
.product-detail-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.banner-left {
    flex: 1;
}
.banner-left h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}
.breadcrumb {
    font-size: 14px;
    opacity: 0.85;
}
.breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
    color: #fff !important;
}
.breadcrumb span {
    margin: 0 6px;
}
.banner-right {
    flex-shrink: 0;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}
.back-link:hover {
    background: rgba(255,255,255,0.3);
}
@media (max-width: 768px) {
    .product-detail-banner .container {
        flex-direction: column;
        text-align: center;
    }
    .banner-left h1 {
        font-size: 26px;
    }
}

/* ========== 底部样式（与产品中心完全一致） ========== */
.site-footer {
    background: #1a2a3a;
    color: #a0abb8;
    padding: 50px 0 25px;
    font-size: 14px;
    margin-top: 0px;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
.footer-col {
    flex: 0 0 auto;
    width: 220px;
}
.footer-col.footer-brand {
    width: 320px;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
}
.footer-col ul {
    list-style: none;
    padding-left: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #a0abb8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #0057b8;
}
.footer-brand .logo {
    margin-bottom: 20px;
    display: block;
}
.footer-brand .logo img {
    max-width: 167px;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: saturate(0.2) brightness(0.85);
    transition: filter 0.3s ease;
}
.footer-brand .logo img:hover {
    filter: saturate(1) brightness(1);
}
.brand-desc {
    font-size: 13px;
    color: #8a9aaa;
    margin-bottom: 20px;
    line-height: 1.5;
}
.contact-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-info svg {
    width: 16px;
    height: 16px;
    fill: #a0abb8;
}
.contact-info .phone {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}
.contact-info .phone svg {
    fill: #a0abb8;
}
.social-links {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}
.social-item {
    position: relative;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
}
.social-icon svg {
    width: 18px;
    height: 18px;
    fill: #a0abb8;
}
.social-icon:hover {
    background: #0057b8;
    transform: translateY(-2px);
}
.social-icon:hover svg {
    fill: #fff;
}
.qrcode-popup {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    width: 100px;
    text-align: center;
}
.qrcode-popup img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.qrcode-popup p {
    margin-top: 6px;
    font-size: 11px;
    color: #333;
}
.social-item:hover .qrcode-popup {
    opacity: 1;
    visibility: visible;
    bottom: 50px;
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    color: #7a8796;
}
.footer-bottom .bottom-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom .bottom-links a {
    color: #7a8796;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom .bottom-links a:hover {
    color: #0057b8;
}
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
    }
    .footer-col {
        width: 100%;
    }
}
/* ========== 修复超链接颜色和下划线 ========== */
a {
    text-decoration: none !important;
    color: inherit !important;
}

a:hover {
    color: #1a5aaa !important;
}

/* 页脚链接颜色 */
.site-footer a {
    color: #a0abb8 !important;
}
.site-footer a:hover {
    color: #0057b8 !important;
}

/* 产品卡片链接 */
.product-name a {
    color: #1f2937 !important;
}
.product-name a:hover {
    color: #1a5aaa !important;
}

/* 新闻标题链接 */
.news-title a {
    color: #222 !important;
}
.news-title a:hover {
    color: #0057b8 !important;
}

/* 案例标题链接 */
.case-title a {
    color: #222 !important;
}
.case-title a:hover {
    color: #0057b8 !important;
}

/* ========== 修复底部宽度 ========== */
.site-footer {
    width: 100%;
    overflow-x: hidden;
}

.footer-inner {
    width: 1400px;
    max-width: 94%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-bottom {
    width: 1400px;
    max-width: 94%;
    margin: 0 auto;
    text-align: center;
    padding-top: 25px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1440px) {
    .footer-inner, .footer-bottom { width: 1280px; }
}
@media (max-width: 1280px) {
    .footer-inner, .footer-bottom { width: 1080px; }
}
@media (max-width: 1080px) {
    .footer-inner, .footer-bottom { width: 94%; }
}
@media (max-width: 768px) {
    .footer-inner { flex-direction: column; }
}
/* ========== 修复友情链接颜色 ========== */
.weblinks_list a {
    color: #666 !important;
}
.weblinks_list a:hover {
    color: #0057b8 !important;
}
/* 热门搜索关键词颜色修复 */
.hotkw_left a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
}
.hotkw_left a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}
/* 移除下拉菜单子链接的 ::after 伪元素（蓝色下划线） */
.nav ul li.has-dropdown .dropdown li a::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}
.product-detail-banner .breadcrumb a:hover {
    color: #fff !important;
}
/* ========== 全局响应式适配（手机/平板） ========== */
@media (max-width: 1024px) {
    .container {
        width: 94%;
    }
    .nav ul {
        gap: 20px;
    }
    .product-grid,
    .case-grid,
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* 容器宽度 */
    .container {
        width: 94%;
        padding-left: 0;
        padding-right: 0;
    }

    /* 头部：只显示logo和汉堡按钮，导航隐藏 */
    .site-header .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 280px;
        height: 100%;
        background: #fff;
        z-index: 1001;
        transition: left 0.3s ease;
        box-shadow: 2px 0 12px rgba(0,0,0,0.1);
        padding: 60px 20px 20px;
        overflow-y: auto;
    }
    .nav.open {
        left: 0;
    }
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    .nav ul li {
        border-bottom: 1px solid #eef2f8;
    }
    .nav ul li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }
    /* 下拉菜单在移动端样式（已在上方媒体查询中覆盖，此处再次确保） */
    .nav ul li.has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        background: #f8fafc;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none !important;
    }
    .nav ul li.has-dropdown.open .dropdown {
        display: block !important;
    }
    .has-dropdown > a::after {
        float: right;
        margin-top: 4px;
    }
    /* 汉堡按钮 */
    .hamburger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1002;
    }
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #1f2a3e;
        margin: 5px 0;
        transition: 0.3s;
    }
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    /* 遮罩层 */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        display: none;
    }
    .menu-overlay.active {
        display: block;
    }
    /* 电话调整 */
    .tel {
        font-size: 16px;
    }

    /* Banner模块（首页及其他） */
    .home-banner .banner-content,
    .product-detail-banner .container {
        flex-direction: column;
        text-align: center;
    }
    .home-banner .banner-text h1 {
        font-size: 28px;
    }
    .home-banner .banner-buttons {
        justify-content: center;
    }
    .home-banner .banner-image {
        width: 100%;
        margin-top: 20px;
    }

    /* 产品/案例卡片网格 */
    .product-grid,
    .case-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-img,
    .case-img {
        height: 150px;
    }
    .product-title,
    .case-title {
        font-size: 16px;
    }
    .product-desc,
    .case-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .product-info,
    .case-content {
        padding: 12px;
    }

    /* 新闻列表 */
    .news-item {
        flex-direction: column;
    }
    .news-img {
        width: 100%;
        height: 150px;
    }
    .news-title {
        font-size: 16px;
    }
    .news-meta {
        font-size: 12px;
    }
    .news-summary {
        font-size: 12px;
    }

    /* 联系我们页面 */
    .contact-grid {
        flex-direction: column;
    }
    .contact-info-left,
    .contact-form-right {
        width: 100%;
    }
    .form-row {
        flex-direction: column;
    }

    /* 常见问题页面 */
    .faq-question {
        padding: 16px 20px;
        font-size: 16px;
    }
    .faq-answer {
        padding: 0 20px 16px;
        font-size: 14px;
    }

    /* 产品详情页 */
    .detail-top {
        flex-direction: column;
    }
    .product-media {
        max-width: 100%;
    }
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .info-label {
        width: auto;
    }
    .action-btns {
        flex-direction: column;
    }
    .btn-inquiry,
    .btn-quote {
        width: 100%;
        text-align: center;
    }
    .accordion-header {
        padding: 14px 16px;
    }
    .accordion-header h3 {
        font-size: 16px;
    }
    .accordion-content {
        padding: 12px 16px;
    }
    .article-nav {
        flex-direction: column;
    }

    /* 底部 */
    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }
    .footer-inner .footer-col:nth-child(n+2) {
        margin-left: 0;
    }
    .footer-col {
        width: 100%;
    }
    .footer-bottom .bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    /* 二维码弹窗位置调整 */
    .social-item .qrcode-popup {
        bottom: 42px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .product-grid,
    .case-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    .product-img,
    .case-img {
        height: 180px;
    }
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }
    .product-detail-banner .banner-left h1 {
        font-size: 24px;
    }
    .product-detail-banner .breadcrumb {
        font-size: 12px;
    }
}
/* ========== 手机端底部LOGO 100%居中终极修复 ========== */
@media (max-width: 768px) {
    /* 1. 强制父容器宽度100%，消除左右限制 */
    .footer-col.footer-brand {
      width: 100% !important;
      text-align: center !important;
      margin: 0 auto !important;
      padding: 0 !important;
    }
  
    /* 2. logo容器居中，强制覆盖所有影响样式 */
    .footer-brand .logo {
      display: block !important;
      text-align: center !important;
      margin: 0 auto 20px !important;
      padding: 0 !important;
      width: 100% !important;
    }
  
    /* 3. 图片本身居中，防止内联样式/其他样式干扰 */
    .footer-brand .logo img {
      display: inline-block !important;
      margin: 0 auto !important;
      float: none !important;
    }
  }
  /* ========== 返回顶部按钮 ========== */
.go-top {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(26, 90, 170, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.go-top.show {
    opacity: 1;
    visibility: visible;
}
.go-top:hover {
    background: #1a5aaa;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.go-top svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}
@media (max-width: 768px) {
    .go-top {
        bottom: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    .go-top svg {
        width: 20px;
        height: 20px;
    }
}