:root {
    --primary: #3B82F6;
    --dark: #1E293B;
    --light: #F8FAFC;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo svg {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    fill: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* 英雄区 */
.hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #94A3B8;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* 关于我们 */
.about {
    padding: 6rem 0;
    background: #1E3A8A;
}

.about .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature {
    background: #1E40AF;
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* 服务概览 */
.services {
    padding: 6rem 0;
    background: #1E3A8A;
}

.services .section-title {
    text-align: center;
    margin-bottom: 4rem;
}


/* 产品概览 */
.products {
    padding: 6rem 0;
}

.products .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

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

.product-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.product-image {
    height: 160px;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image svg {
    width: 60px;
    height: 60px;
    fill: var(--primary);
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    margin-bottom: 1rem;
}

.product-link {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-link:hover {
    text-decoration: underline;
}

/* 客户案例 */
.cases {
    padding: 6rem 0;
    background: #1E3A8A;
}

.cases .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.case-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.case-content {
    padding: 1.5rem;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: #1E40AF;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

/* 联系我们 */
.contact {
    padding: 6rem 0;
}

.contact .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: #1E40AF;
    color: white;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    max-width: 800px;
    margin: 2rem auto 0;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #1E40AF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-icon:hover {
    background: var(--primary);
}

.map-container {
    margin-top: 2rem;
    aspect-ratio: 16 / 9;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* 页脚 */
footer {
    background: var(--dark);
    padding: 2rem 0;
    text-align: center;
    color: #94A3B8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--dark);
        position: absolute;
        top: 60px;
        right: 0;
        padding: 1rem;
        border-radius: 0 0 0.5rem 0.5rem;
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* 添加或修改现有的CSS规则 */
.service-icon svg,
.product-icon svg,
.feature-icon svg {
    width: 24px;  /* 调整图标的宽度 */
    height: 24px; /* 调整图标的高度 */
}

/* 服务卡片容器 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 自适应列宽 */
    gap: 24px; /* 卡片之间的间距 */
    margin-top: 24px;
}

/* 服务卡片样式 */
.service-card {
    background-color: #f9f9f9; /* 浅色背景 */
    border: 1px solid #e0e0e0; /* 细边框 */
    border-radius: 12px; /* 圆角 */
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 悬停动画 */
}

/* 鼠标悬停效果 */
.service-card:hover {
    transform: translateY(-8px); /* 向上轻微移动 */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15); /* 加深阴影 */
}

/* 图标样式 */
.service-icon svg {
    width: 48px; /* 增大图标大小 */
    height: 48px;
    color: #3b82f6; /* 蓝色图标 */
    margin-bottom: 16px; /* 图标与文字之间的间距 */
}

/* 标题样式 */
.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #333; /* 深色标题 */
}

/* 描述文字样式 */
.service-content p {
    font-size: 0.9rem;
    color: #666; /* 灰色描述文字 */
    margin-bottom: 16px;
}

/* 链接样式 */
.service-link {
    display: inline-flex;
    align-items: center;
    color: #3b82f6; /* 蓝色链接 */
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 链接悬停效果 */
.service-link:hover {
    color: #2563eb; /* 深蓝色 */
}

/* 链接图标 */
.service-link svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}


/*
!* 标题居中对齐 *!
.section-title {
    text-align: center; !* 文本居中 *!
}

!* 如果标题中有子元素（如 h2 和 p），也可以单独设置它们的样式 *!
.section-title h2 {
    margin-bottom: 16px; !* 增加标题与分隔线之间的间距 *!
    font-size: 2rem; !* 调整标题字体大小 *!
    color: #333; !* 深色标题 *!
}

.section-title .divider {
    margin: 0 auto 16px auto; !* 分隔线居中，并增加上下间距 *!
    width: 60px; !* 分隔线宽度 *!
    height: 2px; !* 分隔线高度 *!
    background-color: #3b82f6; !* 蓝色分隔线 *!
}

.section-title p {
    font-size: 1rem; !* 描述文字大小 *!
    color: #666; !* 灰色描述文字 *!
    margin-bottom: 24px; !* 增加描述文字与后续内容的间距 *!
}*/


/* IPC备案信息样式 */
/*
.ipc-record {
    position: fixed; !* 固定定位 *!
    bottom: 16px; !* 距离底部16px *!
    right: 16px; !* 距离右侧16px *!
    font-size: 0.875rem; !* 字体大小 *!
    color: #FFF; !* 灰色文字 *!
    text-decoration: none; !* 去掉下划线 *!
}

.ipc-record a {
    color: #FFF; !* 链接颜色 *!
    text-decoration: none; !* 去掉下划线 *!
    transition: color 0.3s ease; !* 悬停动画 *!
}

.ipc-record a:hover {
    color: #3b82f6; !* 悬停时变为蓝色 *!
}*/
