/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 通用样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
}

h1,
h2 {
    color: #333;
    font-weight: bold;
}

p {
    color: #666;
    line-height: 1.8;
    margin: 1rem 0;
}

a {
    text-decoration: none;
    color: #007bff;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

button {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* 导航栏样式 */
.navbar {
    background-color: #333;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar .menu {
    list-style: none;
    display: flex;
}

.navbar .menu li {
    margin-left: 2rem;
}

.navbar .menu li a {
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.navbar .menu li a:hover {
    color: #007bff;
}

/* 内容区样式 */
.content-section {
    background-color: white;
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.content-section p {
    font-size: 1.1rem;
    color: #555;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 20px;
    list-style-type: disc;
}

.content-section ul li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.content-section .container {
    text-align: left;
}

/* 美化按钮 */
.cta {
    background-color: #28a745;
    color: white;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    border-radius: 5px;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta:hover {
    background-color: #218838;
}

/* 背景渐变颜色（hero section） */
.hero {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* 媒体查询：确保在移动设备上显示良好 */
@media (max-width: 768px) {
    .navbar .menu {
        flex-direction: column;
    }

    .navbar .menu li {
        margin: 0;
        padding: 0.5rem 0;
    }

    .container {
        width: 95%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section p {
        font-size: 1rem;
    }
}

.about-content,
.product-list,
.culture-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.about-text,
.product-text,
.culture-text {
    flex: 1;
}

.about-images,
.product-image,
.culture-images,
.value-added-images {
    flex: 1;
    display: flex;
    gap: 10px;
}

.about-images img,
.product-image img,
.culture-images img,
.value-added-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

p,
ul {
    font-size: 1.1em;
    line-height: 1.6em;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
}

ul li::before {
    margin-right: 10px;
    color: green;
}

.case-list,
.partner-list,
.news-list,
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.case-item,
.partner-item,
.news-item,
.contact-details,
.contact-map {
    flex: 1;
    min-width: 250px;
}

.case-image img,
.partner-logo img,
.news-image img,
.contact-map img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.read-more {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0056b3;
}

.case-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.partner-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.partner-logo img {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
}

.partner-text {
    flex: 1;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
}

.news-image img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

.news-text {
    flex: 1;
}

.read-more {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details {
    flex: 1;
}

.contact-map {
    flex: 1;
}

.contact-map img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0056b3;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.about-text {
    flex: 1;
    max-width: 50%;
}

.about-images {
    flex: 1;
    max-width: 50%;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.about-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.culture-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.culture-text {
    flex: 1;
    max-width: 50%;
}

.culture-images {
    flex: 1;
    max-width: 50%;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.culture-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}


.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-item {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 90%;
    padding: 0 30px;
    box-sizing: border-box;
}

.product-text {
    flex: 1;
}

.product-image img {
    width: 200px;
    /* 设置适合的宽度 */
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.value-added-services {
    margin-top: 20px;
}

.value-added-images {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.value-added-images img {
    width: 100%;
    max-width: 300px;
    /* 设置适合的最大宽度 */
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* 欢迎语 */
.hero {
    background: url('images/background-image1.jpg') no-repeat center center/cover;
    min-height: 300px;
    text-align: center;
    color: #fff;
    padding-top: 50px;
    position: relative;
}

.hero h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: white;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: white;
}

.cta {
    background: #ff6f00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta:hover {
    background: #e66900;
}

/* 文字动画 */
.hero h1,
.hero p,
.hero .cta {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 特色亮点 */
.features {
    background: #f5f5f5;
    padding: 40px 0;
    text-align: center;
}

.features .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.features h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
    width: 100%;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.feature {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-basis: calc(20% - 40px);
    /* 五个特征项，每项占据20%的宽度 */
    min-width: 200px;
    /* 最小宽度，以适应小屏幕设备 */
    margin-bottom: 20px;
}

.feature i {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.feature h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.feature p {
    font-size: 1em;
    line-height: 1.5;
}

/* 轮播图 */
.carousel {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.carousel .container {
    position: relative;
}

.carousel h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
    text-align: center;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide-image {
    width: 100%;
    /* 适应容器宽度 */
    height: auto;
    object-fit: cover;
    max-height: 300px;
    /* 限制图片最大高度 */
}

.navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 1;
}

.navigation button {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明背景 */
    border-radius: 50%;
    /* 圆形按钮 */
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation .prev {
    position: absolute;
    left: 70px;
    transform: translateX(-50%);
}

.navigation .next {
    position: absolute;
    right: 80px;
    transform: translateX(50%);
}

.navigation button:hover {
    opacity: 1;
}

/* 快速导航 */
.quick-links {
    background: #f5f5f5;
    padding: 20px 0;
    text-align: center;
}

.quick-links .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-links h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.quick-links .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* 用于在链接之间添加间距 */
}

.quick-links .link {
    display: inline-flex;
    align-items: center;
    margin: 10px;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 1em;
}

.quick-links .link i {
    margin-right: 10px;
}

.quick-links .link:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.quick-links .link:hover i {
    color: #fff;
}

/* 脚部 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}