@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: #212529;
	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: #212529;
	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: #495057;
    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 (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: #495057;
    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: #495057;
    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: #666;
	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: #333;
    text-decoration: none;
    transition: color 0.2s;
}

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

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

.copyright a {
    color: #333;
    text-decoration: none;
}

.copyright a:hover {
    color: #007bff;
    text-decoration: none;
}

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



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

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

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

.article-detail .article-content p {
    margin-bottom: 1rem;
    color: #212529 !important;
}

.article-detail .article-content span {
    color: #212529 !important;
}

.article-detail .article-content li {
    color: #212529 !important;
}

.article-detail .article-content {
    color: #212529 !important;
}

.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-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    padding: 0.8rem 1rem;
    border-left: 4px solid #3498db;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.08) 0%, rgba(52, 152, 219, 0.02) 100%);
    margin: 1.5rem 0 1rem 0;
    border-radius: 0 4px 4px 0;
}

.article-detail .article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #34495e;
    line-height: 1.3;
}

.article-detail .article-content h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #34495e;
    line-height: 1.3;
}

/* 移动端文章标题适配 */
@media (max-width: 768px) {
    .article-detail .article-content h2 {
        font-size: 1.25rem;
    }
    
    .article-detail .article-content h3 {
        font-size: 1.1rem;
    }
    
    .article-detail .article-content h4 {
        font-size: 1.05rem;
    }
}

.article-detail .article-meta {
    font-size: 0.9rem;
    color: #495057;
    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: #333;
    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;
    }
}

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

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

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



/* 商品卡片通用样式 */
.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标题字体大小 */
.notice .card-body h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    line-height: 1.4;
}

@media (max-width: 767.98px) {
    .notice .card-body h1 {
        font-size: 1.2rem;
    }
}

/* 公告标题 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;
    }
}

/* 黑暗模式适配 */


/* 移动端弹出式工具提示 */
.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;
}

/* 图标颜色设置 */

/* 文章目录样式 - 优化版 */
.article-toc {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 13px;
    max-width: 85%;
    width: auto;
    box-sizing: border-box;
    display: inline-block;
    min-width: 300px;
}

