@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: #495057;
	text-decoration: none;
}

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

body {
	-webkit-font-smoothing: antialiased;
	background-color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #2c3e50;
	font-variant-numeric: lining-nums;
}

/* 添加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;
}

/* 页面整体布局调整 */
.page-content {
    padding-top: 15px;
    padding-bottom: 15px;
}

.main-container {
    padding-top: 0;
    padding-bottom: 10px;
}

.good-card {
    margin-bottom: 10px;
}

.card {
    margin-bottom: 10px;
}

.card-body {
    padding: 0.75rem;
}

/* 商品标题调整 */
.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 商品指标行调整 */
.product-metrics {
    margin-bottom: 10px;
}

.metric-item {
    margin-right: 10px;
    margin-bottom: 5px;
}

/* 面包屑导航样式 */
.breadcrumb-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 5px 0;
}

/* 简化面包屑样式，专注于解决问题 */
.breadcrumb {
    display: flex;
    margin: 0;
    padding: 0.25rem 0;
    background-color: transparent;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    content: ">";
}

/* 自定义面包屑项目样式 */
.custom-breadcrumb {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: transparent;
}

/* 首页链接样式 */
.custom-breadcrumb-item:first-child {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 中间链接样式 */
.custom-breadcrumb-item:not(:first-child):not(:last-child) {
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* 给中间项目一个固定最大宽度 */
}

/* 最后一项样式 */
.custom-breadcrumb-item:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto; /* 不要自动扩展，但允许收缩 */
    min-width: 0;
    max-width: 50%; /* 最后一项最大宽度 */
}

/* 链接样式 */
.custom-breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-breadcrumb-item a:hover {
    text-decoration: underline;
}

.custom-breadcrumb-item.active {
    color: #6c757d;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 移动端优化 */
@media (max-width: 767.98px) {
    .breadcrumb-container {
        padding: 3px 0;
    }
    
    .custom-breadcrumb-item:not(:first-child):not(:last-child) {
        max-width: 130px; /* 移动端中间项目宽度更小 */
    }
    
    .custom-breadcrumb-item:last-child {
        max-width: 45%; /* 移动端最后一项宽度略小 */
    }
    
    .breadcrumb-item + .breadcrumb-item::before,
    .custom-breadcrumb-item + .custom-breadcrumb-item::before {
        padding-right: 0.3rem;
        padding-left: 0.3rem;
    }
    
    .py-2 {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
}

/* 纯白色卡片 */
.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 (prefers-color-scheme: dark) {
    .breadcrumb-container {
        background-color: #222;
        border-bottom: 1px solid #333;
    }
    
    .custom-breadcrumb-item a {
        color: #3498db;
    }
    
    .custom-breadcrumb-item.active {
        color: #aaa;
    }
    
    .custom-breadcrumb-item + .custom-breadcrumb-item:before {
        color: #666;
    }
}

/* 商品详情页图片居中显示（修复后） */
@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;
}

/* 语言切换器样式 */
.language-switcher {
    margin-left: 15px;
}

.language-switcher .btn {
    min-width: 60px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-switcher .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background-color: transparent;
}

.language-switcher .btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.language-switcher .btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.language-switcher .btn-outline-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.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%;
    }
    
    /* 移动端语言切换器样式 */
    .navbar-collapse .nav-item:last-child .nav-link {
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        margin-top: 10px;
        padding: 10px 15px;
        text-align: center;
        font-weight: 500;
        color: #6c757d;
        transition: all 0.3s ease;
    }
    
    .navbar-collapse .nav-item:last-child .nav-link:hover {
        background-color: #6c757d;
        color: #fff;
        border-color: #6c757d;
    }
    
    /* 移动端特别样式 */
    .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;
    }
    
    .goods-img img {
        background-color: #202020;
    }
    
    .goods-title {
        color: #e6e6e6;
    }
    
    .goods-title-link:hover .goods-title {
        color: #3498db;
    }
    
    .goods-description {
        color: #aaa;
    }
    
    .goods-meta-item {
        color: #bbb;
    }
    
    .price-tag {
        color: #e74c3c;
    }
    
    .stock-tag {
        color: #aaa;
    }
    
    .tooltip-inner {
        background-color: rgba(50, 50, 50, 0.9);
    }
    
    .buy-btn {
        background-color: #218838;
    }
    
    .buy-btn:hover {
        background-color: #1a6e2e;
    }
    
    .buy-btn.disabled {
        background-color: #555;
    }
}

