:root {
    --primary-color: #d9534f;
    --primary-dark: #c9302c;
    --primary-light: #f2dede;
    --secondary-color: #f8f9fa;
    --text-color: #343a40;
    --text-light: #6c757d;
    --light-gray: #e9ecef;
    --medium-gray: #dee2e6;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --black: #000000;
    --box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08);
    --hover-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.12);
    --border-radius: 0.5rem;
    --transition-speed: 0.3s;
}

@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local('Noto Sans SC Light'), local('NotoSansSC-Light'), local('Microsoft YaHei Light'), local('微软雅黑 Light');
}
@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Noto Sans SC Regular'), local('NotoSansSC-Regular'), local('Microsoft YaHei'), local('微软雅黑');
}
@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Noto Sans SC Medium'), local('NotoSansSC-Medium'), local('Microsoft YaHei'), local('微软雅黑');
}
@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Noto Sans SC Bold'), local('NotoSansSC-Bold'), local('Microsoft YaHei Bold'), local('微软雅黑 Bold');
}

 /* 清除默认边距和盒模型 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 设置根元素字体大小（默认 16px，可调整） */
html {
    font-size: 16px;
}

/* 设置默认字体和行高 */
body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    line-height: 1.6;
    background-color: #fff;
}

/* 去除列表默认样式 */
ul, ol {
    list-style: none;
}

/* 去除链接默认样式 */
a {
    text-decoration: none;
    color: var(--primary-color);
}

/* 图片自适应 */
img {
    max-width: 100%;
    height: auto;
    /* display: block; */
}

/* 表单元素优化 */
input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    background: none;
}

/* 表格优化 */
table {
    border-collapse: collapse;
    width: 100%;
}

/* 导航栏 */
.navbar-custom {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 0.98rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--primary-light);
}

.search-form .form-control {
    border-radius: 50rem 0 0 50rem;
    border: 1px solid var(--medium-gray);
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.search-form .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
    border-color: var(--primary-color);
}

.search-form .btn {
    border-radius: 0 50rem 50rem 0;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.6rem 1.2rem;
}

.search-form .btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
/* 修改 */
.pb-5, .py-5{
    padding-bottom: 1.5rem !important;
    padding-top: 1.5rem !important;
}
.mb-5, .my-5{
    margin-top: 1rem !important;
}