.toc-header {
    padding: 8px 12px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.toc-header:hover {
    background: #e2e6ea;
}

.toc-title {
    margin: 0;
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: center;
}

.toc-title strong {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.toc-title i {
    margin-right: 6px;
    color: #6c757d;
    font-size: 14px;
}

.toc-toggle-icon {
    color: #6c757d;
    transition: transform 0.2s ease;
    font-size: 11px;
}

.toc-toggle-icon.collapsed {
    transform: rotate(180deg);
}

.toc-content {
    padding: 6px 0;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #f8f9fa;
}

.toc-content.collapsed {
    max-height: 0;
    padding: 0;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin: 0;
    padding: 0;
    position: relative;
}

.toc-item:not(:last-child) {
    margin-bottom: 0.05rem;
}

.toc-link {
    display: flex;
    align-items: flex-start;
    padding: 4px 12px;
    color: #495057;
    text-decoration: none;
    line-height: 1.4;
    font-size: 13px;
    transition: all 0.2s ease;
    word-break: break-word;
}

.toc-link:hover {
    color: #007bff;
    text-decoration: none;
    background: rgba(0, 123, 255, 0.05);
}

.toc-number {
    color: #007bff;
    font-weight: 600;
    margin-right: 8px;
    flex-shrink: 0;
    font-size: 12px;
    min-width: fit-content;
}

.toc-text {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 不同层级的缩进 - 优化版 */
.toc-level-1 .toc-link {
    padding-left: 12px;
    color: #212529;
    font-size: 13px;
}

.toc-level-1 .toc-text {
    font-weight: 600;
}

.toc-level-2 .toc-link {
    padding-left: 18px;
    color: #495057;
    font-size: 13px;
}

.toc-level-2 .toc-text {
    font-weight: 500;
}

.toc-level-3 .toc-link {
    padding-left: 24px;
    color: #495057;
    font-size: 12px;
}

.toc-level-3 .toc-text {
    font-weight: 500;
}

.toc-level-4 .toc-link {
    padding-left: 30px;
    color: #495057;
    font-size: 12px;
}

.toc-level-4 .toc-text {
    font-weight: 400;
}

.toc-level-5 .toc-link {
    padding-left: 36px;
    color: #495057;
    font-size: 12px;
}

.toc-level-5 .toc-text {
    font-weight: 400;
}

.toc-level-6 .toc-link {
    padding-left: 42px;
    color: #495057;
    font-size: 12px;
}

.toc-level-6 .toc-text {
    font-weight: 400;
}

/* 最新文章侧边栏样式 */
.latest-articles-sidebar {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-left: 20px;
    font-size: 14px;
    position: sticky;
    top: 20px;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.latest-articles-header {
    padding: 15px 18px;
    background: rgba(248, 249, 250, 0.8);
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.latest-articles-header:hover {
    background: #e9ecef;
}

.latest-articles-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
}

.latest-articles-title i {
    margin-right: 8px;
    color: #6c757d;
    font-size: 14px;
}

.latest-articles-toggle-icon {
    color: #6c757d;
    transition: transform 0.2s ease;
    font-size: 12px;
}

.latest-articles-toggle-icon.collapsed {
    transform: rotate(180deg);
}

.latest-articles-content {
    padding: 15px 0;
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}

.latest-articles-content.collapsed {
    max-height: 0;
    padding: 0;
}

.latest-articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.latest-article-item {
    margin: 0;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.latest-article-item:last-child {
    border-bottom: none;
}

.latest-article-link {
    display: block;
    color: #495057;
    text-decoration: none;
    line-height: 1.4;
    font-size: 13px;
    transition: color 0.2s ease;
}

.latest-article-link:hover {
    color: #007bff;
    text-decoration: none;
}

.latest-article-title {
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
    font-size: 12px;
}

.latest-article-date {
    font-size: 11px;
    color: #6c757d;
    display: block;
}

/* 相关文章样式 */
.related-articles {
    margin: 2rem 0;
    padding: 0;
}

.related-articles-header {
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.related-articles-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
}

.related-articles-title i {
    margin-right: 10px;
    color: #6c757d;
    font-size: 16px;
}

.related-articles-content {
    /* 移除了折叠相关的样式 */
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-article-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.related-article-image {
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 32px;
}

.related-article-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-article-link {
    color: #212529;
    text-decoration: none;
    display: block;
}

.related-article-link:hover {
    color: #007bff;
    text-decoration: none;
}

.related-article-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-summary {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-toc {
        float: none;
        max-width: 90%;
        margin: 0.8rem 0;
        border-radius: 4px;
        min-width: 280px;
    }
    
    .toc-header {
        padding: 6px 10px;
    }
    
    .toc-title {
        font-size: 15px;
    }
    
    .toc-content {
        padding: 4px 0;
    }
    
    .toc-link {
        padding: 3px 10px;
        font-size: 14px;
        line-height: 1.3;
    }
    
    .toc-number {
        font-size: 11px;
        margin-right: 6px;
    }
    
    .toc-level-1 .toc-link {
        padding-left: 10px;
        font-size: 14px;
    }
    
    .toc-level-2 .toc-link {
        padding-left: 14px;
        font-size: 14px;
    }
    
    .toc-level-3 .toc-link {
        padding-left: 18px;
        font-size: 13px;
    }
    
    .toc-level-4 .toc-link {
        padding-left: 22px;
        font-size: 13px;
    }
    
    .toc-level-5 .toc-link {
        padding-left: 26px;
        font-size: 13px;
    }
    
    .toc-level-6 .toc-link {
        padding-left: 30px;
        font-size: 13px;
    }
    
    .latest-articles-sidebar {
        position: static;
        margin-bottom: 20px;
        margin-left: 0;
    }
    
    .latest-articles-content.collapsed {
        max-height: 0;
    }
    
    .latest-articles-content:not(.collapsed) {
        max-height: none;
    }
    
    /* 相关文章移动端优化 */
    .related-articles {
        margin: 1.5rem 0;
    }
    
    .related-articles-header {
        padding: 12px 0;
        margin-bottom: 15px;
    }
    
    .related-articles-title {
        font-size: 16px;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .related-article-card {
        border-radius: 6px;
    }
    
    .related-article-image {
        height: 90px;
    }
    
    .related-article-content {
        padding: 10px;
    }
    
    .related-article-title {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .related-article-summary {
        font-size: 11px;
        line-height: 1.2;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 480px) {
    /* 小屏幕设备进一步优化 */
    .article-toc {
        margin: 0.6rem 0;
        border-radius: 4px;
        max-width: 95%;
        min-width: 260px;
    }
    
    .toc-header {
        padding: 5px 8px;
    }
    
    .toc-content {
        padding: 3px 0;
    }
    
    .toc-title {
        font-size: 14px;
    }
    
    .toc-title i {
        margin-right: 4px;
        font-size: 14px;
    }
    
    .toc-toggle-icon {
        font-size: 12px;
    }
    
    .toc-link {
        padding: 2px 8px;
        font-size: 13px;
        line-height: 1.3;
    }
    
    .toc-number {
        font-size: 10px;
        margin-right: 5px;
    }
    
    .toc-item:not(:last-child) {
        margin-bottom: 0.02rem;
    }
    
    /* 进一步减少缩进 */
    .toc-level-1 .toc-link {
        padding-left: 8px;
        font-size: 13px;
    }
    
    .toc-level-2 .toc-link {
        padding-left: 12px;
        font-size: 13px;
    }
    
    .toc-level-3 .toc-link {
        padding-left: 16px;
        font-size: 12px;
    }
    
    .toc-level-4 .toc-link {
        padding-left: 20px;
        font-size: 12px;
    }
    
    .toc-level-5 .toc-link {
        padding-left: 24px;
        font-size: 12px;
    }
    
    .toc-level-6 .toc-link {
        padding-left: 28px;
        font-size: 12px;
    }
    
    /* 相关文章小屏幕优化 - 保持卡片式布局 */
    .related-articles {
        margin: 1rem 0;
    }
    
    .related-articles-header {
        padding: 10px 0;
        margin-bottom: 12px;
    }
    
    .related-articles-title {
        font-size: 15px;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .related-article-card {
        display: flex;
        flex-direction: column;
        border-radius: 6px;
        min-height: 160px;
    }
    
    .related-article-image {
        width: 100%;
        height: 80px;
        flex-shrink: 0;
        margin: 0;
        border-radius: 0;
        overflow: hidden;
    }
    
    .related-article-content {
        flex: 1;
        padding: 8px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .related-article-title {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .related-article-summary {
        font-size: 10px;
        line-height: 1.2;
        color: #888;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: 1;
    }
}

/* 语义化标签样式 */
.main-content {
    display: block;
}

.category-label {
    display: block;
    margin-bottom: 1rem;
}

.category-label div {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

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

/* 分类锚点导航 */
.category-nav { display: block; }
.category-nav-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 10px 0; list-style: none !important; }
.category-nav-list li { list-style: none !important; list-style-type: none !important; }
.category-nav-list li a { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 9999px; background: #fff; color: #007bff; border: 2px solid rgba(0,123,255,.6); text-decoration: none; font-size: 0.98rem; font-weight: 500; transition: all 0.2s ease; box-shadow: 0 0 0 0 rgba(0,123,255,0); }
.category-nav-list li a:hover { color: #fff; border-color: #007bff; background: #007bff; box-shadow: 0 2px 8px rgba(0,123,255,0.25); }
.category-nav-list li a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,123,255,0.2); }
.category-nav-list li a:active { transform: translateY(0.5px); }
@media (max-width: 768px) { .category-nav-list { gap: 8px; } .category-nav-list li a { padding: 5px 10px; font-size: 0.9rem; } }

/* 热门商品和最新文章模块样式 */
.footer-supplementary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hot-products-widget,
.recent-posts-widget {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hot-products-widget:hover,
.recent-posts-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hot-products-widget h2,
.recent-posts-widget h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f3f4;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hot-products-widget h2::before {
    content: "🔥";
    margin-right: 8px;
    font-size: 1.1rem;
}

.recent-posts-widget h2::before {
    content: "📝";
    margin-right: 8px;
    font-size: 1.1rem;
}

.hot-products-widget h2 a,
.recent-posts-widget h2 a {
    font-size: 0.85rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.hot-products-widget h2 a:hover,
.recent-posts-widget h2 a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.hot-products-widget ul,
.recent-posts-widget ul {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 0;
}

.hot-products-widget ul li,
.recent-posts-widget ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
    transition: background-color 0.3s ease;
}

.hot-products-widget ul li:last-child,
.recent-posts-widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.hot-products-widget ul li:hover,
.recent-posts-widget ul li:hover {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
}

.hot-products-widget ul li a,
.recent-posts-widget ul li a {
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
    transition: color 0.3s ease;
    position: relative;
}

.hot-products-widget ul li a:hover,
.recent-posts-widget ul li a:hover {
    color: #007bff;
    text-decoration: none;
}

/* 移除列表项图标 - 删除::before伪元素内容 */
.hot-products-widget ul li a::before {
    content: none;
}

.recent-posts-widget ul li a::before {
    content: none;
}

/* 响应式设计 */
@media (max-width: 767.98px) {
    .footer-supplementary {
        padding: 20px 15px;
        margin-top: 25px;
    }
    
    .hot-products-widget,
    .recent-posts-widget {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .hot-products-widget h2,
    .recent-posts-widget h2 {
        font-size: 1.15rem !important;
        margin-bottom: 15px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;
        flex-wrap: wrap !important;
    }
    
    /* 移动端标题文字部分 */
    .hot-products-widget h2::before,
    .recent-posts-widget h2::before {
        margin-right: 6px !important;
        font-size: 1rem !important;
    }
    
    .hot-products-widget h2 a,
    .recent-posts-widget h2 a {
        font-size: 0.8rem;
    }
    
    .hot-products-widget ul li,
    .recent-posts-widget ul li {
        margin-bottom: 10px;
        padding: 8px 0;
    }
    
    .hot-products-widget ul li a,
    .recent-posts-widget ul li a {
        font-size: 0.9rem;
    }
}


.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-info {
        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-info {
        margin-bottom: 10px; /* 移动端减少间距 */
    }
}



/* 产品元信息移动端样式 */
.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);
}



/* 产品内容区域 */
.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-info {
    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-info {
        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-info.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;
    }
}



/* 文章区域标题样式 */
.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;
    }
}



/* 文章项目标题 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;
}
}



/* 商品指标行样式 */
.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;
}

/* 商品标题样式优化 - 解决h2标题过大问题 */
.product-title h2 {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
    color: #333 !important;
    border: none !important;
    padding: 0 !important;
    position: static !important;
}

.product-title h2::after {
    display: none !important;
}

/* 侧边栏标题样式优化 - 保持原有样式但移除过大的字体 */
.hot-products-widget h2,
.recent-posts-widget h2 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 18px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f1f3f4 !important;
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* 确保标题主体部分（图标+文字）保持水平排列 */
.hot-products-widget h2::before,
.recent-posts-widget h2::before {
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

/* 侧边栏商品和文章标题样式 */
.hot-products-widget h3,
.recent-posts-widget h3 {
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    color: #212529 !important;
    border: none !important;
    padding: 0 !important;
}

.hot-products-widget h3::after,
.recent-posts-widget h3::after {
    display: none !important;
}

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

/* 库存数字样式 */
.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: #495057;
    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 (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;
}



/* 新表单样式 */
.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;
}



/* 产品价格和库存信息样式 */
.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;
}



/* 支付方式和下单按钮居中样式 */
.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: #555;
}

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

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

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

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

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



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

/* 桌面端和移动端区分 */
.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;
    }
}

/* 图标颜色设置 */
/* 自定义lead类字体大小 */
.lead {
    font-size: 1rem !important; /* 调整为您想要的大小 */
}

/* 移动端响应式 */
@media (max-width: 767.98px) {
    .lead {
        font-size: 0.9rem !important;
    }
}

/* 商品详情页 - 描述区域（仅作用于.goods-description） */
.goods-description {
    font-size: 1rem; /* 提升基础字号增强可读性 */
    line-height: 1.7; /* 略微减少行距，保持紧凑 */
    color: #2c2c2c; /* 更深的颜色增强对比度 */
    font-weight: 400; /* 明确正文字重 */
    -webkit-font-smoothing: antialiased; /* 改善字体渲染 */
    -moz-osx-font-smoothing: grayscale;
}

/* 统一描述区段落和列表的外边距 */
.goods-description p,
.goods-description ul,
.goods-description ol {
    margin-bottom: 1rem;
}

/* 标题层级：确保H2显著、H3次级、H4再次级，增强对比度 */
.goods-description h2,
.goods-description h3,
.goods-description h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.25;
    font-weight: 700; /* 增强标题字重 */
    color: #1a1a1a; /* 标题使用更深的颜色 */
}

.goods-description h2 {
    font-size: 1.375rem; /* 提升H2字号 */
    color: #0d1117; /* 最深色增强层级感 */
}

.goods-description h3 {
    font-size: 1.25rem; /* 提升H3字号 */
    color: #1a1a1a;
}

.goods-description h4 {
    font-size: 1.125rem; /* 提升H4字号，保持与正文的明显区别 */
    color: #2c2c2c;
}

/* 加粗文本：显著增强对比，确保近视用户可以清晰识别 */
.goods-description strong,
.goods-description b {
    font-weight: 700; /* 增强加粗效果 */
    color: #1a1a1a; /* 加粗文本使用更深颜色 */
}

/* 移动端微调，进一步控制层级对比 */
@media (max-width: 767.98px) {
    .goods-description {
        font-size: 0.975rem; /* 稍微增大移动端正文字号，便于阅读 */
        line-height: 1.7;
    }
    .goods-description h2 { font-size: 1.3rem; }
    .goods-description h3 { font-size: 1.15rem; }
    .goods-description h4 { font-size: 1.025rem; }
}

/* 列表内边距与层次 */
.goods-description ul { padding-left: 1.2rem; }
.goods-description ol { padding-left: 1.25rem; }
.goods-description li { margin-bottom: 0.4rem; }

/* 如果描述中带有表格，做最小可用样式增强 */
.goods-description table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.goods-description th,
.goods-description td { border: 1px solid #eee; padding: 0.5rem; }
.goods-description th { background: #fafafa; font-weight: 600; }

/* 视频响应式样式 - 仅在移动端生效 */
@media (max-width: 767.98px) {
    .goods-description video,
    .article-detail .article-content video,
    .goods-description iframe,
    .article-detail .article-content iframe {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 1rem 0;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* 视频容器响应式处理 - 仅在移动端生效 */
@media (max-width: 767.98px) {
    .goods-description .video-container,
    .article-detail .article-content .video-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
        overflow: hidden;
        border-radius: 6px;
    }
}

/* 16:9 比例视频容器 - 仅在移动端生效 */
@media (max-width: 767.98px) {
    .goods-description .video-responsive,
    .article-detail .article-content .video-responsive {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 比例 */
        margin: 1rem 0;
        overflow: hidden;
        border-radius: 6px;
    }
    
    .goods-description .video-responsive iframe,
    .article-detail .article-content .video-responsive iframe,
    .goods-description .video-responsive video,
    .article-detail .article-content .video-responsive video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border: none;
    }
}



/* 确保视频不会超出容器边界 - 仅在移动端生效 */
@media (max-width: 767.98px) {
    .goods-description,
    .article-detail .article-content {
        overflow-x: hidden;
    }
}

/* 针对嵌入式视频播放器的特殊处理 - 仅在移动端生效 */
@media (max-width: 767.98px) {
    .goods-description embed,
    .article-detail .article-content embed,
    .goods-description object,
    .article-detail .article-content object {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 1rem 0;
    }
}