import Link from 'next/link';

export default function Contact() {
  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">
          <Link href="/" 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>
          </Link>
          <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-900 font-semibold">
              联系我们
            </Link>
          </div>
        </nav>
      </header>

      {/* Hero */}
      <section className="pt-32 pb-20 px-6 bg-gradient-to-br from-blue-50 to-purple-50">
        <div className="max-w-4xl mx-auto text-center">
          <h1 className="text-5xl font-bold mb-6">联系我们</h1>
          <p className="text-xl text-gray-600">
            我们随时为您提供帮助和支持
          </p>
        </div>
      </section>

      {/* 联系方式 */}
      <section className="py-20 px-6">
        <div className="max-w-7xl mx-auto">
          <div className="grid md:grid-cols-3 gap-8 mb-16">
            <div className="text-center p-8 rounded-2xl border border-gray-200 hover:shadow-lg transition">
              <div className="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6">
                <span className="text-3xl">📞</span>
              </div>
              <h3 className="text-xl font-bold mb-4">客服热线</h3>
              <p className="text-gray-600 mb-2">400-888-8888</p>
              <p className="text-sm text-gray-500">工作时间：9:00-21:00</p>
            </div>
            <div className="text-center p-8 rounded-2xl border border-gray-200 hover:shadow-lg transition">
              <div className="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-6">
                <span className="text-3xl">✉️</span>
              </div>
              <h3 className="text-xl font-bold mb-4">电子邮箱</h3>
              <p className="text-gray-600 mb-2">service@pinjuhui.com</p>
              <p className="text-sm text-gray-500">24小时内回复</p>
            </div>
            <div className="text-center p-8 rounded-2xl border border-gray-200 hover:shadow-lg transition">
              <div className="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6">
                <span className="text-3xl">💬</span>
              </div>
              <h3 className="text-xl font-bold mb-4">在线客服</h3>
              <p className="text-gray-600 mb-2">小程序内联系</p>
              <p className="text-sm text-gray-500">7×24小时在线</p>
            </div>
          </div>

          {/* 留言表单 */}
          <div className="max-w-2xl mx-auto">
            <div className="bg-gray-50 rounded-2xl p-8">
              <h2 className="text-2xl font-bold mb-6 text-center">在线留言</h2>
              <form className="space-y-6">
                <div>
                  <label className="block text-sm font-medium text-gray-700 mb-2">
                    姓名
                  </label>
                  <input
                    type="text"
                    className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"
                    placeholder="请输入您的姓名"
                  />
                </div>
                <div>
                  <label className="block text-sm font-medium text-gray-700 mb-2">
                    联系方式
                  </label>
                  <input
                    type="text"
                    className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"
                    placeholder="请输入手机号或邮箱"
                  />
                </div>
                <div>
                  <label className="block text-sm font-medium text-gray-700 mb-2">
                    留言内容
                  </label>
                  <textarea
                    rows={6}
                    className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"
                    placeholder="请输入您的留言内容"
                  ></textarea>
                </div>
                <button
                  type="submit"
                  className="w-full py-4 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-lg font-semibold hover:shadow-lg transition"
                >
                  提交留言
                </button>
              </form>
            </div>
          </div>
        </div>
      </section>

      {/* 公司地址 */}
      <section className="py-20 px-6 bg-gray-50">
        <div className="max-w-4xl mx-auto text-center">
          <h2 className="text-3xl font-bold mb-8">公司地址</h2>
          <div className="bg-white rounded-2xl p-8 shadow-sm">
            <p className="text-xl text-gray-800 mb-4">
              中国·北京市朝阳区建国路88号SOHO现代城
            </p>
            <p className="text-gray-600">
              邮编：100022
            </p>
          </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>
              </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>
              </ul>
            </div>
            <div>
              <h4 className="text-white font-bold mb-4">帮助中心</h4>
              <ul className="space-y-2 text-sm">
                <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>
  );
}
