export default function ModelsPage() {
  const modules = [
    { href: '/ml-edge', label: 'ML Ensemble 預測', desc: '自建模型 + ML Edge 比較，與莊家隱含機率對齊' },
    { href: '/match-conditions', label: '裁判/氣候影響模型', desc: '裁判嚴厲度、熱指數、海拔對 2H 下半場模型修正' },
    { href: '/rlm', label: 'RLM 反向盤口', desc: '票數/資金偏移與賠率異常走勢即時警示' },
    { href: '/proof-of-yield', label: 'Proof of Yield', desc: '交易明細公開帳本，量化 CLV 與資金曲線' },
    { href: '/props', label: '球員道具盤', desc: 'Player Props、雷達圖、Top Edge 提示' },
    { href: '/kelly', label: '凱利準則', desc: 'Kelly Fraction 與下注額建議' },
    { href: '/backtesting', label: '策略回測', desc: '動態條件、ROI 與 Equity Curve' },
    { href: '/deep-bet', label: '一鍵投注導向', desc: 'Deep Linking 進階下注導流' },
  ];

  return (
    <div className="space-y-4">
      <h2 className="dot-matrix text-2xl text-[#7d2a15]">量化模型模組整合</h2>

      <section className="panel-glow rounded-2xl p-5">
        <p className="text-sm text-[#7a5b46]">整合階段 1~14 的核心模型模組，涵蓋「賽前機率推估」「投注價值偵測」「下注控管」與「執行效率」。</p>
        <div className="mt-4 grid gap-3 md:grid-cols-2">
          {modules.map((module) => (
            <article key={module.href} className="rounded-xl border border-[#dbbea0] bg-white/70 p-4">
              <h3 className="text-lg font-semibold text-[#7e3b1c]">{module.label}</h3>
              <p className="mt-1 text-sm text-[#7a5b46]">{module.desc}</p>
              <p className="mt-2 text-xs text-[#9b5d3d]">路徑：{module.href}</p>
            </article>
          ))}
        </div>
      </section>

      <section className="grid gap-4 md:grid-cols-3">
        <article className="panel-glow rounded-2xl p-4">
          <h3 className="text-lg font-semibold text-[#7e3b1c]">泊松模型</h3>
          <p className="mt-2 text-sm text-[#7a5b46]">根據進攻/防守強度計算主客隊 λ，推導大小球與波膽機率。</p>
        </article>
        <article className="panel-glow rounded-2xl p-4">
          <h3 className="text-lg font-semibold text-[#7e3b1c]">蒙地卡羅模擬</h3>
          <p className="mt-2 text-sm text-[#7a5b46]">高保真隨機模擬賽前轉換、進球分布與讓球結果，不只給結果，也給穩健性區間。</p>
        </article>
        <article className="panel-glow rounded-2xl p-4">
          <h3 className="text-lg font-semibold text-[#7e3b1c]">EV 檢測</h3>
          <p className="mt-2 text-sm text-[#7a5b46]">計算理論機率與市場賠率差，輸出高價值投注候選與偏離警訊。</p>
        </article>
      </section>
    </div>
  );
}
