
[v-cloak] {
    display: none;
}

#app {
    min-height: 100vh;
}

.box-card {
    background: #f5f5f5;
}

.mall-container {
    display: grid;
    place-items: center;
    height: 100%;


}

.mall-box {
    width: 95%;
    height: 100%;
    display: grid;
    /*grid-template-columns: repeat(3, 1fr);*/
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px;


}


/* 商品卡片 - 使用 grid 实现左右两列 */
.box-item {
    height: auto;
    background-color: #fff;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 300px 1fr; /* 左边图片300px，右边自适应 */
    overflow: hidden;
    transition: all 0.3s ease;
}

.box-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 左侧图片区域 */
.item-image {
    height: 280px;
    padding: 20px;
    display: grid;
    place-items: center;
    background: #fafafa;
    border-right: 1px solid #f0f0f0;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 右侧信息区域 */
.item-info {
    padding: 24px;
    display: grid;
    grid-template-rows: auto 1fr auto; /* 标题 / 规格 / 底部 */
    gap: 12px;
}

.item-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* 规格参数 */
.item-specs {
    display: grid;
    gap: 8px;
    align-content: start;
}

.spec-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    font-size: 14px;
    line-height: 1.6;
}

.spec-label {
    color: #999;
}

.spec-value {
    color: #555;
}

/* 底部：积分 + 按钮 */
.item-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.points-info {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 4px;
}

.points-value {
    font-size: 28px;
    font-weight: 700;
    color: #ff6600;
}

.points-label {
    font-size: 14px;
    color: #999;
}

.exchange-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exchange-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}


.points-detail {
    margin-left: 50px;
    height: 100%;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    color: #333;
    transition: color 0.2s ease;

}


.points-detail:hover {
    color: #007bff;
    text-decoration: none;
}