"use client" import { useState, useEffect } from "react" import { Button } from "@/components/ui/button" import { BookOpen } from "lucide-react" import Link from "next/link" import { getFullBookPrice, getAllSections } from "@/lib/book-data" import { useStore } from "@/lib/store" import { AuthModal } from "./modules/auth/auth-modal" import { PaymentModal } from "./modules/payment/payment-modal" export function BookCover() { const [fullBookPrice, setFullBookPrice] = useState(9.9) const [sectionsCount, setSectionsCount] = useState(55) const [isAuthOpen, setIsAuthOpen] = useState(false) const [isPaymentOpen, setIsPaymentOpen] = useState(false) const { isLoggedIn } = useStore() useEffect(() => { const sections = getAllSections() setSectionsCount(sections.length) setFullBookPrice(getFullBookPrice(sections.length)) }, []) return (
{/* Background decorative lines - simplified */}
{/* Content - more compact for mobile */}
{/* Soul badge */}
Soul · 派对房
{/* Main title - smaller on mobile */}

一场SOUL的
创业实验场

{/* Subtitle */}

来自Soul派对房的真实商业故事

{/* Quote - smaller */}

"社会不是靠努力,是靠洞察与选择"

{/* Price info - compact card */}

¥{fullBookPrice.toFixed(1)}

整本价格

{sectionsCount}

商业案例

{/* Author info - compact */}

作者

卡若

每日直播

06:00-09:00

{/* CTA Button */}

首章免费 · 部分章节3天后解锁

{/* Modals */} setIsAuthOpen(false)} /> setIsPaymentOpen(false)} type="fullbook" amount={fullBookPrice} onSuccess={() => window.location.reload()} />
) }