/* 头部导航 */
.header {
    background-color: rgba(26, 58, 143, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo容器样式 */
.logo {
    display: flex; /* 使用flex布局使图标和文字水平排列 */
    align-items: center; /* 垂直居中对齐 */
}

/* Logo图标样式 */
.logo-icon {
    width: 120px; /* 设置图标宽度 */
    height: 40px; /* 设置图标高度 */
    margin-right: 12px; /* 图标右侧间距，与文字分开 */
    background-image: url('../xiaoshi.png'); /* 设置公司logo背景图片 */
    background-size: contain; /* 背景图片自适应容器大小 */
    background-repeat: no-repeat; /* 背景图片不重复 */
    background-position: center; /* 背景图片居中显示 */
}

/* Logo图片样式（如果使用img标签而非背景图） */
.logo-icon img {
    width: 100%; /* 图片宽度填满容器 */
    height: 100%; /* 图片高度填满容器 */
    object-fit: contain; /* 图片自适应容器，保持比例 */
    /* 移除滤镜，显示原始logo颜色 */
}

/* 隐藏原有的Font Awesome图标 */
.logo-icon i {
    display: none; /* 不显示原有的相机图标 */
}

/* Logo文字样式 */
.logo-text h1 {
    color: white; /* 文字颜色为白色 */
    font-size: 24px; /* 文字大小 */
    font-weight: 700; /* 文字粗细为粗体 */
}

/* Logo文字中的"科技"二字特殊样式 */
.logo-text span {
    color: var(--secondary-color); /* 使用CSS变量中的次要颜色 */
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 4px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: #ddd;
    padding: 70px 0 20px;
}

.footer-logo h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -8px;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #888;
}

.copyright a {
    color: var(--secondary-color);
    text-decoration: none;
}