
.g-product-image-text img {
    width: 100%;
    height: auto;

}

.g-division {
    height: 0.5rem !important;
    min-height: 0 !important;
    background-color: #f0f !important;
    padding: 0 !important;
}

.g-table-td {
    text-align: center;
    vertical-align: middle;
}

.g-addresses-select {
    width: 29.5rem;
    padding: 0.3rem;
    font-size: 0.7rem;
    border: 0.05rem solid #ddd;
    border-radius: 0.3rem;
}

.g-input-hover:hover,
.g-input-hover:focus,
.g-addresses-select:hover,
.g-addresses-select:focus {
    outline: 0.3rem solid rgba(0, 100, 255, 0.2);
}


.g-addresses-detail {
    margin: 0.7rem 0 0.5rem 0;
    width: 55rem;
}

.g-addresses-detail .g-label-4chars {
    width: 4rem;
    padding: 0.4rem 0;
    margin: 0 0 0 2.6rem;
    font-size: 0.9rem;
}

.g-addresses-detail .g-label-2chars {
    width: 2.4rem;
    padding: 0.4rem 0;
    margin: 0 0 0 4.2rem;
    font-size: 0.9rem;
}

.g-addresses-choice {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    margin: 0.2rem;
    border-color: #ccc;
    border-radius: 0.3rem;
    width: 12rem;
}

.g-addresses-choice:focus {
    border-color: rgba(0, 100, 255, 0.5);
    outline: 0.3rem solid rgba(0, 100, 255, 0.2);
}

input::placeholder {
    color: #bbb !important;
}

/* 错误提示样式 */
.g-error-msg {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* 输入框错误状态 */
.g-is-invalid {
    border-color: #dc3545 !important;
}

.g-a-button {
    display: inline-block;
    /* 让链接表现得像块级元素 */
    padding: 0px 7px;
    margin-top: 0.3rem;
    /* 增加内边距，使其看起来像按钮 */
    font-size: 0.7rem;
    /* 设置字体大小 */
    color: #fff;
    /* 设置文本颜色 */
    text-decoration: none;
    /* 去掉下划线 */
    background-color: #0d6efd;
    /* 背景颜色 */
    border-radius: 5px;
    /* 圆角边框 */
    transition: background-color 0.3s ease;
    /* 添加动画效果 */
}


.g-a-button:hover {
    background-color: #0056b3;
    /* 鼠标悬停时的背景颜色 */
}


.g-custom-link {
    text-decoration: none;
    /* 去掉下划线 */
    color: black;
    font-weight: 400;
    /* 初始文本颜色 */
    /* transition: color 5s; */
    /* 添加过渡效果 */
}

.g-custom-link:hover {
    /* color: #333; */
    font-weight: bold;
    /* 鼠标悬停时的文本颜色，变深 */
}


.g-table-boder {
    border-collapse: collapse;
    margin-left: 0rem;
    width: 100%;
}


.g-table-boder td {
    border: 1px solid #D2D6DE;
    text-align: center;
    font-weight: normal;
    font-size: inherit;
    /* 确保字体大小继承 */
}

.g-table-boder th {
    border: 1px solid #D2D6DE;
    text-align: center;
    font-weight: bold;
    font-size: inherit;
    /* 确保字体大小继承 */

}

.g-table-boder th,
.g-table-boder td {
    padding: 0.3rem 0;
}

.g-table-boder tr:nth-child(odd) {
    background-color: #e7f1ff;
    /* 奇数行背景色 */
}

.g-table-boder tr:nth-child(even) {
    background-color: #ffffff;
    /* 偶数行背景色 */
}


/* .g-table-boder tr:hover { */
/* background-color: rgba(13, 110, 253, 0.2); 更柔和的悬停背景色 */
/* 或者使用下面的替代效果 */
/* border: 2px solid #0d6efd; */
/* box-shadow: 0 0 10px rgba(13, 110, 253, 0.5); */
/* } */

/* .g-table-boder tr:hover { */
/* background-color: #c0d8ff; 鼠标悬停时的背景色 */
/* } */

/* .g-table-boder .g-input-boder {
    margin-right:20px;
}

.g-table-boder .g-input-boder-2 {
    margin-right:10px;
} */

.g-table-boder label {
    font-size: 1rem;
    font-weight: 600;
}

.g-table-boder .g-input {
    height: 70%;
    margin-left: 10px;
    margin-bottom: 5px;
    width: 25em;
}

.g-table-boder .g-has-error {
    color: red;
}

.g-table-boder .g-help-block {
    display: block;

}

.g-button {
    background-color: #0d6efd;
    color: rgb(255, 255, 255);
    border: none;
    padding: 0.2rem 0.3rem;
    /* line-height: 1; */
    border-radius: 3px;
    font-weight: bold;
    /* font-size: 0.8rem; */
    cursor: pointer;
}

.g-button-disabled {
    background-color: #bbb;
    color: rgb(255, 255, 255);
    border: none;
    padding: 0.2rem 0.3rem;
    /* line-height: 1; */
    border-radius: 3px;
    font-weight: bold;
    /* font-size: 0.8rem; */
    cursor: not-allowed;
}

.g-need-btn:disabled {
    background-color: #0d6efd;
    /* 或者设置为更深或更浅的颜色 */
    /* color: rgb(255, 255, 255, 0.5); */
    /* 降低文本透明度来表示禁用状态 */
    border: 0px solid transparent;
    cursor: not-allowed;
    /* 改变光标样式表示不可点击 */
    opacity: 0.65;
    /* 降低整体透明度来表示禁用状态 */
}

.g-need-btn {
    background-color: #0d6efd;
    color: rgb(255, 255, 255);
    border: 0px solid rgb(136, 11, 11);
    padding: 6px 6px;
    line-height: 1;
    border-radius: 0.3rem;
    font-size: 0.7rem;
    /* user-select: none; */
    cursor: pointer;
}

.styled-list a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.styled-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: right;
}

