/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e88f41;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e67e22;
}

/* 头部样式 */
.header {
    position: relative;
    width: 100%;
    height: 60px;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.header::before {
    content: none;
}

.header-background {
    display: none;
}

/* 页眉内容 */
.header-content {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    background-color: rgba(0, 0, 0, 0.651); /* 半透明背景 */
    z-index: 2;
}

.logo {
    width: 80px;
    height: auto;
    margin-right: 12px;
}

.header h1 {
    color: #fff;
    margin: 0 32px 0 0;
    font-size: 2rem;
    letter-spacing: 2px;
}

.header .nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #fff;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 1.17em;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
    position: relative;
}

.nav-link:hover {
    transform: scale(1.1);
}

/* 当前页面的导航项样式 */
.nav-link.active {
    color: #e88f41;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e88f41;
}

/* 搜索框样式 */
.search-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    background-color: rgba(59, 59, 59, 0.5);
    border-radius: 20px;
    padding: 5px 10px;
    overflow: hidden;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 5px;
    width: 150px;
    font-size: 14px;
}

.search-input::placeholder {
    color: #aaa;
}

.search-button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.search-button:hover {
    color: #f0f0f0;
}

/* 语言切换 */
.language-switch {
    margin-left: 20px;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: #e88f41;
    color: #fff;
    border-color: #e88f41;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9比例 */
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 0;
}

.carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.carousel-item.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    width: 80%;
}

.carousel-caption h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 20px;
    margin-bottom: 25px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 通用部分样式 */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    color: #333;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #e88f41;
    margin: 15px auto 0;
}

/* 关于我们部分 */
.about-section {
    padding: 60px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-text h1 {
    display: inline-block;
    margin-right: 10px;
}

.about-text p {
    display: inline-block;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text .btn {
    align-self: flex-start;
    width: auto;
}

.about-paragraph {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 25px;
    text-align: left;
}

.about-subtitle {
    font-weight: bold;
    font-size: 2em;
    margin-right: 8px;
    display: inline;
}

.about-desc {
    font-weight: normal;
    font-size: 1.2em;
    display: inline;
}

/* 产品展示部分 */
.products-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px 15px 5px;
    font-size: 18px;
}

.product-card p {
    padding: 0 15px 15px;
    color: #666;
}

.product-card .btn {
    margin: 0 15px 15px;
}

/* 特色部分 */
.features-section {
    padding: 60px 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e88f41;
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.feature-item p {
    color: #666;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #e88f41;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #e88f41;
}

/* 修改联系方式项样式，解决图标与文本错位问题 */
.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-contact-item svg {
    margin-right: 10px;
    flex-shrink: 0;
    min-width: 16px;
    height: 16px;
}

.footer-contact-item p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* 最后一个联系方式项目不需要底部间距 */
.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #555;
    width: 100%;
}

.footer-bottom p {
    font-size: 13px;
    color: #aaa;
}

/* 响应式布局 - 页脚 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-section {
        width: 100%;
        padding-right: 0;
    }
    
    .carousel {
        padding-bottom: 75%; /* 适配移动端，使比例更接近 4:3 */
    }
    
    .carousel-caption h2 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .carousel {
        padding-bottom: 100%; /* 适配小屏幕，使比例更接近正方形 */
    }
    
    .carousel-caption h2 {
        font-size: 20px;
    }
}

.title-desc-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
    align-items: baseline;
}

.title-desc-container h1 {
    margin-right: 10px;
    white-space: nowrap;
}

.title-desc-container p {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.vision-section {
    padding: 60px 0;
    background-color: #fff;
}

.vision-section .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.vision-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.vision-image-wrapper {
    flex: 1 1 900px;
    min-width: 600px;
    display: flex;
    justify-content: flex-end;
}

.vision-image {
    max-width: 1000px;
    width: 100%;
    max-height: 650px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    object-fit: cover;
}

.vision-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.vision-subtitle {
    font-size: 28px;
    color: #e88f41;
    font-weight: bold;
    margin-bottom: 18px;
    line-height: 1.2;
    text-align: left;
    display: block;
    width: 100%;
}

.vision-desc {
    font-size: 20px;
    color: #444;
    line-height: 2;
    text-align: left;
    margin: 0;
}

body.lang-en .vision-desc {
    font-size: 18px;
}

body.lang-zh .vision-desc {
    font-size: 20px;
}

@media (max-width: 900px) {
    .vision-flex {
        flex-direction: column;
        gap: 20px;
    }
    .vision-image-wrapper {
        justify-content: center;
    }
    .vision-text-block {
        align-items: center;
    }
    .vision-subtitle, .vision-desc { text-align: center; }
}

.vision-title {
    font-size: 28px;
    color: #222;
    font-weight: bold;
    margin-bottom: 16px;
    margin-top: 0;
    text-align: left;
}

@media (max-width: 900px) {
    .vision-title { text-align: center; }
}