/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #0d6efd;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.lang-toggle {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

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

/* 部分通用样式 */
section {
    scroll-margin-top: 70px;
}

/* 首页样式 */
#home {
    background-image: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-pattern.png');
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 0;
}

#home .container {
    position: relative;
    z-index: 1;
}

/* 产品和服务卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

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

.card-body {
    padding: 1.5rem;
}

.product-icon, .service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #0d6efd;
    transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .product-icon,
.card:hover .service-icon {
    transform: scale(1.1);
    color: #0a58ca;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* 关于我们样式 */
#about {
    padding: 100px 0;
}

.about-image {
    height: 400px;
    background-color: #f8f9fa;
    background-image: url('../images/about-image.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
    padding: 2rem;
}

.about-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* 联系我们样式 */
#contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-pattern.png');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 0;
}

#contact .container {
    position: relative;
    z-index: 1;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: white;
    color: #0d6efd;
    margin: 0 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.social-icon:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.chat-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.chat-buttons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.25);
}

.contact-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-info i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: #0d6efd;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-info:hover i {
    transform: scale(1.2);
}

.contact-info div {
    flex: 1 1 auto;
    margin-left: 1.2rem;
}

.font-bold {
    font-weight: 700;
    color: #212529;
}

#contact .card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

#contact h2 {
    font-weight: 800;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

#contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #0d6efd;
    border-radius: 2px;
}

#contact h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info i {
    flex: 0 0 auto;
    margin-top: 4px;
}

.contact-info div {
    flex: 1 1 auto;
    margin-left: 1rem;
}

.font-bold {
    font-weight: 700;
}

/* 页脚样式 */
footer {
    background-color: #1a1a1a;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-image {
        height: 300px;
    }

    .product-icon, .service-icon {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    h1.display-4 {
        font-size: 2.5rem;
    }

    h2.display-4 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .about-image {
        height: 250px;
    }
}

/* 语言切换样式 */
.lang-zh, .lang-en {
    transition: opacity 0.3s ease;
}

.d-none {
    display: none !important;
}

/* 表单样式 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}