﻿/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.lang-switcher {
    position: absolute;
    left: 15px;
    top: 20px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.9); /* 半透明白色背景 */
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 轻微阴影增加层次感 */
}

.lang-switcher a {
    color: #555; /* 更柔和的深灰色 */
    text-decoration: none;
    transition: color 0.3s ease; /* 平滑的颜色过渡效果 */
    padding: 2px 5px;
    border-radius: 3px;
}

.lang-switcher a:hover {
    color: #1a73e8; /* Google蓝色系悬停色 */
    background-color: rgba(26, 115, 232, 0.1); /* 轻微背景色 */
}

.lang-switcher a.active {
    font-weight: 600; /* 比bold稍轻的字体粗细 */
    color: #1a73e8; /* 与悬停色一致的主色调 */
    background-color: rgba(26, 115, 232, 0.08); /* 激活状态背景色 */
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .lang-switcher {
        background-color: rgba(30, 30, 30, 0.9); /* 深色背景 */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }
    
    .lang-switcher a {
        color: #e0e0e0; /* 浅灰色文字 */
    }
    
    .lang-switcher a:hover {
        color: #8ab4f8; /* 亮蓝色 */
        background-color: rgba(138, 180, 248, 0.1);
    }
    
    .lang-switcher a.active {
        color: #8ab4f8;
        background-color: rgba(138, 180, 248, 0.15);
    }
}
/* 导航栏 */
header {
    background: linear-gradient(135deg, #0073e6 0%, #0047ab 100%);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 60, 150, 0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
}

header::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

header .logo {
    margin: 0;
    font-size: 24px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a.active {
    border-bottom: 2px solid #fff;
}

/* Banner */
.banner {
    background: url('images/banner.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.banner h2 {
    font-size: 36px;
    margin: 0;
}

.banner p {
    font-size: 18px;
    margin: 10px 0 20px;
}

.banner .btn {
    background: #ff6f61;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* 各模块通用样式 */
section {
    padding: 60px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

/* 产品展示 */
.product-list, .application-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product-item, .application-item {
    flex: 1 1 30%;
    margin: 10px;
    text-align: center;
}

.product-item img, .application-item img {
    max-width: 100%;
    border-radius: 10px;
}

/* 联系我们 */
.contact-info {
    text-align: center;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

form input, form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background: #0073e6;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* 页脚 */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}