* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: #f4f5ff;
    color: #fff;
    line-height: 1.6;
    max-width: 100vw;
    overflow-x: hidden;
    /* 新增：防止内容因子元素溢出 */
    width: 100%;
}

/* 导航 - 核心修复：解决文字不全 */
.nav {
    background: #2e85ff;
    padding: 24px 0;
    width: 100%;
    /* 新增：防止导航栏本身溢出 */
    overflow: hidden;
}

.nav-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 新增：强制容器内元素不换行 */
    flex-wrap: nowrap;
    /* 新增：超出部分隐藏（避免导航链接挤到外部） */
    overflow: hidden;
}

.logo-img {
    height: 32px;
    width: auto;
    /* 新增：固定logo最小宽度，避免挤压 */
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 36px;
    /* 新增：允许链接容器横向滚动（核心解决文字不全） */
    overflow-x: auto;
    /* 隐藏滚动条（美观） */
    scrollbar-width: none;
    /* 防止链接挤压logo */
    flex-shrink: 1;
}

/* 隐藏webkit内核滚动条 */
.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
    /* 新增：链接不换行，强制单行 */
    white-space: nowrap;
}

.nav-links a:hover {
    color: #fff;
}

/* 头部 banner - 修复文字/图片溢出 */
.banner {
    max-width: 1100px;
    margin: 60px auto 80px;
    padding: 0 20px;
    /* 新增：确保容器不超出视口 */
    width: 100%;
}

.banner h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1A1A1A;
    /* 新增：防止标题文字溢出 */
    word-wrap: break-word;
}

.banner p {
    font-size: 18px;
    color: #666;
    max-width: 1100px;
    /* 新增：适配小屏幕，宽度100% */
    width: 100%;
}

/* 头部大图 - 修复固定高度导致的裁切 */
.banner-image {
    width: 100%;
    /* 替换固定height为min-height，保留比例 */
    min-height: 240px;
    height: auto;
    max-height: 420px;
    margin-top: 30px;
    border-radius: 12px;
    background: #f2f3f5;
    object-fit: cover;
}

/* 区块通用 - 修复宽度溢出 */
.section {
    max-width: 1100px;
    margin: 0 auto 100px;
    padding: 0 20px;
    /* 新增：确保区块宽度100%，不超出视口 */
    width: 100%;
}

.section h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #1A1A1A;
    /* 新增：标题换行，避免溢出 */
    word-wrap: break-word;
}

/* 关于我们 - 文字适配 */
.about-content {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    max-width: 1100px;
    /* 新增：宽度100%，适配小屏幕 */
    width: 100%;
}

/* 关于我们图片 - 修复固定高度裁切 */
.about-image {
    width: 100%;
    min-height: 200px;
    height: auto;
    max-height: 320px;
    margin-top: 20px;
    border-radius: 12px;
    background: #f2f3f5;
    object-fit: cover;
}

/* 产品卡片 - 修复网格挤压 */
.product-list {
    display: grid;
    /* 优化：中等屏幕显示2列，避免挤压 */
    grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 100%, 350px), 1fr));
    gap: 30px;
    width: 100%;
}

.product-card {
    padding: 28px;
    border-radius: 12px;
    background: #eff0ff;
    transition: transform 0.2s;
    overflow: hidden;
}

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

.product-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 8px;
    object-fit: contain;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card p {
    font-size: 14px;
    color: #666;
    /* 新增：多行溢出显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 最多显示3行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #424bca;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

.product-link:hover {
    color: #000ba5;
    

}

/* 底部 - 修复文字换行/溢出 */
.footer {
    padding: 20px 20px;
    background: #4b5fd4;
    text-align: center;
    font-size: 14px;
    color: #f0f0f0;
    line-height: 1.6;
    /* 新增：宽度100%，防止溢出 */
    width: 100%;
}

.footer-links a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s;
    /* 新增：链接单行显示，避免挤压 */
    white-space: nowrap;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links img {
    width: 18px;
    height: 18px;
    position: relative;
    top: 3px;
    left: 2px;
}

.footer-record {
    margin: 10px 0;
}

.footer-anti-addiction {
    font-size: 12px;
    color: #f0f0f0;
    margin-top: 5px;
}

/* 移动端适配 - 强化修复 */
@media (max-width: 768px) {
    .nav {
        padding: 16px 0;
    }

    .nav-content {
        padding: 0 16px;
    }

    .nav-links {
        gap: 16px;
        /* 移动端加大滚动体验 */
        padding-bottom: 4px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .section {
        padding: 0 16px;
        margin: 0 auto 30px;
    }

    .banner h1 {
        font-size: 32px;
    }

    /* 移动端图片高度自适应 */
    .banner-image {
        max-height: 240px;
    }

    .about-image {
        max-height: 200px;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    .footer {
        font-size: 13px;
        padding: 30px 16px;
    }

    .footer-anti-addiction {
        font-size: 11px;
    }

    .footer-links a {
        display: inline-block;
        margin: 0 4px 8px;
    }

}