/* app-creative.min.css */
.modal-header {
    padding: 6px 12px !important;
}
.btn-danger:focus,
.btn-danger:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:focus,
.btn-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
    box-shadow: none;
}
body, .wrapper, .content-page {
    overflow: visible;
}

/* 添加系统字体栈替换自定义字体 */
body, input, button, select, textarea, .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6, p, .navbar, .brand, .btn, .dropdown-menu {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* 图标字体显示优化在icons.min.css中设置 */
/* h2与h3一样大小的样式类 */
.h2dh3-title {
    font-size: 1.17em;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.4;
}
/* header */
.header-navbar {
    height: 70px;
    background-color: #fff;
    box-shadow: 0 0 35px 0 rgb(154 161 171 / 15%);
}
.header-flex {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-right {
    display: flex;
    align-items: center;
}
.logo-title {
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    color: #000;
    margin-left: 10px;
    vertical-align: middle;
    font-family: "SimHei";
}

/* 桌面导航菜单 */
.desktop-nav {
    display: flex;
    align-items: center;
    margin-right: 0;
}
.nav-item {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin: 0 10px;
    transition: color 0.3s;
}
.nav-item:hover {
    color: #3688fc;
    text-decoration: none;
}

/* 查询订单按钮样式优化 */
.desktop-nav .btn-outline-primary {
    margin-left: 10px;
    font-size: 16px;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

/* 移动端汉堡菜单按钮 */
.hamburger-menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    margin-left: 15px;
}
.hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
.hamburger-menu span:nth-child(1) {
    top: 0;
}
.hamburger-menu span:nth-child(2) {
    top: 10px;
}
.hamburger-menu span:nth-child(3) {
    top: 20px;
}
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* 移动端导航菜单 */
.mobile-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
}
.mobile-menu.active {
    max-height: 300px;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}
.mobile-nav-item {
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}
.mobile-nav-item:hover {
    background-color: #f5f5f5;
    color: #3688fc;
    text-decoration: none;
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
}
@media screen and (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

body {
    background-color: #fafafa;
    top: 0 !important;
    padding-bottom: 57px;
}
body[data-leftbar-compact-mode=condensed] {
    min-height: 0;
}
body[data-layout=topnav] .content-page {
    padding: 0!important;
    min-height: 0;
}
.content {
    margin-bottom: 69px;
}
.page-title-right {
    display: block !important;
    float: right !important;
    margin-top: 17px !important;
}
.page-title-left {
    display: block !important;
    float: left !important;
    margin-top: 17px !important;
}
@media screen and (max-width: 380px) {
    .app-search {
        width: 160px;
    }
}
.hyper-wrapper a {
    color: #000;
}
.hyper-footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 20px 0;
    line-height: 16px;
    border-top: 1px solid rgba(152,166,173,.2);
    color: #98a6ad;
    background-color: #f9f9f9;
}

.hyper-footer .footer-links {
    font-size: 14px;
    line-height: 1.8;
}

.hyper-footer .footer-links a {
    color: #6c757d;
    margin: 0 3px;
    transition: color 0.3s;
}

.hyper-footer .footer-links a:hover {
    color: #3688fc;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .hyper-footer {
        text-align: center;
    }
    
    .hyper-footer .text-md-right {
        text-align: center !important;
        margin-top: 10px;
}
}
@media screen and (max-width: 576px) {
    .container {
       padding: 0 12px; 
    }
}
@media screen and (min-width: 576px) {
    .container {
       padding: 0; 
    }
}
@media screen and (min-width: 992px) {
    .hyper-sm-last {
        -webkit-box-ordinal-group: 14;
        -ms-flex-order: 13;
        order: 13;
    }
}

/* Home Page */

/* modal-dialog */
.modal-body img {
    max-width: 100%;
    height: auto;
}
@media screen and (min-width: 1367px) {
    .modal-dialog {
        max-width: 900px !important;
    }
}
@media screen and (max-width: 1367px) {
    .modal-dialog {
        max-width: 700px !important;
    }
}
@media screen and (max-width: 768px) {
    .modal-dialog {
        max-width: 500px !important;
    }
}