/* 移动端弹出式工具提示 */
.mobile-popup-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 90%;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 产品元信息移动端底部区域 */
.product-meta-mobile {
    display: none;
    border-top: 1px solid #eee;
    padding: 10px 5px;
    margin-top: 0;
    justify-content: space-around;
    background-color: #f9f9f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* 移动端弹出式工具提示 */

/* 桌面端和移动端区分 */
.desktop-only {
    display: flex;
}

/* 图标颜色设置 */
.meta-item:nth-child(1) i,
.product-meta-mobile .meta-item:nth-child(1) i {
    color: #28a745;
}

.meta-item:nth-child(2) i,
.product-meta-mobile .meta-item:nth-child(2) i {
    color: #ffc107;
}

.meta-item:nth-child(3) i,
.product-meta-mobile .meta-item:nth-child(3) i {
    color: #007bff;
        }

.meta-item:nth-child(4) i,
.product-meta-mobile .meta-item:nth-child(4) i {
    color: #6c757d;
}

/* 移动端提示文本样式 */
.mobile-tooltip-text {
    display: none;
    font-size: 11px;
    color: #888;
    margin-left: 3px;
}

/* 在移动端显示提示文本 */
    @media (max-width: 767.98px) {
    .mobile-tooltip-text {
        display: inline;
    }
    
    /* 移动端元信息调整 - 恢复简洁布局并优化对齐 */
    .product-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 15px;
        margin-bottom: 10px;
    }
    
    .meta-item {
        display: flex;
        align-items: center;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .meta-item i {
        width: 16px;
        text-align: center;
        margin-right: 4px;
    }
    
    .meta-item:nth-child(1) i {
        color: #28a745;
    }
    
    .meta-item:nth-child(2) i {
        color: #ffc107;
    }
    
    .meta-item:nth-child(3) i {
        color: #007bff;
    }
    
    .meta-item:nth-child(4) i {
        color: #6c757d;
    }
    
    .meta-value {
        margin-right: 3px;
}

    .mobile-tooltip-text {
        color: #888;
        font-size: 11px;
}

    /* 移动端购买区域 */
    .product-purchase {
        width: 100px;
        min-width: 100px;
}

    .price-wrapper {
        margin-bottom: 8px;
}

    .product-price {
        font-size: 16px;
        margin-top: 3px;
    }
    
    .btn-purchase {
        padding: 4px 12px;
        font-size: 13px;
        margin-top: -3px;
}
}

/* 移动端弹出式工具提示 */

/* 桌面端和移动端区分 */
.desktop-only {
    display: flex;
}

/* 产品元信息移动端底部区域 */
.product-meta-mobile {
    display: none;
    border-top: 1px solid #eee;
    padding: 10px 5px;
    margin-top: 0;
    justify-content: space-around;
    background-color: #f9f9f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

@media (max-width: 767.98px) {
    .desktop-only {
        display: none !important;
    }
    
    .product-meta-mobile {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .product-item {
        flex-direction: column;
    }
    
    .product-content {
        padding: 12px;
    }
    
    .product-meta-mobile .meta-item {
        flex: 1 1 25%;
        min-width: 0;
        margin: 0;
        padding: 4px 2px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .product-meta-mobile .meta-item i {
        width: 14px;
        min-width: 14px;
        text-align: center;
        margin-right: 2px;
    }
    
    .product-meta-mobile .meta-value {
        font-weight: 500;
        margin-right: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-tooltip-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .product-purchase {
        padding-top: 3px; /* 移动端上移幅度较小 */
    }
    
    .price-wrapper {
        margin-bottom: 10px; /* 移动端减少间距 */
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme:dark) {
    .product-meta-mobile {
        background-color: #333;
        border-top: 1px solid #444;
    }
    
    .product-item {
        background: #222;
    }
}

/* 产品元信息移动端样式 */
.product-meta-mobile .meta-item {
    flex: 0 0 auto;
    margin: 0;
    padding: 5px 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.product-meta-mobile .meta-item i {
    width: 14px;
    text-align: center;
    margin-right: 3px;
    }
    
.product-meta-mobile .meta-value {
    font-weight: 500;
}

/* 移动端图标颜色 */
.product-meta-mobile .meta-item:nth-child(1) i {
    color: #28a745;
}

.product-meta-mobile .meta-item:nth-child(2) i {
    color: #ffc107;
}

.product-meta-mobile .meta-item:nth-child(3) i {
    color: #007bff;
}

.product-meta-mobile .meta-item:nth-child(4) i {
    color: #6c757d;
}

/* 分类标题样式 */
.goods-category h2,
.articles h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.goods-category h2::after,
.articles h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #007bff;
}

/* 产品列表样式 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 产品卡片 */
.product-item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 10px;
    transition: box-shadow 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* 深色模式下标题样式 */
@media (prefers-color-scheme: dark) {
    .goods-category h2,
    .articles h2 {
        color: #e6e6e6;
        border-bottom-color: #333;
    }
    
    .goods-category h2::after,
    .articles h2::after {
        background-color: #3498db;
    }
}

/* 产品内容区域 */
.product-content {
    display: flex;
    padding: 15px;
}

/* 售罄标签 */
.product-soldout-label {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 0 0 0 8px;
    z-index: 2;
}

/* 商品图片 */
.product-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f8f9fa;
    margin-right: 15px;
    }
    
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    }
    
/* 商品信息 */
.product-info {
    flex: 1;
    min-width: 0;
    padding-right: 15px;
}

.product-title {
    text-decoration: none;
    color: inherit;
}

.product-title h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.3;
    color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.product-title:hover h3 {
    color: #007bff;
}

.product-description {
    font-size: 13px;
    line-height: 1.4;
    color: #6c757d;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 36px;
}

/* 元信息区域 */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 5px;
    }
    
.meta-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
    cursor: help;
}

.meta-item i {
    margin-right: 4px;
    font-size: 14px;
    }
    
/* 移动端样式 */
.product-meta-mobile {
    display: none;
    border-top: 1px solid #eee;
    padding: 10px;
    justify-content: space-around;
    background-color: #f9f9f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.mobile-tooltip-text {
    display: none;
    font-size: 11px;
    color: #888;
    margin-left: 3px;
}

/* 移动端提示框 */
.mobile-popup-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 90%;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
/* 商品购买区域 */
.product-purchase {
    width: 120px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    text-align: right;
    padding-top: 0;
    }
    
/* 价格包装器 */
.price-wrapper {
    text-align: right;
    margin-bottom: 15px;
    margin-top: 3px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    }
    
.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #d63384;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: 0.5px;
}

.product-stock {
    font-size: 12px;
    color: #6c757d;
    margin-top: 3px;
}

.product-discount {
    font-size: 12px;
    color: #fff;
    background-color: #f39c12;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
}

.product-discount i {
    margin-right: 3px;
    }
    
.btn-purchase {
    padding: 6px 14px;
    background-color: #28a745;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
    display: inline-block;
    }
    
.btn-purchase:hover {
    background-color: #218838;
    color: #fff;
    }
    
.btn-purchase.disabled {
    background-color: #6c757d;
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    }
    
/* 桌面和移动端显示控制 */
.desktop-only {
    display: flex;
    }
    
/* 图标颜色 */
.meta-item:nth-child(1) i {
    color: #28a745;
}

.meta-item:nth-child(2) i {
    color: #ffc107;
}

.meta-item:nth-child(3) i {
    color: #007bff;
}

.meta-item:nth-child(4) i {
    color: #6c757d;
}

/* 移动端和电脑端显示控制 */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

/* 移动端适配 */
@media (max-width: 767.98px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    .product-meta-mobile {
        display: flex;
    }
    
    .product-content {
        padding: 15px;
        flex-direction: column;
    }
    
    /* 隐藏电脑端图片 */
    .product-content > .product-image {
        display: none;
    }
    
    /* 移动端：图片和标题同行容器 */
    .product-header {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 8px;
    }
    
    .product-image-mobile {
        width: 40px;
        height: 40px;
        min-width: 40px;
        flex-shrink: 0;
        border-radius: 6px;
        overflow: hidden;
        background-color: #f8f9fa;
    }
    
    .product-image-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
    }
    
    .product-title-wrapper {
        flex: 1;
        min-width: 0; /* 允许文本截断 */
    }
    
    .product-title h3 {
        font-size: 14px;
        line-height: 1.3;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        max-height: 36px;
    }
    
    /* 第二行开始：描述 */
    .product-description {
        font-size: 12px;
        line-height: 1.4;
        color: #666;
        margin: 0 0 8px 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 50px;
    }
    
    /* 重新调整商品信息布局 */
    .product-info {
        flex: 1;
        padding-right: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* 移动端价格和购买区域 */
    .product-purchase {
        width: auto;
        min-width: auto;
        margin-left: 0;
        padding-top: 0;
        margin-top: 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    
    /* 价格和库存容器 - 移动端同一行显示 */
    .price-stock-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex: 1;
        margin-left: 10px;
    }
    
    .product-price {
        font-size: 18px;
        font-weight: 700;
        color: #d63384;
        margin: 0;
        line-height: 1.2;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-variant-numeric: lining-nums tabular-nums;
        letter-spacing: 0.5px;
    }
    
    .product-stock {
        font-size: 12px;
        color: #666;
        margin: 0;
        white-space: nowrap;
    }
    
    /* 移动端隐藏电脑端价格包装器 */
    .price-wrapper.desktop-only {
        display: none !important;
    }

    .btn-purchase {
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 6px;
        background-color: #28a745;
        color: white;
        text-decoration: none;
        text-align: center;
        display: inline-block;
        transition: all 0.2s;
        white-space: nowrap;
        min-width: 70px;
        border: none;
        cursor: pointer;
    }
    
    .btn-purchase:hover {
        background-color: #218838;
        color: white;
        text-decoration: none;
    }
    
    .mobile-tooltip-text {
        display: inline;
    }
    
    .product-meta-mobile .meta-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-size: 12px;
        gap: 3px;
    }
    
    .product-meta-mobile .meta-item i {
        margin-right: 0;
    }
    
    .product-meta-mobile .meta-value {
        font-weight: 500;
    }
    
    /* 移动端标题样式 */
    .goods-category h2,
    .articles h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    
    .goods-category h2::after,
    .articles h2::after {
        width: 40px;
    }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    .product-item {
        background-color: #222;
    }
    
    .product-image {
        background-color: #2c2c2c;
    }
    
    .product-title h3 {
        color: #e6e6e6;
    }
    
    .product-title:hover h3 {
        color: #3498db;
    }
    
    .product-description {
        color: #aaa;
}

    .meta-item {
        color: #ccc;
    }
    
    .product-meta-mobile {
        background-color: #1a1a1a;
        border-top: 1px solid #333;
    }
    
    .mobile-tooltip-text {
        color: #999;
    }
}