.styled-list li {
    padding: 3px 6px;
    margin-left: 3px;
    border-radius: 3px;
    background-color: #0d6efd;
}

.li-list a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.li-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: left;
}

.li-list li {
    padding: 3px 6px;
    margin-left: 3px;
    border-radius: 3px;
    background-color: blueviolet;
}

.custom-file-upload {
    /* border: 1px solid #ccc; */
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
    color: white;
    background-color: #0d6efd;
    border-radius: 0.2rem;
    font-size: 0.6rem;
}



.g-image {
    transition: width 0.3s;
    /* 宽度发生变化时，以 0.3 秒的时间进行过渡效果*/
    /* width: 100px; 初始图片宽度 */
    cursor: zoom-in;
    /* 鼠标悬停时的图标样式 */
}

#order-needful-info label.error,
#form-need-add label.error {
    color: #ef392b;
    font-size: 0.6rem;
}

#order-needful-info input.error,
#form-need-add input.error,
#form-need-add textarea.error,
#form-need-search input.error,
#form-need-search-id input.error {
    background-color: #f3bcb4;
    border-color: #aa8d8d;
    color: #aaa;
}

#form-need-search label.error,
#form-need-search-id label.error {
    position: absolute;
    color: #ef392b;
    right: 4.5rem;
    top: 0.25rem;
    font-size: 0.6rem;
}

/* styles.css */
.image-container {
    position: relative;
    display: inline-block;
    text-align: center;
}

.grayscale {
    filter: grayscale(100%);
    display: block;
}

.centered-text {
    position: absolute;
    top: 82%;
    left: 62%;
    /* transform: translate(-50%, -50%); */
    color: #FF0000;
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1;
    max-width: 80%;
    /* 调整文本容器的最大宽度 */
    /* text-shadow: 1px 1px 2px black; */
}

.message-container {
    margin-top: 3rem;
    margin-left: 5.5rem;
    width: 53.5rem;
    min-height: 40rem;
    background-color: #fff;
    border-radius: 1rem;
    border: 0.5rem solid #ccc;
}

.g-welcome-container {
    margin-top: 1rem;
    width: 24rem;
    text-align: center;
    background-color: #f73859;
    padding: 0.2rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 2rem;
}

.g-contact-container {
    width: 82.5%;
    margin: 5rem auto;
    padding: 1.25rem;
    border: 0.0625rem solid #ddd;
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.g-contact-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: #333;
}

.g-contact-info {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

.g-contact-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.g-contact-list {
    list-style-type: none;
    padding-left: 0;
    /* flex: 1; */
    /* width: 10rem; */
}

.g-contact-list li {
    font-size: 1.1rem;
    margin-bottom: 0.625rem;
    color: #666;
}

.g-contact-list li strong {
    color: #000;
}

.g-qr-code {
    flex: 0 0 auto;
    /* 二维码区域不伸缩 */
    text-align: center;
}

.g-qr-code img {
    width: 12rem;
    /* 缩小二维码图片大小 */
    height: 12rem;
    border: 0.0625rem solid #ddd;
    border-radius: 0.5rem;
}

.g-qr-code p {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #555;
}

.g-additional-purchase-information div {
    margin-top: 0.5rem;
}

.g-additional-purchase-information label {
    color: #999;
}

/* .g-additional-purchase-information input{
    
} */
.g-additional-purchase-information span {
    color: red;
}

.g-additional-purchase-information em {
    font-style: normal;
    background-color: #0d6efd;
    cursor: pointer;
    color: white;
    line-height: 1.1;
    border-radius: 0.2rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.6rem;

}



@media (min-width: 99px) {
    html {
        font-size: 5px;
    }
}

@media (min-width: 100px) and (max-width: 480px) {
    html {
        font-size: 8.5px;
    }

    .g-search-form .g-search-btn {
        width: 3.3rem;
        bottom: 2.6rem;
        left: 11.7rem;
    }

    .products-index-page .products-list .product-item .product-content .title {
        height: 5.5rem !important;
    }

    /* .g-additional-purchase-information .auth_compiler label {
        font-size: 0.6rem !important;
    } */
    .g-additional-purchase-information input {
        width: 20rem !important;
    }

    .g-additional-purchase-information div {
        font-size: 0.6rem !important;
    }
}

/* 中等屏幕设备 */
@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 10px;
    }
}

/* 大屏幕设备 */
@media (min-width: 769px) and (max-width: 1069px) {
    html {
        font-size: 17px;
    }
}

@media (min-width: 1068px) {
    html {
        font-size: 20px;
    }
}