<?php $page_class = 'page-product-detail'; include dirname(__DIR__) . '/_header.php'; ?>
<section class="banner-simple"><div class="container"><h1><?php echo htmlspecialchars(tplv($tplCurrent, 'title', '产品详情')); ?></h1></div></section>
<section class="section-block"><div class="container split-layout"><div><div class="detail-hero"><?php echo getLitpicHtml(tplv($tplCurrent, 'litpic'), tplv($tplCurrent, 'title')); ?></div><div class="prose-block"><?php echo tplv($tplCurrent, 'content'); ?></div></div><aside class="meta-card"><h3>产品参数</h3><p>编号：<?php echo htmlspecialchars(tplv($tplCurrent, 'product_code')); ?></p><p>价格：¥<?php echo number_format((float) tplv($tplCurrent, 'price', 0), 2); ?></p><p>库存：<?php echo intval(tplv($tplCurrent, 'stock', 0)); ?></p><a class="btn btn-primary" href="/public/order/cart.php">加入购物车</a></aside></div></section>
<?php include dirname(__DIR__) . '/_footer.php'; ?>
