/* 主容器（全宽透明） */
.icons-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    padding: 5px;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    background: transparent;
}

/* 图标容器 - 调整高度以容纳按钮 */
.icon-container {
   position: relative;
   aspect-ratio: 300 / 196;
   transition: all 0.3s ease;
   width: 100%;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
   border-radius: 15px;
   background-color: white;
   display: flex;
   flex-direction: column;
   overflow: hidden;
   padding-top: 8px;
}

/* 图标图片区域 - 调整高度 */
.icon-link {
    display: block;
    width: 100%;
    height: 75%; /* 图标区域占70% */
    text-decoration: none;
    position: relative;
    overflow: hidden; /* 防止图片溢出 */
}

/* 修改后的 icon-img - 确保100%填满宽度 */
.icon-img {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* 移除绝对定位和transform，改用flex布局 */
    display: flex;
    align-items: normal;
    justify-content: center;
}

/* 按钮容器 */
.icon-buttons {
    display: flex;
    width: 100%;
    height: 25%; /* 按钮区域占30% */
    padding: 10px;
    gap: 8px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
}

/* 通用按钮样式 - 修改为图片按钮 */
.icon-buttons a.btn-image {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-decoration: none;
}

/* 左按钮样式 - 使用图片 */
.btn-left {
    background-image: url('../icon/but-01.png');
}

.btn-left:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* 右按钮样式 - 使用图片 */
.btn-right {
    background-image: url('../icon/but-02.png');
}

.btn-right:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* 悬停效果 */
.icon-container:hover {
    transform: scale(1.05);
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.15));
}

/* 图标图片设置 */
.icon-container.link-icon-1 .icon-img {
    background-image: url('../icon/icon_01.png');
}
.icon-container.link-icon-2 .icon-img {
    background-image: url('../icon/icon_02.png');
}
.icon-container.link-icon-3 .icon-img {
    background-image: url('../icon/icon_03.png');
}

/* 响应式调整 */
@media (max-width: 1280px) {
    .icons-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 1024px) {
    .icons-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .icons-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 780px) {
    .icons-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .icon-buttons a.btn-image {
        min-height: 32px;
    }
}
@media (max-width: 600px) {
    .icons-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
}
@media (max-width: 480px) {
    .icons-wrapper {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 30px;
        width: 90%;
    }
    
    .icon-buttons a.btn-image {
        min-height: 30px;
    }
}
@media (max-width: 375px) {
    .icons-wrapper {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}