/* common.css - 湖州丞星科技有限公司网站全局样式 */

/* ==================== 全局基础样式 ==================== */
/* 设置基础字体和颜色 */
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* 容器样式 - 用于包裹主要内容 */
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 链接基础样式 */
a {
    color: #1e88e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d47a1;
}

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1e88e5;
    color: white;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0d47a1;
    color: white;
}

/* ==================== 头部样式 ==================== */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* 改为底部对齐 */
    height: 100%; /* 确保容器有高度 */
    padding: 5px;
}

.logo {
    display: flex;
    align-items: flex-end; /* logo内容底部对齐 */
    height: 100%; /* 继承父容器高度 */
}

.logo img {
    height: 75px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav{

}
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: flex-end; /* 导航项底部对齐 */
    height: 100%; /* 继承父容器高度 */
    margin: 0; /* 移除默认外边距 */
    padding: 0; /* 移除默认内边距 */
}

.main-nav li {
    margin-left: 30px;
    position: relative;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    display: block; /* 确保链接是块级元素 */
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e88e5;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* ==================== 页脚样式 ==================== */
.main-footer .call{
    color: #aaa;
    text-decoration: none;
}

.main-footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0 20px;
}
.footer-container{
    display: flex;
    justify-content: space-around;
}

.footer-column {
    width: 30%;
    float: left;
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #1e88e5;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #aaa;
}

.wechat-qr {
    width: 120px;
    height: 120px;
    margin: 10px 0;
    border: 2px solid #444;
}

.copyright {
    clear: both;
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #444;
    color: #777;
}

/* ==================== 首页样式 ==================== */
/* 轮播图区域 */
/* Swiper轮播图样式 */
.swiper-container {
    touch-action: pan-y; /* 只允许垂直滚动 */
    overscroll-behavior: contain; /* 阻止滚动链 */
}

.fullscreen-banner {
    width: 100%;
    height: 100vh; /* 全屏高度 */
    margin-top: 120px; /* 根据header高度调整 */
    overscroll-behavior: contain; /* 防止滚动穿透 */
    touch-action: pan-y; /* 明确触摸行为 */
}

.swiper-wrapper {
    backface-visibility: hidden; /* 修复某些浏览器的渲染问题 */
}

.swiper-slide {
    overscroll-behavior: contain;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 分页器样式 */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #fff;
}

/* 导航按钮样式 */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.5);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px;
    font-weight: bold;
}

/* 服务介绍区域 */
.services-section {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #1e88e5;
}

.service-desc {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    color: #666;
    line-height: 1.8;
    text-indent: 25px;
}

