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

:root {
    --primary-color: #d97333;
    --primary-hover: #c56328;
    --text-dark: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 头部样式 ==================== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-nav .nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-nav .nav-list a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    background: var(--primary-color);
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
}

/* 产品下拉菜单 - PC端使用::before伪元素创建无缝悬停区域 */
.product-nav-item {
    position: relative;
}

/* PC端为产品中心链接添加悬停区域 */
@media (min-width: 769px) {
    .product-nav-item > a {
        position: relative;
    }
    
    /* 创建一个不可见的桥接区域 */
    .product-nav-item > a::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 15px;
        background: transparent;
    }
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 30px 20px;
    min-width: 700px;
    z-index: 100;
}
.dropdown-menu a:hover, 
.dropdown-menu a.active {
    background: none!important;
    color: #333!important;
}
/* PC端鼠标悬停在产品中心或下拉菜单上都显示 */
@media (min-width: 769px) {
    .product-nav-item:hover .dropdown-menu,
    .dropdown-menu:hover {
        display: block;
    }
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dropdown-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
	align-items: center;
}

.dropdown-item:hover {
    background: var(--bg-light);
}

.dropdown-item img {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.dropdown-item p {
    margin-left: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

/* ==================== Banner区域 ==================== */
.banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.banner h1 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: bold;
}

/* ==================== 标签导航 ==================== */
.tab-content {
    position: relative;
    top: -50px;
    background: #fff;
    border-radius: 10px;
    padding: 20px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.tabs {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.tab-item {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    /*padding-bottom: 0.5rem;*/
    transition: all 0.3s;
    position: relative;
}

.tab-item:hover {
    color: var(--primary-color);
}

.tab-item.active {
    color: var(--primary-color);
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-item.active::after {
    content: '';
    /*position: absolute;*/
    /*bottom: 0;*/
    /*left: 0;*/
    /*right: 0;*/
    /*height: 2px;*/
    /*background: var(--primary-color);*/
    width:36px;
    height:36px;
    background: url(../images/breadcrumbs.png) no-repeat;
    background-size: 100%;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-lighter);
    font-size: 14px;
}

/*.breadcrumb-nav a {*/
/*    color: var(--primary-color);*/
/*}*/

.breadcrumb-nav span {
    color: var(--text-lighter);
}

.breadcrumb-nav .home{
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url(../images/home.png) no-repeat;
    background-size: 100%;
    margin-right: 5px;
    margin-top: 1px;
}

.breadcrumb-nav a{
    display: inline-flex;
}

/* ==================== 页脚样式 ==================== */
.site-footer {
    position: relative;
    background: #f5f5f5;
    padding: 60px 0 30px;
    border-top: 1px solid #c66518;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    font-size: 48px;
    color: var(--text-lighter);
}

.contact-info h3 {
    font-size: 14px;
    color: var(--text-lighter);
    margin-bottom: 5px;
    font-weight: normal;
}

.contact-info p {
    font-size: 24px;
    color: var(--text-dark);
    font-weight: bold;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-dark);
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-qr {
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.qr-label {
    font-size: 14px;
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 14px;
}

.footer-tel{
    width: 54px;
    height: 54px;
    background:url(../images/tel.png) no-repeat;
    background-size: 100%;
}

.footer-totop{
    position: absolute;
    top: 0;
    right: 50px;
    width: 50px;
    height: 50px;
    background: url(../images/totop.png) no-repeat;
    background-size: 100%;
    cursor: pointer;
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    display: none !important;
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

.view{
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url(../images/view.png) no-repeat;
    background-size: 100%;
    margin-right: 5px;
    vertical-align: middle;
}

.time{
    display: inline-block;
    width: 16px;
    height: 20px;
    background: url(../images/time.png) no-repeat;
    background-size: 100%;
    margin-right: 5px;
    vertical-align: middle;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .contact-info-grid {
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-contact {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* 移动端导航 */
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        transition: left 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .main-nav .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav .nav-list li a {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
    }
    
    /* 移动端完全取消导航高亮效果 */
    .main-nav .nav-list a:hover,
    .main-nav .nav-list a.active {
        background: transparent !important;
        color: var(--text-dark) !important;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* 移动端产品下拉菜单点击显示 */
    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        margin-top: 0;
        box-shadow: none;
        border-top: 1px solid var(--border-color);
        display: none;
    }
    
    .mobile-show {
        display: block !important;
    }
    
    .dropdown-menu.mobile-show .dropdown-item{
        display: flex;
    }
    
    .dropdown-menu.mobile-show .dropdown-item img{
        margin: 0;
    }
    
    .dropdown-content {
        grid-template-columns: 1fr;
    }
    
    /* Banner */
    .banner {
        height: 200px;
    }
    
    .banner h1 {
        font-size: 1.8rem;
    }
    
    /* 标签导航 */
    .tab-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 15px 20px;
        top: -30px;
    }
    
    /* 页脚 */
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-nav {
        gap: 20px;
    }
    
    .footer-nav a {
        font-size: 14px;
    }
    
    /* 返回顶部 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}