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

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

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

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 8px 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: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.nav {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 40px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #0066cc;
}

.nav .active {
    color: #0066cc;
    position: relative;
    padding-bottom: 20px;
}

.nav .active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #0066cc;
}

.nav .active a {
    color: #0066cc;
}

/* 按钮样式 */
.banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    text-align: center;
}

.banner-btn:hover {
    background-color: #0052a3;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.banner-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

/* 页面横幅公共样式 */
.page-banner {
    height: 300px;
    background-image: url('../images/page-banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.page-banner h1 {
    font-size: 48px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 面包屑导航公共样式 */
.breadcrumb {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0066cc;
}

.breadcrumb span {
    color: #999;
    margin: 0 10px;
}

/* 章节标题公共样式 */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

/* 产品项目公共样式 */
.product-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 250px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
    text-decoration: none;
}

.product-more {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
}

/* 分页公共样式 */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* 页脚样式 */
footer {
    background-color: #e6f2ff;
    color: #333;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
    margin-right: 30px;
}

.footer-col:last-child {
    margin-right: 0;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: #666;
}

.footer-col ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #0066cc;
}

.footer-wechat {
    width: 120px;
    height: 120px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 10px;
}

.footer-wechat-desc {
    margin-top: 10px; 
    color: #666; 
    font-size: 14px;
}

.footer-wechat img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #c9e2ff;
    color: #666;
    font-size: 14px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
}

/* 悬浮联系按钮样式 */
.floating-contact {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.floating-contact.show {
    opacity: 1;
    visibility: visible;
}

/* 为悬浮联系按钮容器添加固定高度，确保微信二维码位置稳定 */
.contact-btn {
    width: 60px;
    height: 60px;
    /* background-color: #0066cc; */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.3);
    transition: background-color 0.3s, transform 0.3s;
}

/* 为每个按钮项添加固定高度的容器，确保微信二维码位置不受返回顶部按钮影响 */
.contact-item {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn:hover {
    /* background-color: #0052a3; */
    background-color: #409EFF;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

/* 返回顶部按钮默认隐藏，由JavaScript控制其显示 */
.top-btn {
    display: none;
}

.contact-btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn .icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 悬浮按钮的联系信息弹出框样式 */
.contact-btn .contact-info {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    white-space: nowrap;
}

.contact-btn:hover .contact-info {
    opacity: 1;
    visibility: visible;
}

.phone-info p {
    margin: 5px 0;
    color: #333;
}

.phone-info p:first-child {
    font-weight: bold;
    color: #666;
}

.wechat-info {
    text-align: center;
}

.wechat-qr {
    width: 120px;
    height: 120px;
    background-color: white;
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.wechat-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 三角形指示图标 */
.contact-info::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .floating-contact {
        right: 20px;
        bottom: 20px;
    }
    
    .contact-btn {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .contact-btn .icon {
        font-size: 20px;
    }
    
    .contact-info {
        position: fixed;
        right: 50%;
        bottom: 200px;
        transform: translateX(50%);
        width: 80%;
        max-width: 300px;
        white-space: normal;
    }
    
    .contact-info::after {
        right: 50%;
        top: 100%;
        transform: translateX(50%);
        border-width: 10px 10px 0 10px;
        border-color: white transparent transparent transparent;
    }
}