/* 基础样式重置 */
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f8fa;
}

/* 容器统一样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* 商品目录主体 */
.product-catalog {
    padding: 24px;
    border: 1px solid #ebeef5;
    border-radius: 10px;
    margin: 16px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.catalog-title {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 12px;
}

/* 商品表格布局 */
.product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* 商品单元格样式 */
.product-cell {
    text-align: center;
    padding: 10px;
    vertical-align: top;
}

.product-card {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 14px 12px 16px;
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

/* 书籍图片容器 */
.divbookpic {
    margin-bottom: 12px;
}

.divbookpic img {
    width: 135px;
    height: 165px;
    object-fit: cover;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

/* 书籍信息表单样式 */
.divlisttitle {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.book-name {
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.book-meta {
    margin-bottom: 4px;
}

.price {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
}

/* 隐藏输入框样式 */
.hidden-input {
    border: none;
    background: transparent;
    text-align: center;
    width: 100%;
}

/* 购买按钮 */
.buy-btn {
    background: linear-gradient(135deg, #ff8a00, #ff6a00);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(255, 106, 0, 0.35);
    opacity: 0.95;
}

