.container-box{
    background:#fff;
    padding:40px 20px;
}

/* 标题 */
.page-title{
    font-size:28px;
    color:#b33;
    border-bottom:1px solid #e5d6c8;
    padding-bottom:10px;
    margin-bottom:30px;
}

.thumbs{
    padding: 0 10px;
}
.thumbs img{
    width:70px;
    border:1px solid #ddd;
    margin-right:8px;
    cursor:pointer;
    max-width: 66px;
    max-height: 66px;
}
.product-img {
    border: 1px solid #eee;
    background: #fafafa;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    width: 100%;
    max-width: 500px;

    aspect-ratio: 1 / 1;

    margin: 0 auto;

    border-radius: 8px;
}

/* 图片 */
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    display: block;
}

/* 平板 */
@media (max-width: 768px) {

    .product-img {
        max-width: 100%;
        border-radius: 6px;
    }

}

/* 手机 */
@media (max-width: 480px) {

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

}

/* 价格 */
.price-old{
    text-decoration:line-through;
    color:#999;
    margin-right:10px;
}

.price-new{
    color:#c00;
    font-size:20px;
    font-weight:bold;
}

/* 数量 */
.qty-box{
    display:flex;
    align-items:center;
    gap:10px;
    margin:15px 0;
}

.qty-btn{
    width:30px;
    height:30px;
    border:1px solid #ccc;
    background:#fff;
    cursor:pointer;
}

.qty-input{
    width:60px;
    text-align:center;
    border:1px solid #ccc;
    height:30px;
}

/* 分类标签 */
.tag{
    background:#b33;
    color:#fff;
    padding:5px 10px;
    margin-right:8px;
    display:inline-block;
    font-size:12px;
}

/* 描述 */
.desc{
    background:#efe6da;
    padding:25px;
    margin-top:40px;
    line-height:1.8;
}

/* 其他商品 */
.other-title{
    font-size:22px;
    margin:40px 0 20px;
    color:#b33;
}

/* ===== 產品列表容器 ===== */
.magazine-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

/* ===== 每個產品項 ===== */
.magazine-list .item {
    align-content: flex-start;
    background-color: #fff;
    border: 6px solid transparent;
    border-radius: 20px;
    color: #1f1f1f;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    height: auto;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: border .2s, box-shadow .3s;
    z-index: 1;
}

.magazine-list .item a {
    display: block;
    text-decoration: none;
    color: #333;
    background: #fff;
    overflow: hidden;
    width: 100%;
    padding: 0 10px;
    min-width: 150px;
}

.magazine-list .item img:hover {
    transform: translateY(-4px);
}

/* ===== 圖片容器：固定高度，保證統一 ===== */
.magazine-list .cover {
    position: relative;
    width: 100%;
    height: 368px; /* 固定高度，可根據需要調整 */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-radius: 8px;
}
.magazine-list .cover:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.magazine-list .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.magazine-list .item a:hover .cover img {
    transform: scale(1.03);
}

/* ===== 文字信息 ===== */
.magazine-list .info {
    width: 100%;
    padding: 0 14px 14px;
}

.magazine-list .title {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    line-height: 21px;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ===== 響應式 ===== */
@media (max-width: 992px) {
    .magazine-list .item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        margin-bottom: 1.2rem;
    }
    .magazine-list .cover {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .magazine-list .item {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.1rem;
    }
    .magazine-list .cover {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .magazine-list .item {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px 16px;
        margin-bottom: 1.0rem;
    }
    .magazine-list .cover {
        height: 180px;
    }
    .magazine-list .title {
        font-size: 13px;
    }
}

/* 基础布局：PC 端两端对齐，垂直居中 */
.meta-action-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* 价格样式 */
.magazine-list .info .price {
    text-align: center;
    color: #c44747; /* 醒目的红色/橙色 */
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap; /* 防止价格换行 */
}

/* 购物车按钮基础样式 */
.add-to-cart-btn,.buy-ebook-btn {
    background-color: #c44747;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.add-to-cart-btn:hover,.buy-ebook-btn:hover {
    background-color: #e04c1b;
}
@media(max-width:768px){
    .container-box{
        padding:20px 10px;
    }
    .icon-circle {
        width: 26px;
        height: 26px;
        border: 1px solid #d6b36a;
        font-size: 14px;
    }
}
.product-title {
    flex: 1;
    margin-right: 12px;
}
.btn-mag {
    background: #8b5a2b;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 30px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.btn-mag:hover {
    background: #6b4420;
    transform: translateY(-2px);
}
