<section class="page-title detail-hero faq-hero">
  <div class="container">
    <div class="detail-kicker">常见问题</div>
    <h1><?php echo e($item['question'] ?? ($item['title'] ?? '')); ?></h1>
    <p>围绕客户常见咨询整理说明</p>
  </div>
</section>

<section class="section detail-section">
  <div class="container detail-layout">
    <main class="detail-main article-pro">
      <div class="faq-answer-card">
        <h2>问题解答</h2>
        <div class="article-body">
          <?php echo article_content_render($item, isset($item['answer']) ? 'answer' : 'content'); ?>
        </div>
      </div>
    </main>
    <aside class="detail-side">
      <div class="side-card">
        <h3>相关问题</h3>
        <?php $count=0; foreach(($items ?? array()) as $f): if(($f['id'] ?? null)==($item['id'] ?? null)) continue; if($count++>=6) break; ?>
        <a class="side-link" href="/faq/<?php echo intval($f['id'] ?? 0); ?>.html">
          <strong><?php echo e($f['question'] ?? ($f['title'] ?? '')); ?></strong>
        </a>
        <?php endforeach; ?>
      </div>
      <div class="side-card contact-mini">
        <h3>还有疑问？</h3>
        <p>可通过联系方式进一步沟通。</p>
        <p>电话：<?php echo e($company['phone'] ?? ''); ?></p>
      </div>
    </aside>
  </div>
</section>
