<section class="page-title detail-hero case-hero">
  <div class="container">
    <div class="detail-kicker">客户案例</div>
    <h1><?php echo e($item['title'] ?? ''); ?></h1>
    <p><?php echo e($item['date'] ?? ''); ?> · <?php echo e($item['type'] ?? '项目案例'); ?></p>
  </div>
</section>

<section class="section detail-section">
  <div class="container detail-layout">
    <main class="detail-main article-pro">
      <div class="case-summary">
        <div>
          <?php if(!empty($item['image'])): ?>
          <img src="<?php echo e($item['image']); ?>" alt="<?php echo e($item['title'] ?? ''); ?>">
          <?php endif; ?>
        </div>
        <div>
          <h2>案例简介</h2>
          <p><?php echo e($item['summary'] ?? ''); ?></p>
          <div class="case-meta">
            <span>服务城市：<?php echo e($company['city'] ?? ''); ?></span>
            <span>行业类型：<?php echo e($company['industry'] ?? '企业服务'); ?></span>
          </div>
        </div>
      </div>
      <div class="article-body">
        <?php echo article_content_render($item, 'content'); ?>
      </div>
    </main>
    <aside class="detail-side">
      <div class="side-card">
        <h3>更多案例</h3>
        <?php $count=0; foreach(($items ?? array()) as $c): if(($c['id'] ?? null)==($item['id'] ?? null)) continue; if($count++>=5) break; ?>
        <a class="side-link" href="/case/<?php echo intval($c['id'] ?? 0); ?>.html">
          <span><?php echo e($c['date'] ?? ''); ?></span>
          <strong><?php echo e($c['title'] ?? ''); ?></strong>
        </a>
        <?php endforeach; ?>
      </div>
      <div class="side-card contact-mini">
        <h3>需要类似方案？</h3>
        <p>我们可以根据实际情况整理服务流程。</p>
        <a class="btn" href="/contact/">获取沟通</a>
      </div>
    </aside>
  </div>
</section>
