body{
    background:#FCF9F0;
    font-family: "Microsoft YaHei", "PingFang SC", serif;
    color:#333;
}
a{text-decoration:none;color:#9b2c2c;}
a:hover{color:#b03a3a;}

.header{
    background:#faf7f1;
    border-bottom:1px solid #eee;
}
.mb_logo img, .offcanvas-header img {
    width: 100%;
    max-width: 130px
}
.header_wrapper{
    margin-bottom: 10px;
}
.nav-link{
    color:#7a3b3b!important;
    font-weight:500;
    font-size: 20px;
    font-family: "Microsoft YaHei", "PingFang SC", serif;
}
.menu{
    border-bottom: 2px solid #ddd;box-shadow: rgb(99 99 99 / 20%) 0 4px 6px -1px;
}
.menu a.nav-link{
    padding: 14px clamp(10px, 2vw, 40px) 20px;
    margin-bottom: -12px;
}
.menu a.active{
    background: #fff;
}
.share{
    padding: 0 0 5px 10px;
}
.share a img {
    width: 30px;
    height: 30px;
    margin-top: 5px;
    vertical-align: middle;
    border-style: none;
}
.navbar .container{
    padding: 0 20px;
}
.navbar-collapse{
    flex-grow:unset;
}
.breadcrumb,.breadcrumb a{
    background:none;
    font-size:14px !important;
}
.list_gallary ul.d-flex{
    margin: 0;
}
.section-title{
    font-size:28px;
    color:#9b2c2c;
    border-bottom:1px solid #e5cfcf;
    padding-bottom:10px;
    margin-bottom:30px;
}

.article-main img{
    width:100%;
    max-width: 960px;
    border-radius:4px;
}
.article-main h3{
    color:#9b2c2c;
    margin-top:15px;
}
.article-meta{
    font-size:13px;
    color:#999;
}

.subscribe-box{
    background:#d8b778;
    color:#fff;
    padding:20px;
    border-radius:6px;
}
.subscribe-box img{
    width:100%;
    margin-bottom:10px;
}
.subscribe-box .btn{
    background:green;
    border:none;
}
.article-card{
    background:#FCF9F0;
    border-radius:6px;
    padding:15px;
    height:100%;
    box-shadow:0 3px 8px rgba(0,0,0,.05);
    text-align: left;
}
.article-card .image-wrapper {
    height: 257px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.article-card .text-content {
    text-align: left;
}
.article-card img{
    width:100%;
    max-width: 386px;
    max-height: 257px;
    display: inline-block;
}
.article-card h5{
    margin-top:10px;
    font-size:18px;
    color:#9b2c2c;
}
.article-card .meta{
    font-size:12px;
    color:#aaa;
}
.article-icons span{
    font-size: 22px;
    margin-right:10px;
    color:#c9a14a;
    cursor:pointer;
}
/* 分类 */
.category-box{
    background:#fff;
    padding:20px;
    border-radius:6px;
}

.category-box h5{
    border-bottom:1px solid #e5d8c8;
    padding-bottom:10px;
    color:#8b0000;
}

.category-box ul{
    list-style:none;
    padding:0;
    margin-top:15px;
}

.category-box li{
    margin-bottom:8px;
}

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

.category-box a:hover{
    color:#8b0000;
}

/* 商品卡片 */
.goods-card{
    background:#fff;
    border-radius:6px;
    padding:15px;
    height:100%;
    box-shadow:0 3px 8px rgba(0,0,0,.04);
    transition:.2s;
}

.goods-card:hover{
    transform:translateY(-3px);
}

.goods-cover{
    width:100%;
    border-radius:4px;
}

.goods-title{
    margin-top:12px;
    font-size:16px;
}

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

.goods-desc{
    font-size:14px;
    color:#777;
    margin:8px 0;
}

.goods-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.price{
    color:#8b0000;
    font-weight:bold;
}

.btn-buy{
    font-size:14px;
    border:1px solid #8b0000;
    padding:4px 10px;
    color:#8b0000;
    text-decoration:none;
}

.btn-buy:hover{
    background:#8b0000;
    color:#fff;
}

/* 详情页 */
.goods-detail-title{
    font-size:26px;
    color:#8b0000;
}

.goods-subtitle{
    color:#666;
}

.goods-price{
    font-size:22px;
    margin:15px 0;
    color:#8b0000;
}
.cart-modal.hidden {
    display: none;
}

.cart-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cart-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.cart-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.cart-modal-body {
    margin: 15px 0;
    color: #555;
    font-size: 14px;
}

.cart-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cart-modal-footer .btn {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ff6a00;
    color: #fff;
}

.btn-secondary {
    background: #eee;
    color: #333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.btn-added{
    border-color:#aaa;
    color:#aaa;
    pointer-events:none;
}
/* 分页整体 */
.custom-page {
    text-align: center;
    margin: 40px 0;
}

/* 页码基础 */
.custom-page a,
.custom-page span {
    display: inline-block;
    margin: 0 6px;
    font-size: 16px;
    text-decoration: none;
}

/* 普通页码 */
.page-num {
    color: #c55;
    padding: 6px 10px;
}

/* 当前页 */
.page-num.active {
    background: #c94b4b;
    color: #fff;
    border-radius: 3px;
}

/* 省略号 */
.page-ellipsis {
    color: #999;
}

/* 左右按钮 */
.page-btn {
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #d8bf6a;
    color: #fff;
    text-align: center;
}

/* 禁用 */
.page-btn.disabled {
    background: #eee;
    color: #bbb;
}

.footer {
    padding: 20px 0;
    background-color: #FCF9F0!important;
    position: relative;
    display: block;
    width: 100%;
}
.text-center p{
    text-align: center;
    margin-bottom: 10px;
}
.m-menubar {
    display: none;
    z-index: 1040;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 5px 0;
}

.m-menubar:before {
    content: '1';
    color: transparent;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0,0,0,0.1);
    display: block;
    overflow: hidden;
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5)
}

.m-menubar ul {
    display: flex;
    text-align: center;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
}

.m-menubar li {
    flex: 1;
    text-align: center;
    font-size: 12px;
}

.m-menubar li a>i {
    margin-bottom: 0;
    display: block;
    font-size: 20px;
}

.m-menubar li a {
    display: block;
    margin-top: 5px;
    color: #1d3f68;
}

.m-menubar li.active a {
    color: #1d3f68
}

.m-menubar li.active a>i {
    color: #1d3f68
}

@media (max-width: 1024px) {
    body {
        padding-top:0 !important;
        padding-bottom: 60px !important
    }
    .m-menubar {
        display: block!important;
    }
}
@media (max-width: 991px) {
    div#photowrap {
        transform: translate(0, 10%)
    }

    .desktopmenu {
        display: none !important
    }

    .mobile_nav {
        display: block;
        padding: 1rem 0
    }
}

