/* Hero section styles */
.main-content {
    margin-top: 80px;  /* 为顶部导航栏留出空间 */
}

.hero-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    background-color: #1E293B;  /* 添加背景色，防止图片加载前的空白 */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2em;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 保持图片比例填充整个区域 */
    filter: brightness(0.5);  /* 降低亮度使文字更清晰 */
}

/* Navigation section styles */
.nav-section {
    padding: 30px 0;
    background-color: #1E293B;  /* 修改为正确的深蓝色背景 */
}

.product-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1200px;
}

.nav-button {
    padding: 12px 24px;
    border: none;
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #1E293B;  /* 改为深色文字，而不是使用 primary-color 变量 */
}

.nav-button:hover {
    background-color: #f8f9fa;
}

.nav-button.active {
    background-color: var(--primary-color);  /* 激活状态保持使用主题色 */
    color: #fff;
}

/* Products section styles */
.products-section {
    padding: 50px 0;
    background-color: #1E293B;  /* 改为深蓝色背景 */
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.product-cards {
    /* 移除网格布局 */
    display: flex;
    flex-direction: column;  /* 改为纵向排列 */
    gap: 40px;  /* 产品卡片之间的间距 */
    padding: 20px;
    max-width: 1200px;  /* 限制内容最大宽度 */
    margin: 0 auto;  /* 居中显示 */
}

.product-card {
    width: 100%;  /* 占满容器宽度 */
    color: #b0bbc7;
    background: #1E293B;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(30, 41, 59, 0.1);
    padding: 30px;
    /* 移除底部外边距，因为已经使用了 gap */
    /* margin-bottom: 30px; */
}

.product-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 20px;
    text-align: center;
}

.product-logo img {
    max-width: 100%;
    height: auto;
}

.product-title {
    text-align: center;
    font-size: 2em;  /* 增大标题字号 */
    margin-bottom: 30px;  /* 增加底部间距 */
    font-weight: 600;  /* 加粗标题 */
    color: #b0bbc7;
}

.product-description {
    /* color: #333; */
    line-height: 1.8;  /* 增加行高提升可读性 */
    margin: 25px 0;
    color: #b0bbc7;
    letter-spacing: 0.02em;  /* 增加字间距 */
}

.product-description h4 {
    margin: 35px 0 15px;  /* 调整标题间距 */
    font-size: 1.4em;  /* 增大子标题字号 */
    font-weight: 500;  /* 调整字重 */
    color: #b0bbc7;  /* 子标题使用白色 */
}

.product-description ul {
    list-style: none;
    padding-left: 25px;  /* 增加缩进 */
    margin: 15px 0;
}

.product-description ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;  /* 增加列表项间距 */
    line-height: 1.7;  /* 调整列表行高 */
}

.product-description ul li:before {
    content: "•";
    color: #b0bbc7;  /* 改为与文字相同的颜色 */
    position: absolute;
    left: 0;
    top: -1px;  /* 微调圆点位置 */
    font-size: 1.2em;  /* 增大圆点大小 */
}

.product-description p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;  /* 与整体行高保持一致 */
}

/* 链接按钮样式 */
.product-description .btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid #b0bbc7;
    border-radius: 5px;
    color: #b0bbc7;
    text-decoration: none;
    margin-right: 15px;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.product-description .btn:hover {
    background-color: #b0bbc7;
    color: #1E293B;
}

/* 产品架构图样式 */
.product-architecture {
    margin-top: 40px;
}

.product-architecture h4 {
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 500;
    color: #b0bbc7;
}

.architecture-image {
    width: 100%;
    max-width: 1200px;  /* 调整为与文字内容相同的宽度 */
    margin: 0 auto;
    padding: 20px;
}

.architecture-image img {
    width: 100%;  /* 图片宽度占满容器 */
    height: auto;
    object-fit: contain;
    display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .product-nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-button {
        width: 100%;
        max-width: 300px;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 1.6em;  /* 移动端减小标题字号 */
    }

    .product-description h4 {
        font-size: 1.2em;  /* 移动端减小子标题字号 */
        margin: 25px 0 12px;  /* 调整移动端间距 */
    }

    .product-description {
        line-height: 1.6;  /* 移动端适当减小行高 */
    }

    .product-description .btn {
        display: block;
        margin-bottom: 10px;
        text-align: center;
        margin-right: 0;
    }

    .architecture-image {
        padding: 10px;
        max-width: 100%;  /* 移动端占满宽度 */
    }
}