/*
 * 公共样式文件
 * 包含顶部导航栏和底部栏的全局统一样式
 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 300;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    overflow-x: hidden;
}

/* 标题字体 - 衬线体 */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 300!important;
}

/* 顶部导航栏 */
.header {
    background: url("../images/nav-bg.png") no-repeat;
    background-size: 100% 100%;
    color: white;
    padding: 0!important;
    position: absolute;
    width: 100%;
    top: 3vh;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 3px 4px 2px rgba(0, 0, 0, .1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    height: 85px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.logo {
    font-size: 28px;
    font-weight: 400;
    color: #ffd700;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    flex-shrink: 0;
}
.logo img {
    height: 142px;
    display: block;
    margin-top: 16px;
}

.nav {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-item {
    white-space: nowrap;
}

.nav-link {
    color: white;
    text-shadow: 0px 1px 3px rgba(0,0,0,.7);
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    height: 65px;
    line-height: 65px;
}

.nav-link:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

/* 二级菜单样式 */
.nav-item.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 63px;
    left: -20px;
    background-color: white;
    min-width: 180px;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 1000;
    border-bottom: 4px solid #ce382c;
}

.nav-item.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    list-style: none;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submenu li a:hover {
    background-color: #f9f9f9;
    color: #e60012;
}

/* 底部栏 */
.footer {
    background:url("../images/foot-i.png") no-repeat;;
    color: white;
    padding: 40px 0 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 300;
    color: white;
    text-align: center;
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
    transition: all 0.3s ease;
    text-align: center;
}

.footer-link:hover {
    color: #ffd700;
    transform: translateX(5px);
}

.footer-contact {
    font-size: 18px;
    line-height: 1.8;
    position: relative;
}

.footer-contact p {
    position: relative;
    margin-bottom: 12px;
    display: block;
    align-items: center;
    padding-left: 1%;
    text-align: center;
}

.footer-contact p:first-child::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 20px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-contact p:last-child {
    position: relative;
    cursor: pointer;
}

.footer-contact p:last-child::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 70px;
    transform: translateY(-50%);
    width: 110px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-contact p:last-child::after {
    content: '';
    position: absolute;
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background-size: cover;
    background-position: center;
    z-index: 10;
    margin-right: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.footer-contact p:last-child:hover::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    visibility: visible;
}
.footer-contact p span {
    font-size: 24px;
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(to right, transparent, #db4844, transparent);
    display: flex;
    justify-content: center;    
}
.footer-bottom a {
    color: #fff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px 20px;
    }
    
    .nav {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        margin: 0 15px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    /* 移动端二级菜单 */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
    }
    
    .nav-item.has-submenu:hover .submenu {
        transform: none;
    }
    
    .submenu li a {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* 滚动时的元素动画类 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* 右侧悬浮模块 */
.floating-module {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.floating-item:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateX(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-icon {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.floating-text {
    font-size: 14px;
    color: #333;
    text-align: center;
    font-family: 'Microsoft YaHei', sans-serif;
}
/* 弹出层样式 */
.phone-popup {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 18px;
    font-weight: 400;
    color: #d60011;
    white-space: nowrap;
    margin-right: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.phone-popup::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid rgba(255, 255, 255, 0.95);
}

.phone-item:hover .phone-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

.wechat-popup {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-right: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.wechat-popup::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid rgba(255, 255, 255, 0.95);
}

.wechat-popup img {
    width: 120px;
    height: 120px;
}

.wechat-item:hover .wechat-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-module {
        right: 20px;
        gap: 10px;
    }
    
    .floating-item {
        padding: 12px;
        min-width: 70px;
    }
    
    .floating-icon {
        font-size: 20px;
    }
    
    .floating-text {
        font-size: 12px;
    }
    
    .phone-popup {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .wechat-popup img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .floating-module {
        right: 10px;
        gap: 8px;
    }
    
    .floating-item {
        padding: 10px;
        min-width: 60px;
    }
    
    .floating-icon {
        font-size: 18px;
    }
    
    .floating-text {
        font-size: 10px;
    }
}

.huawen {
    height: 15px;
    width: 100%;
    font-size: 0;
}
.huawen img {
   width: 100%;
   height: 15px;
}
/* 分页 */
.pages span {
    color: #999;
}
.dux-page {
	line-height:24px;
}
.pages a, .pages span, .pages strong {
    background: #FFF;
    color: #3D464B;
    border: 2px solid #d8d8d8;
    padding: 3px 7px;
    margin-right: 8px;
    box-sizing:border-box ;
	font-size:15px;
	text-decoration: none;
}
.pages strong {
    background: #049ecd;
    color: #fff;
    border: 2px solid #049ecd;
}
.pages {
    width: 100%;
    overflow: hidden;
    margin: 10vh auto 5vh;
    text-align: center;
    padding: 3px 0;
}
.active-page {
	color:#fff!important;
	background:#9f7a36!important;
	border:2px solid #9f7a36!important;
}
/* 如果 ul 里面没有 li，就隐藏它 */
.submenu:empty {
    display: none;
}
/* 或者：如果 ul 里面只有空白字符，也隐藏 */
.submenu:not(:has(li)) {
    display: none;
}