/* 文章区域标题样式 */
.articles .card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

@media (max-width: 767.98px) {
    .articles .card-body h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
}

@media (prefers-color-scheme: dark) {
    .articles .card-body h3 {
        color: #e6e6e6;
    }
}

/* 文章项目标题 h4 样式 */
.article-item h4.article-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-bottom: 0;
}

.article-item:hover h4.article-title {
    color: #007bff;
}

@media (max-width: 767.98px) {
    .article-item h4.article-title {
        font-size: 0.9rem;
}
}

@media (prefers-color-scheme: dark) {
    .article-item h4.article-title {
        color: #e6e6e6;
    }
    
    .article-item:hover h4.article-title {
        color: #3498db;
    }
}

/* 商品指标行样式 */
.product-metrics {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    margin-bottom: 15px;
}

.metric-item {
    display: flex;
    align-items: center;
}

/* 通用数字样式 - 确保数字显示规范 */
.numeric, .price, .amount, .quantity, .number {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: 0.3px;
}

/* 强化文字颜色 */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
}

p, span, div {
    color: #495057;
}

/* 库存数字样式 */
.product-stock {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-variant-numeric: lining-nums tabular-nums;
    color: #6c757d;
    font-size: 14px;
}
}

.metric-item i {
    font-size: 16px;
    margin-right: 5px;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

/* 购买数量输入框样式 */
    .input-group.bootstrap-touchspin {
        width: 100%;
    }
    
/* 确保数量输入框和邮箱输入框样式一致 */
#shop-number {
    text-align: center;
}

