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

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

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f4f4f4;
}

/* 横幅样式 */
.banner {
    background-color: #f4f4f4;
    padding: 150px 0 100px;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    transform: perspective(500px) rotateX(5deg);
    font-weight: bold;
    letter-spacing: 2px;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 通用部分样式 */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

/* 公司简介样式 */
.about {
    background-color: #f9f9f9;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.info-list, .equipment-list {
    list-style: none;
    padding: 0;
}

.info-list li, .equipment-list li {
    padding: 8px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.info-list li::before, .equipment-list li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    margin-right: 10px;
}

.equipment-section {
    margin-top: 15px;
}

.equipment-list li {
    margin-bottom: 12px;
}

/* 合作案例样式 */
.cases {
    background-color: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-item h3 {
    padding: 20px;
    font-size: 1.3rem;
    color: #333;
}

.case-item p {
    padding: 0 20px 20px;
    color: #666;
}

/* 加工能力样式 */
.capability {
    background-color: #f9f9f9;
}

.capability .capability-content {
    max-width: 900px;
    margin: 0 auto;
}

.capability-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.capability-detail {
    margin-top: 20px;
}

.capability-detail h3 {
    color: #2c3e50;
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.capability-list {
    list-style: none;
    padding: 0;
}

.capability-list li {
    padding: 10px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.capability-list li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    margin-right: 10px;
}

/* 联系我们样式 */
.contact {
    background-color: #f9f9f9;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-map {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .banner {
        padding: 120px 0 80px;
    }

    .banner h2 {
        font-size: 2rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner h2 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .contact-info p {
        font-size: 1rem;
    }
}