
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

header {
    background-color: transparent;
    color: black;
    padding: 2px;
    text-align: center;
}



.container:hover {
    box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.8); /* 非常明显的外发光效果 */
}



a{
    text-decoration: none;
}


.item:hover {
    animation: blink 5s infinite alternate; /* 添加闪烁动画 */
    text-decoration: underline;
}

@keyframes blink {
    0% {
        background-color: #f0f0f0;
    }
    100% {
        background-color: #f1f1f1; /* 在这里设置闪动时的颜色 */
    }
}


.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    padding: 20px;
    transition: box-shadow 0.3s ease; /* 添加过渡效果 */
    text-decoration: none;
}
.item img {
    max-width: 250px;
    height: 250px;
    grid-row: 1 / span 3;
}

.item {
   
    background-color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    border-radius: 20px;
    transition: background-color 0.3s ease; /* 添加过渡效果 */
    color:black;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    text-decoration: none;
}






.price {
    font-weight: bold;
    color: black;
    text-decoration: none;
}

.buy-link {
    background-color: black;
    color: #fff;
    padding: 8px 10px;
    border-radius: 5px;
    text-decoration: none;
}

.purchase-link-div-1{
    background-color: black;
    color: #fff;
    padding: 8px 10px;
    border-radius: 5px;
}

.tag {
    background-color: lightseagreen;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
}

@media screen and (max-width: 600px) {
    .container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .tag {
        display: none;
    }

.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    padding: 20px;
    transition: box-shadow 0.3s ease; /* 添加过渡效果 */
}

.item img {
    max-width: 250px;
    height: 250px;
    grid-row: 1 / span 3;
    margin: 0 auto; /* 将图片水平居中 */
}

.item {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    border-radius: 20px;
    transition: background-color 0.3s ease; /* 添加过渡效果 */
    color:black;
    text-decoration: none;
}



}



#logoContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 0;
    background-color: transparent;
}

#logoContainer a {
    text-decoration: none;
}

#logoImg {
    width: 64px;
    height: 64px;
}

   

/* 一键调节亮度的css。 */

.light-mode {
    background-color: #fff; /* 切换到亮色模式时的背景颜色 */
    color: #000; /* 切换到亮色模式时的文字颜色 */
}

.dark-mode {
    background-color: #000; /* 切换到暗色模式时的背景颜色 */
    color: #fff; /* 切换到暗色模式时的文字颜色 */
}

.white-icon {
    color: white;
    position: fixed;
    top: 20px; /* 距离顶部的距离 */
    right: 20px; /* 距离右侧的距离 */
    z-index: 9999; /* 控制按钮的层叠顺序 */
}


/* 搜索框的css。 */
/* 通过ID选择器来选中输入框 */
#filterInput {
    /* 设置宽度 */
    width: 300px; /* 例如，设置为300像素 */
    
    /* 设置高度 */
    height: 40px; /* 例如，设置为40像素 */
    
    /* 设置边框样式 */
    border: 2px solid #ccc; /* 设置边框为2像素的实线，颜色为灰色 */
    
    /* 设置圆角边框 */
    border-radius: 5px; /* 例如，设置为5像素的圆角 */
    
    /* 设置内边距 */
    padding: 8px; /* 例如，设置为8像素的内边距 */
    
    /* 设置字体样式 */
    font-size: 16px; /* 设置字体大小 */
    font-family: Arial, sans-serif; /* 设置字体 */
    
    /* 设置背景颜色 */
    background-color: #f9f9f9; /* 设置背景颜色为浅灰色 */
    
    /* 添加阴影效果 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加轻微阴影效果 */
    
    /* 设置占位符文字样式 */
    ::placeholder {
        color: #999; /* 设置占位符文字颜色 */
        font-style: italic; /* 设置为斜体 */
    }
}


/* 设置按钮的样式 */
.keywordBtn, #showAllProducts {
    /* 设置背景颜色为透明 */
    background-color: transparent;
    
    /* 其他样式属性 */
    color: #007bff; /* 设置文字颜色 */
    border: 2px solid #007bff; /* 添加边框 */
    padding:5px 10px; /* 设置内边距 */
    margin: 5px; /* 设置间距 */
    cursor: pointer; /* 设置光标形状 */
    border-radius: 5px; /* 设置圆角 */
    font-size: 14px; /* 设置文字大小 */
    font-weight: bold; /* 设置文字粗细 */
    text-transform: uppercase; /* 设置文字为大写 */
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}

/* 设置按钮悬停时的样式 */
.keywordBtn:hover, #showAllProducts:hover {
    background-color: #007bff; /* 设置悬停时的背景颜色 */
    color: #fff; /* 设置悬停时的文字颜色 */
}


/* h3 的默认尺寸 */

h3{
    font-size: medium;
    color:black;
    text-decoration: none;
}

/* curreny的信息 */
#currency-info {
    position: fixed;
    top: 10px;
    right: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    background-color: #f8f8f8;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 5px;
}

/* 响应式调整 */
@media screen and (max-width: 600px) {
    #currency-info {
        font-size: 16px;
        padding: 8px 12px;
        top: 5px;
        right: 5px;
    }
}