/* Select Button */

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.nav-list::-webkit-scrollbar {
    display: none; 
}
@media screen and (min-width: 767px) {
    .tab-link {
        min-width: 100px;
    }
}
@media screen and (max-width: 767px) {
    .tab-link {
        min-width: 60px;
    }
}
.tab-link {
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: .5rem;
    border: 1px solid #3688fc;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tab-link.active {
    color: #fff;
    background: linear-gradient(-45deg, #3369ff, #3798f7);
}
.img-checkmark img {
    width: 36px;
}
.tab-link.active .img-checkmark {
    display: block;
}
.img-checkmark {
    position: absolute;
    opacity: 0.8;
    right: -6px;
    bottom: -12px;
    display: none;
}

/* Home Card */

.home-card {
    box-shadow: 0 3px 6px 0 rgb(0 0 0 / 12%);
    transition: all .5s;
}
.home-card:hover {
    box-shadow: 1px 3px 2px 0 rgb(0 0 0 / 5%);
}

/* 手机端列表式布局 */
@media screen and (max-width: 767px){
    .hyper-wrapper {
        padding-left: 0;
        padding-right: 0;
        display: block;
    }
    .home-card {
        display: none;
    }
}

/* 搜索框与公告区域间距 - 减小距离 */
.app-search-container {
    margin-bottom: 8px;
}

/* 公告区域样式 */
.notice-container {
    margin-top: 8px;
}

@media screen and (min-width: 768px) {
    .home-card {
        padding: 32px 20px 14px 20px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        border-radius: 5px;
        cursor: pointer;
        background-color: #fff;
    }
    .home-img {
        max-width: 88%;
        margin: 0 auto auto auto;
    }
    .flex {
        display: flex;
        flex-direction: column;
        margin-top: 12px;
    }
    .name {
        font-size: 16px;
        min-height: 42px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .price {
        color: #d0021b;
        text-align: center;
    }
    .price b {
        font-size: 24px;
    }
}

@media screen and (min-width: 992px) {
    .hyper-wrapper {
        padding-left: 0;
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        grid-gap: 12px;
    }
    .home-card {
        padding: 32px 20px 14px 20px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
    	border-radius: 5px;
    	cursor: pointer;
        background-color: #fff;
    }
    .home-img {
        max-width: 88%;
        margin: 0 auto auto auto;
    }
    .flex {
        display: flex;
        flex-direction: column;
        margin-top: 12px;
    }
    .name {
        font-size: 16px;
        min-height: 42px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .price {
        color: #d0021b;
        text-align: center;
    }
    .price b {
        font-size: 24px;
    }
}
@media screen and (min-width: 1320px) {
    .hyper-wrapper {
        padding-left: 0;
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
        grid-gap: 12px;
    }
    .home-card {
        padding: 32px 20px 14px 20px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
    	border-radius: 5px;
    	cursor: pointer;
        background-color: #fff;
    }
    .home-img {
        max-width: 88%;
        margin: 0 auto auto auto;
    }
    .flex {
        display: flex;
        flex-direction: column;
        margin-top: 12px;
    }
    .name {
        font-size: 16px;
        min-height: 42px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .price {
        color: #d0021b;
        text-align: center;
    }
    .price b {
        font-size: 24px;
    }
}

/* Buy Page*/
.form-group h3 {
    font-weight: 400;
    color: #212529;
}
.geetest_holder.geetest_wind {
    width: 100% !important;
    min-width: 100% !important;
}
.buy-product img {
    max-width:100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
}
@media screen and (min-width: 992px) {
    .buy-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
    }
    .sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 6px;
    }
    .buy-shop {
        grid-column: span 2 / span 2;
    }
    .buy-product {
        grid-column: span 4 / span 4;
    }
}
/* pay-type */
@media screen and (min-width: 1367px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,200px));
        grid-gap: 12px;
    }
}
@media screen and (min-width: 991px) and (max-width: 1367px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(1,minmax(0,300px));
        grid-gap: 6px;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(4,minmax(0,200px));
        grid-gap: 12px;
    }
}
@media screen and (min-width: 576px) and (max-width: 768px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,200px));
        grid-gap: 12px;
    }
}
@media screen and (max-width: 576px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,200px));
        grid-gap: 12px;
    }
}
@media screen and (max-width: 380px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(1,minmax(0,300px));
        grid-gap: 6px;
    }
}
.pay-type {
    background-color: #fff;
    color: #000;
    border: 2px solid #bdcfe1;
}
.pay-type:hover {
    background-color: #fff;
    color: #000;
}
.pay-type.active {
    background-color: #fff;
    color: #3688fc;
    border: 2px solid #3688fc;
}
.buy-price {
    color: #ea5455;
}

/* Orderinfo Page */