@media (max-width: 767.98px) {
    html {
        font-size: 14px;
    }
    .col-lg-3.col-md-4.col-sm-6.mb-4{
        width: 50% !important;
    }
    .col-md-3.col-sm-6.mb-4{
        width: 50% !important;
    }
    .price-tag{
        font-size: .8rem !important;
        padding: 0rem 0.55rem !important;
        /* margin-right: 0.3rem; */
    }
    .price-tag.mr-2 {
        font-size: 1rem;
    }
    .fab, .far, .fas, .fa-star,.fa-star:before{
        font-size: 0.8rem !important;
    }
    .card-title{
        font-size: 1rem !important;
        white-space: nowrap;      /* 禁止换行 */
        overflow: hidden;         /* 超出部分隐藏 */
        width: 100%;  
    }
    .card-body.news{
        padding: 0.5rem 1.2rem !important;
    }
    
    span.ml-1.small.text-muted{
        display: none !important;
    }
    .review-rating span.ml-1.small.text-muted,.card.mb-3 span.ml-1.small.text-muted{
        display: inline-block !important;
    }
    .card-text{
        font-size: 0.75rem !important;
    }
    i.fas.fa-barcode.mr-1{
        margin-right: 0 !important;
    }
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(120deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAwIj48cGF0aCBmaWxsPSIjZmZmZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiIGQ9Ik0wIDBoMjAwdjIwMEgweiIvPjxwYXRoIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSIgZD0iTTAgMTAwaDIwMHYxMDBIMHoiLz48cGF0aCBmaWxsPSIjZmZmZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiIGQ9Ik0xMDAgMHYyMDBoMTAwVjB6Ii8+PC9zdmc+');
    opacity: 0.1;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 标题 */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    padding-bottom: 0.75rem;
    font-size: 1.75rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.section {
    padding: 4rem 0;
}

.section-light {
    background-color: var(--white);
}

.section-dark {
    background-color: var(--secondary-color);
}

/* 卡片样式 */
.card {
    border: none;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    /*margin-bottom: 1.5rem;*/
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.card-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 价格标签 */
.price-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.1rem 0.75rem;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.9rem;
    width: auto !important;
}

/* 徽章 */
.badge-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50rem;
    font-weight: 500;
    font-size: 0.85rem;
}

/* 分页美化 - 适配原生分页结构 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-left: 0;
    list-style: none;
}
.page-item.active .page-link{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 所有的 li 项 */
.pagination li {
    margin: 0 3px;
    transition: transform 0.15s, box-shadow 0.15s;
}

/* 正常链接 */
.pagination li a {
    display: block;
    color: var(--primary-color);
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 0.3rem;
    padding: 0.5rem 1rem;
    min-width: 2.2rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

/* 鼠标悬停状态 */
.pagination li a:hover,
.pagination li a:focus {
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(217,83,79,0.08);
    text-decoration: none;
}

/* 当前页 */
.pagination li.active span {
    display: block;
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 0.3rem;
    padding: 0.5rem 1rem;
    min-width: 2.2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(217,83,79,0.12);
    font-weight: 600;
}

/* 禁用状态 */
.pagination li.disabled span {
    display: block;
    color: var(--medium-gray);
    background: #f5f5f5;
    border: 1px solid var(--medium-gray);
    border-radius: 0.3rem;
    padding: 0.5rem 1rem;
    min-width: 2.2rem;
    text-align: center;
    cursor: not-allowed;
}

/* 移动端适配 */
@media (max-width: 767.98px) {
    .pagination {
        font-size: 0.95rem;
    }
    .pagination li a,
    .pagination li.active span,
    .pagination li.disabled span {
        padding: 0.4rem 0.7rem;
        min-width: 1.8rem;
    }
}

/* 按钮 */
.btn {
    border-radius: 50rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 页脚 */
.footer {
    background-color: #343a40;
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    margin-right: 1.25rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: white;
    transform: translateY(-3px);
}

.copyright {
    background-color: #292b2c;
    color: rgba(255,255,255,0.6);
    padding: 1.25rem 0;
    font-size: 0.9rem;
    text-align: center;
}

/* 详情页样式 */
.detail-image {
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.col-12{
    margin-bottom: 1.5rem;
}
.col-lg-5.mb-4{
    margin-bottom: 0 !important;
}
.detail-table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.detail-table th {
    width: 130px;
    background-color: var(--secondary-color);
    font-weight: 500;
    vertical-align: middle;
}

.detail-table td {
    vertical-align: middle;
}

/* 图集 */
.gallery-item {
    margin-bottom: 1.5rem;
}

.gallery-item img {
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
    box-shadow: var(--box-shadow);
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: var(--hover-shadow);
}

/* 评论 */
.review-item {
    border-bottom: 1px solid var(--light-gray);
    padding: 1.75rem 0;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
    font-size: 1.05rem;
}

.review-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.review-rating {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
}

.review-content {
    margin-bottom: 1rem;
    background-color: var(--white);
    /* padding: 1rem; */
    border-radius: var(--border-radius);
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.review-image-small {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 0.5rem;
    display: block;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.review-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-image-small:hover {
    transform: scale(1.1);
}

/* 评价详情页样式 */
.review-detail {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.review-actions {
    margin-top: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 星级评分 */
.rating-display {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1;
    /* margin-right: 0.5rem; */
}

.rating-display .fas.fa-star, 
.rating-display .far.fa-star, 
.rating-display .fas.fa-star-half-alt {
    margin-right: 2px;
}
.d-flex.justify-content-between.mb-2 span:first-child{
    width: 30%;
    display:inline-block;
}
.fab, .far, .fas, .fa-star,.fa-star:before{
    font-size: 1rem;
}

/* 品牌卡片 */
.brand-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    height: 100%;
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.brand-img {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: var(--secondary-color);
}

.brand-info {
    padding: 1.25rem;
    text-align: center;
}

.brand-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* 资讯卡片 */
.news-card .card-img-top {
    height: 200px;
}

.news-content {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    max-height: 6rem; /* 增加显示行数 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 从3行增加到4行 */
    -webkit-box-orient: vertical;
}

/* 资讯详情内容 - 没有高度限制 */
.news-detail-content {
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 1.2rem;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.news-detail-content ul, 
.news-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-detail-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 0.5rem 1rem;
    margin: 1.5rem 0;
    background-color: var(--secondary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--dark-gray);
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--dark-gray);
}

.breadcrumb-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* 警告框 */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    padding: 1.25rem;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 列表组样式修复 */
.card .list-group-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.card .list-group-item a:hover {
    color: var(--primary-color);
}

.card .list-group-item a h6 {
    font-weight: 600;
    line-height: 1.4;
}

.card .list-group-item.bg-light {
    background-color: rgba(0,0,0,0.03) !important;
}

/* 侧边栏卡片高度修复 */
.sidebar-card {
    height: auto !important;
}

.sidebar-card:hover {
    transform: none !important;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background-color: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
    
    .search-form {
        margin-top: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .detail-image {
        max-height: 300px;
    }
    
    .detail-table th {
        width: 120px;
        font-size: 0.95rem;
    }
    
    .detail-table td {
        font-size: 0.95rem;
    }
    
    .review-item {
        padding: 1.5rem 0;
    }
    
    .footer {
        padding: 3rem 0 2rem;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .detail-image {
        max-height: 250px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.5rem;
    }
    
    .review-date {
        margin-top: 0.3rem;
    }
    .review-rating{
        padding: 0.45rem 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .cigarette-profile p, .review-content p{
        margin-bottom: 0.5rem;
    }
    
    .review-rating .d-flex {
        flex-wrap: wrap;
        row-gap: 0;
    }
    small.text-muted{
        width: 30%;
        display:inline-block;
    }
    .review-rating .mr-3 {
        margin-right: 0 !important;
        width: 100%;
        margin-bottom: 0 !important;
    }
    .review-rating .d-flex{
        row-gap: 0 !important;
    }
    
    .brand-img {
        height: 120px;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* 评论和正文内容样式 */
.cigarette-profile, .review-content {
    line-height: 1.8;
    font-size: 1rem;
}

.cigarette-profile p, .review-content p {
    margin-bottom: 1rem;
}

.cigarette-profile img, .review-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.cigarette-profile ul, .cigarette-profile ol,
.review-content ul, .review-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.cigarette-profile table, .review-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.cigarette-profile table td, .cigarette-profile table th,
.review-content table td, .review-content table th {
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
}

.cigarette-profile table th, .review-content table th {
    background-color: var(--secondary-color);
    font-weight: 600;
}

/* 修复评价显示问题 */
.review-rating .d-flex {
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

.review-image {
    display: block;
    height: 150px;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.review-image:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-image:hover img {
    transform: scale(1.05);
}
/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}

/* 懒加载图片 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* 香烟详情页样式 */
.cigarette-detail-container {
    display: flex;
    flex-wrap: wrap;
}

.detail-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-preview {
    margin-top: auto;
}

.gallery-thumb {
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.1);
}

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

.basic-info p {
    margin-bottom: 0.5rem;
}

@media (max-width: 575.98px) {
    .gallery-thumb {
        height: 60px;
    }
}
