:root {
    --primary-color: #FF8C00;
    --secondary-color: #4CAF50;
    --accent-color: #A52A2A;
    --background-color: #FFFFFF;
    --text-color: #333333;
}

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

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6600;
}

#langToggle {
    background-color: transparent;
    color: #ff6600;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#langToggle:hover {
    background-color: transparent;
}

#home {
    position: relative;
    width: 100%;
    height: auto; /* 改为自适应高度 */
    overflow: hidden;
    margin-top: 65px;
}

#home .carousel,
#home .carousel-inner,
#home .carousel-item {
    height: auto; /* 改为自适应高度 */
}

#home .carousel-item img {
    width: 100%;
    height: auto; /* 改为自适应高度 */
    object-fit: cover;
    object-position: center;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

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

#about {
    padding: 100px 0;
    background-color: #f9f9f9;
}

#about .container {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    padding-right: 50px;
}

.about-image {
    flex: 1;
}

#products {
    padding: 100px 0;
}

.product-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

.product-info {
    padding: 20px;
}

#contact {
    padding: 100px 0;
    background-image: url('image/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #333;
}

#contact h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

#contact .text-primary {
    color: #ff6600 !important;
}

.contact-info h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    width: 20px;
    margin-right: 10px;
    color: #ff6600;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #ff6600;
    color: #fff;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
}

.contact-form h3,
.contact-form label,
.contact-form .form-control::placeholder {
    color: #333;
}

.contact-form .form-control {
    border: 1px solid #ced4da;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ff6600;
}

.nav-icons .btn-link {
    color: #333;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
}

.nav-icons .btn-link:hover {
    color: #ff6600;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.lang-toggle {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    border: none;
    background: none;
    outline: none;
}

.lang-toggle:focus,
.lang-toggle:active {
    outline: none;
    box-shadow: none;
}

.lang-toggle i {
    margin-right: 5px;
}

.lang-toggle span {
    margin-left: 5px;
}

.lang-toggle span[data-lang="otherLang"] {
    color: #999;
    font-size: 0.8rem;
}

#home .carousel-control-prev-icon,
#home .carousel-control-next-icon {
    background-color: #ff6600;
    border-radius: 50%;
    padding: 20px;
}

#home .carousel-control-prev,
#home .carousel-control-next {
    width: 5%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

#home .carousel-control-prev {
    left: 15px;
}

#home .carousel-control-next {
    right: 15px;
}

#home .carousel-control-prev-icon,
#home .carousel-control-next-icon {
    width: 40px;
    height: 40px;
}

#home .carousel-indicators {
    margin-bottom: 0;
    justify-content: center;
}

#home .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    margin: 0 5px;
}

#home .carousel-indicators button.active {
    background-color: #ff6600;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
    }
    .nav-icons {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .about-text, .about-image {
        flex: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    #home .carousel-item {
        height: auto; /* 改为自适应高度 */
    }
}

@media (max-width: 576px) {
    #home .carousel-item {
        height: auto; /* 改为自适应高度 */
    }
}

/* 公司详情板块样式 */
.section-title-line {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.company-section {
    padding: 2rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    margin: 1rem 0;
    border-radius: 10px;
}

.company-section:last-child {
    border-bottom: none;
}

.company-section:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    margin-bottom: 0;
    font-size: 1.5rem;
}

.section-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
}

.section-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.8;
    flex-shrink: 0;
}

.section-content {
    padding-left: calc(50px + 1rem);
}

@media (max-width: 991px) {
    .section-icon {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    
    .section-content {
        padding-left: calc(40px + 1rem);
    }
}

.navbar-nav .nav-item {
    margin-left: 0.5rem;
}

.navbar-nav .nav-link.btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 991px) {
    .navbar-nav .nav-item {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link.btn {
        display: inline-block;
        margin: 0.5rem 0;
    }
}