.orderinfo-grid {
    display: grid;
    grid-template-columns: auto;
}
@media screen and (min-width: 767px) {
    .orderinfo-card-grid {
        display: grid;
        grid-template-columns: repeat(6,minmax(0,1fr));
        grid-gap: 12px;
    }
    .orderinfo-info {
        grid-column: span 2 / span 2;
    }
    .orderinfo-kami {
        grid-column: span 4 / span 4;
    }
}
@media screen and (max-width: 767px) {
    .orderinfo-info {
        display: grid;
        justify-content: center;
    }
}
.textarea-kami {
    min-height: calc(100% - 48px - 38px)
}
.kami-btn {
    margin-top: 6px;
    float: right;
}

/* Footer */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 120px;
    right: 20px;
    z-index: 99;
}
#back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    width: 44px;
    height: 44px;
}

/* buy.blade.php */

@media (max-width: 767px) {
    .buy-pay-grid {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 200px));
        grid-gap: 12px;
    }
}

@media (min-width: 767px) {
    .buy-pay-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 200px));
        grid-gap: 12px;
    }
}
@media (max-width: 767px) {
    .buy-img img {
        max-width: 150px;
    }
    .buy-img {
        margin-bottom: 12px;
    }
}
@media (min-width: 768px) {
    .buy-form {
        display: grid;
        grid-template-rows: auto auto;
        grid-template-columns: 225px auto;
    }
    .buy-img img {
        max-width: 180px;
    }
    .buy-type {
        max-width: 90%;
    }
}
@media (min-width: 1200px) {
    .buy-form {
        display: grid;
        grid-template-rows: auto auto;
        grid-template-columns: 375px auto;
    }
    .buy-img img {
        max-width: 200px;
    }
    .buy-type {
        max-width: 70%;
    }
}

.buy-img {
    display: flex;
    grid-row-start: 1;
    grid-column-end: 2;
    grid-row-end: 3;
    justify-content: center;
    align-items: center;
}
.buy-type {
    grid-row-start: 2;
    grid-column-end: 3;
}

.buy-group {
    position: relative;
    line-height: 36px;
    padding-left: 94px;
}

.buy-title {
    position: absolute;
    left: 0;
    font-weight: 600;
}
.buy-product img {
    max-width:100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
}
.geetest_holder.geetest_wind {
    width: 100%!important;
    min-width: 100%!important;
}

/* 卡片内部样式 */
.card-body {
    padding: 0.7rem;
}

/* SEO标题样式优化 */
h2.desktop-view, h2.category-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

h2.desktop-view .badge, h2.category-title .badge {
    font-size: 0.95rem;
}

h3.mobile-list-title {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 商品展示的通用CSS样式 - 共用部分 */
.products-container {
    width: 100%;
}

.products-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -4px;
}

.product-item {
    padding: 0 4px;
    margin-bottom: 10px;
}

.product-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s;
}

.product-wrapper:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.product-image-container {
    position: relative;
    background-color: #f5f5f5; /* 加载前的占位背景色 */
    overflow: hidden;
}

.product-img {
    width: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-type {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    padding: 0.2em 0.5em;
    z-index: 10;
}

.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4em;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 500;
}

.product-price {
    font-size: 17px;
    font-weight: bold;
    color: #f44336;
}

.product-stock {
    font-size: 12px;
}

/* 分类标题样式 */
.category-title-wrap {
    margin: 15px 0 10px 0;
}

.category-name {
    padding: 8px 12px;
    background-color: #3ba6c5; /* 比#44BADB深一点的颜色 */
    color: white;
    border-radius: 5px;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* 小屏幕设备的媒体查询 - 列表式布局 */
@media screen and (max-width: 767px) {
    .product-item {
        width: 100%;
    }

    .product-wrapper {
        display: flex;
    }

    .product-image-container {
        width: 35%;
    }

    .product-img {
        height: 100%;
    }

    .product-content {
        width: 65%;
        padding: 8px 10px;
        display: flex;
        flex-direction: column;
    }

    .product-title {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }

    .product-details {
        margin-top: auto;
    }

    .price-stock-container {
        flex-wrap: wrap;
    }

    .product-stock {
        font-size: 11px;
        margin-left: 0;
        margin-top: 2px;
    }

    .product-discount {
        display: inline-block;
        margin-top: 4px;
    }

    .product-micro-desc {
        -webkit-line-clamp: 1;
        margin-bottom: 5px;
        font-size: 12px; /* 移动端稍微小一点 */
        padding: 1px 0;
    }
}

/* 中等屏幕设备的媒体查询 - 每行3个卡片 */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .product-item {
        width: 33.333%;
    }

    .product-img {
        height: 140px;
        border-radius: 4px 4px 0 0;
    }

    .product-content {
        padding: 0.7rem;
        display: flex;
        flex-direction: column;
        height: calc(100% - 140px);
    }

    .product-details {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }
    
    .price-stock-container {
        display: flex;
        width: 100%;
    }
    
    .product-price {
        flex: 1;
    }
    
    .product-stock {
        text-align: right;
        padding-right: 2px;
    }
}

