import Link from 'next/link';
import Image from 'next/image';

export default function Home() {
  return (
    <div className="min-h-screen bg-white">
      {/* 导航栏 */}
      <header className="fixed top-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-sm border-b border-gray-100">
        <nav className="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between">
          <div className="flex items-center gap-2">
            <div className="w-10 h-10 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
              <span className="text-white font-bold text-xl">品</span>
            </div>
            <span className="text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">
              品居会
            </span>
          </div>
          <div className="hidden md:flex items-center gap-8">
            <Link href="/#features" className="text-gray-600 hover:text-gray-900 transition">
              产品特色
            </Link>
            <Link href="/#services" className="text-gray-600 hover:text-gray-900 transition">
              服务优势
            </Link>
            <Link href="/about" className="text-gray-600 hover:text-gray-900 transition">
              关于我们
            </Link>
            <Link href="/contact" className="text-gray-600 hover:text-gray-900 transition">
              联系我们
            </Link>
          </div>
          <div className="flex items-center gap-4">
            <button className="px-6 py-2 text-gray-600 hover:text-gray-900 transition">
              登录
            </button>
            <button className="px-6 py-2 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-full hover:shadow-lg transition">
              立即体验
            </button>
          </div>
        </nav>
      </header>

      {/* Hero Section */}
      <section className="pt-32 pb-20 px-6">
        <div className="max-w-7xl mx-auto">
          <div className="grid md:grid-cols-2 gap-12 items-center">
            <div>
              <h1 className="text-5xl md:text-6xl font-bold leading-tight mb-6">
                <span className="bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">
                  品质住宿
                </span>
                <br />
                <span className="text-gray-900">温馨服务</span>
              </h1>
              <p className="text-xl text-gray-600 mb-8 leading-relaxed">
                集酒店、民宿、短租、青旅预订于一体的综合性平台
                <br />
                为您提供舒适便捷的住宿体验
              </p>
              <div className="flex gap-4">
                <button className="px-8 py-4 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-full text-lg font-semibold hover:shadow-xl transition">
                  下载小程序
                </button>
                <button className="px-8 py-4 border-2 border-gray-300 text-gray-700 rounded-full text-lg font-semibold hover:border-gray-400 transition">
                  了解更多
                </button>
              </div>
            </div>
            <div className="relative h-[500px] rounded-2xl overflow-hidden shadow-2xl">
              <div className="absolute inset-0 bg-gradient-to-br from-blue-500/20 to-purple-600/20"></div>
              <div className="absolute inset-0 flex items-center justify-center">
                <div className="text-center">
                  <div className="w-32 h-32 bg-white rounded-3xl shadow-xl flex items-center justify-center mb-4 mx-auto">
                    <span className="text-6xl">🏨</span>
                  </div>
                  <p className="text-gray-600 text-lg">精选优质房源</p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>

      {/* 数据统计 */}
      <section className="py-16 bg-gradient-to-r from-blue-600 to-purple-600">
        <div className="max-w-7xl mx-auto px-6">
          <div className="grid grid-cols-2 md:grid-cols-4 gap-8 text-center text-white">
            <div>
              <div className="text-4xl font-bold mb-2">10万+</div>
              <div className="text-blue-100">优质房源</div>
            </div>
            <div>
              <div className="text-4xl font-bold mb-2">50万+</div>
              <div className="text-blue-100">注册用户</div>
            </div>
            <div>
              <div className="text-4xl font-bold mb-2">100万+</div>
              <div className="text-blue-100">订单量</div>
            </div>
            <div>
              <div className="text-4xl font-bold mb-2">98%</div>
              <div className="text-blue-100">好评率</div>
            </div>
          </div>
        </div>
      </section>

      {/* 产品特色 */}
      <section id="features" className="py-20 px-6">
        <div className="max-w-7xl mx-auto">
          <div className="text-center mb-16">
            <h2 className="text-4xl font-bold mb-4">产品特色</h2>
            <p className="text-xl text-gray-600">为您提供全方位的住宿预订服务</p>
          </div>
          <div className="grid md:grid-cols-3 gap-8">
            <div className="p-8 rounded-2xl border border-gray-200 hover:shadow-xl transition">
              <div className="w-16 h-16 bg-blue-100 rounded-2xl flex items-center justify-center mb-6">
                <span className="text-3xl">🔍</span>
              </div>
              <h3 className="text-2xl font-bold mb-4">智能搜索</h3>
              <p className="text-gray-600 leading-relaxed">
                支持目的地模糊搜索、地图选点、多维筛选，快速找到心仪房源
              </p>
            </div>
            <div className="p-8 rounded-2xl border border-gray-200 hover:shadow-xl transition">
              <div className="w-16 h-16 bg-purple-100 rounded-2xl flex items-center justify-center mb-6">
                <span className="text-3xl">💰</span>
              </div>
              <h3 className="text-2xl font-bold mb-4">优惠多多</h3>
              <p className="text-gray-600 leading-relaxed">
                新人专享、限时秒杀、优惠券、会员特权，让您享受更多实惠
              </p>
            </div>
            <div className="p-8 rounded-2xl border border-gray-200 hover:shadow-xl transition">
              <div className="w-16 h-16 bg-green-100 rounded-2xl flex items-center justify-center mb-6">
                <span className="text-3xl">🛡️</span>
              </div>
              <h3 className="text-2xl font-bold mb-4">安全保障</h3>
              <p className="text-gray-600 leading-relaxed">
                实名认证、订单保护、退款保障，让您的每一次预订都安心无忧
              </p>
            </div>
          </div>
        </div>
      </section>

      {/* 服务优势 */}
      <section id="services" className="py-20 px-6 bg-gray-50">
        <div className="max-w-7xl mx-auto">
          <div className="text-center mb-16">
            <h2 className="text-4xl font-bold mb-4">服务优势</h2>
            <p className="text-xl text-gray-600">专业团队，贴心服务</p>
          </div>
          <div className="grid md:grid-cols-2 gap-12 items-center">
            <div className="space-y-6">
              <div className="flex gap-4">
                <div className="w-12 h-12 bg-blue-600 rounded-full flex items-center justify-center flex-shrink-0">
                  <span className="text-white text-xl">✓</span>
                </div>
                <div>
                  <h3 className="text-xl font-bold mb-2">7×24小时客服</h3>
                  <p className="text-gray-600">全天候在线客服，随时解答您的疑问</p>
                </div>
              </div>
              <div className="flex gap-4">
                <div className="w-12 h-12 bg-purple-600 rounded-full flex items-center justify-center flex-shrink-0">
                  <span className="text-white text-xl">✓</span>
                </div>
                <div>
                  <h3 className="text-xl font-bold mb-2">快速响应</h3>
                  <p className="text-gray-600">订单确认快，问题处理及时</p>
                </div>
              </div>
              <div className="flex gap-4">
                <div className="w-12 h-12 bg-green-600 rounded-full flex items-center justify-center flex-shrink-0">
                  <span className="text-white text-xl">✓</span>
                </div>
                <div>
                  <h3 className="text-xl font-bold mb-2">灵活退改</h3>
                  <p className="text-gray-600">支持多种退改政策，满足不同需求</p>
                </div>
              </div>
              <div className="flex gap-4">
                <div className="w-12 h-12 bg-orange-600 rounded-full flex items-center justify-center flex-shrink-0">
                  <span className="text-white text-xl">✓</span>
                </div>
                <div>
                  <h3 className="text-xl font-bold mb-2">品质保证</h3>
                  <p className="text-gray-600">严格审核房源，确保住宿品质</p>
                </div>
              </div>
            </div>
            <div className="relative h-[400px] rounded-2xl overflow-hidden shadow-xl">
              <div className="absolute inset-0 bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center">
                <div className="text-center text-white">
                  <div className="text-6xl mb-4">🏆</div>
                  <div className="text-2xl font-bold">专业服务团队</div>
                  <div className="text-blue-100 mt-2">为您提供优质体验</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>

      {/* CTA Section */}
      <section className="py-20 px-6">
        <div className="max-w-4xl mx-auto text-center">
          <h2 className="text-4xl font-bold mb-6">立即开启您的品质住宿之旅</h2>
          <p className="text-xl text-gray-600 mb-8">
            下载品居会小程序，享受更多优惠和便捷服务
          </p>
          <div className="flex justify-center gap-4">
            <button className="px-8 py-4 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-full text-lg font-semibold hover:shadow-xl transition">
              扫码下载
            </button>
          </div>
        </div>
      </section>

      {/* Footer */}
      <footer className="bg-gray-900 text-gray-300 py-12 px-6">
        <div className="max-w-7xl mx-auto">
          <div className="grid md:grid-cols-4 gap-8 mb-8">
            <div>
              <div className="flex items-center gap-2 mb-4">
                <div className="w-8 h-8 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
                  <span className="text-white font-bold">品</span>
                </div>
                <span className="text-xl font-bold text-white">品居会</span>
              </div>
              <p className="text-sm">品质住宿，温馨服务</p>
            </div>
            <div>
              <h4 className="text-white font-bold mb-4">产品服务</h4>
              <ul className="space-y-2 text-sm">
                <li><Link href="/#features" className="hover:text-white transition">产品特色</Link></li>
                <li><Link href="/#services" className="hover:text-white transition">服务优势</Link></li>
                <li><Link href="/download" className="hover:text-white transition">下载应用</Link></li>
              </ul>
            </div>
            <div>
              <h4 className="text-white font-bold mb-4">关于我们</h4>
              <ul className="space-y-2 text-sm">
                <li><Link href="/about" className="hover:text-white transition">公司介绍</Link></li>
                <li><Link href="/contact" className="hover:text-white transition">联系我们</Link></li>
                <li><Link href="/join" className="hover:text-white transition">加入我们</Link></li>
              </ul>
            </div>
            <div>
              <h4 className="text-white font-bold mb-4">帮助中心</h4>
              <ul className="space-y-2 text-sm">
                <li><Link href="/help" className="hover:text-white transition">常见问题</Link></li>
                <li><Link href="/privacy" className="hover:text-white transition">隐私政策</Link></li>
                <li><Link href="/terms" className="hover:text-white transition">用户协议</Link></li>
              </ul>
            </div>
          </div>
          <div className="border-t border-gray-800 pt-8 text-center text-sm">
            <p>&copy; 2026 品居会. All rights reserved.</p>
          </div>
        </div>
      </footer>
    </div>
  );
}
