/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
body {
    background-color: #faf9e6;
}
/* 头部样式 */
header {
    background-color: #faf9e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0 50px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

/* 导航栏样式 */
.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2ecc71;
}
.nav-link.active {
    color: #2ecc71;
    font-weight: 600;
}
.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2ecc71;
    border-radius: 1px;
}
/* 轮播图样式 */
.carousel {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.carousel-item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播图控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 企业介绍样式 */
.company-intro {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 50px;
}

.intro-title {
    font-size: 32px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.intro-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #2ecc71;
    margin: 20px auto 0;
}

.intro-content {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-align: justify;
}


/* 通用内容区域样式 */
.content-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 50px;
}

.section-title {
    font-size: 32px;
    color: #2c3e50;
    text-align: center;
}
.section-content {
    margin-bottom: 20px;
}
.screenshot-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.product-icon {
    margin-bottom: 30px;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.screenshot-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 小间隙，保证5个同排不拥挤 */
    justify-content: start; /* 均匀分布5个图片，无多余间隙 */
}

.screenshot-item {
    width: calc(20% - 8px); /* 计算5等分宽度，扣除gap间距 */
    min-width: 180px; /* 最小宽度，防止窄屏挤压 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    background-color: #fff;
    padding: 8px;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* 底部备案信息样式 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-info {
    font-size: 14px;
    line-height: 1.6;
}


/* 列表容器样式 */
.clean-web-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* 列表项卡片样式 */
.clean-web-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.clean-web-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* 图片容器样式 */
.item-img {
    width: 100%;
}
.item-img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}
/* 内容容器样式 */
.item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}
/* 文字样式 */
.item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}
.item-desc {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.item-date {
    font-size: 12px;
    color: #6c757d;
}
.item-link {
    font-size: 12px;
    color: #007bff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.item-link:hover {
    color: #0056b3;
}
.intro-detail {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}
/* 图片样式 */
.intro-detail img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}
/* 响应式适配（桌面端布局） */
@media (min-width: 768px) {
    .clean-web-item {
        flex-direction: row;
    }
    .item-img {
        width: 25%;
    }
    .item-content {
        width: 75%;
    }
}


/* 响应式适配 */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    .header-container {
        height: 70px;
    }

    .company-name {
        font-size: 20px;
    }

    .nav-item {
        margin-left: 15px;
    }

    .nav-link {
        font-size: 14px;
    }

    .carousel {
        height: 300px;
    }

    .company-intro {
        margin: 50px auto;
        padding: 0 20px;
    }

    .intro-title {
        font-size: 26px;
    }

    .intro-content {
        font-size: 15px;
    }
}