/* 大屏幕设备的媒体查询 - 每行5个卡片 */
@media screen and (min-width: 992px) {
    .product-item {
        width: 20%;
    }

    .product-img {
        height: 160px;
        border-radius: 4px 4px 0 0;
    }

    .product-content {
        padding: 0.7rem;
        display: flex;
        flex-direction: column;
        height: calc(100% - 160px);
    }

    .product-details {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }
    
    .price-stock-container {
        display: flex;
        width: 100%;
    }
    
    .product-price {
        flex: 1;
    }
    
    .product-stock {
        text-align: right;
        padding-right: 2px;
    }
}

/* 商品微描述样式 */
.product-micro-desc {
    font-size: 13px;
    color: #3ba6c5; /* 使用与分类标题相同的颜色，但稍微浅一些 */
    margin-top: -1px;
    margin-bottom: 8px;
    padding: 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    font-weight: 500; /* 稍微加粗 */
}

/* 价格和库存并排显示 */
.price-stock-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    width: 100%;
}

.product-stock {
    font-size: 12px;
    margin-left: auto; /* 推到最右侧 */
}

/* ===================== 文字对比度优化 ===================== */
body, p, .card-body, .buy-type, .buy-group, .buy-product, .buy-product p {
    color: #212529; /* Bootstrap 默认主体文字颜色，较深，提高可读性 */
    text-shadow: none;
}

.article-content, .goods-content {
    color: #212529;
}