/* 按钮样式 */
.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* 数量调节器样式 */
.btn-minus, .btn-plus {
    display: flex;
    align-items: center;
    justify-content: center;
        height: 100%;
}

/* 输入微调器样式 */
.input-group input {
        border: 1px solid #ced4da;
    border-radius: 0;
    height: calc(1.5em + .75rem + 2px);
    z-index: 1; /* 确保输入框不被按钮覆盖 */
}

.input-group .btn-decrement {
    border-radius: 0.25rem 0 0 0.25rem;
    border: 1px solid #ced4da;
        border-right: none;
    z-index: 2; /* 确保按钮在上层 */
}

.input-group .btn-increment {
    border-radius: 0 0.25rem 0.25rem 0;
    border: 1px solid #ced4da;
        border-left: none;
    z-index: 2; /* 确保按钮在上层 */
}

/* 修复数量输入框在移动端的样式 */
@media (max-width: 767.98px) {
    .col-xs-12.col-md-4 {
        margin-bottom: 1rem;
    }
    
    .input-group {
        width: 100%;
    }
    
    /* 移动端按钮大小优化 */
    .btn-decrement, .btn-increment {
        height: 38px;
        padding: 0.375rem 0.5rem;
    }
    
    /* 确保输入框在移动端居中 */
    .input-group-prepend, .input-group-append {
        display: flex;
    }
    
    /* 改进移动端商品指标显示 */
    .product-metrics {
        flex-wrap: wrap;
    }
    
    .metric-item {
        width: 48%;
        margin-right: 2% !important;
        margin-bottom: 8px !important;
    }
    
    /* 移动端优化数量输入框 */
    .quantity-input-container {
        display: flex;
        align-items: center;
    }
    
    .quantity-btn {
        padding: 5px 10px;
    }
}