/* 案例展示区域 */
.cases-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.cases-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.case-item {
    width: 32%;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.case-img {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.case-item:hover .case-overlay {
    transform: translateY(0);
}

.text-center{
    text-align: center;
}

.btn-more {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    border: 2px solid #1e88e5;
    color: #1e88e5;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #1e88e5;
    color: white;
}

/* 新闻资讯区域 */
.news-section {
    padding: 80px 0;
    background-color: white;
}

.home-page-news-box .news-container {
    margin-top: 40px;
    display: flex;
    justify-content: space-around;
}

.home-page-news-box .news-item {
    flex: 1;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 30px;
    padding: 5px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.home-page-news-box .news-item:hover {
    transform: translateY(-5px);
}

.home-page-news-box .news-img {
    width: 100%;
    overflow: hidden;
}

.home-page-news-box .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-page-news-box .news-item:hover .news-img img {
    transform: scale(1.1);
}

.home-page-news-box .news-content {
    width: 100%;
    padding: 20px;
}

.home-page-news-box .news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.home-page-news-box .news-desc {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.home-page-news-box .news-date {
    color: #999;
    font-size: 14px;
}

/* ==================== 企业简介页样式 ==================== */
.about-section {
    padding: 140px 0;
    background-color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.about-content h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #1e88e5;
}

.about-content p {
    text-indent: 25px;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
    text-align: left;
}

/* ==================== 案例展示页样式 ==================== */
.cases-page {
    padding: 140px 0;
    background-color: #f5f5f5;
}

.case-filter {
    text-align: center;
    margin-bottom: 40px;
}

.case-filter ul {
    display: inline-flex;
    list-style: none;
    background-color: white;
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.case-filter li {
    margin: 0 5px;
}

.case-filter a {
    display: block;
    padding: 8px 20px;
    border-radius: 30px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.case-filter li.active a,
.case-filter a:hover {
    background-color: #1e88e5;
    color: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.case-box {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}



.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-box:hover .case-img img {
    transform: scale(1.1);
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.case-info p {
    color: #666;
    line-height: 1.6;
}

/* ==================== 联系我们页样式 ==================== */
.contact-section {
    padding: 140px 0;
    background-color: white;
}

.contact-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #666;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.contact-item {
    width: 30%;
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-10px);
}

.contact-item .call{
    color: #666;
    text-decoration: none;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-map {
    height: 400px;
    margin-bottom: 50px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 5px;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1e88e5;
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #0d47a1;
}

/* ==================== 新闻中心页样式 ==================== */
.news-page {
    padding: 140px 0;
    background-color: #f5f5f5;
}

.news-page .news-container {
    display: flex;
}

.news-page .news-sidebar {
    width: 250px;
    margin-right: 30px;
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-page .news-sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.news-page .news-sidebar ul {
    list-style: none;
}

.news-page .news-sidebar li {
    margin-bottom: 10px;
}

.news-page .news-sidebar a {
    display: block;
    padding: 8px 0;
    color: #666;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.news-page .news-sidebar li.active a,
.news-page .news-sidebar a:hover {
    color: #1e88e5;
    padding-left: 10px;
}

.news-page .news-list {
    flex: 1;
}

.news-page .news-container .news-item {
    padding: 5px;
    display: flex;
    justify-content: space-between;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    align-items: center; /* 新增：垂直居中 */
}

.news-page .news-container .news-item:hover {
    transform: translateY(-5px);
}


.news-page .news-container .news-img {
    width: 200px;
    height: 100%; /* 添加固定高度 */
    overflow: hidden;
    flex-shrink: 0; /* 防止图片容器被压缩 */
}

.news-page .news-container .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例填充整个容器 */
    transition: transform 0.5s ease;
}

.news-page .news-container .news-item:hover .news-img img {
    transform: scale(1.1);
}

.news-page .news-content {
    padding: 20px;
}

.news-page .news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-page .news-content h3 a {
    color: #333;
    transition: color 0.3s ease;
}

.news-page .news-content h3 a:hover {
    color: #1e88e5;
}

.news-page .news-desc {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-page .news-date {
    color: #999;
    font-size: 14px;
}

/*
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #1e88e5;
    color: white;
    border-color: #1e88e5;
}*/
/* 分页样式 */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #666;
}

.pagination a:hover {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}

.pagination .current {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* ==================== 新闻中心页新增样式 ==================== */

/* 新闻头部区域 */
.news-page .news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 面包屑导航 */
.news-page .breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.news-page .breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

.news-page .breadcrumb a:hover {
    color: #1e88e5;
}

.news-page .breadcrumb .divider {
    margin: 0 8px;
    color: #999;
}

.news-page .breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 新闻搜索框 */
.news-page .news-search {
    display: flex;
}

.news-page .news-search form {
    display: flex;
}

.news-page .search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 250px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.news-page .search-input:focus {
    outline: none;
    border-color: #1e88e5;
}

.news-page .search-btn {
    padding: 0 20px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-page .search-btn:hover {
    background-color: #0d47a1;
}

.news-page .search-btn i {
    margin-right: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-page .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-page .news-search {
        margin-top: 15px;
        width: 100%;
    }

    .news-page .search-input {
        width: 100%;
    }
}

/* 新闻分类激活状态 */
.news-page .news-sidebar li.active a {
    color: #1e88e5;
    font-weight: 500;
    padding-left: 10px;
    border-left: 3px solid #1e88e5;
}

/* ==================== 新闻详情页样式 ==================== */
.news-detail {
    padding: 140px 0;
    background-color: white;
}

.news-detail .news-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.news-detail .news-meta {
    text-align: center;
    margin-bottom: 40px;
    color: #999;
}

.news-detail .news-meta span {
    margin: 0 15px;
}

.news-detail .news-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

.news-detail .news-content p {
    margin-bottom: 20px;
}

.news-detail .news-nav {
    max-width: 800px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-detail .news-nav a {
    display: inline-block;
    width: 48%;
    color: #666;
    transition: color 0.3s ease;
}

.news-detail .news-nav a:hover {
    color: #1e88e5;
}

.news-detail .next-news {
    text-align: right;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .case-item,
    .contact-item {
        width: 48%;
    }

    .news-container {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav li {
        margin: 0 10px 10px;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 30px;
    }

    .case-item,
    .contact-item {
        width: 100%;
    }

    .news-item {
        flex-direction: column;
    }

    .news-img {
        width: 100%;
        height: 200px;
    }

    .news-content {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 28px;
    }

    .news-title {
        font-size: 24px;
    }

    .contact-form {
        padding: 20px;
    }
}