/* 移除原有結尾多餘的 }，並追加以下樣式 */

.interaction-group {
    display: flex;
    gap: 15px; /* 讓三個按鈕整齊排列 */
    margin: 15px 0;
}

.icon-circle {
    width: 32px;  /* 稍微加大尺寸，更好點擊 */
    height: 32px;
    border: 1px solid #d6b36a;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d6b36a;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 加上輕微彈性動畫 */
    position: relative;
}

/* 懸停效果 */
.icon-circle:hover {
    background-color: #fdfaf2;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(214, 179, 106, 0.15);
}

/* 點讚激活狀態（愛心與大拇指） */
.icon-circle.liked-active {
    border-color: #e53e3e;
    background-color: #fff5f5;
    color: #e53e3e;
}

/* 收藏激活狀態 */
.icon-circle.loved-active {
    border-color: #dd6b20;
    background-color: #fffaf0;
    color: #dd6b20;
}

/* 分享成功提示小氣泡 */
.share-toast {
    position: absolute;
    bottom: 50px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s ease;
    pointer-events: none;
}
.share-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.article-main .me-1,.article-card .me-1, .article-meta .me-1{
    color: #d6b36a;
}
.justify-content-md-start{
    margin: 10px 0 30px;
}
.hidesidebar {
    display: none;
}

/* 彈窗遮罩 */
.wechat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 彈窗主體 */
.wechat-modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 300px;
    width: 90%;
}

/* 關閉按鈕 */
.wechat-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}
.wechat-modal-close:hover {
    color: #333;
}

/* 二維碼容器居中 */
#wechat-qrcode {
    margin: 16px auto;
    display: flex;
    justify-content: center;
}
#wechat-qrcode canvas, #wechat-qrcode img {
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 4px;
}

.shareBtn {
    position: relative;
}
.shareon-popover {
    display: none;
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    white-space: nowrap;
}
.shareBtn:hover .shareon-popover {
    display: flex;
    gap: 5px;
}
.shareon .weixin i.fa-weixin {
    color: #07c160;  /* 微信品牌绿色 */
    font-size: 20px;  /* 调整图标大小 */
    display: inline-block;  /* 确保正常渲染 */
    font-style: normal;  /* 防止被重置 */
    line-height: 1;
}

/* 如果按钮本身背景被覆盖，可以单独设置 */
.shareon .weixin {
    background-color: #07c160;  /* 微信绿色背景 */
    color: #fff;  /* 图标白色 */
    border: none;
    border-radius: 4px;
    width: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 如果希望图标本身是白色，按钮背景是绿色，这样更接近官方风格 */
.shareon .weixin i.fa-weixin {
    color: #fff;
    font-size: 22px;
}

/* 彈窗背景遮罩 */
.wx-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* 彈窗主體卡片 */
.wx-modal-card {
    background: #ffffff;
    width: 90%;
    max-width: 360px;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    animation: wxModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wxModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 關閉 X 按鈕 */
.wx-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 22px;
    color: #a0a0a0;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.wx-modal-close:hover {
    color: #333333;
}

/* 標頭 */
.wx-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #07c160; /* 微信綠 */
    margin-bottom: 20px;
}
.wx-modal-header .wx-icon {
    font-size: 22px;
}

/* 二維碼容器 */
.wx-qrcode-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}
.wx-tip {
    margin-top: 10px;
    font-size: 12px;
    color: #888888;
    text-align: center;
}

/* 分享預覽卡片 (仿微信分享卡片) */
.wx-preview-card {
    background: #f7f7f7;
    border: 1px solid #ededed;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
}
.wx-preview-body {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.wx-preview-text {
    flex: 1;
    overflow: hidden;
}
.wx-preview-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wx-preview-desc {
    margin: 0;
    font-size: 12px;
    color: #666666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.wx-preview-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #e0e0e0;
    flex-shrink: 0;
}
.wx-preview-footer {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e0e0e0;
    font-size: 11px;
    color: #999999;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 按鈕 */
.wx-confirm-btn {
    width: 100%;
    padding: 10px 0;
    background-color: #07c160;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.wx-confirm-btn:hover {
    background-color: #06ad56;
}

.qrcode-wrapper {
    display: inline-block;
    position: relative;
}

.qrcode-popup {
    display: none;
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    z-index: 999;
}

.qrcode-popup img {
    display: block;
    width: 250px!important;
    height: 250px!important;
}

.qrcode-wrapper:hover .qrcode-popup {
    display: block;
}