/* 新的数量输入控件样式 */
.quantity-input-container {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.quantity-input {
    text-align: center;
    -moz-appearance: textfield; /* Firefox 隐藏内置箭头 */
    border-radius: 4px;
}

/* Chrome, Safari, Edge, Opera 隐藏内置箭头 */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 改进的数量输入控件样式 */
.quantity-input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.input-group.quantity-input-group {
    flex-wrap: nowrap;
}

.input-group .quantity-input {
    text-align: center;
    -moz-appearance: textfield; /* Firefox 隐藏内置箭头 */
    border-radius: 0;
        padding: 0.25rem 0.5rem;
    width: 100%;
    height: 31px;
    flex: 1;
        font-size: 0.875rem;
    min-width: 40px;
    border-left: 0;
    border-right: 0;
}

.input-group .quantity-btn-minus,
.input-group .quantity-btn-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    font-size: 1.2rem;
        line-height: 1.5;
        border: 1px solid #ced4da;
    background-color: white;
    color: #212529;
    min-height: 31px;
    font-weight: bold;
    min-width: 42px;
    flex: 0 0 auto;
}

.input-group .quantity-btn-minus {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-right: 0;
}

.input-group .quantity-btn-plus {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    border-left: 0;
}

.input-group .quantity-btn-minus:hover,
.input-group .quantity-btn-plus:hover {
    background-color: #f8f9fa;
}

