
import React from 'react';
import { useNavigate } from 'react-router-dom';

const HeroBanner: React.FC = () => {
  const navigate = useNavigate();

  return (
    <div className="relative w-full h-64 rounded-2xl overflow-hidden mb-8 group">
      {/* Background Graphic Simulation */}
      <div className="absolute inset-0 bg-gradient-to-r from-gray-800 to-blue-900 flex items-center justify-center overflow-hidden">
        <div className="absolute inset-0 opacity-40">
           <div className="w-full h-full bg-[url('https://www.transparenttextures.com/patterns/cubes.png')] bg-repeat"></div>
        </div>
        <div className="w-full h-full bg-gradient-to-br from-blue-600/30 to-purple-600/30 mix-blend-overlay"></div>
        <div className="absolute right-12 top-1/2 -translate-y-1/2 w-96 h-48 bg-blue-500/20 rounded-xl border border-blue-400/30 transform rotate-12 flex items-center justify-center shadow-2xl backdrop-blur-sm">
           <div className="text-white text-6xl font-bold tracking-widest opacity-20">API GATEWAY</div>
        </div>
      </div>

      <div className="relative z-10 h-full flex flex-col justify-center px-12 text-white">
        <h1 className="text-4xl font-bold mb-3 tracking-tight">AI 模型开放平台</h1>
        <p className="text-lg opacity-90 max-w-xl font-light mb-8">
          提供 OpenAI 兼容的统一 API 接口，支持多种大模型一站式调用
        </p>
        <button
          onClick={() => navigate('/models')}
          className="w-fit px-8 py-2.5 bg-blue-600 hover:bg-blue-700 text-white rounded-lg font-medium transition-all shadow-lg hover:shadow-blue-500/30 active:scale-95"
        >
          进入模型广场
        </button>
      </div>
    </div>
  );
};

export default HeroBanner;
