/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* a标签初始化样式 */
a {
    color: #333;           /* 默认文字颜色 */
    text-decoration: none; /* 去除下划线 */
    outline: none;         /* 去除焦点虚线框 */
    transition: color 0.3s ease; /* 颜色过渡动画 */
}

/* 悬停状态 */
a:hover {
    color: #4caf50;        /* 悬停时的文字颜色 */
    text-decoration: none; /* 保持无下划线 */
}

/* 点击状态 */
a:active {
    color: #4caf50;        /* 点击时的文字颜色 */
}

/* 已访问链接 */
a:visited {
    color: #333;           /* 已访问链接的颜色 */
}

/* 焦点状态 */
a:focus {
    outline: none;         /* 去除焦点虚线框 */
    box-shadow: none;      /* 去除焦点阴影 */
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #4caf50;
    margin: 10px auto;
}

/* 我的位置 */
.location {
    background: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
}

.location a {
    color: #4caf50;
    text-decoration: none;
}

.location a:hover {
    text-decoration: underline;
}

.bg-light {
    background-color: #f8f9fa;
}

/* 单篇页面样式 */
.company-detail .content-wrapper,
.contact-page .contact-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.company-detail .intro-text,
.contact-page .contact-info-detail {
    flex: 1;
}

.company-detail .intro-image,
.contact-page .contact-map {
    flex: 1;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h3, .contact-map h3 {
    margin-bottom: 10px;
    color: #4caf50;
}

.map-container {
    background: #eee;
   
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* 顶部导航 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 菜单按钮激活状态 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 导航菜单 */
.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 0;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: #4caf50;
}

/* Banner轮播图 */
.banner {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.slider {
    position: relative;
    height: 500px;
}

.slider_sub {
    position: relative;
    height: 300px;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-controls span {
    cursor: pointer;
    font-size: 30px;
    color: white;
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.slider-controls span:hover {
    background: rgba(0,0,0,0.6);
}

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* 公司简介 */
.intro-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 产品展示 */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 20px;
}

.product-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* 产品点击效果 */
.product-item.clicked {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    /*height: 200px;*/
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    /*height: 100%;
    object-fit: cover;*/
    border-radius: 4px;
}

.product-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-item p {
    color: #666;
}

/* 图片列表页面样式 */
.products-page .product-list,
.cases-page .case-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-meta {
    padding: 0 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    color: #e91e63;
    font-weight: bold;
    font-size: 18px;
}

/* 案例展示 */
.case-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.case-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.case-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-item h3 {
    padding: 15px;
    font-size: 18px;
    text-align: center;
    color: #333;
}

/* 新闻资讯 */
.news-list {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 首页两列新闻布局 */
.home .news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.home .news-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-bottom: none;
}

.news-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:last-child {
    border-bottom: none;
}

.news-content {
    flex: 1;
    padding-right: 15px;
}

.news-content h3 {
    margin-bottom: 10px;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #4caf50;
}

.news-date {
    min-width: 70px;
    margin-right: 20px;
    text-align: center;
    padding: 10px 0;
}

.news-date .day {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #4caf50;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #45a049;
    transform: scale(1.1);
}

/* 滚动动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 新闻详情页面样式 */
.news-detail-wrapper {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-meta-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #666;
    align-items: center;
}

.news-content-detail p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.news-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.news-navigation a {
    color: #4caf50;
    text-decoration: none;
}

.news-navigation a:hover {
    text-decoration: underline;
}

/* 网站底部 */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer .footer-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
}

.footer .friend-links,
.footer .contact-info {
    flex: 1;
    min-width: 300px;
}

.footer .copyright {
    flex: 100%;
    min-width: 100%;
    margin-top: 20px;
}

.footer .qrcode-section {
    flex: 0 0 auto;
    margin-left: 20px;
}

/* 手机端隐藏二维码 */
@media (max-width: 768px) {
    .footer .qrcode-section {
        display: none;
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.page-item {
    display: inline-block;
    padding: 8px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-item:hover,
.page-item.active {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.friend-links h3,
.contact-info h3,
.copyright h3 {
    margin-bottom: 20px;
    color: #fff;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.friend-links li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.friend-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.friend-links a:hover {
    color: #4caf50;
}

.contact-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
    color: #ccc;
}

.copyright a {
    color: #4caf50;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* 底部二维码样式 */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.qrcode-section {
    margin-left: auto;
}

.qrcode-box {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.qrcode-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.qrcode-img {
    padding: 5px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    display: inline-block;
}

.qrcode-img img {
    display: block;
}

.qrcode-text {
    font-size: 14px;
    color: #ccc;
    margin-top: 10px;
}

/* 手机端底部导航菜单 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    grid-template-columns: repeat(3, 1fr);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item.active {
    color: #4caf50;
}

.mobile-bottom-nav .nav-icon {
    margin-bottom: -4px;
}

.mobile-bottom-nav .nav-text {
    font-size: 12px;
}

/* 手机端样式 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        padding: 10px;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* 隐藏导航菜单 */
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .navbar.active {
        right: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        padding: 80px 20px 20px;
    }
    
    .navbar ul li {
        margin: 0;
        padding: 6px 0;
        border-bottom: 1px solid #eee;
    }
    
    .navbar ul li:last-child {
        border-bottom: none;
    }
    
    .navbar ul li a {
        display: block;
        padding: 10px 0;
        font-size: 16px;
    }
    
    .banner {
        margin-top: 80px;
        margin-bottom: 10px;
    }
    
    .slider {
        height: 200px;
    }

    .slider_sub {
        height: 200px;
    }
    
    .slide img {
        height: 200px;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .location {
        padding: 10px 0;
        font-size: 12px;
    }
    
    /* 公司简介手机端样式 */
    .intro-content {
        flex-direction: column;
        gap: 20px;
    }
    
    /* 单篇页面手机端样式 */
    .company-detail .content-wrapper,
    .contact-page .contact-wrapper {
        flex-direction: column;
    }
    
    .company-detail .intro-text,
    .contact-page .contact-info-detail,
    .company-detail .intro-image,
    .contact-page .contact-map {
        flex: none;
        width: 100%;
    }
    
    .map-container {
        height: 200px;
    }
    
    .intro-text,
    .intro-image {
        flex: none;
        width: 100%;
    }
    
    .product-list {
        grid-template-columns: 1fr;
    }
    
    .product-item {
        max-width: 100%;
    }
    
    .case-list {
        grid-template-columns: 1fr;
    }
    
    /* 图片列表页面手机端样式 */
    .products-page .product-list,
    .cases-page .case-list {
        grid-template-columns: 1fr;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        margin-right: 0;
        margin-bottom: 15px;
        min-width: auto;
        width: 100%;
        padding: 15px 0;
    }
    
    .news-content {
        padding-right: 0;
        padding-bottom: 15px;
    }
    
    /* 手机端首页新闻两列布局 */
    .home .news-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 在手机端显示底部导航菜单 */
    .mobile-bottom-nav {
        display: grid;
    }
    
    /* 为网站底部添加底部边距，避免被手机端底部菜单遮挡 */
    .footer {
        padding-bottom: 80px;
    }
    
    /* 针对手机端首页内容，不需要滚动动画 */
    .company-intro .animate-on-scroll {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* 新闻详情页面手机端样式 */
    .news-detail-wrapper {
        padding: 20px;
    }
    
    .news-meta-detail {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    /* 手机端分页样式 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-item {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 产品详情页面样式 */
.product-detail-wrapper {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-meta-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #666;
    align-items: center;
}

.product-content-detail p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.product-content-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 10px 0;
}

.product-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.product-navigation a {
    color: #4caf50;
    text-decoration: none;
}

.product-navigation a:hover {
    text-decoration: underline;
}

/* 手机端产品详情页面样式 */
@media (max-width: 768px) {
    .product-detail-wrapper {
        padding: 20px;
    }
    
    .product-meta-detail {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-navigation {
        flex-direction: column;
        gap: 15px;
    }
}