.input-group .quantity-btn-minus:focus,
.input-group .quantity-btn-plus:focus,
.input-group .quantity-input:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    z-index: 3;
}

/* 数量输入框校准 - 确保与其他输入框高度一致 */
.input-group .quantity-input {
    height: auto;
    flex: 1;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .product-metrics {
        border-bottom: 1px solid rgba(255,255,255,.1);
    }
    
    .metric-item {
        color: #adb5bd;
    }
    
    .input-group input,
    .input-group .btn-decrement,
    .input-group .btn-increment {
        border-color: #495057;
        background-color: #343a40;
        color: #f8f9fa;
    }
    
    /* 暗色模式按钮悬停效果 */
    .btn-outline-primary:hover {
        background-color: #0069d9;
        border-color: #0062cc;
    }
    
    /* 暗色模式数量控件 */
    .input-group .quantity-btn-minus,
    .input-group .quantity-btn-plus {
        background-color: #343a40;
        border-color: #495057;
        color: #f8f9fa;
    }
    
    .input-group .quantity-btn-minus:hover,
    .input-group .quantity-btn-plus:hover {
        background-color: #495057;
    }
    
    .input-group .quantity-input {
        background-color: #343a40;
        border-color: #495057;
        color: #f8f9fa;
    }
}

/* 移动端适配 */
@media (max-width: 767.98px) {
    .input-group .quantity-btn-minus,
    .input-group .quantity-btn-plus {
        padding: 0.25rem 0.5rem;
    }
    
    .input-group .quantity-input {
        padding-left: 0;
        padding-right: 0;
    }
}

/* 输入行的样式 */
.input-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.row-label {
    min-width: 80px;
    margin-bottom: 0;
    margin-right: 10px;
}

/* 数量控件样式 */
.quantity-control {
    display: flex;
    width: 100%;
    align-items: center;
        border: 1px solid #ced4da;
    border-radius: 4px;
        overflow: hidden;
    }
    
.quantity-input {
    flex: 1;
    width: 100%;
    text-align: center;
        border: none;
    padding: 8px 0;
    font-size: 14px;
    -moz-appearance: textfield; /* Firefox 隐藏内置箭头 */
}