/* 修改header-flex布局 */
.header-flex {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 调整logo区域宽度 */
.topnav-logo {
    display: flex;
    align-items: center;
}

/* 精选文章模块样式 */
.featured-article .card-img-top {
    height: 200px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .featured-article .card-img-top {
        height: 180px;
    }
}

.featured-article .card-title {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.featured-article .card-text {
    color: #6c757d;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 适配移动设备 */
@media (max-width: 767px) {
    .featured-article {
        margin-bottom: 1.5rem;
    }
}

/* 特色文章卡片样式 */
.featured-article {
    border: none;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.featured-article-img {
    position: relative;
    height: 100%;
    min-height: 350px;
    width: 100%;
    overflow: hidden;
}

.featured-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.featured-article-overlay {
    position: absolute;
    top: 60%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: all 0.3s ease;
}

.featured-article-overlay:hover {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.45) 100%);
}

.featured-article-content {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding-bottom: 5px;
    margin-top: 15px;
}

.featured-article-content .card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.featured-article-content .card-text {
    color: rgba(255,255,255,0.95);
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-article-footer {
    margin-top: 10px;
}

.featured-article-footer .text-white {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

.featured-article-footer .btn-light {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: transparent;
}

.featured-article-footer .btn-light:hover {
    background-color: #fff;
}

@media (max-width: 767px) {
    .featured-article-img {
        min-height: 220px;
    }
    
    .featured-article-overlay {
        top: 45%;
        padding: 15px;
    }
    
    .featured-article-content {
        padding-bottom: 3px;
        margin-top: 10px;
    }
    
    .featured-article-content .card-title {
        font-size: 1.1rem;
        -webkit-line-clamp: 1;
        margin-bottom: 3px;
    }
    
    .featured-article-content .card-text {
        font-size: 0.85rem;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }
    
    .featured-article-footer {
        margin-top: 6px;
    }
    
    .featured-article-footer .btn-light {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* 右侧文章列表样式 - PC端 */
.article-list {
    border-top: none;
}

.article-list-item {
    padding: 12px 15px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.article-list-item:hover {
    background-color: #f8f9fa;
    border-left: 3px solid #3688fc;
}

/* 底部链接按钮样式 */
.card-footer .btn-link {
    color: #3688fc;
    font-weight: 500;
}

.card-footer .btn-link:hover {
    text-decoration: none;
    color: #0056b3;
}

/* PC端文章列表标题和日期布局 */
@media (min-width: 768px) {
    .article-list-item .d-flex {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
    }
    
    .article-list-title {
        max-width: 75%;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }
    
    .article-list-title h3 {
        display: inline;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .article-date {
        font-size: 0.8rem;
        text-align: right;
        flex-shrink: 0;
        margin-left: auto; /* 推到最右边 */
    }
}

/* 移动端文章列表样式改进 */
@media (max-width: 767px) {
    .article-list-item {
        padding: 12px 15px;
    }
    
    /* 确保d-flex布局正确 */
    .article-list-item .d-flex {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
    }
    
    /* 调整标题容器宽度 */
    .article-list-title {
        max-width: 70%;
        overflow: hidden;
        text-decoration: none !important;
    }
    
    /* 标题文本样式 */
    .article-list-title h3 {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
        font-size: 0.82rem;
        margin-bottom: 0;
        font-weight: normal;
    }
    
    /* 日期样式 */
    .article-date {
        font-size: 0.75rem;
        color: #999;
        text-align: right;
        flex-shrink: 0;
        margin-top: 2px;
        padding-left: 5px;
    }
    
    /* 增强触摸区域反馈 */
    .article-list-item:active {
        background-color: #f0f0f0;
    }
    
    /* 改进标题和图标对齐 */
    .article-list-title i.mdi {
        vertical-align: top;
        margin-top: 2px;
        font-size: 0.9rem;
    }
}

/* 懒加载图片样式 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.loaded {
    opacity: 1;
}

/* 文章内容中的图片响应式样式 */
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1rem auto;
}

/* 添加加载中的动画效果 - 简化版 */
.product-image-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3688fc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 图片加载完成后隐藏加载动画 */
.product-image-container.loaded::before,
img:not([data-src]) + .product-image-container::before,
img.loaded + .product-image-container::before,
img:not(.lazy) + .product-image-container::before {
    display: none;
}

/* 特色文章图片懒加载样式 */
.featured-article-img {
    position: relative;
    background-color: #f5f5f5;
}

.featured-article-image {
    transition: opacity 0.3s ease;
}

.featured-article-image.lazy {
    opacity: 0;
}

.featured-article-image.loaded {
    opacity: 1;
}

/* 兼容不支持:has选择器的浏览器 */
img:not(.lazy) + .product-image-container::before {
    display: none;
}

/* 减少文章列表底部空间 */
.card-footer.py-2 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    border-top: none;
}

.card-footer.py-2 .btn-link.p-0 {
    margin: 0;
    font-size: 0.875rem;
}

/* 优化文章列表项的高度 */
.article-list-item {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* 最后一项下方减少空间 */
.article-list .article-list-item:last-child {
    margin-bottom: 0;
}

/* 优化卡片头部高度 */
.card-header.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* 移除卡片底部与footer之间的边距 */
.card-header.py-2 + .article-list.mb-0 {
    margin-bottom: 0 !important;
}

/* 商品参数选项卡样式 */
.product-tabs {
    margin-top: 15px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* 隐藏右侧滚动条 */
.product-tabs .nav-tabs::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Opera */
}

.product-tabs .nav-tabs {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* 隐藏垂直滚动条 */
.product-tabs .card-body {
    overflow: hidden;
}

/* 自定义滚动条容器样式 */
.tab-content-wrapper {
    overflow-y: auto;
    max-height: 400px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.tab-content-wrapper::-webkit-scrollbar {
    width: 4px;
}

.tab-content-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.tab-content-wrapper::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 20px;
}

.product-tabs .nav-tabs .nav-item {
    flex-shrink: 0;
}

.product-tabs .nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
    padding: 10px 15px;
    border-radius: 0;
    white-space: nowrap;
    font-size: 0.95rem;
}

.product-tabs .nav-tabs .nav-link.active {
    color: #3688fc;
    background-color: #fff;
    border-top: 2px solid #3688fc;
    margin-top: -1px;
}

.product-tabs .tab-content {
    padding: 15px;
    background-color: #fff;
}

.product-params-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.product-params-table tr {
    border-bottom: 1px solid #f2f2f2;
}

.product-params-table tr:last-child {
    border-bottom: none;
}

.product-params-table th {
    width: 90px;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
    text-align: right;
    padding: 10px 12px;
}

.product-params-table td {
    padding: 10px 12px;
    color: #333;
}

@media (max-width: 767px) {
    .product-tabs .nav-tabs .nav-link {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    /* 确保在移动端选项卡标题不会被截断 */
    .product-tabs .nav-tabs {
        justify-content: flex-start;
        padding: 0 3px;
    }
    
    .product-tabs .nav-tabs .nav-item {
        flex: 0 0 auto;
        min-width: max-content;
        margin-right: 1px;
    }
    
    .product-tabs .tab-content {
        padding: 12px 8px;
    }
    
    .product-params-table th {
        width: 75px;
        padding: 6px 8px;
    }
    
    .product-params-table td {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
}

/* 完全重写面包屑导航样式 */
.mobile-breadcrumb {
    width: 100%;
    overflow: hidden;
}

.mobile-breadcrumb .breadcrumb {
    display: block !important;
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    text-align: left;
    line-height: 1.5;
    font-size: 0.9rem;
}

.mobile-breadcrumb .breadcrumb-item {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-breadcrumb .breadcrumb-separator {
    display: inline-block;
    padding: 0 0.4rem;
    color: #6c757d;
}

.mobile-breadcrumb .breadcrumb-item a {
    color: #3688fc;
    text-decoration: none;
}

.mobile-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}

@media (max-width: 576px) {
    .mobile-breadcrumb .breadcrumb {
        font-size: 0.85rem;
    }
}

/* 简化面包屑导航样式 */
.simple-breadcrumb {
    display: block;
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    text-align: left;
}

.simple-breadcrumb .breadcrumb-link {
    color: #3688fc;
    text-decoration: none;
}

.simple-breadcrumb .breadcrumb-current {
    color: #6c757d;
}

.simple-breadcrumb .breadcrumb-separator {
    padding: 0 0.4rem;
    color: #6c757d;
}

@media (max-width: 576px) {
    .simple-breadcrumb {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        line-height: 1.5;
        word-break: break-word;
    }
}

/* 选项卡标题和定义列表样式 */
.tab-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.product-info-list {
    margin: 0;
    padding: 0;
}

.product-info-list dt {
    font-weight: 500;
    color: #495057;
    padding: 0.75rem 0 0.25rem;
    margin: 0;
    border-bottom: 1px solid #f2f2f2;
}

.product-info-list dd {
    padding: 0.5rem 0 0.75rem;
    margin: 0 0 0 1rem;
    color: #333;
}

.product-info-list dt:first-child {
    padding-top: 0;
}

@media (min-width: 768px) {
    .product-info-list {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 0;
    }
    
    .product-info-list dt {
        padding: 0.75rem 1rem 0.75rem 0;
        text-align: right;
        border-bottom: none;
    }
    
    .product-info-list dd {
        padding: 0.75rem 0;
        margin: 0;
        border-bottom: 1px solid #f2f2f2;
    }
    
    .product-info-list dt:first-child,
    .product-info-list dt:first-child + dd {
        padding-top: 0;
    }
    
    .product-info-list dt:last-of-type,
    .product-info-list dd:last-of-type {
        border-bottom: none;
    }
}

@media (max-width: 767px) {
    .tab-title {
        font-size: 1.1rem;
        padding-bottom: 0.4rem;
    }
    
    .product-info-list dt {
        background-color: #f8f9fa;
        padding: 0.6rem 0.75rem;
        margin-top: 0.5rem;
    }
    
    .product-info-list dd {
        padding: 0.6rem 0.75rem;
        margin: 0;
    }
}

/* 描述中的图片样式 */
.scrollbar img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

/* 自定义CSS样式 */

/* 修复滚动链接定位效果问题 */
html {
    scroll-behavior: auto !important; /* 禁用CSS滚动行为，使用JS控制 */
}

/* 优化滚动链接效果，避免与异步平移冲突 */
.scroll-container {
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

/* 对可能导致滚动链接问题的元素使用transform:translate3d(0,0,0)来启用硬件加速 */
.sticky-top,
.navbar-fixed-top,
.fixed-top,
.position-sticky,
.position-fixed {
    transform: translate3d(0,0,0);
    will-change: transform;
    /* 避免使用position: sticky，改用绝对定位+JS控制 */
    position: absolute !important;
}

/* 禁用所有可能导致滚动链接问题的CSS属性 */
[style*="position: sticky"],
[style*="position:sticky"],
[style*="position: -webkit-sticky"],
[style*="position:-webkit-sticky"] {
    position: absolute !important;
}

/* 避免使用position:sticky时的滚动链接问题 */
@supports (position: sticky) {
    .sticky-element {
        position: absolute !important;
        z-index: 1020;
    }
}