/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #333;
    position: relative;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #ff961e;
    margin: 15px auto 0;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

.btn {
    display: inline-block;
    background-color: #ff961e;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

section {
    padding: 80px 0;
}

/* 头部导航 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ff961e;
}

.logo-image{
    height: 44px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 600;
    position: relative;
}

nav ul li a:hover {
    color: #ff961e;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: #ff961e;
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 展示区 */
#showcase {
    background: url('../images/banner.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

.showcase-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.showcase-content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
}

.showcase-content .btn {
    animation: fadeInUp 1.4s ease;
}

/* 关于我们 */
#about {
    background-color: #fff;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    padding-right: 30px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.company-values {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.value-item {
    flex: 0 0 calc(33.33% - 20px);
    text-align: center;
    padding: 20px 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-item i {
    font-size: 36px;
    color: #ff961e;
    margin-bottom: 15px;
}

.value-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

/* 产品服务 */
#services {
    background-color: #f8f8f8;
}

.image-icon{
    width: 100px;
}

.services-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-item {
    flex: 0 0 calc(20% - 30px);
    background-color: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 48px;
    color: #ff961e;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    color: #666;
    font-size: 15px;
}

/* 案例展示 */
#portfolio {
    background-color: #fff;
}

.portfolio-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.portfolio-item {
    flex: 0 0 calc(25% - 20px);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 136, 229, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.portfolio-overlay p {
    color: #f1f1f1;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

.portfolio-overlay .btn-small {
    background-color: #fff;
    color: #ff961e;
}

.portfolio-overlay .btn-small:hover {
    background-color: #f1f1f1;
}

/* 新闻动态 */
#news {
    background-color: #f8f8f8;
}

.news-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.news-item {
    flex: 0 0 calc(33.33% - 20px);
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-info {
    padding: 20px;
}

.news-date {
    display: block;
    color: #ff961e;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    transition: color 0.3s ease;
}

.news-info h3:hover {
    color: #ff961e;
}

.news-info p {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    color: #ff961e;
    font-weight: bold;
    display: inline-block;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more:hover::after {
    margin-left: 10px;
}

/* 联系我们 */
#contact {
    background-color: #fff;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info {
    flex: 0 0 calc(40% - 30px);
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: #ff961e;
    margin-right: 20px;
    background-color: #ffdcc8     ;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.info-item p {
    color: #666;
}

.contact-form {
    flex: 0 0 calc(60% - 30px);
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff961e;
    box-shadow: 0 0 5px rgba(30, 136, 229, 0.3);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding-top: 70px;
    padding-bottom: 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-links, .footer-social, .footer-newsletter {
    flex: 0 0 calc(33.33% - 30px);
    margin-bottom: 30px;
}

.footer-links h3, .footer-social h3, .footer-newsletter h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-social h3::after, .footer-newsletter h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #ff961e;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ff961e;
    padding-left: 5px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #ff961e;
    transform: translateY(-5px);
}

.footer-newsletter p {
    color: #ccc;
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    height: 45px;
    padding: 0 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.footer-newsletter button {
    background-color: #ff961e;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: #1565c0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #ff961e;
    color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #ffa33a;
    transform: translateY(-5px);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .service-item, .portfolio-item {
        flex: 0 0 calc(33.33% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: 0 0 100%;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    .service-item, .portfolio-item {
        flex: 0 0 calc(50% - 20px);
    }
    
    .contact-info, .contact-form {
        flex: 0 0 100%;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 20px 0;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 12px 0;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media screen and (max-width: 576px) {
    .section-header h2 {
        font-size: 30px;
    }
    
    .value-item, .service-item, .portfolio-item, .news-item, .footer-links, .footer-social, .footer-newsletter {
        flex: 0 0 100%;
    }
    
    .showcase-content h1 {
        font-size: 36px;
    }
    
    .showcase-content p {
        font-size: 18px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}