/* Chrome, Safari, Edge, Opera 隐藏内置箭头 */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-btn-minus, 
.quantity-btn-plus {
    width: 36px;
    min-width: 36px;
    height: 36px;
    background: #f8f9fa;
        border: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.quantity-btn-minus {
    border-right: 1px solid #ced4da;
}

.quantity-btn-plus {
    border-left: 1px solid #ced4da;
}

.quantity-btn-minus:hover,
.quantity-btn-plus:hover {
        background-color: #e9ecef;
}

.quantity-btn-minus:focus,
.quantity-btn-plus:focus,
.quantity-input:focus {
    outline: none;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .quantity-control {
        border-color: #495057;
    }
    
    .quantity-input {
        background-color: #343a40;
        color: #f8f9fa;
    }
    
    .quantity-btn-minus, 
    .quantity-btn-plus {
        background-color: #495057;
        color: #f8f9fa;
        border-color: #6c757d;
    }
    
    .quantity-btn-minus:hover,
    .quantity-btn-plus:hover {
        background-color: #6c757d;
    }
}

/* 新表单样式 */
.goods-form {
    width: 100%;
    max-width: 100%;
}

.form-item {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.form-item label {
    min-width: 90px;
    margin-bottom: 0;
    font-weight: normal;
}

.form-item-input {
    flex: 1;
}

.form-item .form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.form-item .carmis {
    display: flex;
    flex-direction: column;
}

.form-item .carmis label {
    margin: 5px 0;
}

.submit-item {
    margin-top: 20px;
    justify-content: flex-start;
}

/* Chrome, Safari, Edge, Opera 的输入框箭头样式 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
}

/* Firefox 的输入框箭头样式 */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .form-item .form-control {
        background-color: #343a40;
        border-color: #495057;
        color: #f8f9fa;
    }
}

/* 产品价格和库存信息样式 */
.product-price-info {
    margin: 20px 0;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.price-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.price-label {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
    margin: 0 5px;
}

.stock-info {
        font-size: 14px;
    color: #6c757d;
}

.limit-info .badge {
    font-size: 12px;
    font-weight: normal;
    padding: 4px 8px;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .product-price-info {
        background-color: #343a40;
        border-left-color: #f77;
    }
    
    .price-label {
        color: #e9ecef;
    }
    
    .price-value {
        color: #f77;
    }
    
    .stock-info {
        color: #adb5bd;
    }
}

/* 支付方式和下单按钮居中样式 */
.payment-methods-container {
    display: flex;
    justify-content: center;
    margin: 12px 0 8px;
}

.payment-methods-container .pay {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 12px;
}

.payment-methods-container .pay-type {
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-button-container {
    display: flex;
    justify-content: center;
    margin: 8px 0 12px;
}

.submit-button-container .btn {
    padding: 8px 30px;
    font-size: 16px;
    border-radius: 4px;
    min-width: 180px;
}

/* 减少页面底部空白 */
.good-card {
    margin-bottom: 10px;
}

.card-body {
    padding: 0.75rem;
}

/* 减少表单项间距 */
.form-item {
    margin-bottom: 10px;
}

.form-item-input {
    margin-bottom: 0;
}

/* 输入框样式调整 */
.form-item .form-control {
    padding: 6px 12px;
}

/* 支付按钮响应式样式 */
@media (max-width: 576px) {
    /* 取消支付按钮垂直排列，保持在同一行 */
    .payment-methods-container .pay {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .submit-button-container .btn {
        width: 100%;
        padding: 6px 20px;
    }
    
    /* 减少移动端空白 */
    .payment-methods-container {
        margin: 10px 0 5px;
    }
    
    .submit-button-container {
        margin: 5px 0 10px;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    .form-item {
        margin-bottom: 8px;
    }
}

/* 小屏幕手机上的特殊优化 */
@media (max-width: 375px) {
    .product-meta-mobile .meta-item {
        padding: 4px 1px;
        font-size: 11px;
    }
    
    .product-meta-mobile .meta-item i {
        margin-right: 1px;
    }
    
    .mobile-tooltip-text {
        font-size: 10px;
    }
}

/* 底部介绍区域样式 */
.intro-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.intro-section h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #007bff;
}

.intro-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #777;
}

.intro-section p {
    margin-bottom: 1rem;
}

.intro-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #777;
}

.intro-section ul li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.intro-section strong {
    font-weight: 600;
    color: #666;
}

@media (max-width: 767.98px) {
    .intro-section h2 {
        font-size: 1.35rem;
    }
    
    .intro-content {
        font-size: 0.9rem;
    }
    
    .intro-section ul {
        margin-left: 1rem;
    }
}

@media (prefers-color-scheme: dark) {
    .intro-section h2 {
        color: #e6e6e6;
        border-bottom-color: #333;
    }
    
    .intro-section h2::after {
        background-color: #3498db;
    }
    
    .intro-content {
        color: #999;
    }
    
    .intro-section ul {
        color: #999;
    }
    
    .intro-section strong {
        color: #bbb;
    }
}

/* 移动端弹出式工具提示 */

/* 桌面端和移动端区分 */
.desktop-only {
    display: flex;
}

/* h2与h3字体大小相同的样式 */
.xhys {
    font-size: 1.25rem !important;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .xhys {
        font-size: 1.1rem !important;
    }
}

/* 图标颜色设置 */