* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('color.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    position: static !important;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.company-english {
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;
    font-size: 0.8rem;
    margin: 0;
    color: #ccc;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
}

nav ul li {
    margin: 0 0.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-image.active,
.carousel-slide.active {
    opacity: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #9e9e9e;
    color: black;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background-color: #bdbdbd;
}

.carousel-arrow.left {
    left: 30px;
}

.carousel-arrow.right {
    right: 30px;
}

.carousel-arrow span {
    font-weight: bold;
    font-size: 1.2rem;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    padding-bottom: 4rem;
}

section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-image: url('color.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white;
}

h2 {
    margin-bottom: 1rem;
    color: white;
}

button {
    background-color: #333;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #555;
}

#greeting {
    margin-top: 1rem;
    font-weight: bold;
    color: white;
}

.contact-container {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-image: url('color.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-item {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-right {
    flex: 1;
    background-image: url('color.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: bold;
    color: white;
}

.form-group input,
.form-group textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background-color: #0066cc;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.submit-btn:hover {
    background-color: #0052a3;
}

.map-container {
    margin-top: 2rem;
    text-align: center;
}

.map-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
}

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

.service-item h3 {
    margin-bottom: 1rem;
    color: white;
}

.service-item p {
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.about-container {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.about-left {
    flex: 1;
    background-image: url('color.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.about-right {
    flex: 1;
    background-image: url('color.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-title {
    font-size: 1.2rem;
    color: white;
}

.about-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.about-feature-item h3 {
    margin-bottom: 1rem;
    color: white;
}

.about-feature-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.about-feature-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
}

.customers-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.customer-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    transition: transform 0.3s ease;
}

.customer-item img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
    border-radius: 8px;
}

.customer-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.cases-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.case-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.case-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.case-item h3 {
    margin-top: 1rem;
    color: white;
    font-size: 1rem;
    white-space: nowrap;
}

.case-item hr {
    margin: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-content {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    white-space: nowrap;
    font-size: 0.75rem;
}

.case-left {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-right {
    flex: 1;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
}

#beian-link {
    color: white;
    text-decoration: none;
}

#beian-link:hover {
    color: skyblue;
}

@keyframes zoomIn {
    0% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}