Skip to content

PRINTFILM: AI short-video marketing and AI short-drama creation platform

feat(ui): 优化充值页状态与移动端布局

yi458e9b84e80b
diff --git a/frontend/src/App.css b/frontend/src/App.css
index 491f679..6dd4e5f 100644
--- a/frontend/src/App.css
+++ b/frontend/src/App.css
@@ -117,3 +117,8 @@
animation: none !important;
}
}
+
+/* 登录页独立于应用壳,同样避免触屏输入触发浏览器缩放。 */
+@media (hover: none) and (pointer: coarse) {
+ .auth-shell input, .auth-shell textarea, .auth-shell select { font-size: max(1em, 16px); }
+}
diff --git a/frontend/src/components/billing/PricingWalletCard.tsx b/frontend/src/components/billing/PricingWalletCard.tsx
index 4dbb734..2aae1e4 100644
--- a/frontend/src/components/billing/PricingWalletCard.tsx
+++ b/frontend/src/components/billing/PricingWalletCard.tsx
@@ -1,15 +1,21 @@
-import { Eye, EyeOff } from 'lucide-react'
+import { ArrowUpRight, Eye, EyeOff, RefreshCw, WalletCards } from 'lucide-react'
import { useState } from 'react'
+import { Link } from 'react-router-dom'
import type { UsageSummary, Wallet } from '../../api'
+import { useI18n } from '../../i18n'
type Props = {
wallet: Wallet | null
usage: UsageSummary | null
loggedIn: boolean
updatedAt: Date | null
+ loading: boolean
+ error: boolean
+ onRetry: () => void
onHistory: () => void
}
+// 账户更新时间使用浏览器本地时区。
function formatUpdated(d: Date | null) {
if (!d) return '—'
const pad = (n: number) => String(n).padStart(2, '0')
@@ -17,22 +23,26 @@ function formatUpdated(d: Date | null) {
}
/** 定价页深色余额卡片:余额、本月消耗、冻结、充值记录 */
-export default function PricingWalletCard({ wallet, usage, loggedIn, updatedAt, onHistory }: Props) {
+export default function PricingWalletCard({ wallet, usage, loggedIn, updatedAt, loading, error, onRetry, onHistory }: Props) {
+ /* 余额隐私开关与服务端返回的余额、冻结和本次消耗;尚未取得数据时不展示虚假的零余额。 */
+ const { t } = useI18n()
const [balanceVisible, setBalanceVisible] = useState(true)
-
+ const hasBalance = loggedIn && Boolean(wallet || usage)
const balanceYuan = wallet?.balance_yuan ?? usage?.balance_yuan ?? 0
const frozenYuan = wallet?.frozen_yuan ?? usage?.frozen_yuan ?? 0
const monthCharge = usage?.charge_yuan ?? 0
return (
- <aside className="pf-pricing-wallet-dark">
+ <aside className="pf-pricing-wallet-dark" aria-label={t('pricing.walletBalance')} aria-busy={loading}>
<div className="pf-pricing-wallet-dark-head">
- <span className="pf-pricing-wallet-dark-label">可用余额</span>
+ <span className="pf-pricing-wallet-dark-label"><WalletCards size={17} aria-hidden />{t('pricing.walletBalance')}</span>
<div className="pf-pricing-wallet-dark-actions">
<button
type="button"
className="pf-pricing-wallet-eye"
- aria-label={balanceVisible ? '隐藏余额' : '显示余额'}
+ aria-label={balanceVisible ? t('pricing.hideBalance') : t('pricing.showBalance')}
+ aria-pressed={!balanceVisible}
+ disabled={!hasBalance}
onClick={() => setBalanceVisible((v) => !v)}
>
{balanceVisible ? <Eye size={16} /> : <EyeOff size={16} />}
@@ -41,30 +51,34 @@ export default function PricingWalletCard({ wallet, usage, loggedIn, updatedAt,
type="button"
className="pf-pricing-wallet-history"
disabled={!loggedIn}
- title={loggedIn ? '查看充值记录' : '请先登录'}
+ title={loggedIn ? t('pricing.history') : t('pricing.loginFirst')}
onClick={onHistory}
>
- 充值记录
+ {t('pricing.history')}<ArrowUpRight size={13} aria-hidden />
</button>
</div>
</div>
- <strong className="pf-pricing-wallet-dark-balance">
- {balanceVisible ? `¥${balanceYuan.toFixed(2)}` : '¥ ****'}
+ <strong className={`pf-pricing-wallet-dark-balance${loading && !hasBalance ? ' is-loading' : ''}`} aria-label={loading && !hasBalance ? t('pricing.loadingWallet') : undefined}>
+ {hasBalance ? (balanceVisible ? <><span>¥</span>{balanceYuan.toFixed(2)}</> : '¥ ****') : '—'}
</strong>
<dl className="pf-pricing-wallet-dark-meta">
<div>
- <dt>本次消耗</dt>
- <dd>{loggedIn ? `¥${monthCharge.toFixed(2)}` : '—'}</dd>
+ <dt>{t('pricing.monthCharge')}</dt>
+ <dd>{loggedIn && usage ? (balanceVisible ? `¥${monthCharge.toFixed(2)}` : '¥ ****') : '—'}</dd>
</div>
<div>
- <dt>冻结金额</dt>
- <dd>{loggedIn ? `¥${frozenYuan.toFixed(2)}` : '—'}</dd>
+ <dt>{t('pricing.frozenLabel')}</dt>
+ <dd>{hasBalance ? (balanceVisible ? `¥${frozenYuan.toFixed(2)}` : '¥ ****') : '—'}</dd>
</div>
</dl>
- <p className="pf-pricing-wallet-dark-updated">更新于 {formatUpdated(updatedAt)}</p>
+ {!loggedIn ? (
+ <Link className="pf-pricing-wallet-login" to="/auth?next=%2Fpricing">{t('pricing.walletLogin')}<ArrowUpRight size={14} aria-hidden /></Link>
+ ) : error ? (
+ <p className="pf-pricing-wallet-error" role="status">{t('pricing.walletFailed')}<button type="button" onClick={onRetry} aria-label={t('pricing.retry')}><RefreshCw size={13} aria-hidden />{t('pricing.retry')}</button></p>
+ ) : <p className="pf-pricing-wallet-dark-updated"><span className={loading ? 'is-loading' : ''} aria-hidden />{loading && !hasBalance ? t('pricing.loadingWallet') : t('pricing.updatedAt', { time: formatUpdated(updatedAt) })}</p>}
</aside>
)
}
diff --git a/frontend/src/components/layout/topbar.css b/frontend/src/components/layout/topbar.css
index fb64921..6ae2959 100644
--- a/frontend/src/components/layout/topbar.css
+++ b/frontend/src/components/layout/topbar.css
@@ -126,6 +126,8 @@
.pf-topbar-brand .brand-logo { width: 29px; height: 29px; }
.pf-topbar-language, .pf-topbar-help { display: none; }
.pf-topbar-actions { gap: 9px; }
+ .pf-topbar-account, .pf-topbar-menu-toggle, .pf-topbar-menu-close { width: 44px; height: 44px; }
+ .pf-topbar-create { min-height: 44px; }
.pf-topbar-account-panel { position: fixed; top: calc(var(--pf-nav-h, 64px) + 8px); right: 12px; }
.pf-shell--topbar .pf-shell-main:not(.flush) { padding: 24px 18px 36px; }
.pf-shell--topbar .pf-settings { grid-template-columns: minmax(0, 1fr); }
@@ -140,17 +142,25 @@
.pf-shell--topbar .pf-land-frames { width: 100%; max-width: 300px; margin-inline: auto; }
}
+@media (max-width: 480px) {
+ .pf-topbar-create { width: 44px; height: 44px; padding: 0; }
+ .pf-topbar-create > span { display: none; }
+}
+
@media (max-width: 400px) {
.pf-app-topbar { padding-inline: 12px; }
.pf-topbar-brand .brand-mark { gap: 8px; }
.pf-topbar-brand .brand-word { font-size: 14px; }
.pf-topbar-actions { gap: 7px; }
- .pf-topbar-create { width: 34px; height: 34px; padding: 0; }
- .pf-topbar-create > span { display: none; }
.pf-topbar-menu { padding: 18px; }
.pf-topbar-menu .pf-topbar-menu-link { gap: 7px; padding: 9px 7px; font-size: 12px; }
}
+/* 触屏输入保持可读字号,避免 iOS 聚焦时自动放大并打乱页面。 */
+@media (hover: none) and (pointer: coarse) {
+ :is(.pf-shell.pf-shell--topbar, .pf-dialog-root, .modal-backdrop) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]), textarea, select) { font-size: max(1em, 16px); }
+}
+
@media (max-width: 560px) {
.pf-dialog-root .pf-create-choice { grid-template-columns: minmax(0, 1fr); }
}
diff --git a/frontend/src/features/marketplace/marketplace.css b/frontend/src/features/marketplace/marketplace.css
index e6a4703..1d6392e 100644
--- a/frontend/src/features/marketplace/marketplace.css
+++ b/frontend/src/features/marketplace/marketplace.css
@@ -209,7 +209,7 @@ body:has(.pf-market-shell) .pf-wx-fab-root { display:none; }
.pf-market-discover .pf-market-section-heading p { display:none; }
.pf-market-discover .pf-market-filter-panel { background:transparent; border:0; border-radius:0; overflow:visible; margin-bottom:26px; }
.pf-discover-categories { display:flex; gap:8px; overflow-x:auto; padding:0 0 20px; }
-.pf-market .pf-discover-categories button { white-space:nowrap; border:1px solid transparent; background:transparent; color:var(--pf-muted); padding:9px 20px; border-radius:24px; font-size:13px; cursor:pointer; }
+.pf-market .pf-discover-categories button { flex:0 0 auto; white-space:nowrap; border:1px solid transparent; background:transparent; color:var(--pf-muted); padding:9px 20px; border-radius:24px; font-size:13px; cursor:pointer; }
.pf-market .pf-discover-categories button:hover { background:var(--pf-card); color:var(--pf-ink); }
.pf-market .pf-discover-categories button[aria-pressed=true] { background:var(--pf-ink); color:var(--pf-lime); }
.pf-market-discover .pf-market-filter-top { padding:0; }
diff --git a/frontend/src/i18n/locales/en/pages.ts b/frontend/src/i18n/locales/en/pages.ts
index d2f85ff..cd3ef33 100644
--- a/frontend/src/i18n/locales/en/pages.ts
+++ b/frontend/src/i18n/locales/en/pages.ts
@@ -213,6 +213,7 @@ export const enPages = {
],
},
pricing: {
+ eyebrow: 'Creative account · Top up',
title: 'Pay as you go',
lead: 'Metered by actual token use. Credits never expire.',
featInstant: 'Credits are ready as soon as payment lands',
@@ -271,6 +272,16 @@ export const enPages = {
currentPlan: 'Plan',
frozen: 'On hold ¥{amount}',
updatedAt: 'Updated {time}',
+ frozenLabel: 'On hold',
+ walletLogin: 'Sign in to view your balance',
+ loadingWallet: 'Loading account balance…',
+ walletFailed: 'Balance could not be updated',
+ loadingSkus: 'Loading top-up options…',
+ skusFailed: 'Could not load top-up options',
+ skusFailedHint: 'Check your connection and try again.',
+ noSkus: 'No top-up options available',
+ noSkusHint: 'Please check back later or contact us for help.',
+ retry: 'Retry',
},
history: {
title: 'AI Short Video',
diff --git a/frontend/src/i18n/locales/zh/pages.ts b/frontend/src/i18n/locales/zh/pages.ts
index 9795e6f..d4c6311 100644
--- a/frontend/src/i18n/locales/zh/pages.ts
+++ b/frontend/src/i18n/locales/zh/pages.ts
@@ -206,6 +206,7 @@ export const zhPages = {
topics: ['账号与登录', '充值与到账', '创作任务异常', '下载与素材', '隐私与账号注销', '其他'],
},
pricing: {
+ eyebrow: '创作账户 · 余额充值',
title: '按需充值,灵活使用',
lead: '按实际消耗 token 计费,余量永久有效,不设过期',
featInstant: '充值即时到账,马上可用',
@@ -264,6 +265,16 @@ export const zhPages = {
currentPlan: '当前套餐',
frozen: '冻结中 ¥{amount}',
updatedAt: '更新于 {time}',
+ frozenLabel: '冻结金额',
+ walletLogin: '登录后查看账户余额',
+ loadingWallet: '正在读取账户余额…',
+ walletFailed: '余额暂时无法更新',
+ loadingSkus: '正在加载充值选项…',
+ skusFailed: '充值选项加载失败',
+ skusFailedHint: '请检查网络连接后重试。',
+ noSkus: '暂无可用的充值选项',
+ noSkusHint: '请稍后再来,或联系我们获取帮助。',
+ retry: '重试',
},
history: {
title: 'AI短视频',
diff --git a/frontend/src/pages/PricingPage.tsx b/frontend/src/pages/PricingPage.tsx
index a8cdd50..bef1ed5 100644
--- a/frontend/src/pages/PricingPage.tsx
+++ b/frontend/src/pages/PricingPage.tsx
@@ -1,11 +1,15 @@
-import { useEffect, useMemo, useState } from 'react'
+import { useCallback, useEffect, useMemo, useState } from 'react'
import { Link, useNavigate, useSearchParams } from 'react-router-dom'
import {
Building2,
+ ArrowUpRight,
Check,
CreditCard,
Infinity,
+ LoaderCircle,
+ RefreshCw,
ShieldCheck,
+ WalletCards,
Zap,
} from 'lucide-react'
import AppShell from '../components/layout/AppShell'
@@ -16,17 +20,25 @@ import TopupHistoryModal from '../components/billing/TopupHistoryModal'
import { api, type BillingSku, type UsageSummary, type Wallet } from '../api'
import { useI18n } from '../i18n'
import { GITHUB_REPO_URL } from '../lib/siteLinks'
+import './pricing.css'
type PayType = 'alipay' | 'wxpay'
type SkuView = BillingSku & { recommended?: boolean }
-const HERO_FEATURE_KEYS = ['featInstant', 'featSafe', 'featForever'] as const
+// 展示充值权益时复用现有计费说明,不引入额外套餐或价格。
+const HERO_FEATURES = [
+ { key: 'featInstant', Icon: Zap },
+ { key: 'featSafe', Icon: ShieldCheck },
+ { key: 'featForever', Icon: Infinity },
+] as const
+// 分转元,到账金额固定展示两位小数。
function yuan(fen: number) {
return (fen / 100).toFixed(2)
}
+// 充值价格与赠送金额保留真实小数,整数金额省略小数位。
function yuanShort(fen: number) {
const v = fen / 100
return Number.isInteger(v) ? String(v) : v.toFixed(2)
@@ -34,6 +46,7 @@ function yuanShort(fen: number) {
/** 定价与充值页 */
export default function PricingPage() {
+ /* 路由与语言、账户数据、充值配置及支付弹窗的展示状态。 */
const nav = useNavigate()
const { t, m } = useI18n()
const [params] = useSearchParams()
@@ -41,6 +54,10 @@ export default function PricingPage() {
const [usage, setUsage] = useState<UsageSummary | null>(null)
const [updatedAt, setUpdatedAt] = useState<Date | null>(null)
const [skus, setSkus] = useState<SkuView[]>([])
+ const [skusLoading, setSkusLoading] = useState(true)
+ const [skusError, setSkusError] = useState(false)
+ const [walletLoading, setWalletLoading] = useState(Boolean(localStorage.getItem('token')))
+ const [walletError, setWalletError] = useState(false)
const [payType, setPayType] = useState<PayType>('alipay')
const [busy, setBusy] = useState<string | null>(null)
const [error, setError] = useState('')
@@ -57,33 +74,55 @@ export default function PricingPage() {
}))
}, [skus])
- async function refresh() {
+ // 加载余额与本次消耗,失败时保留已经取得的数据并提供重试。
+ const refresh = useCallback(async () => {
if (!loggedIn) {
setWallet(null)
setUsage(null)
setUpdatedAt(null)
+ setWalletLoading(false)
+ setWalletError(false)
return
}
+ setWalletLoading(true)
+ setWalletError(false)
try {
const [w, u] = await Promise.all([api.wallet(), api.usageSummary()])
setWallet(w)
setUsage(u)
setUpdatedAt(new Date())
} catch {
- /* ignore */
+ setWalletError(true)
+ } finally {
+ setWalletLoading(false)
}
- }
+ }, [loggedIn])
+
+ // 独立加载服务端 SKU,重试时不影响账户余额或当前支付方式。
+ const loadSkus = useCallback(async () => {
+ setSkusLoading(true)
+ setSkusError(false)
+ try {
+ const result = await api.billingSkus()
+ setSkus((result.skus || []) as SkuView[])
+ } catch {
+ setSkusError(true)
+ } finally {
+ setSkusLoading(false)
+ }
+ }, [])
useEffect(() => {
- api.billingSkus().then((r) => setSkus((r.skus || []) as SkuView[]))
- refresh()
+ void loadSkus()
+ void refresh()
if (params.get('paid') === '1') {
setHint(t('pricing.paidHint'))
const timerId = window.setInterval(() => refresh(), 2500)
return () => window.clearInterval(timerId)
}
- }, [])
+ }, [loadSkus, refresh])
+ // 保持服务端下单、支付渠道、订单字段和登录回跳行为。
async function pay(sku: BillingSku) {
if (!loggedIn) {
nav(`/auth?next=${encodeURIComponent(`/pricing#sku-${sku.id}`)}`)
@@ -114,15 +153,18 @@ export default function PricingPage() {
}
}
+ // 选择已经开放的支付渠道。
function pickPay(type: PayType) {
setPayType(type)
setPayTip('')
}
+ // 未开放渠道仅显示提示,不创建订单。
function pickUnavailable(label: string) {
setPayTip(t('pricing.unavailable', { label }))
}
+ // 支付成功后关闭结算弹窗并刷新账户数据。
async function onPaid() {
setHint(t('pricing.paidOk'))
setCheckout(null)
@@ -132,30 +174,28 @@ export default function PricingPage() {
return (
<AppShell active="pricing" hideFooter wide>
<div className="pf-pricing-page">
- <section className="pf-pricing-hero-band">
+ <section className="pf-pricing-hero-band" aria-labelledby="pricing-title">
<div className="pf-pricing-hero-inner">
<div className="pf-pricing-hero-copy">
- <h1>{t('pricing.title')}</h1>
- <p>{t('pricing.lead')}</p>
+ <p className="pf-pricing-eyebrow"><span aria-hidden />{t('pricing.eyebrow')}</p>
+ <h1 id="pricing-title">{t('pricing.title')}</h1>
+ <p className="pf-pricing-lead">{t('pricing.lead')}</p>
<ul className="pf-pricing-hero-features">
- {HERO_FEATURE_KEYS.map((key, i) => {
- const icons = [Zap, ShieldCheck, Infinity] as const
- const Icon = icons[i]
- return (
+ {HERO_FEATURES.map(({ key, Icon }) => (
<li key={key}>
<span className="pf-pricing-hero-feature-icon" aria-hidden>
<Icon size={15} strokeWidth={2.2} />
</span>
{t(`pricing.${key}`)}
</li>
- )
- })}
+ ))}
</ul>
{!loggedIn ? (
<p className="pf-pricing-guest-tip">
{t('pricing.guestPrefix')}
<Link to="/auth?next=%2Fpricing">{t('pricing.guestLogin')}</Link>
{t('pricing.guestSuffix')}
+ <ArrowUpRight size={14} aria-hidden />
</p>
) : null}
</div>
@@ -164,130 +204,160 @@ export default function PricingPage() {
usage={usage}
loggedIn={loggedIn}
updatedAt={updatedAt}
+ loading={walletLoading}
+ error={walletError}
+ onRetry={() => void refresh()}
onHistory={() => setHistoryOpen(true)}
/>
</div>
</section>
<div className="pf-pricing-body">
- {hint ? <p className="pf-pricing-hint">{hint}</p> : null}
- {error ? <p className="pf-error pf-pricing-error">{error}</p> : null}
+ {hint ? <p className="pf-pricing-hint" role="status"><Check size={18} aria-hidden />{hint}</p> : null}
+ {error ? <p className="pf-error pf-pricing-error" role="alert">{error}</p> : null}
- <section className="pf-pricing-pay-section" aria-label={t('pricing.payMethods')}>
- <header className="pf-pricing-section-head is-row">
- <h2>{t('pricing.payMethods')}</h2>
- <div className="pf-pricing-pay-trust">
- <ShieldCheck size={16} aria-hidden />
- <span>{t('pricing.paySafe')}</span>
- </div>
- </header>
+ <div className="pf-pricing-topup-panel">
+ <section className="pf-pricing-pay-section" aria-label={t('pricing.payMethods')}>
+ <header className="pf-pricing-section-head is-row">
+ <h2><span className="pf-pricing-step" aria-hidden>01</span>{t('pricing.payMethods')}</h2>
+ <div className="pf-pricing-pay-trust">
+ <ShieldCheck size={16} aria-hidden />
+ <span>{t('pricing.paySafe')}</span>
+ </div>
+ </header>
- {payTip ? <p className="pf-pricing-pay-tip">{payTip}</p> : null}
+ {payTip ? <p className="pf-pricing-pay-tip" role="status">{payTip}</p> : null}
- <div className="pf-pricing-pay-grid">
- <button
- type="button"
- className={`pf-pricing-pay-tile${payType === 'alipay' ? ' is-active' : ''}`}
- onClick={() => pickPay('alipay')}
- aria-pressed={payType === 'alipay'}
- >
- <PaymentBrandIcon brand="alipay" size="md" />
- <span className="pf-pricing-pay-tile-label">{t('pricing.alipay')}</span>
- <span className="pf-pricing-pay-tile-badge">{t('pricing.recommended')}</span>
- {payType === 'alipay' ? (
- <span className="pf-pricing-pay-tile-check" aria-hidden>
- <Check size={14} strokeWidth={3} />
- </span>
- ) : null}
- </button>
+ <div className="pf-pricing-pay-grid">
+ <button
+ type="button"
+ className={`pf-pricing-pay-tile${payType === 'alipay' ? ' is-active' : ''}`}
+ onClick={() => pickPay('alipay')}
+ aria-pressed={payType === 'alipay'}
+ >
+ <PaymentBrandIcon brand="alipay" size="md" />
+ <span className="pf-pricing-pay-tile-label">{t('pricing.alipay')}</span>
+ {payType === 'alipay' ? (
+ <span className="pf-pricing-pay-tile-check" aria-hidden>
+ <Check size={14} strokeWidth={3} />
+ </span>
+ ) : null}
+ </button>
- <button
- type="button"
- className={`pf-pricing-pay-tile${payType === 'wxpay' ? ' is-active' : ''}`}
- onClick={() => pickPay('wxpay')}
- aria-pressed={payType === 'wxpay'}
- >
- <PaymentBrandIcon brand="wxpay" size="md" />
- <span className="pf-pricing-pay-tile-label">{t('pricing.wechat')}</span>
- {payType === 'wxpay' ? (
- <span className="pf-pricing-pay-tile-check" aria-hidden>
- <Check size={14} strokeWidth={3} />
- </span>
- ) : null}
- </button>
+ <button
+ type="button"
+ className={`pf-pricing-pay-tile${payType === 'wxpay' ? ' is-active' : ''}`}
+ onClick={() => pickPay('wxpay')}
+ aria-pressed={payType === 'wxpay'}
+ >
+ <PaymentBrandIcon brand="wxpay" size="md" />
+ <span className="pf-pricing-pay-tile-label">{t('pricing.wechat')}</span>
+ {payType === 'wxpay' ? (
+ <span className="pf-pricing-pay-tile-check" aria-hidden>
+ <Check size={14} strokeWidth={3} />
+ </span>
+ ) : null}
+ </button>
- <button
- type="button"
- className="pf-pricing-pay-tile is-disabled"
- title={t('pricing.soonTitle')}
- onClick={() => pickUnavailable(t('pricing.unionpay'))}
- >
- <PaymentBrandIcon brand="unionpay" size="md" />
- <span className="pf-pricing-pay-tile-label">{t('pricing.unionpay')}</span>
- <span className="pf-pricing-pay-tile-soon">{t('common.comingSoon')}</span>
- </button>
+ <button
+ type="button"
+ className="pf-pricing-pay-tile is-disabled"
+ title={t('pricing.soonTitle')}
+ onClick={() => pickUnavailable(t('pricing.unionpay'))}
+ >
+ <PaymentBrandIcon brand="unionpay" size="md" />
+ <span className="pf-pricing-pay-tile-label">{t('pricing.unionpay')}</span>
+ <span className="pf-pricing-pay-tile-soon">{t('common.comingSoon')}</span>
+ </button>
- <button
- type="button"
- className="pf-pricing-pay-tile is-disabled"
- title={t('pricing.transferTitle')}
- onClick={() => pickUnavailable(t('pricing.transfer'))}
- >
- <span className="pf-pricing-pay-tile-icon" aria-hidden>
- <Building2 size={22} strokeWidth={1.8} />
- </span>
- <span className="pf-pricing-pay-tile-label">{t('pricing.transfer')}</span>
- <span className="pf-pricing-pay-tile-sub">{t('pricing.enterprise')}</span>
- </button>
- </div>
- </section>
+ <button
+ type="button"
+ className="pf-pricing-pay-tile is-disabled"
+ title={t('pricing.transferTitle')}
+ onClick={() => pickUnavailable(t('pricing.transfer'))}
+ >
+ <span className="pf-pricing-pay-tile-icon" aria-hidden>
+ <Building2 size={22} strokeWidth={1.8} />
+ </span>
+ <span className="pf-pricing-pay-tile-label">{t('pricing.transfer')}</span>
+ <span className="pf-pricing-pay-tile-sub">{t('pricing.enterprise')}</span>
+ </button>
+ </div>
+ </section>
- <section className="pf-pricing-skus" id="pricing-skus">
- <header className="pf-pricing-section-head">
- <h2>{t('pricing.chooseAmount')}</h2>
- </header>
+ <section className="pf-pricing-skus" id="pricing-skus" aria-labelledby="pricing-skus-title" aria-busy={skusLoading}>
+ <header className="pf-pricing-section-head is-row">
+ <h2 id="pricing-skus-title"><span className="pf-pricing-step" aria-hidden>02</span>{t('pricing.chooseAmount')}</h2>
+ <p>{t('pricing.why1')}</p>
+ </header>
- <div className="pf-pricing-sku-grid">
- {displaySkus.map((sku) => {
- const bonus = sku.credit_fen - sku.amount_fen
- const recommended = Boolean(sku.recommended)
- const label = m.pricing.skus[sku.id as keyof typeof m.pricing.skus] || sku.name
- const tierHint =
- m.pricing.skuHints[sku.id as keyof typeof m.pricing.skuHints] || t('pricing.foreverHint')
- return (
- <article
- key={sku.id}
- id={`sku-${sku.id}`}
- className={`pf-pricing-sku-card${recommended ? ' is-recommended' : ''}`}
- >
- {recommended ? <span className="pf-pricing-rec-badge">{t('pricing.recommended')}</span> : null}
- <p className="pf-pricing-sku-tier">{label}</p>
- <p className="pf-pricing-sku-hint">{tierHint}</p>
- <div className="pf-pricing-sku-price">
- <span className="yen">¥</span>
- <strong>{(sku.amount_fen / 100).toFixed(0)}</strong>
- </div>
- <p className="pf-pricing-sku-credit">
- {t('pricing.credit')} <em>¥{yuan(sku.credit_fen)}</em>
- </p>
- {bonus > 0 ? (
- <p className="pf-pricing-sku-bonus">{t('pricing.bonus', { amount: yuanShort(bonus) })}</p>
- ) : (
- <p className="pf-pricing-sku-bonus is-empty">&nbsp;</p>
- )}
- <button
- type="button"
- className={`pf-pricing-sku-cta${recommended ? ' is-primary' : ''}`}
- disabled={Boolean(busy)}
- onClick={() => pay(sku)}
+ {skusLoading ? (
+ <div className="pf-pricing-sku-grid" role="status" aria-label={t('pricing.loadingSkus')}>
+ {[0, 1, 2, 3].map((index) => <div className="pf-pricing-sku-skeleton" key={index} aria-hidden><i /><i /><i /><i /></div>)}
+ <span className="pf-pricing-sr-only">{t('pricing.loadingSkus')}</span>
+ </div>
+ ) : skusError ? (
+ <div className="pf-pricing-state" role="alert">
+ <RefreshCw size={26} aria-hidden />
+ <h3>{t('pricing.skusFailed')}</h3>
+ <p>{t('pricing.skusFailedHint')}</p>
+ <button className="pf-pricing-retry" type="button" onClick={() => void loadSkus()}>{t('pricing.retry')}</button>
+ </div>
+ ) : displaySkus.length === 0 ? (
+ <div className="pf-pricing-state" role="status">
+ <WalletCards size={28} aria-hidden />
+ <h3>{t('pricing.noSkus')}</h3>
+ <p>{t('pricing.noSkusHint')}</p>
+ <Link to="/contact">{t('footer.contact')}<ArrowUpRight size={15} aria-hidden /></Link>
+ </div>
+ ) : <div className="pf-pricing-sku-grid">
+ {displaySkus.map((sku) => {
+ // 金额与赠送余额全部取自服务端 SKU。
+ const bonus = sku.credit_fen - sku.amount_fen
+ const recommended = Boolean(sku.recommended)
+ const label = m.pricing.skus[sku.id as keyof typeof m.pricing.skus] || sku.name
+ const tierHint =
+ m.pricing.skuHints[sku.id as keyof typeof m.pricing.skuHints] || t('pricing.foreverHint')
+ return (
+ <article
+ key={sku.id}
+ id={`sku-${sku.id}`}
+ className={`pf-pricing-sku-card${recommended ? ' is-recommended' : ''}`}
>
- {busy === sku.id ? t('pricing.ordering') : t('pricing.payNow')}
- </button>
- </article>
- )
- })}
- </div>
- </section>
+ <div className="pf-pricing-sku-card-head">
+ <p className="pf-pricing-sku-tier">{label}</p>
+ {recommended ? <span className="pf-pricing-rec-badge">{t('pricing.recommended')}</span> : null}
+ </div>
+ <p className="pf-pricing-sku-hint">{tierHint}</p>
+ <div className="pf-pricing-sku-price">
+ <span className="yen">¥</span>
+ <strong>{yuanShort(sku.amount_fen)}</strong>
+ </div>
+ <p className="pf-pricing-sku-credit">
+ <span>{t('pricing.credit')}</span><em>¥{yuan(sku.credit_fen)}</em>
+ </p>
+ {bonus > 0 ? (
+ <p className="pf-pricing-sku-bonus"><Zap size={12} aria-hidden />{t('pricing.bonus', { amount: yuanShort(bonus) })}</p>
+ ) : (
+ <p className="pf-pricing-sku-bonus is-empty">&nbsp;</p>
+ )}
+ <button
+ type="button"
+ className={`pf-pricing-sku-cta${recommended ? ' is-primary' : ''}`}
+ disabled={Boolean(busy)}
+ onClick={() => pay(sku)}
+ aria-busy={busy === sku.id}
+ >
+ {busy === sku.id ? <LoaderCircle className="pf-pricing-spinner" size={16} aria-hidden /> : null}
+ {busy === sku.id ? t('pricing.ordering') : t('pricing.payNow')}
+ {!busy ? <ArrowUpRight size={16} aria-hidden /> : null}
+ </button>
+ </article>
+ )
+ })}
+ </div>}
+ </section>
+ </div>
<section className="pf-pricing-info">
<article className="pf-pricing-info-card">
diff --git a/frontend/src/pages/pricing.css b/frontend/src/pages/pricing.css
new file mode 100644
index 0000000..f403d24
--- /dev/null
+++ b/frontend/src/pages/pricing.css
@@ -0,0 +1,207 @@
+/* 定价页独立样式:以创作账户、支付方式、真实 SKU 和计费说明组成清晰的充值流程。 */
+.pf-pricing-page {
+ --pricing-line: #e6e8e2;
+ --pricing-muted: #666f61;
+ width: 100%;
+ max-width: 1200px;
+ margin-inline: auto;
+ padding-bottom: 8px;
+ text-align: left;
+}
+
+.pf-pricing-hero-band { padding: 18px 0 36px; }
+.pf-pricing-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 388px); align-items: center; gap: clamp(28px, 5vw, 76px); }
+.pf-pricing-hero-copy { min-width: 0; }
+.pf-pricing-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #6c7467; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
+.pf-pricing-eyebrow > span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--pf-lime); box-shadow: 0 0 0 4px #eaf2da; }
+.pf-pricing-hero-copy h1 { margin: 0 0 16px; font-size: clamp(30px, 3.5vw, 46px); font-weight: 800; letter-spacing: -.045em; line-height: 1.22; text-wrap: balance; overflow-wrap: anywhere; }
+.pf-pricing-lead { max-width: 36rem; margin: 0; color: var(--pricing-muted); font-size: 14px; line-height: 1.85; }
+.pf-pricing-hero-features { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 0; margin: 23px 0 0; list-style: none; }
+.pf-pricing-hero-features li { display: flex; align-items: center; gap: 7px; max-width: 100%; font-size: 12px; color: #535b4c; line-height: 1.55; }
+.pf-pricing-hero-feature-icon { display: inline-flex; color: #718740; flex: 0 0 auto; }
+.pf-pricing-guest-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 0 3px; margin: 20px 0 0; color: var(--pricing-muted); font-size: 12px; line-height: 1.7; }
+.pf-pricing-guest-tip a { color: var(--pf-ink); font-weight: 700; text-underline-offset: 3px; }
+.pf-pricing-guest-tip svg { margin-left: 3px; flex: 0 0 auto; }
+
+/* 账户卡避免将加载中或匿名账户显示成零余额。 */
+.pf-pricing-wallet-dark { position: relative; isolation: isolate; min-width: 0; overflow: hidden; padding: 23px 25px 19px; border: 1px solid #292e27; border-radius: 20px; background: #171c16; color: #fff; box-shadow: 0 12px 24px #1a201312; }
+.pf-pricing-wallet-dark::before { content: ''; position: absolute; z-index: -1; width: 215px; height: 215px; top: -126px; right: -49px; border: 1px solid #c5ed8730; border-radius: 50%; box-shadow: 0 0 0 25px #c5ed8706, 0 0 0 51px #c5ed8704; pointer-events: none; }
+.pf-pricing-wallet-dark-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
+.pf-pricing-wallet-dark-label { display: inline-flex; align-items: center; gap: 8px; color: #d4dccd; font-size: 12px; }
+.pf-pricing-wallet-dark-label svg { color: #bbdf8c; flex-shrink: 0; }
+.pf-pricing-wallet-dark-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
+.pf-pricing-wallet-eye, .pf-pricing-wallet-history { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; appearance: none; padding: 6px 8px; border: 1px solid #ffffff16; border-radius: 7px; background: #ffffff08; color: #d4dccd; font: inherit; font-size: 11px; cursor: pointer; }
+.pf-pricing-wallet-eye { width: 32px; padding: 0; flex: 0 0 auto; }
+.pf-pricing-wallet-eye:hover:not(:disabled), .pf-pricing-wallet-history:hover:not(:disabled) { background: #ffffff18; color: #fff; }
+.pf-pricing-wallet-eye:disabled, .pf-pricing-wallet-history:disabled { opacity: .4; cursor: default; }
+.pf-pricing-wallet-dark-balance { display: block; min-height: 59px; margin: 21px 0 23px; font-family: 'Bahnschrift', 'DIN Alternate', sans-serif; font-size: clamp(30px, 3.4vw, 43px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.025em; line-height: 1.3; overflow-wrap: anywhere; }
+.pf-pricing-wallet-dark-balance > span { margin-right: 5px; font-size: .62em; font-weight: 400; color: #b8c2af; }
+.pf-pricing-wallet-dark-balance.is-loading { color: #59634f; animation: pf-pricing-pulse 1.6s ease-in-out infinite; }
+.pf-pricing-wallet-dark-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding-top: 17px; margin: 0; border-top: 1px solid #ffffff16; }
+.pf-pricing-wallet-dark-meta > div + div { padding-left: 20px; border-left: 1px solid #ffffff16; }
+.pf-pricing-wallet-dark-meta dt { margin-bottom: 6px; color: #9aa78f; font-size: 11px; }
+.pf-pricing-wallet-dark-meta dd { margin: 0; color: #e8eee3; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
+.pf-pricing-wallet-dark-updated { display: flex; align-items: center; gap: 6px; margin: 17px 0 0; color: #9aa78f; font-size: 10px; line-height: 1.6; }
+.pf-pricing-wallet-dark-updated > span { width: 5px; height: 5px; border-radius: 50%; background: #a4c77a; flex: 0 0 auto; }
+.pf-pricing-wallet-dark-updated > span.is-loading { animation: pf-pricing-pulse 1.6s ease-in-out infinite; }
+.pf-pricing-wallet-login { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 17px 0 0; color: #d6f2ad; font-size: 11px; text-decoration: none; line-height: 1.6; }
+.pf-pricing-wallet-login:hover { color: #fff; }
+.pf-pricing-wallet-error { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin: 15px 0 0; color: #ebc591; font-size: 10px; line-height: 1.6; }
+.pf-pricing-wallet-error button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 0 3px 5px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
+
+.pf-pricing-body { min-width: 0; }
+.pf-pricing-hint, .pf-pricing-error { display: flex; align-items: center; gap: 9px; padding: 13px 16px; margin: 0 0 16px; border: 1px solid #d8e7c5; border-radius: 10px; background: #f3f9e9; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
+.pf-pricing-hint > svg { color: #63853b; flex: 0 0 auto; }
+.pf-pricing-error { border-color: #f0d8d2; background: #fff5f2; color: #a53e2c; }
+.pf-pricing-topup-panel { padding: clamp(18px, 2.7vw, 32px); border: 1px solid var(--pricing-line); border-radius: 22px; background: #fff; }
+.pf-pricing-section-head { margin-bottom: 21px; }
+.pf-pricing-section-head.is-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
+.pf-pricing-section-head h2 { display: flex; align-items: center; gap: 11px; min-width: 0; margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.02em; line-height: 1.6; }
+.pf-pricing-step { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border: 1px solid #e5e9df; border-radius: 7px; background: #f6f8f2; color: #788366; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
+.pf-pricing-section-head > p { margin: 0; color: var(--pricing-muted); font-size: 11px; line-height: 1.7; }
+.pf-pricing-pay-section { padding-bottom: 28px; margin-bottom: 27px; border-bottom: 1px solid #eef0eb; }
+.pf-pricing-pay-trust { display: inline-flex; align-items: center; gap: 6px; color: var(--pricing-muted); font-size: 11px; line-height: 1.6; }
+.pf-pricing-pay-trust > svg { color: #89977a; flex: 0 0 auto; }
+.pf-pricing-pay-tip { padding: 9px 12px; margin: -7px 0 13px; border-radius: 7px; background: #fff9ed; color: #966a24; font-size: 12px; line-height: 1.6; }
+.pf-pricing-pay-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
+.pf-pricing-pay-tile { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; min-height: 64px; appearance: none; padding: 14px; border: 1px solid var(--pricing-line); border-radius: 12px; background: #fff; color: var(--pf-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
+.pf-pricing-pay-tile:hover { border-color: #aab59b; background: #fbfcf9; }
+.pf-pricing-pay-tile.is-active { border-color: #8cae42; background: #f7fbeF; box-shadow: inset 0 0 0 1px #8cae4225; }
+.pf-pricing-pay-tile.is-disabled { background: #fafbf9; color: #858d7f; }
+.pf-pricing-pay-tile-label { min-width: 0; font-size: 12px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
+.pf-pricing-pay-tile-soon, .pf-pricing-pay-tile-sub { grid-column: 2 / -1; color: #7e8875; font-size: 10px; line-height: 1.5; }
+.pf-pricing-pay-tile.is-disabled .pf-pricing-pay-tile-label { align-self: end; }
+.pf-pricing-pay-tile.is-disabled > .pf-pay-brand-icon, .pf-pricing-pay-tile.is-disabled > .pf-pricing-pay-tile-icon { grid-row: 1 / 3; opacity: .65; }
+.pf-pricing-pay-tile.is-disabled { row-gap: 0; }
+.pf-pricing-pay-tile-check { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--pf-lime); color: #3b4a25; }
+.pf-pricing-pay-tile-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #eef0e9; color: #768367; }
+
+/* 自动分配任意数量的真实 SKU;宽屏最多四列,窄屏自然收至单列。 */
+.pf-pricing-sku-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: stretch; gap: 14px; }
+.pf-pricing-sku-card { display: flex; flex-direction: column; min-width: 0; padding: 21px 19px 19px; border: 1px solid var(--pricing-line); border-radius: 14px; background: #fff; scroll-margin-top: 100px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
+.pf-pricing-sku-card:hover { border-color: #bcc5af; box-shadow: 0 6px 16px #1a201309; transform: translateY(-2px); }
+.pf-pricing-sku-card.is-recommended { border-color: #adc86a; background: linear-gradient(180deg, #f5fae9, #fff 66%); box-shadow: inset 0 0 0 1px #b5d17720; }
+.pf-pricing-sku-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 9px; margin-bottom: 6px; }
+.pf-pricing-sku-tier { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 750; overflow-wrap: anywhere; }
+.pf-pricing-rec-badge { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 3px 7px; border-radius: 5px; background: #ddf7ac; color: #486419; font-size: 9px; font-weight: 750; line-height: 1.4; }
+.pf-pricing-sku-hint { min-height: 20px; margin: 0 0 27px; color: var(--pricing-muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
+.pf-pricing-sku-price { display: flex; align-items: baseline; gap: 3px; margin: 0 0 23px; font-variant-numeric: tabular-nums; }
+.pf-pricing-sku-price .yen { font-size: 18px; font-weight: 500; }
+.pf-pricing-sku-price strong { min-width: 0; font-family: 'Bahnschrift', 'DIN Alternate', sans-serif; font-size: 43px; font-weight: 600; line-height: 1; letter-spacing: -.05em; overflow-wrap: anywhere; }
+.pf-pricing-sku-credit { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; margin: 0; padding-top: 15px; border-top: 1px solid #e9ece4; color: var(--pricing-muted); font-size: 12px; line-height: 1.7; }
+.pf-pricing-sku-credit em { font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; color: #404b34; overflow-wrap: anywhere; }
+.pf-pricing-sku-bonus { display: flex; align-items: center; gap: 4px; min-height: 20px; margin: 8px 0 19px; color: #637f31; font-size: 12px; font-weight: 600; line-height: 1.6; }
+.pf-pricing-sku-bonus > svg { flex: 0 0 auto; }
+.pf-pricing-sku-bonus.is-empty { visibility: hidden; }
+.pf-pricing-sku-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; appearance: none; padding: 10px 12px; margin-top: auto; border: 1px solid #dce1d6; border-radius: 8px; background: #f5f7f1; color: #35402c; font: inherit; font-size: 13px; font-weight: 750; line-height: 1.6; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
+.pf-pricing-sku-cta > svg { flex: 0 0 auto; }
+.pf-pricing-sku-cta:hover:not(:disabled) { border-color: #99a78a; background: #ebf0e3; }
+.pf-pricing-sku-cta.is-primary { border-color: var(--pf-lime); background: var(--pf-lime); color: #24320b; }
+.pf-pricing-sku-cta.is-primary:hover:not(:disabled) { border-color: #ace900; background: #ace900; }
+.pf-pricing-sku-cta:disabled { opacity: .55; cursor: wait; }
+.pf-pricing-spinner { animation: pf-pricing-spin .8s linear infinite; }
+.pf-pricing-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
+.pf-pricing-state { display: flex; flex-direction: column; align-items: center; padding: 38px 20px; border: 1px dashed #dfe5d7; border-radius: 14px; background: #fbfcf9; text-align: center; }
+.pf-pricing-state > svg { margin-bottom: 12px; color: #8b9d72; }
+.pf-pricing-state h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.7; }
+.pf-pricing-state p { margin: 0; color: var(--pricing-muted); font-size: 12px; line-height: 1.7; }
+.pf-pricing-state a, .pf-pricing-retry { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; margin-top: 18px; padding: 8px 18px; border: 1px solid #dbe3d0; border-radius: 7px; background: #fff; color: #425631; font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; }
+.pf-pricing-state a:hover, .pf-pricing-retry:hover { border-color: #9caf83; }
+.pf-pricing-sku-skeleton { min-width: 0; min-height: 280px; padding: 22px 19px; border: 1px solid #edf0e8; border-radius: 14px; }
+.pf-pricing-sku-skeleton i { display: block; width: 55%; height: 12px; margin-bottom: 12px; border-radius: 4px; background: #f0f3eb; animation: pf-pricing-pulse 1.6s ease-in-out infinite; }
+.pf-pricing-sku-skeleton i:nth-child(2) { width: 75%; height: 9px; }
+.pf-pricing-sku-skeleton i:nth-child(3) { width: 65%; height: 44px; margin: 30px 0 55px; }
+.pf-pricing-sku-skeleton i:nth-child(4) { width: 100%; height: 42px; margin: 0; }
+
+.pf-pricing-info { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 30px 52px; padding: 32px 4px; }
+.pf-pricing-info-card { display: grid; grid-template-columns: 33px minmax(0, 1fr); align-items: start; gap: 12px; min-width: 0; }
+.pf-pricing-info-visual { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #e3e8dc; border-radius: 9px; background: #eef3e6; color: #7b9060; }
+.pf-pricing-info-visual > svg { width: 17px; height: 17px; }
+.pf-pricing-info-card h3 { margin: 6px 0 13px; font-size: 13px; font-weight: 750; line-height: 1.5; }
+.pf-pricing-info-card ul { display: grid; gap: 8px; margin: 0; padding: 0; color: var(--pricing-muted); font-size: 12px; line-height: 1.85; list-style: none; }
+.pf-pricing-info-card li { position: relative; padding-left: 12px; overflow-wrap: anywhere; }
+.pf-pricing-info-card li::before { content: ''; position: absolute; left: 0; top: .74em; width: 3px; height: 3px; border-radius: 50%; background: #a7b19c; }
+.pf-pricing-site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 23px; border-top: 1px solid var(--pricing-line); color: #858d7c; font-size: 10px; line-height: 1.7; }
+.pf-pricing-site-brand { margin: 0; }
+.pf-pricing-site-brand a { color: #657254; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-decoration: none; }
+.pf-pricing-site-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
+.pf-pricing-site-links a { color: inherit; text-decoration: none; }
+.pf-pricing-site-links a:hover { color: var(--pf-ink); }
+.pf-pricing-site-copy { flex-basis: 100%; margin: -4px 0 0; color: #92998c; font-size: 9px; }
+.pf-pricing-page :is(button, a):focus-visible { outline: 2px solid #769b32; outline-offset: 4px; }
+.pf-pricing-wallet-dark :is(button, a):focus-visible { outline-color: var(--pf-lime); }
+
+@keyframes pf-pricing-pulse { 50% { opacity: .45; } }
+@keyframes pf-pricing-spin { to { transform: rotate(360deg); } }
+
+@media (max-width: 1100px) {
+ .pf-pricing-hero-inner { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); }
+ .pf-pricing-pay-tile { gap: 8px; padding: 11px; }
+ .pf-pricing-sku-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+}
+
+@media (max-width: 800px) {
+ .pf-pricing-hero-band { padding: 8px 0 28px; }
+ .pf-pricing-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(270px, .9fr); gap: 24px; }
+ .pf-pricing-hero-copy h1 { font-size: 31px; }
+ .pf-pricing-hero-features { gap: 10px; margin-top: 18px; }
+ .pf-pricing-hero-features li { font-size: 11px; }
+ .pf-pricing-wallet-dark { padding: 19px; }
+ .pf-pricing-wallet-dark-balance { font-size: 35px; margin-top: 16px; margin-bottom: 20px; }
+ .pf-pricing-pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+ .pf-pricing-pay-tile { padding: 13px; }
+ .pf-pricing-info { gap: 26px; }
+}
+
+@media (max-width: 640px) {
+ .pf-pricing-hero-band { padding-top: 3px; }
+ .pf-pricing-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 25px; }
+ .pf-pricing-hero-copy h1 { max-width: none; margin-bottom: 12px; font-size: clamp(28px, 7vw, 36px); }
+ .pf-pricing-eyebrow { margin-bottom: 13px; font-size: 10px; }
+ .pf-pricing-lead { font-size: 13px; }
+ .pf-pricing-hero-features { gap: 10px 15px; margin-top: 17px; }
+ .pf-pricing-guest-tip { margin-top: 15px; font-size: 11px; }
+ .pf-pricing-wallet-dark { padding: 20px; border-radius: 16px; }
+ .pf-pricing-wallet-dark-head { align-items: center; }
+ .pf-pricing-wallet-dark-label { padding: 0; }
+ .pf-pricing-wallet-dark-actions { max-width: none; }
+ .pf-pricing-wallet-dark-balance { min-height: 46px; margin-top: 16px; margin-bottom: 18px; font-size: 36px; }
+ .pf-pricing-topup-panel { padding: 19px 17px; border-radius: 16px; }
+ .pf-pricing-section-head { margin-bottom: 17px; }
+ .pf-pricing-section-head h2 { gap: 8px; font-size: 15px; }
+ .pf-pricing-section-head.is-row { gap: 8px; }
+ .pf-pricing-pay-trust { font-size: 10px; }
+ .pf-pricing-pay-section { padding-bottom: 23px; margin-bottom: 23px; }
+ .pf-pricing-pay-grid { gap: 9px; }
+ .pf-pricing-pay-tile { grid-template-columns: 24px minmax(0, 1fr) 15px; gap: 7px; min-height: 62px; padding: 11px 9px; border-radius: 9px; }
+ .pf-pricing-pay-tile .pf-pay-brand-icon, .pf-pricing-pay-tile-icon { width: 24px; height: 24px; }
+ .pf-pricing-pay-tile-label { font-size: 11px; }
+ .pf-pricing-pay-tile-check { width: 15px; height: 15px; }
+ .pf-pricing-pay-tile-check > svg { width: 11px; height: 11px; }
+ .pf-pricing-pay-tile-soon, .pf-pricing-pay-tile-sub { font-size: 9px; }
+ .pf-pricing-sku-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
+ .pf-pricing-sku-card { padding: 19px; border-radius: 11px; }
+ .pf-pricing-sku-card-head { justify-content: space-between; }
+ .pf-pricing-sku-hint { margin-bottom: 19px; }
+ .pf-pricing-sku-price { margin-bottom: 19px; }
+ .pf-pricing-sku-price strong { font-size: 40px; }
+ .pf-pricing-sku-bonus { margin-bottom: 15px; }
+ .pf-pricing-info { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 27px 2px; }
+ .pf-pricing-site-foot { justify-content: flex-start; padding-top: 19px; gap: 13px; }
+ .pf-pricing-site-copy { margin: 0; }
+}
+
+@media (max-width: 359px) {
+ .pf-pricing-wallet-dark { padding: 17px; }
+ .pf-pricing-wallet-dark-head { flex-wrap: wrap; gap: 9px; }
+ .pf-pricing-wallet-dark-actions { margin-left: auto; }
+ .pf-pricing-topup-panel { padding: 17px 13px; }
+ .pf-pricing-pay-grid { grid-template-columns: minmax(0, 1fr); }
+ .pf-pricing-pay-tile { min-height: 54px; }
+ .pf-pricing-sku-card { padding: 17px; }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .pf-pricing-page *, .pf-pricing-page *::before { animation: none !important; transition: none !important; }
+ .pf-pricing-sku-card:hover { transform: none; }
+}
diff --git a/frontend/src/styles/printfilm.css b/frontend/src/styles/printfilm.css
index 8ce2518..426afd0 100644
--- a/frontend/src/styles/printfilm.css
+++ b/frontend/src/styles/printfilm.css
@@ -11,12 +11,12 @@
.pf-shell-main {
flex: 1 0 auto;
+ min-width: 0;
width: 100%;
max-width: 1280px;
margin: 0 auto;
padding: 1.25rem 1.5rem 3.5rem;
box-sizing: border-box;
- overflow-x: clip;
}
.pf-shell-main.wide {
@@ -413,9 +413,9 @@
.pf-land-hero::before {
content: '';
position: absolute;
- right: -6%;
+ right: 0;
top: -18%;
- width: 460px;
+ width: min(460px, 100%);
height: 340px;
background: radial-gradient(circle, rgba(182, 255, 0, 0.38) 0%, rgba(182, 255, 0, 0) 68%);
pointer-events: none;
@@ -1476,12 +1476,15 @@
.pf-settings-fields label {
display: flex;
+ min-width: 0;
flex-direction: column;
gap: 0.35rem;
font-size: 0.9rem;
}
.pf-settings-fields input {
+ width: 100%;
+ min-width: 0;
border: 1px solid var(--pf-line);
border-radius: 12px;
padding: 0.65rem 0.8rem;
@@ -4443,6 +4446,8 @@ button.pf-shot-editable:disabled {
.pf-pagination {
display: flex;
+ flex-wrap: wrap;
+ max-width: 100%;
justify-content: center;
align-items: center;
gap: 0.35rem;
@@ -4809,336 +4814,7 @@ button.pf-shot-editable:disabled {
color: var(--pf-muted);
}
-/* ?? Pricing / top-up page ?? */
-.pf-pricing-page {
- width: 100%;
- margin: 0 auto;
- padding: 0 0 2rem;
-}
-
-.pf-pricing-hero-band {
- margin: 0 calc(-1 * var(--pf-shell-pad, 1.5rem)) 0;
- padding: 2.5rem var(--pf-shell-pad, 1.5rem) 3.25rem;
- background:
- radial-gradient(ellipse 70% 80% at 0% 0%, rgba(186, 230, 253, 0.55), transparent 58%),
- radial-gradient(ellipse 60% 70% at 100% 20%, rgba(190, 242, 100, 0.35), transparent 55%),
- linear-gradient(180deg, #f3f8fc 0%, #fafcfb 100%);
-}
-
-.pf-pricing-hero-inner {
- display: grid;
- grid-template-columns: minmax(0, 1.15fr) minmax(300px, 380px);
- gap: 1.5rem;
- align-items: center;
- max-width: 1180px;
- margin: 0 auto;
-}
-
-.pf-pricing-hero-copy {
- text-align: left;
- padding-top: 0.35rem;
-}
-
-.pf-pricing-hero-copy h1 {
- margin: 0 0 0.55rem;
- font-size: clamp(2rem, 3.5vw, 2.65rem);
- line-height: 1.15;
- letter-spacing: -0.03em;
- font-weight: 800;
-}
-
-.pf-pricing-hero-copy > p {
- margin: 0;
- max-width: 32rem;
- color: var(--pf-muted);
- font-size: 0.98rem;
- line-height: 1.65;
-}
-
-.pf-pricing-hero-features {
- list-style: none;
- margin: 1.35rem 0 0;
- padding: 0;
- display: flex;
- flex-wrap: wrap;
- gap: 0.65rem 1.25rem;
-}
-
-.pf-pricing-hero-features li {
- display: inline-flex;
- align-items: center;
- gap: 0.4rem;
- font-size: 0.86rem;
- font-weight: 600;
- color: #3d4654;
-}
-
-.pf-pricing-hero-feature-icon {
- display: inline-grid;
- place-items: center;
- width: 1.65rem;
- height: 1.65rem;
- border-radius: 999px;
- background: color-mix(in srgb, var(--pf-lime) 38%, #fff);
- color: #3d4a12;
-}
-
-.pf-pricing-guest-tip {
- margin: 1.1rem 0 0;
- font-size: 0.9rem;
- color: var(--pf-muted);
-}
-
-.pf-pricing-guest-tip a {
- color: var(--pf-ink);
- font-weight: 700;
-}
-
-/* ?????? */
-.pf-pricing-wallet-dark {
- background: linear-gradient(155deg, #243041 0%, #151c26 52%, #111820 100%);
- color: #f3f5f8;
- border-radius: 20px;
- padding: 1.25rem 1.2rem 1rem;
- box-shadow: 0 22px 48px rgba(17, 24, 39, 0.28);
- transform: translateY(0.35rem);
-}
-
-.pf-pricing-wallet-dark-head {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 0.75rem;
- margin-bottom: 0.45rem;
-}
-
-.pf-pricing-wallet-dark-label {
- font-size: 0.78rem;
- color: rgba(243, 245, 248, 0.72);
-}
-
-.pf-pricing-wallet-dark-actions {
- display: inline-flex;
- align-items: center;
- gap: 0.35rem;
-}
-
-.pf-pricing-wallet-eye,
-.pf-pricing-wallet-history {
- appearance: none;
- border: none;
- background: rgba(255, 255, 255, 0.08);
- color: rgba(243, 245, 248, 0.88);
- border-radius: 999px;
- cursor: pointer;
- transition: background 0.15s ease;
-}
-
-.pf-pricing-wallet-eye {
- display: inline-grid;
- place-items: center;
- width: 1.75rem;
- height: 1.75rem;
- padding: 0;
-}
-
-.pf-pricing-wallet-history {
- padding: 0.32rem 0.7rem;
- font-size: 0.74rem;
- font-weight: 600;
-}
-
-.pf-pricing-wallet-eye:hover,
-.pf-pricing-wallet-history:hover:not(:disabled) {
- background: rgba(255, 255, 255, 0.14);
-}
-
-.pf-pricing-wallet-history:disabled {
- opacity: 0.45;
- cursor: not-allowed;
-}
-
-.pf-pricing-wallet-dark-balance {
- display: block;
- font-size: clamp(2rem, 4.5vw, 2.35rem);
- font-weight: 800;
- letter-spacing: -0.03em;
- line-height: 1.05;
- margin-bottom: 1rem;
-}
-
-.pf-pricing-wallet-dark-meta {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 0.75rem;
- margin: 0;
- padding-top: 0.85rem;
- border-top: 1px solid rgba(255, 255, 255, 0.1);
-}
-
-.pf-pricing-wallet-dark-meta dt {
- margin: 0 0 0.15rem;
- font-size: 0.72rem;
- color: rgba(243, 245, 248, 0.58);
- font-weight: 500;
-}
-
-.pf-pricing-wallet-dark-meta dd {
- margin: 0;
- font-size: 0.98rem;
- font-weight: 700;
-}
-
-.pf-pricing-wallet-dark-frozen {
- margin: 0.65rem 0 0;
- font-size: 0.76rem;
- color: rgba(243, 245, 248, 0.55);
-}
-
-.pf-pricing-wallet-dark-updated {
- margin: 0.75rem 0 0;
- font-size: 0.72rem;
- color: rgba(243, 245, 248, 0.42);
-}
-
-.pf-pricing-body {
- max-width: 1180px;
- margin: 0 auto;
- padding: 1.75rem var(--pf-shell-pad, 1.5rem) 0;
-}
-
-.pf-pricing-hint,
-.pf-pricing-error {
- text-align: left;
- margin: 0 0 1.25rem;
-}
-
-.pf-pricing-section-head {
- text-align: left;
- margin-bottom: 1rem;
-}
-
-.pf-pricing-section-head.is-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 1rem;
- flex-wrap: wrap;
-}
-
-.pf-pricing-section-head h2 {
- margin: 0;
- font-size: 1.2rem;
- font-weight: 800;
-}
-
-.pf-pricing-section-head p {
- margin: 0;
- color: var(--pf-muted);
- font-size: 0.9rem;
-}
-
-.pf-pricing-pay-section {
- margin-bottom: 2rem;
-}
-
-.pf-pricing-pay-tip {
- margin: -0.35rem 0 0.85rem;
- font-size: 0.84rem;
- color: #b45309;
-}
-
-.pf-pricing-pay-grid {
- display: grid;
- grid-template-columns: repeat(4, minmax(0, 1fr));
- gap: 0.75rem;
-}
-
-.pf-pricing-pay-tile {
- position: relative;
- appearance: none;
- display: flex;
- align-items: center;
- gap: 0.55rem;
- min-height: 58px;
- padding: 0.75rem 0.9rem;
- border: 1.5px solid var(--pf-line);
- border-radius: 14px;
- background: #fff;
- color: var(--pf-ink);
- cursor: pointer;
- text-align: left;
- transition: border-color 0.15s ease, box-shadow 0.15s ease;
-}
-
-.pf-pricing-pay-tile:hover:not(:disabled) {
- border-color: color-mix(in srgb, var(--pf-ink) 22%, var(--pf-line));
-}
-
-.pf-pricing-pay-tile.is-active {
- border-color: var(--pf-lime);
- box-shadow: 0 0 0 1px color-mix(in srgb, var(--pf-lime) 65%, transparent);
-}
-
-.pf-pricing-pay-tile.is-disabled {
- opacity: 0.72;
- cursor: not-allowed;
- background: #fafbfc;
-}
-
-.pf-pricing-pay-tile-label {
- font-size: 0.92rem;
- font-weight: 700;
-}
-
-.pf-pricing-pay-tile-badge {
- font-size: 0.65rem;
- font-weight: 800;
- color: #3d4a12;
- background: color-mix(in srgb, var(--pf-lime) 55%, #fff);
- padding: 0.12rem 0.38rem;
- border-radius: 999px;
-}
-
-.pf-pricing-pay-tile-soon,
-.pf-pricing-pay-tile-sub {
- margin-left: auto;
- font-size: 0.72rem;
- font-weight: 600;
- color: var(--pf-muted);
-}
-
-.pf-pricing-pay-tile-check {
- margin-left: auto;
- display: inline-grid;
- place-items: center;
- width: 1.35rem;
- height: 1.35rem;
- border-radius: 50%;
- background: var(--pf-lime);
- color: var(--pf-ink);
-}
-
-.pf-pricing-pay-tile-icon {
- display: inline-grid;
- place-items: center;
- width: 28px;
- height: 28px;
- border-radius: 8px;
- background: #eef0f3;
- color: #4b5563;
- flex-shrink: 0;
-}
-
-.pf-pricing-pay-trust {
- display: inline-flex;
- align-items: center;
- gap: 0.35rem;
- color: var(--pf-muted);
- font-size: 0.84rem;
- font-weight: 600;
-}
-
+/* Shared payment brand icons. */
.pf-pay-brand-icon {
display: block;
flex-shrink: 0;
@@ -5155,315 +4831,6 @@ button.pf-shot-editable:disabled {
height: 28px;
}
-.pf-pricing-skus {
- margin-bottom: 2rem;
-}
-
-.pf-pricing-sku-grid {
- display: grid;
- grid-template-columns: repeat(4, minmax(0, 1fr));
- gap: 0.9rem;
-}
-
-.pf-pricing-sku-card {
- position: relative;
- text-align: left;
- background: #fff;
- border: 1px solid var(--pf-line);
- border-radius: 18px;
- padding: 1.2rem 1.05rem 1.1rem;
- box-shadow: 0 8px 24px rgba(17, 19, 24, 0.04);
- display: flex;
- flex-direction: column;
- min-height: 260px;
- transition: transform 0.15s ease, box-shadow 0.15s ease;
-}
-
-.pf-pricing-sku-card:hover {
- transform: translateY(-2px);
- box-shadow: 0 12px 28px rgba(17, 19, 24, 0.07);
-}
-
-.pf-pricing-sku-card.is-recommended {
- border-color: var(--pf-lime);
- box-shadow:
- 0 0 0 1px color-mix(in srgb, var(--pf-lime) 55%, transparent),
- 0 14px 32px color-mix(in srgb, var(--pf-lime) 20%, transparent);
-}
-
-.pf-pricing-rec-badge {
- position: absolute;
- top: 0.75rem;
- right: 0.75rem;
- background: var(--pf-lime);
- color: var(--pf-ink);
- font-size: 0.72rem;
- font-weight: 800;
- padding: 0.18rem 0.45rem;
- border-radius: 999px;
-}
-
-.pf-pricing-sku-tier {
- margin: 0 0 0.15rem;
- font-size: 0.92rem;
- font-weight: 700;
- color: var(--pf-ink);
-}
-
-.pf-pricing-sku-hint {
- margin: 0 0 0.85rem;
- font-size: 0.78rem;
- font-weight: 500;
- color: var(--pf-muted);
-}
-
-.pf-pricing-sku-price {
- display: flex;
- align-items: baseline;
- gap: 0.1rem;
- margin-bottom: 0.35rem;
-}
-
-.pf-pricing-sku-price .yen {
- font-size: 1.1rem;
- font-weight: 700;
-}
-
-.pf-pricing-sku-price strong {
- font-size: 2.45rem;
- font-weight: 800;
- letter-spacing: -0.04em;
- line-height: 1;
-}
-
-.pf-pricing-sku-credit {
- margin: 0;
- color: var(--pf-muted);
- font-size: 0.88rem;
-}
-
-.pf-pricing-sku-credit em {
- font-style: normal;
- color: var(--pf-ink);
- font-weight: 700;
-}
-
-.pf-pricing-sku-bonus {
- margin: 0.35rem 0 0;
- color: #5f7a12;
- font-size: 0.82rem;
- font-weight: 600;
- min-height: 1.2em;
-}
-
-.pf-pricing-sku-bonus.is-empty {
- visibility: hidden;
-}
-
-.pf-pricing-sku-cta {
- margin-top: auto;
- width: 100%;
- appearance: none;
- border: 1.5px solid var(--pf-ink);
- background: #fff;
- color: var(--pf-ink);
- border-radius: 999px;
- padding: 0.65rem 1rem;
- font-size: 0.92rem;
- font-weight: 700;
- cursor: pointer;
- transition: background 0.15s ease, border-color 0.15s ease;
-}
-
-.pf-pricing-sku-cta:hover:not(:disabled) {
- background: #f4f5f7;
-}
-
-.pf-pricing-sku-cta.is-primary {
- background: var(--pf-lime);
- border-color: var(--pf-lime);
-}
-
-.pf-pricing-sku-cta.is-primary:hover:not(:disabled) {
- filter: brightness(0.97);
-}
-
-.pf-pricing-sku-cta:disabled {
- opacity: 0.65;
- cursor: wait;
-}
-
-.pf-pricing-info {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 1rem;
- margin-bottom: 2.5rem;
-}
-
-.pf-pricing-info-card {
- display: grid;
- grid-template-columns: auto 1fr;
- gap: 1rem;
- align-items: start;
- background: #f6f8fa;
- border: 1px solid color-mix(in srgb, var(--pf-line) 70%, transparent);
- border-radius: 16px;
- padding: 1.25rem 1.35rem;
- text-align: left;
-}
-
-.pf-pricing-info-visual {
- display: grid;
- place-items: center;
- width: 3.5rem;
- height: 3.5rem;
- border-radius: 14px;
- flex-shrink: 0;
-}
-
-.pf-pricing-info-visual.is-billing {
- background: linear-gradient(145deg, #dbeafe, #eff6ff);
- color: #2563eb;
-}
-
-.pf-pricing-info-visual.is-value {
- background: linear-gradient(145deg, color-mix(in srgb, var(--pf-lime) 45%, #fff), #f7fee7);
- color: #4d7c0f;
-}
-
-.pf-pricing-info-card h3 {
- margin: 0 0 0.7rem;
- font-size: 1rem;
- font-weight: 800;
-}
-
-.pf-pricing-info-card ul {
- margin: 0;
- padding-left: 1.1rem;
- color: var(--pf-muted);
- line-height: 1.85;
- font-size: 0.9rem;
-}
-
-.pf-pricing-checks {
- list-style: none;
- padding-left: 0 !important;
-}
-
-.pf-pricing-checks li {
- position: relative;
- padding-left: 1.35rem;
-}
-
-.pf-pricing-checks li::before {
- content: '';
- position: absolute;
- left: 0;
- top: 0.45rem;
- width: 0.85rem;
- height: 0.85rem;
- border-radius: 50%;
- background: var(--pf-lime)
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23111318' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5-5L12.5 5z'/%3E%3C/svg%3E")
- center / 0.7rem no-repeat;
-}
-
-.pf-pricing-site-foot {
- display: grid;
- grid-template-columns: 1fr auto 1fr;
- align-items: center;
- gap: 1rem;
- padding: 1.5rem 0 0.5rem;
- border-top: 1px solid var(--pf-line);
- color: var(--pf-muted);
- font-size: 0.82rem;
-}
-
-.pf-pricing-site-brand {
- margin: 0;
- justify-self: start;
-}
-
-.pf-pricing-site-brand a {
- color: inherit;
- text-decoration: none;
- font-weight: 700;
-}
-
-.pf-pricing-site-links {
- display: inline-flex;
- gap: 1.25rem;
- flex-wrap: wrap;
- justify-content: center;
-}
-
-.pf-pricing-site-links a {
- color: inherit;
- text-decoration: none;
-}
-
-.pf-pricing-site-links a:hover {
- color: var(--pf-ink);
-}
-
-.pf-pricing-site-copy {
- margin: 0;
- justify-self: end;
- text-align: right;
-}
-
-@media (max-width: 1024px) {
- .pf-pricing-hero-inner {
- grid-template-columns: 1fr;
- }
-
- .pf-pricing-wallet-dark {
- transform: none;
- max-width: 420px;
- }
-
- .pf-pricing-pay-grid {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
-
- .pf-pricing-sku-grid {
- grid-template-columns: repeat(2, minmax(0, 1fr));
- }
-}
-
-@media (max-width: 640px) {
- .pf-pricing-hero-band {
- padding-top: 1.75rem;
- padding-bottom: 2rem;
- }
-
- .pf-pricing-hero-features {
- flex-direction: column;
- gap: 0.55rem;
- }
-
- .pf-pricing-pay-grid,
- .pf-pricing-sku-grid,
- .pf-pricing-info {
- grid-template-columns: 1fr;
- }
-
- .pf-pricing-info-card {
- grid-template-columns: 1fr;
- }
-
- .pf-pricing-site-foot {
- grid-template-columns: 1fr;
- text-align: center;
- }
-
- .pf-pricing-site-brand,
- .pf-pricing-site-copy {
- justify-self: center;
- text-align: center;
- }
-}
-
/* ?? Payment QR modal ?? */
.pf-modal-panel.pf-pay-modal {
width: min(400px, 94vw);
@@ -5474,7 +4841,7 @@ button.pf-shot-editable:disabled {
.pf-pay-modal .pf-modal-body {
padding: 0;
- overflow: visible;
+ overflow: auto;
}
.pf-pay-sheet {
@@ -5517,6 +4884,8 @@ button.pf-shot-editable:disabled {
.pf-pay-sku-box {
display: flex;
+ min-width: 0;
+ flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: 0.75rem;
@@ -5528,14 +4897,17 @@ button.pf-shot-editable:disabled {
}
.pf-pay-sku-box strong {
+ min-width: 0;
+ overflow-wrap: anywhere;
font-size: 0.95rem;
font-weight: 700;
}
.pf-pay-sku-box span {
+ min-width: 0;
color: var(--pf-muted);
font-size: 0.88rem;
- white-space: nowrap;
+ overflow-wrap: anywhere;
}
.pf-pay-amount {
@@ -5550,6 +4922,8 @@ button.pf-shot-editable:disabled {
}
.pf-pay-amount em {
+ display: block;
+ overflow-wrap: anywhere;
font-style: normal;
font-size: 2rem;
font-weight: 800;
@@ -5747,12 +5121,13 @@ button.pf-shot-editable:disabled {
/* ?? Global dialog / modal system ?? */
.pf-dialog-root {
+ --pf-dialog-gutter: clamp(12px, 2.5vw, 20px);
position: fixed;
inset: 0;
z-index: 1000;
display: grid;
place-items: center;
- padding: 1.25rem;
+ padding: max(var(--pf-dialog-gutter), env(safe-area-inset-top)) max(var(--pf-dialog-gutter), env(safe-area-inset-right)) max(var(--pf-dialog-gutter), env(safe-area-inset-bottom)) max(var(--pf-dialog-gutter), env(safe-area-inset-left));
animation: pf-dialog-root-in 0.22s ease-out;
}
@@ -5985,8 +5360,11 @@ button.pf-shot-editable:disabled {
.pf-modal-panel {
position: relative;
+ min-width: 0;
+ min-height: 0;
+ max-width: 100%;
width: min(560px, 100%);
- max-height: min(90vh, 860px);
+ max-height: min(860px, calc(100dvh - max(var(--pf-dialog-gutter), env(safe-area-inset-top)) - max(var(--pf-dialog-gutter), env(safe-area-inset-bottom))));
display: flex;
flex-direction: column;
background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
@@ -6000,11 +5378,11 @@ button.pf-shot-editable:disabled {
}
.pf-modal-panel--lg {
- width: min(720px, 96vw);
+ width: min(720px, 100%);
}
.pf-modal-panel--xl {
- width: min(960px, 96vw);
+ width: min(960px, 100%);
}
/* Right-side drawer (help / secondary panels) */
@@ -6056,6 +5434,7 @@ button.pf-shot-editable:disabled {
.pf-modal-head {
display: flex;
+ flex-shrink: 0;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
@@ -6064,6 +5443,8 @@ button.pf-shot-editable:disabled {
}
.pf-modal-head h3 {
+ min-width: 0;
+ overflow-wrap: anywhere;
margin: 0;
font-family: 'Noto Serif SC', Georgia, serif;
font-size: 1.2rem;
@@ -6071,6 +5452,7 @@ button.pf-shot-editable:disabled {
}
.pf-modal-close {
+ flex-shrink: 0;
width: 32px;
height: 32px;
border: 0;
@@ -6087,17 +5469,22 @@ button.pf-shot-editable:disabled {
}
.pf-modal-body {
+ min-width: 0;
+ min-height: 0;
padding: 1rem 1.15rem;
overflow: auto;
+ overscroll-behavior: contain;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.pf-modal-foot {
+ flex-shrink: 0;
padding: 0.85rem 1.15rem 1.1rem;
border-top: 1px solid var(--pf-line);
display: flex;
+ flex-wrap: wrap;
justify-content: flex-end;
gap: 0.55rem;
}