.container {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: transparent;
    border-radius: 0px;
    overflow: hidden;
    /* 让容器高度由内容决定，但左右保持一致 */
    align-items: stretch;
}

.detail-section {
    flex: 1;
    padding: 0px;
    background: transparent;
    width: 54%;
    display: flex;
    /* 高度由图片决定 */
    height: fit-content;
}

.list-section {
    width: 46%;
    padding: 0px;
    background-color: transparent;
    display: flex;
    /* 确保高度与左侧一致 */
    height: auto;  /* 改为auto，由内容撑起，但通过stretch会与左侧保持一致 */
}

/* 新增：确保list-section内部的容器也继承高度 */
.list-section > * {
    height: 100%;
    width: 100%;
}

.detail-content {
    background-color: transparent;
    border-radius: 0px;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* 高度由图片决定 */
    height: fit-content;
    min-height: auto;
}

/* 图片作为背景层 - 关键修改 */
.detail-image {
    width: 100%;
    height: auto;  /* 改为auto，让图片保持原始比例 */
    object-fit: cover;
    border-radius: 0px;
    position: relative;  /* 改为relative，不再绝对定位 */
    top: 0;
    left: 0;
    z-index: 1;
    margin-bottom: 0;
    box-shadow: none;
    display: block;  /* 确保图片是块级元素 */
}

/* 添加半透明遮罩层 - 需要调整定位方式 */
.detail-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
}

/* 文字内容容器 - 改为绝对定位覆盖在图片上 */
.detail-text-wrapper {
    position: absolute;  /* 改为绝对定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    padding: 60px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.detail-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 0px solid rgba(255,255,255,0.3);
    order: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-family: "montserrat-light-6";
}

.detail-overview {
    font-size: 16px;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 25px;
    order: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-family: "montserrat-light-6";
}

/* 按钮容器 */
.detail-btn-container {
    padding-top: 20px;
    order: 3;
}

.detail-btn-link {
    display: inline-block;
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 0px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    width: 25%;
    max-width: 25%;
    box-sizing: border-box;
    word-break: break-word;
    white-space: normal;
    border: 1px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.detail-btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 110, 224, 0.4);
    color: #fff;
    background: #0097e0;
    border: 1px solid #0097e0;
}

/* 右侧网格容器 - 关键修改 */
.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);  /* 3行等分高度 */
    gap: 0px;
    width: 100%;
    height: 100%;  /* 高度继承自父容器.list-section */
}

/* 网格项样式 */
.grid-item {
    background-color: rgba(255,255,255,0.25);
    border-radius: 0px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 0px solid rgba(100,100,100,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 99%;
    height: 99%;  /* 每个格子占满分配的网格空间 */
    position: relative;
    box-sizing: border-box;
}

.grid-item:hover {
    transform: translateY(0px);
    background-color: rgba(255,255,255,.85);
    border-color: #4a6ee0;
    box-shadow: 0 6px 15px rgba(74, 110, 224, 0.15);
}

.grid-item.active {
    background-color: #0879b4;
    border-color: #0879b4;
    transform: translateY(-3px);
}

.grid-item .icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.grid-item .icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 151, 224, 0.15);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.grid-item:hover .icon-wrapper::before {
    background-color: rgba(0, 151, 224, 0.25);
    transform: scale(1.1);
}

.grid-item .iconfont {
    font-size: 36px;
    color: #0097e0;
    position: relative;
    z-index: 2;
}
/* 如果您想要更丰富的效果，可以使用这个完整版本 */
.grid-item.active .iconfont {
    color: #ffffff;
    transform: scale(1.1); /* 稍微放大 */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* 添加发光效果 */
}
.grid-item span {
    font-size: calc(12px + (16 - 14) * ((100vw - 1024px) / (1920 - 1024)));
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    z-index: 2;
}
/* 选中状态下的文字样式 */
.grid-item.active span {
    color: #ffffff; /* 选中时文字变为白色 */
}
/* 平板设备 (768px以下) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: auto;
        margin: 10px;
        border-radius: 0;
        box-shadow: none;
        height: auto;
    }
    
    .detail-section {
        width: 100%;
        padding: 15px;
        order: 1;
        height: auto;
        min-height: 0;
        flex: 0 0 auto;
    }
    
    .list-section {
        width: 100%;
        padding: 15px;
        order: 2;
        height: auto;
        min-height: auto;
    }
    
    .list-section > * {
        height: auto;  /* 移动端取消高度继承 */
    }
    
    .detail-content {
        height: auto;  /* 移动端高度自适应 */
        padding: 0;
        min-height: 0;
    }
    
    .detail-text-wrapper {
        position: relative;  /* 移动端改回相对定位 */
        padding: 20px;
        height: auto;
    }
    
    .detail-title {
        font-size: 22px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .detail-overview {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .detail-image {
        height: auto;
        max-height: 400px;
        margin-bottom: 0;
        position: relative;  /* 移动端改回相对定位 */
    }
    
    .detail-btn-container {
        padding-top: 15px;
    }
    
    .detail-btn-link {
        padding: 12px 16px;
        font-size: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .items-grid {
        height: auto;
        grid-template-rows: repeat(3, auto);  /* 移动端改为自适应行高 */
        gap: 8px;
    }
    
    .grid-item {
        aspect-ratio: 1 / 1;
        height: auto;
        padding: 0;
    }
    
    .grid-item .icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .grid-item .iconfont {
        font-size: 28px;
    }
    
    .grid-item span {
        font-size: 12px;
    }
    
    .grid-item:hover {
        transform: none;
        background-color: #f8fafd;
        border-color: transparent;
        box-shadow: none;
    }
    
    .grid-item:active,
    .grid-item.active {
        transform: scale(0.98);
        background-color: #0879b4;
        border-color: #0879b4;
    }
}

/* 手机设备 (480px以下) */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .container {
        margin: 0;
        border-radius: 0;
        min-height: auto;
        height: auto;
    }
    
    .detail-section {
        width: 100%;
        padding: 0;
    }
    
    .list-section {
        margin-top: 20px;
        width: 100%;
        padding: 0;
    }
    
    .detail-content {
        height: auto;
        padding: 0;
        width: 100%;
    }
    
    .detail-text-wrapper {
        padding: 15px;
    }
    
    .detail-title {
        font-size: 20px;
        margin-bottom: 10px;
        padding-bottom: 10px;
        padding-top: 0;
    }
    
    .detail-overview {
        font-size: 14px;
        line-height: 1.5;
        width: 100%;
        margin: 0 auto 15px;
    }
    
    .detail-image {
        max-height: 350px;
        height: auto;
        margin-bottom: 0;
    }
    
    .detail-btn-container {
        padding-top: 10px;
    }
    
    .detail-btn-link {
        padding: 10px 12px;
        font-size: 14px;
        width: 100%;
        max-width: 100%;
    }
    
    .items-grid {
        gap: 6px;
    }
    
    .grid-item .icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .grid-item .iconfont {
        font-size: 24px;
    }
    
    .grid-item span {
        font-size: 11px;
    }
}

/* 超小手机设备 (360px以下) */
@media (max-width: 360px) {
    .detail-content {
        height: auto;
    }
    
    .detail-title {
        font-size: 18px;
    }
    
    .detail-overview {
        font-size: 13px;
    }
    
    .detail-btn-link {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .items-grid {
        gap: 4px;
    }
    
    .grid-item .icon-wrapper {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }
    
    .grid-item .iconfont {
        font-size: 20px;
    }
    
    .grid-item span {
        font-size: 10px;
    }
}