@font-face {
	font-family: 'iconfont';
	src: url('../fonts/iconfont.woff2?t=1631608872177') format('woff2'),
    url('../fonts/iconfont.woff?t=1631608872177') format('woff'),
    url('../fonts/iconfont.ttf?t=1631608872177') format('truetype');
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
    height: 100%;
}

em,
i {
	font-style: normal;
}

li {
	list-style: none;
}

ol li{
	list-style-type: decimal;
}

ul li{
	list-style-type: disc;
}
.good-card li{
    list-style: none;
}


img {
	border: 0;
	vertical-align: middle;
	max-width: 100%;
	height: auto;
}

button {
	cursor: pointer;
}

a {
	color: #666;
	text-decoration: none;
}

button,
input {
	border: 0;
	outline: none;
}

body {
	-webkit-font-smoothing: antialiased;
	background-color: #fff;
}

/* 添加body类样式 */
.unicorn-body {
    background-color: #eef0f5;
    min-height: 100vh;
}

.hide,
.none {
	display: none;
}

.ali-icon {
	font-family: "iconfont" !important;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.fl {
	float: left;
}

.fr {
	float: right;
}

/* 页面装载 */
.page-wrapper {
	background-color: #fff;
}

.header-top {
	background-color: #f1f1f1;
	border-bottom: 1px solid #dadada;
	-webkit-box-shadow: 0 -1px 3px rgb(0 0 0 / 3%) inset;
	box-shadow: 0 -1px 3px rgb(0 0 0 / 3%) inset;
	font-size: 14px;
}

.logo {
	/* 删除滤镜效果，解决logo显示问题 */
	/* filter: brightness(0); */
}

/* 新增商品卡片样式 - 已合并到通用样式中 */
/* 调整卡片样式 - 已合并到通用样式中 */

/* 页面背景 */
.page-content.bg-light {
    background-color: #eef0f5 !important;
    min-height: 100vh;
    padding-bottom: 20px;
}

/* 纯白色卡片 */
.pure-white {
    background-color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* 卡片链接样式 */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.7;
    cursor: not-allowed;
}

/* 文章列表样式 */
.article-item {
    transition: all 0.2s ease;
    padding: 10px 0;
}

.article-item:hover {
    background-color: #f8f9fa;
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-title {
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
}

.article-desc {
    font-size: 0.85rem;
    line-height: 1.4;
}

.article-date {
    font-size: 0.8rem;
    white-space: nowrap;
    margin-left: 10px;
}

/* 文章卡片样式 */
.articles .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.articles .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.articles .article-list {
    flex: 1;
}

/* 移动端适配 */
@media (max-width: 767.98px) {
    .articles .card {
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .article-item {
        padding: 15px 0;
    }
    
    .article-date {
        font-size: 0.75rem;
    }
    
    .article-desc {
        font-size: 0.8rem;
    }
}

/* 商品详情页图片居中显示（修复后） */
@media (min-width: 768px) {
    /* 商品图片居中 */
    .row.no-gutters .col-md-4 .card-img-top {
        display: block;
        margin: 0 auto;
        height: auto;
        object-fit: contain;
        max-height: 300px;
    }
    
    /* 确保商品图片父容器有足够的高度并居中内容 */
    .row.no-gutters .col-md-4 {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-image-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
        padding: 20px;
    }
    
    /* 重置表单中的col-md-4样式 */
    .form-group .col-md-4 {
        display: block;
    }
    
    /* 修复购买数量输入框样式 */
    .form-group .col-md-4 .form-control {
        width: 100%;
        display: block;
    }
}

/* 修复标签导航样式 */
.nav-tabs {
    list-style-type: none;
    padding-left: 0;
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
    list-style-type: none;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background: none;
    border: none;
    border-bottom: 2px solid #007bff;
}

.nav-tabs .nav-link:hover {
    border: none;
    border-bottom: 2px solid #dee2e6;
}

.card-img-top {
    height: 140px;
    object-fit: contain;
    padding: 10px;
    background-color: #f8f9fa;
}

.card-body {
    padding: 0.8rem;
}

.price-info {
    /* 删除垂直排列 */
    /* display: flex; */
    /* flex-direction: column; */
}

.price-tag {
    color: #28a745;
    font-weight: bold;
    font-size: 0.9rem;
}

.stock-tag {
    color: #6c757d;
    font-size: 0.8rem;
}

.header-top-right-btns {
	float: right;
	text-align: center;
	font-size: 0;
}

.header-top-right-btns .btn-group>button {
	padding: 8px 10px;
	margin: 0;
	text-align: center;
	color: #999;
	font-size: 14px;
	border-right: 1px solid #e3e3e3;
	border-left: 1px solid transparent;
}

.btn.disabled {
     pointer-events: auto;
     cursor: not-allowed;
 }

 .btn.disabled:focus {
     box-shadow: none;
 }

.btn-group>button:hover {
	color: #e84c3d;
	background-color: #fafafa;
	border-right-color: #e3e3e3;
}

.header-top-right-btns .btn-group:last-child>button {
	border-right-color: transparent;
}

.badge-soldout {
     position: absolute;
     right: -5px;
     top: -5px;
     overflow: hidden;
     width: 75px;
     height: 75px;
     text-align: right;
 }

 .badge-soldout span {
     font-size: 13px;
     color: #fff;
     text-align: center;
     line-height: 20px;
     -webkit-transform: rotate(45deg);
     transform: rotate(45deg);
     width: 100px;
     display: block;
     -webkit-box-shadow: 0 0 8px 0 rgb(71 77 86 / 8%), 0 1px 0 0 rgb(71 77 86 / 3%);
     box-shadow: 0 0 8px 0 rgb(71 77 86 / 8%), 0 1px 0 0 rgb(71 77 86 / 3%);
     position: absolute;
     top: 19px;
     right: -21px;
     font-weight: 600;
     background: #fa6767;
 }

 .badge-soldout span:before {
     content: "";
     position: absolute;
     left: 0;
     top: 100%;
     z-index: -1;
     border-right: 3px solid transparent;
     border-bottom: 3px solid transparent;
     border-left: 3px solid #f94e4e;
     border-top: 3px solid #f94e4e;
 }

 .badge-soldout span:after {
     content: "";
     position: absolute;
     right: 0;
     top: 100%;
     z-index: -1;
     border-left: 3px solid transparent;
     border-bottom: 3px solid transparent;
     border-right: 3px solid #f94e4e;
     border-top: 3px solid #f94e4e;
 }

/* 原始header样式已移除，使用下方新的header样式 */

.header li{
    list-style: none;
}

/* 原始logo样式已移除，使用下方新的logo-container样式 */

/* 页脚样式 */
.footer {
    background-color: #fff;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #007bff;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* 添加flex布局样式 */
.flex-column {
    flex-direction: column;
}

.d-flex {
    display: flex;
}

.h-100 {
    height: 100%;
}

.mt-auto {
    margin-top: auto;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* pay-type */
.pay {
	margin-top: 20px;
	border-top: 1px solid #f7f7f7;
	padding-top: 10px;
}

.pay-type {
	display: inline-block;
	text-align: center;
	background: #f7f7f7;
	border: 2px solid #e7e7e7;
	border-radius: 5px;
	position: relative;
	padding: 7px 10px;
	margin-right: 10px;
	margin-bottom: 10px;
	cursor: pointer;
}

.pay-type svg {
	vertical-align: middle;
}

.pay-select {
	border: 2px solid rgb(51, 105, 255);
	background: rgb(248, 250, 255);
	color: rgb(51, 105, 255);
}

.recommend p {
	font-size: 14px;
}

.category {
	padding: 20px 0;
}

.separator {
	display: block;
	width: 60px;
	height: 5px;
	margin: 15px auto 15px;
	background-color: #cccccc;
	position: relative;
	border: 1px solid #cccccc;
}

.separator:after {
	width: 30px;
	height: 5px;
	background: #333333;
	position: absolute;
	top: -1px;
	left: -1px;
	content: "";
}

.category-menus li {
	display: inline-block;
	margin: 4px;
}

.goods-buy {
	line-height: 40px;
	font-size: 13px;
}

.goods-introduction-cate {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.buy-form label {
	font-size: 16px;
}

.carmis {
  display: grid;   
}

.carmis label {
  margin: 0.5rem .5rem;
}

.goods-card .badge {
    z-index: 2;
    font-size: 0.7rem;
    font-weight: normal;
}

.btn-primary {
    padding: 0.25rem 0.6rem;
}

@media (prefers-color-scheme:dark) {
	body {
		background: #292827;
		color: #ffffff;
	}

	a {
		color: #cccccc;
	}

	.header {
		background: rgba(46,45,41, 0.8) !important;
		border-bottom: 1px solid #343434 !important;
	}
	
	.mobile-search-form {
	    background: transparent;
	}
	
	.mobile-search-form .search-form .form-control {
	    background-color: #292827;
	    border-color: rgba(255, 255, 255, 0.1);
	    color: #bbbbbb;
	}
	
	.mobile-search-form .search-form .btn-secondary {
	    background-color: #3b3b3b;
	    border-color: rgba(255, 255, 255, 0.1);
	}
	
	.desktop-search .search-form .form-control {
	    background-color: #292827;
	    border-color: rgba(255, 255, 255, 0.1);
	    color: #bbbbbb;
	}
	
	.desktop-search .search-form .btn-secondary {
	    background-color: #3b3b3b;
	    border-color: rgba(255, 255, 255, 0.1);
	}

	.navbar-light .navbar-brand {
		color: #fff;
	}

	.navbar-light .navbar-brand:focus, .navbar-light .navbar-brand:hover {
		color: #fff;
	}

	.navbar-light .navbar-nav .nav-link {
		color: rgba(255, 255, 255, .6);
	}

	.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
		color: #fff;
	}

	.navbar-light .navbar-nav .nav-link.disabled {
		color: rgba(255, 255, 255, .25);
	}

	.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .show > .nav-link {
		color: #fff;
	}

	.navbar-light .navbar-toggler {
		color: rgba(255, 255, 255, .6);
		border-color: rgba(255, 255, 255, .1);
	}

	.navbar-light .navbar-toggler-icon {
		background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.6%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
	}

	.navbar-light .navbar-text {
		color: rgba(255, 255, 255, .6);
	}

	.navbar-light .navbar-text a, .navbar-light .navbar-text a:focus, .navbar-light .navbar-text a:hover {
		color: #fff;
	}

	.card {
		background-color: #292827;
		border: 1px solid rgba(255,255,255,.125);
	}

	.form-control {
		color: #bbbbbb;
		background-color: #292827;
		border: 1px solid rgba(255, 255, 255, 0.1);
	}

	.form-control:focus {
		background-color: #292827;
		border-color: #3b3b3b;
		box-shadow: 0 0 0 .25rem rgba(69, 130, 236, .25);
		color: #bbbbbb;
	}

	.page-wrapper {
		background-color: #292827;
	}

	.btn-outline-dark {
		color: #f8f9fa;
		background-color: transparent;
	}

	.pay-type {
		background: #202020;
		border: 2px solid #424242;
	}

	.pay-select {
		border: 2px solid rgb(51, 105, 255);
		background: rgb(10, 10, 10);
	}

	.logo {
		filter: brightness(1);
	}

	.modal-content {
		background-color: #181818;
		border: 1px solid rgba(70, 70, 70, 0.2);
	}
}

/* 文章详情页样式 */
.article-detail .article-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.article-detail .article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.article-detail .article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.article-detail .article-content p {
    margin-bottom: 1rem;
}

.article-detail .article-content h1,
.article-detail .article-content h2,
.article-detail .article-content h3,
.article-detail .article-content h4,
.article-detail .article-content h5,
.article-detail .article-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-detail .article-meta {
    font-size: 0.9rem;
    color: #6c757d;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.article-detail .article-meta i {
    margin-right: 5px;
}

.article-detail .article-meta .ml-3 {
    margin-left: 1rem;
}

/* 头部导航样式 - 2024更新 */
.header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    background-color: #fff;
    position: relative;
    z-index: 1000;
}

.header .container {
    display: flex;
    flex-direction: column;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.logo-container img {
    height: 40px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
}

/* 桌面导航样式 */
.desktop-nav {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.desktop-nav .navbar-nav {
    display: flex;
    flex-direction: row;
}

.desktop-nav .nav-item {
    margin-right: 5px;
}

.desktop-search {
    margin-left: 15px;
}

/* 导航栏样式 */
.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    background-color: transparent;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin-left: auto;
    min-width: 40px;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header .nav-link {
    font-size: 16px;
    padding: 10px 18px;
    color: #555;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: #007bff;
}

.header .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background-color: #007bff;
    border-radius: 3px 3px 0 0;
}

/* 搜索框样式 */
.header .search-form {
    margin-left: auto;
    min-width: 220px;
}

.header .form-control {
    border-radius: 20px 0 0 20px;
    border-right: none;
}

.header .btn-secondary {
    border-radius: 0 20px 20px 0;
    padding-left: 15px;
    padding-right: 15px;
}

/* 移动搜索框 */
.mobile-search-form {
    width: 100%;
}

.mobile-search-form .search-form {
    width: 100%;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .header .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 15px;
        left: 15px;
        background: white;
        padding: 15px;
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .header .nav-link.active:after {
        display: none;
    }
    
    .header .nav-link.active {
        background-color: #f8f9fa;
        border-radius: 6px;
    }
    
    .header .search-form {
        margin-top: 10px;
        width: 100%;
    }
    
    /* 移动端特别样式 */
    .header-top-row {
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .logo-container {
        flex: 0 1 auto;
        max-width: 80%;
        overflow: hidden;
    }
    
    .logo-container span {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    
    /* 确保logo和汉堡菜单在同一行 */
    .navbar-toggler {
        margin-left: 10px;
        flex: 0 0 auto;
    }
}

/* 桌面端样式 */
@media (min-width: 992px) {
    .header-top-row {
        flex-wrap: nowrap;
    }
    
    .desktop-nav {
        flex: 1;
    }
    
    .desktop-nav .navbar-nav {
        margin-left: 20px;
    }
    
    .desktop-search {
        flex: 0 0 auto;
    }
}

/* 移动端商品列表样式 - 已合并到响应式布局中 */

/* 移动端徽章样式 - 已合并到响应式布局中 */

/* 适配小屏幕设备 - 已合并到响应式布局中 */

/* 黑暗模式适配 */
@media (prefers-color-scheme:dark) {
    .mobile-goods-card {
        background-color: #292827;
        border: 1px solid rgba(255,255,255,.125);
    }
    
    .mobile-goods-card:active {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .mobile-goods-img {
        background-color: #202020;
    }
    
    .mobile-goods-title {
        color: #e6e6e6;
    }
    
    .mobile-goods-price {
        color: #2ecc71;
    }
}

/* 商品卡片通用样式 */
.goods-card {
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.goods-content {
    display: flex;
    flex-direction: column;
}

.goods-img {
    width: 100%;
    text-align: center;
}

.goods-img img {
    height: 140px;
    object-fit: contain;
    padding: 10px;
    background-color: #f8f9fa;
}

.goods-info {
    padding: 0.8rem;
}

/* 标题层级样式调整 */
/* 公告标题 h1 */
.jumbotron h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 商品标题 h2 */
.goods-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 3em;
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* 文章区块标题 h2 */
.articles .card-body h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* 文章标题 h3 */
.article-title {
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
    font-weight: 500;
}

/* 商品标题h1样式 */
h1.card-title {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    h1.card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    /* 移动端公告标题 */
    .jumbotron h1 {
        font-size: 1.25rem;
    }
    
    /* 移动端商品标题 */
    .goods-title {
        font-size: 0.95rem;
        height: auto;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    /* 移动端文章区块标题 */
    .articles .card-body h2 {
        font-size: 1.1rem;
    }
    
    /* 移动端文章标题 */
    .article-title {
        font-size: 0.95rem;
    }
}

.price-tag {
    color: #28a745;
    font-weight: bold;
    font-size: 0.9rem;
}

.stock-tag {
    color: #6c757d;
    font-size: 0.8rem;
}

.badge-soldout {
    position: absolute;
    right: -5px;
    top: -5px;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
    z-index: 2;
}

.badge-soldout span {
    font-size: 13px;
    color: #fff;
    text-align: center;
    line-height: 20px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    width: 100px;
    display: block;
    -webkit-box-shadow: 0 0 8px 0 rgb(71 77 86 / 8%), 0 1px 0 0 rgb(71 77 86 / 3%);
    box-shadow: 0 0 8px 0 rgb(71 77 86 / 8%), 0 1px 0 0 rgb(71 77 86 / 3%);
    position: absolute;
    top: 19px;
    right: -21px;
    font-weight: 600;
    background: #fa6767;
}

.badge-soldout span:before {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    z-index: -1;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 3px solid #f94e4e;
    border-top: 3px solid #f94e4e;
}

.badge-soldout span:after {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-right: 3px solid #f94e4e;
    border-top: 3px solid #f94e4e;
}

/* 响应式布局 - 移动端列表式布局 */
@media (max-width: 767.98px) {
    .goods-card {
        margin-bottom: 8px;
    }
    
    .goods-content {
        flex-direction: row;
        align-items: center;
        padding: 8px;
    }
    
    .goods-img {
        width: 80px;
        height: 80px;
        flex: 0 0 80px;
        margin-right: 8px; /* 缩小右侧外边距 */
        border-radius: 6px;
        overflow: hidden;
        background-color: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .goods-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 0;
    }
    
    .goods-info {
        flex: 1;
        min-width: 0;
        padding: 0;
    }
    
    .price-tag {
        font-size: 1rem;
    }
    
    .badge-soldout {
        position: absolute;
        top: 0;
        right: 0;
        width: auto;
        height: auto;
        overflow: visible;
        text-align: right;
    }
    
    .badge-soldout span {
        position: static;
        transform: none;
        width: auto;
        font-size: 0.7rem;
        padding: 2px 8px;
        border-radius: 0 0 0 8px;
        background-color: rgba(220, 53, 69, 0.85);
    }
    
    .badge-soldout span:before,
    .badge-soldout span:after {
        display: none;
    }
    
    /* 优化行间距 */
    .col {
        width: 100%;
        margin-bottom: 0; /* 移除额外的底部间距 */
    }
}

/* 响应式布局 - 桌面端卡片式布局 */
@media (min-width: 768px) {
    .goods-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
}

/* 适配小屏幕设备 */
@media (max-width: 375px) {
    .goods-img {
        width: 70px;
        height: 70px;
        flex: 0 0 70px;
    }
    
    .goods-title {
        font-size: 0.9rem;
    }
    
    .price-tag {
        font-size: 0.95rem;
    }
}

/* 黑暗模式适配 */
@media (prefers-color-scheme:dark) {
    .goods-card {
        background-color: #292827;
        border: 1px solid rgba(255,255,255,.125);
    }
    
    .goods-img img {
        background-color: #202020;
    }
    
    .goods-title {
        color: #e6e6e6;
    }
    
    .price-tag {
        color: #2ecc71;
    }
    
    @media (max-width: 767.98px) {
        .goods-card:active {
            background-color: rgba(255, 255, 255, 0.05);
        }
    }
}

/* 移动端间距优化 */
@media (max-width: 767.98px) {
    /* 文章卡片间距优化 */
    .article-item {
        padding: 8px 0;
    }
    
    /* 文章区域顶部间距优化 */
    .articles.mt-5 {
        margin-top: 1.5rem !important;
    }
    
    /* 商品行间距优化 */
    .goods-list .row.g-4 {
        --bs-gutter-y: 0.5rem;
    }
    
    /* 公告区域间距优化 */
    .notice.pt-4.pb-3 {
        padding-top: 1rem !important;
        padding-bottom: 0.8rem !important;
    }
    
    /* 公告卡片上边距优化 */
    .notice .card {
        margin-top: 0.1rem !important;
    }
    
    /* 主容器上下间距优化 */
    .main-container.py-4 {
        padding-top: 0.5rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* 文章区域行间距优化 */
    .articles .row.g-4 {
        --bs-gutter-y: 0.5rem;
    }
    
    /* 卡片体内边距优化 */
    .card-body {
        padding: 0.6rem;
    }
}

/* 验证码图片样式 */
.verify-code {
    margin-left: 10px;
    height: 33px;
    cursor: pointer;
}

.ml-2 {
    margin-left: 0.5rem;
}

/* 商品信息样式优化 */
.stock-info {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.limit-info {
    margin-bottom: 0.75rem;
}

.price-info {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

.delivery-badge {
    margin-bottom: 0.5rem;
}

/* 价格突出显示样式 */
.price-highlight {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    border-right: 4px solid #007bff;
    font-size: 1.2rem;
    font-weight: 500;
}

.price-value {
    color: #e74c3c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 5px;
}

/* 标题辅助类，让h2具有h3的大小 */
h2.h3wg {
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

@media (max-width: 767.98px) {
    h2.h3wg {
        font-size: 1.2rem;
    }
}

/* 文章列表页标题样式调整 */
.article-list h2.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.article-list + h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.article-date {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .article-list h2.article-title {
        font-size: 1.1rem;
    }
    
    .article-list + h1 {
        font-size: 1.5rem;
    }
}

/* 面包屑导航样式 */
/* 基础容器样式 */
.breadcrumb-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
    margin-bottom: 20px;
}

/* 面包屑内容容器 */
.breadcrumb-container .container,
body .breadcrumb-container .container,
.page-content .breadcrumb-container .container,
main .breadcrumb-container .container,
html .breadcrumb-container .container {
    width: 100% !important;
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 特殊页面（订单查询页）面包屑导航修复 */
.page-content .breadcrumb-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* 面包屑列表样式 */
.breadcrumb, .custom-breadcrumb {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    padding: 0.75rem 0;
}

/* 面包屑项目样式 */
.breadcrumb-item, .custom-breadcrumb-item {
    display: inline-block;
    list-style: none;
    list-style-type: none;
}

/* 移除默认的列表项标记 */
.breadcrumb-item::before, 
.breadcrumb-item::after, 
.custom-breadcrumb-item::before, 
.custom-breadcrumb-item::after {
    content: none;
}

/* 添加分隔符 */
.breadcrumb-item + .breadcrumb-item::before,
.custom-breadcrumb-item + .custom-breadcrumb-item::before {
    content: ">";
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #6c757d;
}

/* 移动端响应式处理 */
@media (max-width: 768px) {
    .breadcrumb-container .container {
        max-width: 100%;
    }
    
    .breadcrumb, .custom-breadcrumb {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .breadcrumb-item, .custom-breadcrumb-item {
        flex-shrink: 0;
    }
    
    /* 默认不截断 */
    .breadcrumb-item.active, .custom-breadcrumb-item.active {
        max-width: none;
        overflow: visible;
    }
    
    /* 当检测到溢出时才应用截断 */
    .breadcrumb.overflow-detected .breadcrumb-item.active,
    .custom-breadcrumb.overflow-detected .custom-breadcrumb-item.active {
        max-width: calc(100vw - 150px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* 公告框样式 - 调整字体大小和可见度 */
.jumbotron h1 {
    font-size: 1.2rem !important;
    margin-bottom: 0.4rem !important;
    font-weight: 600 !important; /* 增加字重，使字体更清晰可见 */
    color: #000000 !important; /* 加深颜色 */
}

/* 公告内容字体样式 */
.jumbotron .lead {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    font-weight: 500 !important; /* 增加字重 */
    color: #333333 !important; /* 加深颜色 */
}

/* 移动端公告字体样式 */
@media (max-width: 767.98px) {
    .jumbotron h1 {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #000000 !important;
    }
    
    .jumbotron .lead {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        color: #333333 !important;
    }
}

/* 修复数量输入框样式 */
@media (min-width: 768px) {
    /* 购买数量输入框与邮箱输入框样式保持一致 */
    .input-group.bootstrap-touchspin {
        width: 100%;
    }
    
    .bootstrap-touchspin .form-control {
        text-align: left;
        padding-left: 10px;
    }
    
    .bootstrap-touchspin .input-group-prepend,
    .bootstrap-touchspin .input-group-append {
        display: inline-flex;
    }
    
    .bootstrap-touchspin .input-group-prepend button,
    .bootstrap-touchspin .input-group-append button {
        height: 100%;
        border: 1px solid #ced4da;
        background-color: #f8f9fa;
        color: #495057;
    }
    
    .bootstrap-touchspin .input-group-prepend button {
        border-top-left-radius: 0.25rem;
        border-bottom-left-radius: 0.25rem;
        border-right: none;
    }
    
    .bootstrap-touchspin .input-group-append button {
        border-top-right-radius: 0.25rem;
        border-bottom-right-radius: 0.25rem;
        border-left: none;
    }
    
    /* 改进bootstrap-input-spinner样式 */
    .btn-decrement, .btn-increment {
        background-color: #f8f9fa !important;
        border-color: #ced4da !important;
        color: #495057 !important;
    }
    
    .btn-decrement {
        border-right: none !important;
    }
    
    .btn-increment {
        border-left: none !important;
    }
    
    /* 购买数量输入框 */
    .form-control-text-input {
        height: calc(1.5em + 0.5rem + 2px) !important;
        padding: 0.25rem 0.5rem !important;
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        border-radius: 0 !important;
    }
    
    /* 调整整体布局 */
    .input-group {
        flex-wrap: nowrap !important;
    }
    
    /* 修复购买数量输入框在桌面端的样式 */
    #shop-number {
        height: calc(1.5em + 0.5rem + 2px);
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
        border: 1px solid #ced4da;
        border-radius: 0.2rem;
    }
    
    /* 修复bootstrap-input-spinner样式 */
    .buy-form .input-group {
        width: 100%;
        max-width: 100%;
    }
    
    .buy-form .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
        border-radius: 0.2rem;
    }
    
    /* 确保输入框组件与其他表单元素一致 */
    .col-xs-12.col-md-4 .input-group {
        border: 1px solid #ced4da;
        border-radius: 0.25rem;
        overflow: hidden;
    }
    
    .col-xs-12.col-md-4 .input-group input {
        border: none;
        outline: none;
        box-shadow: none;
    }
    
    .col-xs-12.col-md-4 .input-group button {
        border: none;
        background-color: #e9ecef;
        padding: 0.25rem 0.75rem;
    }
    
    /* 特别针对购买数量输入框的修复 */
    .form-group .col-md-4 {
        display: block !important;
    }
    
    .form-group .col-md-4 input[type="number"] {
        width: 100% !important;
        display: block !important;
    }
    
    /* 确保数字输入框正常显示 */
    .form-group .col-xs-12.col-md-4 input[type="number"].form-control {
        width: 100% !important;
        height: calc(1.5em + 0.5rem + 2px) !important;
        padding: 0.25rem 0.5rem !important;
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        border: 1px solid #ced4da !important;
        border-radius: 0.2rem !important;
        text-align: left !important;
    }
}

/* 覆盖bootstrap-input-spinner的样式 */
@media (min-width: 768px) {
    .form-group .col-xs-12.col-md-4 .input-group {
        display: none !important;
    }
    
    .form-group .col-xs-12.col-md-4 input[type="number"].form-control {
        display: block !important;
        opacity: 1 !important;
    }
    
    /* 确保原始输入框可见 */
    .form-group .col-xs-12.col-md-4 input[type="number"] {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* 全部Telegram账号标签样式 */
.all-products-tag {
    margin-top: 5px;
    margin-bottom: 10px;
}

.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: #0088cc;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-tag:hover {
    background-color: #006699;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 767.98px) {
    .category-tag {
        padding: 6px 20px;
        font-size: 14px;
    }
}

/* 全部Telegram账号标签间距选项 */
/* 选项1: 紧凑型间距 */
.spacing-compact .all-products-tag {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* 选项2: 标准间距 (默认) */
.spacing-standard .all-products-tag {
    margin-top: 15px;
    margin-bottom: 25px;
}

/* 选项3: 宽松间距 */
.spacing-relaxed .all-products-tag {
    margin-top: 25px;
    margin-bottom: 35px;
}

/* 选项4: 特大间距 */
.spacing-large .all-products-tag {
    margin-top: 35px;
    margin-bottom: 45px;
}