<?php
/**
 * 芋头CMS
 * ============================================================================
 * 版权所有 2016-2028 沅陵县乌托邦网络服务有限公司，并保留所有权利。
 * 网站地址: http://www.yutoucms.cn
 * ----------------------------------------------------------------------------
 * 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷。
 * ============================================================================
 * Author: 芋头 <mxgsf@qq.com>
 * Date: 2026-5-30
 */
if (!defined('ROOT_PATH')) { exit('Access Denied'); }
$detailChannelName = htmlspecialchars($detailChannelName ?? '内容详情');
$detailTitle = htmlspecialchars($detailTitle ?? '');
$detailBreadcrumb = htmlspecialchars($detailBreadcrumb ?? '详情');
$detailDate = !empty($detailDateRaw) ? date('Y-m-d', intval($detailDateRaw)) : '';
$detailAuthor = htmlspecialchars($detailAuthorRaw ?? '');
$detailHits = isset($detailHitsRaw) ? intval($detailHitsRaw) : 0;
$detailSummary = trim(strip_tags($detailSummaryRaw ?? ''));
?>
<div class="bannern c" style="background:url(<?php echo $site['template_dir']; ?>static/upload/image/20220801/1659354277651388.jpg) no-repeat center;"></div>
<div class="n_cont c">
  <div class="jz c">
    <div class="ny_nav" id="my_sticky">
      <div class="wjssbt c"><?php echo $detailChannelName; ?></div>
      <ul class="wjsndh c"></ul>
      <div class="search_l">
        <form method="get" action="<?php echo getUrl('search'); ?>">
          <input type="hidden" name="m" value="search">
          <input type="text" class="ip" name="keyword" placeholder="请输入关键字">
          <input type="submit" class="btn" value="搜索">
        </form>
      </div>
    </div>
    <div class="ny_zqw ny_zqw_chb detail-page-wrap">
      <div class="nw_top detail-hero">
        <div class="detail-hero-main">
          <h1 class="detail-title"><?php echo $detailTitle; ?></h1>
          <div class="detail-meta">
            <?php if ($detailDate): ?><span>发布时间：<?php echo $detailDate; ?></span><?php endif; ?>
            <?php if ($detailAuthor): ?><span>作者：<?php echo $detailAuthor; ?></span><?php endif; ?>
            <?php if ($detailHits > 0): ?><span>浏览量：<?php echo $detailHits; ?></span><?php endif; ?>
          </div>
          <?php if ($detailSummary !== ''): ?>
          <div class="detail-summary"><?php echo htmlspecialchars($detailSummary); ?></div>
          <?php endif; ?>
        </div>
        <div class="detail-breadcrumb am-icon-home">您的位置： <a href="<?php echo getUrl('home'); ?>">首页</a> >> <a href="javascript:history.back();"><?php echo $detailBreadcrumb; ?></a></div>
      </div>
      <div class="h20"></div>
      <div class="bjbld detail-content-card">
