Explorar el Código

feat: add internationalization, authentication, and core visa application UI components

hujiarui hace 1 mes
padre
commit
53a22678cc
Se han modificado 51 ficheros con 1496 adiciones y 702 borrados
  1. 1 1
      scripts/check-i18n.mjs
  2. 11 0
      src/app/(app)/admin/orders/new/page.tsx
  3. 1 1
      src/app/(app)/layout.tsx
  4. 18 18
      src/components/BindEmailModal.tsx
  5. 56 21
      src/components/CreateOrderForm.tsx
  6. 9 9
      src/components/Footer.tsx
  7. 1 1
      src/components/ForgotPasswordModal.tsx
  8. 15 15
      src/components/Navbar.tsx
  9. 26 26
      src/components/PaymentProcessor.tsx
  10. 19 23
      src/components/ServiceList.tsx
  11. 20 2
      src/components/admin/orders/DynamicOrderSchemaForm.tsx
  12. 30 6
      src/components/admin/orders/OrderDetailModal.tsx
  13. 18 53
      src/components/admin/products/ProductModal.tsx
  14. 106 1
      src/components/admin/products/SchemaManager.tsx
  15. 2 2
      src/components/common/ConfirmModal.tsx
  16. 630 0
      src/components/common/FileUploadField.tsx
  17. 3 3
      src/components/common/JsonEditor.tsx
  18. 1 1
      src/components/common/LocalTime.tsx
  19. 2 2
      src/components/common/MessageModal.tsx
  20. 25 25
      src/components/common/ProductTutorialBanner.tsx
  21. 18 18
      src/components/dashboard/ChangePasswordModal.tsx
  22. 6 6
      src/components/dashboard/OrderList.tsx
  23. 10 10
      src/components/dashboard/ProfileSettings.tsx
  24. 4 4
      src/components/dashboard/Sidebar.tsx
  25. 5 5
      src/components/dashboard/TicketList.tsx
  26. 11 11
      src/components/dashboard/TicketModal.tsx
  27. 44 14
      src/components/dashboard/UserOrderDetailModal.tsx
  28. 13 13
      src/components/dashboard/UserTicketDetailModal.tsx
  29. 2 2
      src/components/home/HomePage.tsx
  30. 6 6
      src/components/pages/ContactPage.tsx
  31. 9 9
      src/components/pages/CookiePolicyPage.tsx
  32. 1 1
      src/components/pages/CreateOrderPage.tsx
  33. 9 9
      src/components/pages/DashboardPage.tsx
  34. 8 8
      src/components/pages/PrivacyPage.tsx
  35. 34 34
      src/components/pages/RefundPolicyPage.tsx
  36. 4 4
      src/components/pages/SettingsPage.tsx
  37. 2 2
      src/components/pages/SlotsPage.tsx
  38. 11 11
      src/components/pages/TermsPage.tsx
  39. 10 10
      src/components/payment/PaymentConfirmCard.tsx
  40. 4 4
      src/components/services/ServiceDetailModal.tsx
  41. 4 4
      src/components/services/ServicePoster.tsx
  42. 10 10
      src/components/slots/CitySlotCard.tsx
  43. 1 1
      src/components/slots/SlotFilterBar.tsx
  44. 1 1
      src/components/slots/SlotGrid.tsx
  45. 1 3
      src/lib/i18n/catalog.ts
  46. 3 0
      src/lib/i18n/display.ts
  47. 30 0
      src/lib/i18n/locales/en.ts
  48. 30 0
      src/lib/i18n/locales/zh.ts
  49. 210 0
      src/lib/i18n/messages.json
  50. 1 290
      src/lib/i18n/ui-messages.json
  51. 0 2
      src/types/product.ts

+ 1 - 1
scripts/check-i18n.mjs

@@ -37,7 +37,7 @@ for (const edit of englishFormEdits) {
 const placeholders = text => [...text.matchAll(/\{\{?\w+\}?\}/g)].map(m => m[0]).sort().join('|');
 const placeholders = text => [...text.matchAll(/\{\{?\w+\}?\}/g)].map(m => m[0]).sort().join('|');
 for (const [key, row] of Object.entries(matrix)) for (const value of row) assert.equal(placeholders(value), placeholders(english[key]), key);
 for (const [key, row] of Object.entries(matrix)) for (const value of row) assert.equal(placeholders(value), placeholders(english[key]), key);
 let keys = new Set(), files = 0;
 let keys = new Set(), files = 0;
-const excluded = new Set(['JsonEditor.tsx', 'JsonConfigEditor.tsx', 'AdminUserSelect.tsx', 'ImageUploadField.tsx']);
+const excluded = new Set(['JsonEditor.tsx', 'JsonConfigEditor.tsx', 'AdminUserSelect.tsx', 'ImageUploadField.tsx', 'FileUploadField.tsx']);
 function walk(dir) {
 function walk(dir) {
   for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
   for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
     const file = path.join(dir, entry.name);
     const file = path.join(dir, entry.name);

+ 11 - 0
src/app/(app)/admin/orders/new/page.tsx

@@ -176,6 +176,17 @@ export default function AdminCreateOrderPage() {
       return toast.error('社交自收直客单必须填写40%提成归属人ID/姓名');
       return toast.error('社交自收直客单必须填写40%提成归属人ID/姓名');
     }
     }
 
 
+    // 校验 Schema 必填项 (含文件/PDF上传字段)
+    if (formSchema?.required && Array.isArray(formSchema.required)) {
+      for (const reqKey of formSchema.required) {
+        const val = formValues[reqKey];
+        if (val === undefined || val === null || val === '') {
+          const propTitle = formSchema.properties?.[reqKey]?.title || reqKey;
+          return toast.error(`请先填写或上传必填项: [${propTitle}] (${reqKey})`);
+        }
+      }
+    }
+
     setLoading(true);
     setLoading(true);
     try {
     try {
       const payload = {
       const payload = {

+ 1 - 1
src/app/(app)/layout.tsx

@@ -19,7 +19,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
     <html lang={formattingLocale(locale)}>
     <html lang={formattingLocale(locale)}>
       <body className="bg-slate-50 min-h-screen flex flex-col font-sans">
       <body className="bg-slate-50 min-h-screen flex flex-col font-sans">
         <LanguageProvider initialLang={locale} detectPreference={admin} navigateOnLanguageChange={!admin} messages={messages} localizedUI={!admin}>
         <LanguageProvider initialLang={locale} detectPreference={admin} navigateOnLanguageChange={!admin} messages={messages} localizedUI={!admin}>
-          {!admin && <a href="#main-content" className="sr-only focus:not-sr-only focus:absolute focus:top-2 focus:left-2 focus:z-[100] focus:bg-amber-300 focus:border-2 focus:border-black focus:p-3">{messages?.['跳到主要内容']}</a>}
+          {!admin && <a href="#main-content" className="sr-only focus:not-sr-only focus:absolute focus:top-2 focus:left-2 focus:z-[100] focus:bg-amber-300 focus:border-2 focus:border-black focus:p-3">{messages?.['nav.skip_to_content']}</a>}
           <Navbar showBlog={visibleArticles('en').length > 0} />
           <Navbar showBlog={visibleArticles('en').length > 0} />
           
           
           <main id="main-content" tabIndex={-1} className={admin ? 'flex-grow' : 'flex-grow min-w-0 [overflow-wrap:anywhere] hyphens-auto'}>
           <main id="main-content" tabIndex={-1} className={admin ? 'flex-grow' : 'flex-grow min-w-0 [overflow-wrap:anywhere] hyphens-auto'}>

+ 18 - 18
src/components/BindEmailModal.tsx

@@ -65,20 +65,20 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
 
 
   const handleSendCode = async (e?: React.FormEvent) => {
   const handleSendCode = async (e?: React.FormEvent) => {
     if (e) e.preventDefault();
     if (e) e.preventDefault();
-    if (!email) return showMessage(t('bind_email.alert_input_email') || '请输入常用邮箱地址', 'error');
-    if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) return showMessage(t('bind_email.alert_invalid_email') || '邮箱格式不正确', 'error');
+    if (!email) return showMessage(t('bind_email.alert_input_email'), 'error');
+    if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) return showMessage(t('bind_email.alert_invalid_email'), 'error');
 
 
     setLoading(true);
     setLoading(true);
     try {
     try {
       await authService.sendBindCode(email);
       await authService.sendBindCode(email);
 
 
-      showMessage(`${t('bind_email.alert_code_sent') || '验证码已发送至'} ${email}`, 'success');
+      showMessage(`${t('bind_email.alert_code_sent')} ${email}`, 'success');
       setStep(2);
       setStep(2);
       setCountdown(60);
       setCountdown(60);
     } catch (error: any) {
     } catch (error: any) {
       console.error(error);
       console.error(error);
       const msg = error.response?.data?.message || t('common.unknown_error');
       const msg = error.response?.data?.message || t('common.unknown_error');
-      showMessage(`${t('bind_email.alert_send_failed') || '发送失败'}: ${msg}`, 'error');
+      showMessage(`${t('bind_email.alert_send_failed')}: ${msg}`, 'error');
     } finally {
     } finally {
       setLoading(false);
       setLoading(false);
     }
     }
@@ -86,8 +86,8 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
 
 
   const handleVerifyAndBind = async (e: React.FormEvent) => {
   const handleVerifyAndBind = async (e: React.FormEvent) => {
     e.preventDefault();
     e.preventDefault();
-    if (!code) return showMessage(t('bind_email.alert_input_code') || '请输入验证码', 'error');
-    if (code.length !== 6) return showMessage(t('bind_email.alert_code_length') || '请输入6位验证码', 'error');
+    if (!code) return showMessage(t('bind_email.alert_input_code'), 'error');
+    if (code.length !== 6) return showMessage(t('bind_email.alert_code_length'), 'error');
 
 
     setLoading(true);
     setLoading(true);
     try {
     try {
@@ -108,7 +108,7 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
 
 
         window.dispatchEvent(new Event('storage'));
         window.dispatchEvent(new Event('storage'));
 
 
-        showMessage(t('bind_email.success') || '邮箱绑定成功!', 'success', () => {
+        showMessage(t('bind_email.success'), 'success', () => {
           onSuccess();
           onSuccess();
           onClose();
           onClose();
         });
         });
@@ -119,7 +119,7 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
     } catch (error: any) {
     } catch (error: any) {
       console.error(error);
       console.error(error);
       const msg = error.response?.data?.message || t('common.unknown_error');
       const msg = error.response?.data?.message || t('common.unknown_error');
-      showMessage(`${t('bind_email.failed') || '绑定失败'}: ${msg}`, 'error');
+      showMessage(`${t('bind_email.failed')}: ${msg}`, 'error');
     } finally {
     } finally {
       setLoading(false);
       setLoading(false);
     }
     }
@@ -135,7 +135,7 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
         <div className="px-5 py-3.5 border-b-2 border-black flex justify-between items-center bg-neutral-200 text-black">
         <div className="px-5 py-3.5 border-b-2 border-black flex justify-between items-center bg-neutral-200 text-black">
           <div className="font-bold text-xs flex items-center gap-2 uppercase tracking-wider">
           <div className="font-bold text-xs flex items-center gap-2 uppercase tracking-wider">
             <span className="w-2.5 h-2.5 bg-amber-300 border border-black inline-block" />
             <span className="w-2.5 h-2.5 bg-amber-300 border border-black inline-block" />
-            <span>[ {step === 1 ? (t('bind_email.title_step1') || '01 // 绑定联系人邮箱') : (t('bind_email.title_step2') || '02 // 输入安全验证码')} ]</span>
+            <span>[ {step === 1 ? t('bind_email.title_step1') : t('bind_email.title_step2')} ]</span>
           </div>
           </div>
           <button aria-label={t('common.close')}
           <button aria-label={t('common.close')}
             onClick={onClose}
             onClick={onClose}
@@ -155,15 +155,15 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
           {step === 1 ? (
           {step === 1 ? (
             <form onSubmit={handleSendCode} className="space-y-4">
             <form onSubmit={handleSendCode} className="space-y-4">
               <p className="text-xs text-neutral-600 font-sans leading-relaxed">
               <p className="text-xs text-neutral-600 font-sans leading-relaxed">
-                {t('bind_email.desc_step1') || '首次提交申请需绑定联系人邮箱,用于接收官方预约确认函、使馆补件通知及进度更新。'}
+                {t('bind_email.desc_step1')}
               </p>
               </p>
               <div className="space-y-1">
               <div className="space-y-1">
-                <label htmlFor="bindemailmodal-field-1" className="block text-xs font-mono font-bold uppercase text-black">{t('bind_email.email_label') || '电子邮箱地址'}</label>
+                <label htmlFor="bindemailmodal-field-1" className="block text-xs font-mono font-bold uppercase text-black">{t('bind_email.email_label')}</label>
                 <input id="bindemailmodal-field-1"
                 <input id="bindemailmodal-field-1"
                   type="email"
                   type="email"
                   required
                   required
                   className="w-full border-2 border-black bg-neutral-50 p-3 text-xs sm:text-sm font-mono focus:bg-white outline-none shadow-[2px_2px_0px_#000] text-black"
                   className="w-full border-2 border-black bg-neutral-50 p-3 text-xs sm:text-sm font-mono focus:bg-white outline-none shadow-[2px_2px_0px_#000] text-black"
-                  placeholder={t('bind_email.email_placeholder') || 'yourname@domain.com'}
+                  placeholder={t('bind_email.email_placeholder')}
                   value={email}
                   value={email}
                   onChange={(e) => setEmail(e.target.value)}
                   onChange={(e) => setEmail(e.target.value)}
                 />
                 />
@@ -173,17 +173,17 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
                 disabled={loading}
                 disabled={loading}
                 className="w-full bg-amber-300 hover:bg-amber-400 text-black border-2 border-black py-3 font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex justify-center items-center gap-2 uppercase disabled:opacity-50"
                 className="w-full bg-amber-300 hover:bg-amber-400 text-black border-2 border-black py-3 font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex justify-center items-center gap-2 uppercase disabled:opacity-50"
               >
               >
-                {loading ? <Loader2 size={16} className="animate-spin" /> : <>{t('bind_email.send_btn') || '获取验证码'} <ArrowRight size={14} /></>}
+                {loading ? <Loader2 size={16} className="animate-spin" /> : <>{t('bind_email.send_btn')} <ArrowRight size={14} /></>}
               </button>
               </button>
             </form>
             </form>
           ) : (
           ) : (
             <form onSubmit={handleVerifyAndBind} className="space-y-4">
             <form onSubmit={handleVerifyAndBind} className="space-y-4">
               <p className="text-xs text-neutral-600 font-sans">
               <p className="text-xs text-neutral-600 font-sans">
-                {t('bind_email.desc_step2_prefix') || '验证码已发送至'} <span className="font-mono font-bold text-black bg-neutral-100 px-1 border border-black">{email}</span>
+                {t('bind_email.desc_step2_prefix')} <span className="font-mono font-bold text-black bg-neutral-100 px-1 border border-black">{email}</span>
               </p>
               </p>
 
 
               <div className="space-y-1">
               <div className="space-y-1">
-                <label htmlFor="bindemailmodal-field-2" className="block text-xs font-mono font-bold uppercase text-black">{t('bind_email.code_label') || '6位数字验证码'}</label>
+                <label htmlFor="bindemailmodal-field-2" className="block text-xs font-mono font-bold uppercase text-black">{t('bind_email.code_label')}</label>
                 <div className="flex gap-2.5">
                 <div className="flex gap-2.5">
                   <input id="bindemailmodal-field-2"
                   <input id="bindemailmodal-field-2"
                     type="text"
                     type="text"
@@ -200,7 +200,7 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
                     onClick={() => handleSendCode()}
                     onClick={() => handleSendCode()}
                     className="w-32 border-2 border-black bg-neutral-100 hover:bg-neutral-200 text-black text-xs font-mono font-bold transition shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none disabled:opacity-50"
                     className="w-32 border-2 border-black bg-neutral-100 hover:bg-neutral-200 text-black text-xs font-mono font-bold transition shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none disabled:opacity-50"
                   >
                   >
-                    {countdown > 0 ? `${countdown}${t('bind_email.resend_suffix') || 's'}` : (t('bind_email.resend_btn') || '重新发送')}
+                    {countdown > 0 ? `${countdown}${t('bind_email.resend_suffix')}` : t('bind_email.resend_btn')}
                   </button>
                   </button>
                 </div>
                 </div>
               </div>
               </div>
@@ -211,14 +211,14 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
                   onClick={() => setStep(1)}
                   onClick={() => setStep(1)}
                   className="px-3 py-2.5 bg-neutral-100 border-2 border-black text-black font-mono font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-200 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1"
                   className="px-3 py-2.5 bg-neutral-100 border-2 border-black text-black font-mono font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-200 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1"
                 >
                 >
-                  <ArrowLeft size={14} /> [ {t('bind_email.change_email_btn') || '修改邮箱'} ]
+                  <ArrowLeft size={14} /> [ {t('bind_email.change_email_btn')} ]
                 </button>
                 </button>
                 <button
                 <button
                   type="submit"
                   type="submit"
                   disabled={loading}
                   disabled={loading}
                   className="flex-1 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black py-2.5 font-mono font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex justify-center items-center gap-2 uppercase disabled:opacity-50"
                   className="flex-1 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black py-2.5 font-mono font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex justify-center items-center gap-2 uppercase disabled:opacity-50"
                 >
                 >
-                  {loading ? <Loader2 size={16} className="animate-spin" /> : <><Save size={14} /> [ {t('bind_email.confirm_btn') || '核验并绑定'} ]</>}
+                  {loading ? <Loader2 size={16} className="animate-spin" /> : <><Save size={14} /> [ {t('bind_email.confirm_btn')} ]</>}
                 </button>
                 </button>
               </div>
               </div>
             </form>
             </form>

+ 56 - 21
src/components/CreateOrderForm.tsx

@@ -25,6 +25,7 @@ import { ProductDetail, SchemaProperty, JsonSchema } from '@/types';
 import { productService, authService, orderService } from '@/lib/services';
 import { productService, authService, orderService } from '@/lib/services';
 import ProductTutorialBanner from '@/components/common/ProductTutorialBanner';
 import ProductTutorialBanner from '@/components/common/ProductTutorialBanner';
 import { displayProduct, countryLabel } from '@/lib/i18n/catalog';
 import { displayProduct, countryLabel } from '@/lib/i18n/catalog';
+import FileUploadField, { isFileProperty, inferAcceptType } from '@/components/common/FileUploadField';
 
 
 // ==========================================
 // ==========================================
 // 辅助函数与常量 (原有字段美化逻辑保持不变)
 // 辅助函数与常量 (原有字段美化逻辑保持不变)
@@ -98,6 +99,8 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
     async function initData() {
     async function initData() {
       try {
       try {
         setLoading(true);
         setLoading(true);
+        // 提前建立会话(未登录访客自动注册),确保用户在点击上传附件前具有合法 Token
+        ensureUserLoggedIn().catch(console.error);
         
         
         // 1. 获取商品详情
         // 1. 获取商品详情
         const prodRes = await productService.getDetail(parseInt(productId));
         const prodRes = await productService.getDetail(parseInt(productId));
@@ -231,6 +234,22 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
         return;
         return;
       }
       }
 
 
+      // 必填项前置校验(含文件上传字段)
+      const requiredList = formSchema?.required || [];
+      if (Array.isArray(requiredList) && requiredList.length > 0) {
+        const props = formSchema?.properties || {};
+        for (const reqKey of requiredList) {
+          const val = formValues[reqKey];
+          if (val === undefined || val === null || val === '') {
+            const label = getFieldLabel(reqKey, props[reqKey], t);
+            const prompt = t('order.required_field_prompt', { field: label });
+            showMessage(prompt, t('common.notice'), 'error');
+            setSubmitting(false);
+            return;
+          }
+        }
+      }
+
       if (!checkUserEmail()) {
       if (!checkUserEmail()) {
         setIsBindEmailOpen(true);
         setIsBindEmailOpen(true);
         setSubmitting(false);
         setSubmitting(false);
@@ -276,7 +295,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
              setSubmitting(false);
              setSubmitting(false);
            }
            }
         } else {
         } else {
-           showMessage(t('会话刷新失败'));
+           showMessage(t('order.session_refresh_failed'));
            setSubmitting(false);
            setSubmitting(false);
         }
         }
       } else {
       } else {
@@ -303,7 +322,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
     return (
     return (
       <div className="bg-white border-2 border-black p-4 shadow-[3px_3px_0px_#000] space-y-2">
       <div className="bg-white border-2 border-black p-4 shadow-[3px_3px_0px_#000] space-y-2">
         <div className="flex items-center text-xs font-mono font-bold uppercase tracking-wider text-black gap-2 border-b-2 border-black pb-2">
         <div className="flex items-center text-xs font-mono font-bold uppercase tracking-wider text-black gap-2 border-b-2 border-black pb-2">
-          <span>[✓] {t('order.service_details') || '服务工单保障细则'}</span>
+          <span>[✓] {t('order.service_details')}</span>
         </div>
         </div>
         {lines.length === 1 ? (
         {lines.length === 1 ? (
           <p className="text-xs text-neutral-800 leading-relaxed font-sans">{lines[0]}</p>
           <p className="text-xs text-neutral-800 leading-relaxed font-sans">{lines[0]}</p>
@@ -354,7 +373,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
               onChange={(e) => handleInputChange(key, e.target.checked)}
               onChange={(e) => handleInputChange(key, e.target.checked)}
             />
             />
             <span className="text-black uppercase">
             <span className="text-black uppercase">
-              {isChecked ? (t('common.yes') || 'YES // 是') : (t('common.no') || 'NO // 否')}
+              {isChecked ? t('common.yes') : t('common.no')}
             </span>
             </span>
           </label>
           </label>
         </div>
         </div>
@@ -404,6 +423,22 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
       );
       );
     }
     }
 
 
+    // 文件/PDF上传
+    if (isFileProperty(key, fieldSchema)) {
+      return (
+        <FileUploadField
+          key={key}
+          value={currentValue || ''}
+          onChange={(url) => handleInputChange(key, url)}
+          required={required}
+          helperText={fieldSchema.description}
+          accept={inferAcceptType(key, fieldSchema)}
+          prefix="orders"
+          onBeforeUpload={() => ensureUserLoggedIn()}
+        />
+      );
+    }
+
     // 其他
     // 其他
     let inputType = 'text';
     let inputType = 'text';
     if (fieldSchema.type === 'integer' || fieldSchema.type === 'number') inputType = 'number';
     if (fieldSchema.type === 'integer' || fieldSchema.type === 'number') inputType = 'number';
@@ -449,7 +484,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
     return (
     return (
       <div className="bg-white border-2 border-black p-12 text-center font-mono shadow-[6px_6px_0px_#000]">
       <div className="bg-white border-2 border-black p-12 text-center font-mono shadow-[6px_6px_0px_#000]">
         <Loader2 className="animate-spin w-8 h-8 mx-auto text-black mb-3" />
         <Loader2 className="animate-spin w-8 h-8 mx-auto text-black mb-3" />
-        <p className="text-xs font-bold uppercase tracking-wider">[ {t('正在加载档案数据…')} ]</p>
+        <p className="text-xs font-bold uppercase tracking-wider">[ {t('order.loading_archive')} ]</p>
       </div>
       </div>
     );
     );
   }
   }
@@ -482,7 +517,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
             <span className="tracking-widest uppercase">[ {docSerial} ]</span>
             <span className="tracking-widest uppercase">[ {docSerial} ]</span>
           </div>
           </div>
           <div className="text-neutral-600 font-mono">
           <div className="text-neutral-600 font-mono">
-            {t('order.official_fast_secure') || '官方保障 · 极速处理 · 隐私加密'}
+            {t('order.official_fast_secure')}
           </div>
           </div>
         </div>
         </div>
 
 
@@ -511,7 +546,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
             {/* 价格与条件退款说明 */}
             {/* 价格与条件退款说明 */}
             <div className="bg-white border-2 border-black p-5 shadow-[4px_4px_0px_#000] flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 font-mono">
             <div className="bg-white border-2 border-black p-5 shadow-[4px_4px_0px_#000] flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 font-mono">
               <div>
               <div>
-                <span className="text-[10px] uppercase tracking-wider text-neutral-500 font-bold block">{t('order.price_label') || '官方标准服务费'}</span>
+                <span className="text-[10px] uppercase tracking-wider text-neutral-500 font-bold block">{t('order.price_label')}</span>
                 <div className="flex items-baseline gap-1 text-black font-black">
                 <div className="flex items-baseline gap-1 text-black font-black">
                   <span className="text-sm">{product.price_currency === 'CNY' ? '¥' : product.price_currency}</span>
                   <span className="text-sm">{product.price_currency === 'CNY' ? '¥' : product.price_currency}</span>
                   <span className="text-3xl tracking-tight">{(product.price_amount / 100).toLocaleString(formattingLocale(lang))}</span>
                   <span className="text-3xl tracking-tight">{(product.price_amount / 100).toLocaleString(formattingLocale(lang))}</span>
@@ -531,22 +566,22 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
               <div className="bg-amber-50 border-2 border-black p-4 font-mono text-xs space-y-2 shadow-[3px_3px_0px_#000]">
               <div className="bg-amber-50 border-2 border-black p-4 font-mono text-xs space-y-2 shadow-[3px_3px_0px_#000]">
                 <div className="font-bold uppercase text-black flex items-center gap-1.5">
                 <div className="font-bold uppercase text-black flex items-center gap-1.5">
                   <Zap size={14} className="text-black" />
                   <Zap size={14} className="text-black" />
-                  <span>[ {t('order.slot_subscription_title') || '已关联订阅名额'} ]</span>
+                  <span>[ {t('order.slot_subscription_title')} ]</span>
                 </div>
                 </div>
                 <div className="flex flex-wrap gap-2">
                 <div className="flex flex-wrap gap-2">
                   {slotCountry && (
                   {slotCountry && (
                     <span className="px-2 py-0.5 bg-white border border-black text-xs font-semibold">
                     <span className="px-2 py-0.5 bg-white border border-black text-xs font-semibold">
-                      {t('order.slot_subscription_country') || 'Country'}: {countryLabel(slotCountry, lang)}
+                      {t('order.slot_subscription_country')}: {countryLabel(slotCountry, lang)}
                     </span>
                     </span>
                   )}
                   )}
                   {slotCity && (
                   {slotCity && (
                     <span className="px-2 py-0.5 bg-white border border-black text-xs font-semibold">
                     <span className="px-2 py-0.5 bg-white border border-black text-xs font-semibold">
-                      {t('order.slot_subscription_city') || 'City'}: {t(slotCity)}
+                      {t('order.slot_subscription_city')}: {t(slotCity)}
                     </span>
                     </span>
                   )}
                   )}
                   {slotVisaType && (
                   {slotVisaType && (
                     <span className="px-2 py-0.5 bg-white border border-black text-xs font-semibold">
                     <span className="px-2 py-0.5 bg-white border border-black text-xs font-semibold">
-                      {t('order.slot_subscription_visa') || 'Visa'}: {t(slotVisaType)}
+                      {t('order.slot_subscription_visa')}: {t(slotVisaType)}
                     </span>
                     </span>
                   )}
                   )}
                 </div>
                 </div>
@@ -571,9 +606,9 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
         <div className="flex items-center justify-between border-b-2 border-black pb-4 mb-6 font-mono">
         <div className="flex items-center justify-between border-b-2 border-black pb-4 mb-6 font-mono">
           <h2 className="text-base sm:text-lg font-black text-black flex items-center gap-2 uppercase">
           <h2 className="text-base sm:text-lg font-black text-black flex items-center gap-2 uppercase">
             <FileText size={18} className="text-black" />
             <FileText size={18} className="text-black" />
-            <span>[ 01 // {t('order.fill_form_title') || "申请人申报资料填报清单"} ]</span>
+            <span>[ 01 // {t('order.fill_form_title')} ]</span>
           </h2>
           </h2>
-          <span className="text-xs text-neutral-500 font-bold">[ {t('安全表单')} ]</span>
+          <span className="text-xs text-neutral-500 font-bold">[ {t('order.secure_form')} ]</span>
         </div>
         </div>
 
 
         <form onSubmit={handleSubmit} className="space-y-6">
         <form onSubmit={handleSubmit} className="space-y-6">
@@ -583,10 +618,10 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
                 ✓
                 ✓
               </div>
               </div>
               <p className="text-black font-black text-sm uppercase mb-1">
               <p className="text-black font-black text-sm uppercase mb-1">
-                {t('order.quick_checkout') || "免附加材料 · 极速签批"}
+                {t('order.quick_checkout')}
               </p>
               </p>
               <p className="text-neutral-500 text-xs font-sans">
               <p className="text-neutral-500 text-xs font-sans">
-                {t('order.no_extra_info_needed') || "该服务项无需在线填写额外资料,请直接提交建立工单"}
+                {t('order.no_extra_info_needed')}
               </p>
               </p>
             </div>
             </div>
           ) : (
           ) : (
@@ -597,7 +632,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
                     <span className="mr-1.5 text-neutral-500 font-normal">[{String(idx + 1).padStart(2, '0')}]</span>
                     <span className="mr-1.5 text-neutral-500 font-normal">[{String(idx + 1).padStart(2, '0')}]</span>
                     {getFieldLabel(key, properties[key], t)}
                     {getFieldLabel(key, properties[key], t)}
                     {requiredFields.includes(key) && (
                     {requiredFields.includes(key) && (
-                      <span className="text-rose-600 font-bold ml-1" title={t('必填')}>*</span>
+                      <span className="text-rose-600 font-bold ml-1" title={t('common.required')}>*</span>
                     )}
                     )}
                   </label>
                   </label>
                   
                   
@@ -605,7 +640,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
                   
                   
                   {properties[key].description && (
                   {properties[key].description && (
                     <div id={`field-${key}-help`} className="flex items-start gap-1.5 text-[11px] text-neutral-500 font-mono bg-neutral-50 p-2 border border-black">
                     <div id={`field-${key}-help`} className="flex items-start gap-1.5 text-[11px] text-neutral-500 font-mono bg-neutral-50 p-2 border border-black">
-                      <span className="font-bold text-black">{t('提示')}:</span>
+                      <span className="font-bold text-black">{t('common.tip')}:</span>
                       <span className="leading-relaxed font-sans">{t(properties[key].description)}</span>
                       <span className="leading-relaxed font-sans">{t(properties[key].description)}</span>
                     </div>
                     </div>
                   )}
                   )}
@@ -624,11 +659,11 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
               {submitting ? (
               {submitting ? (
                 <>
                 <>
                   <Loader2 className="animate-spin w-5 h-5"/>
                   <Loader2 className="animate-spin w-5 h-5"/>
-                  <span>[ {t('正在处理订单…')} ]</span>
+                  <span>[ {t('order.processing_order')} ]</span>
                 </>
                 </>
               ) : (
               ) : (
                 <>
                 <>
-                  <span>{t('order.submit_and_pay') || '确认提交并前往支付'}</span>
+                  <span>{t('order.submit_and_pay')}</span>
                   <span className="border-l-2 border-black pl-2 font-mono">
                   <span className="border-l-2 border-black pl-2 font-mono">
                     {(product.price_amount / 100).toLocaleString(formattingLocale(lang))} {product.price_currency === 'CNY' ? '¥' : product.price_currency}
                     {(product.price_amount / 100).toLocaleString(formattingLocale(lang))} {product.price_currency === 'CNY' ? '¥' : product.price_currency}
                   </span>
                   </span>
@@ -643,7 +678,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
             {slotVisaType && <input type="hidden" name="slot_visa_type" value={slotVisaType} />}
             {slotVisaType && <input type="hidden" name="slot_visa_type" value={slotVisaType} />}
 
 
             <p className="text-center text-[11px] text-neutral-500 mt-3 font-mono">
             <p className="text-center text-[11px] text-neutral-500 mt-3 font-mono">
-              [✓] {t('common.agree_agreement') || "提交工单即代表您已阅读并同意服务条款与隐私保障协议"}
+              [✓] {t('common.agree_agreement')}
             </p>
             </p>
           </div>
           </div>
         </form>
         </form>
@@ -657,8 +692,8 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
       />
       />
       <ConfirmModal 
       <ConfirmModal 
         isOpen={showConfirmModal}
         isOpen={showConfirmModal}
-        title={t('common.confirm_title') || '工单提交确认'}
-        message={t('order.confirm_submit_msg') || '请确认申报信息无误,提交后将进入官方收银台进行支付'}
+        title={t('common.confirm_title')}
+        message={t('order.confirm_submit_msg')}
         onConfirm={handleConfirmSubmit}
         onConfirm={handleConfirmSubmit}
         onCancel={() => { setShowConfirmModal(false); setSubmitting(false); }}
         onCancel={() => { setShowConfirmModal(false); setSubmitting(false); }}
       />
       />

+ 9 - 9
src/components/Footer.tsx

@@ -31,29 +31,29 @@ export default function Footer() {
               <span className="text-[10px] bg-neutral-100 border border-black px-1.5 py-0.5 font-bold uppercase text-neutral-600">[ {t('nav.directory_label')} ]</span>
               <span className="text-[10px] bg-neutral-100 border border-black px-1.5 py-0.5 font-bold uppercase text-neutral-600">[ {t('nav.directory_label')} ]</span>
             </div>
             </div>
             <p className="text-xs text-neutral-600 max-w-sm font-sans leading-relaxed">
             <p className="text-xs text-neutral-600 max-w-sm font-sans leading-relaxed">
-              {t('footer.description') || 'STRATA 全球签证自动化处理与名额监控系统,为您提供官方保障、极速预约与隐私加密服务。'}
+              {t('footer.description')}
             </p>
             </p>
           </div>
           </div>
 
 
           {/* Quick Links */}
           {/* Quick Links */}
           <div className="col-span-1 space-y-3">
           <div className="col-span-1 space-y-3">
             <h4 className="font-black text-xs text-black uppercase border-b-2 border-black pb-1 inline-block">
             <h4 className="font-black text-xs text-black uppercase border-b-2 border-black pb-1 inline-block">
-              [ {t('footer.quick_links') || '系统快速导航'} ]
+              [ {t('footer.quick_links')} ]
             </h4>
             </h4>
             <ul className="space-y-1.5 text-xs text-neutral-700">
             <ul className="space-y-1.5 text-xs text-neutral-700">
               <li>
               <li>
                 <Link href="/services" className="hover:underline flex items-center gap-1">
                 <Link href="/services" className="hover:underline flex items-center gap-1">
-                  <span>▪</span> {t('nav.services') || '服务工单库'}
+                  <span>▪</span> {t('nav.services')}
                 </Link>
                 </Link>
               </li>
               </li>
               <li>
               <li>
                 <Link href="/slots" className="hover:underline flex items-center gap-1">
                 <Link href="/slots" className="hover:underline flex items-center gap-1">
-                  <span>▪</span> {t('nav.slots') || '使馆名额雷达'}
+                  <span>▪</span> {t('nav.slots')}
                 </Link>
                 </Link>
               </li>
               </li>
               <li>
               <li>
                 <Link href="/dashboard" className="hover:underline flex items-center gap-1">
                 <Link href="/dashboard" className="hover:underline flex items-center gap-1">
-                  <span>▪</span> {t('nav.dashboard') || '用户控制台'}
+                  <span>▪</span> {t('nav.dashboard')}
                 </Link>
                 </Link>
               </li>
               </li>
             </ul>
             </ul>
@@ -62,22 +62,22 @@ export default function Footer() {
           {/* Support */}
           {/* Support */}
           <div className="col-span-1 space-y-3">
           <div className="col-span-1 space-y-3">
             <h4 className="font-black text-xs text-black uppercase border-b-2 border-black pb-1 inline-block">
             <h4 className="font-black text-xs text-black uppercase border-b-2 border-black pb-1 inline-block">
-              [ {t('footer.support') || '条款与支持'} ]
+              [ {t('footer.support')} ]
             </h4>
             </h4>
             <ul className="space-y-1.5 text-xs text-neutral-700">
             <ul className="space-y-1.5 text-xs text-neutral-700">
               <li>
               <li>
                 <Link href="/refund-policy" className="hover:underline flex items-center gap-1">
                 <Link href="/refund-policy" className="hover:underline flex items-center gap-1">
-                  <span>▪</span> {t('footer.refund_policy') || '退款保障政策'}
+                  <span>▪</span> {t('footer.refund_policy')}
                 </Link>
                 </Link>
               </li>
               </li>
               <li>
               <li>
                 <Link href="/terms" className="hover:underline flex items-center gap-1">
                 <Link href="/terms" className="hover:underline flex items-center gap-1">
-                  <span>▪</span> {t('footer.terms') || '服务条款'}
+                  <span>▪</span> {t('footer.terms')}
                 </Link>
                 </Link>
               </li>
               </li>
               <li>
               <li>
                 <Link href="/contact" className="hover:underline flex items-center gap-1">
                 <Link href="/contact" className="hover:underline flex items-center gap-1">
-                  <span>▪</span> {t('footer.contact') || '联系专员支持'}
+                  <span>▪</span> {t('footer.contact')}
                 </Link>
                 </Link>
               </li>
               </li>
             </ul>
             </ul>

+ 1 - 1
src/components/ForgotPasswordModal.tsx

@@ -196,7 +196,7 @@ export default function ForgotPasswordModal({ isOpen, onClose }: ForgotPasswordM
                     onClick={() => setShowPassword(!showPassword)}
                     onClick={() => setShowPassword(!showPassword)}
                     className="text-[10px] text-black font-bold uppercase hover:underline"
                     className="text-[10px] text-black font-bold uppercase hover:underline"
                   >
                   >
-                    {showPassword ? (t('common.hide') || 'HIDE') : (t('common.show') || 'SHOW')}
+                    {showPassword ? t('common.hide') : t('common.show')}
                   </button>
                   </button>
                 </div>
                 </div>
                 <input id="forgotpasswordmodal-field-3"
                 <input id="forgotpasswordmodal-field-3"

+ 15 - 15
src/components/Navbar.tsx

@@ -84,7 +84,7 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
           {/* Logo 铭牌 */}
           {/* Logo 铭牌 */}
           <Link
           <Link
             href="/"
             href="/"
-            aria-label={labels?.home ?? `STRATA — ${t('首页')}`}
+            aria-label={labels?.home ?? `STRATA — ${t('nav.home')}`}
             className="flex items-center gap-2 cursor-pointer group"
             className="flex items-center gap-2 cursor-pointer group"
           >
           >
             <div className="w-8 h-8 bg-amber-300 border-2 border-black flex items-center justify-center text-black shadow-[2px_2px_0px_#000] group-hover:bg-amber-400 transition">
             <div className="w-8 h-8 bg-amber-300 border-2 border-black flex items-center justify-center text-black shadow-[2px_2px_0px_#000] group-hover:bg-amber-400 transition">
@@ -113,7 +113,7 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
               }`}
               }`}
             >
             >
               <Briefcase size={14} />
               <Briefcase size={14} />
-              <span>{t('nav.services') || '服务工单库'}</span>
+              <span>{t('nav.services')}</span>
             </Link>
             </Link>
 
 
             <Link 
             <Link 
@@ -125,7 +125,7 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
               }`}
               }`}
             >
             >
               <CalendarSearch size={14} />
               <CalendarSearch size={14} />
-              <span>{t('nav.slots') || '名额雷达'}</span>
+              <span>{t('nav.slots')}</span>
             </Link>
             </Link>
           </div>
           </div>
 
 
@@ -141,7 +141,7 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
                     className="flex items-center gap-1 px-3 py-1.5 bg-neutral-100 hover:bg-neutral-200 text-black border-2 border-black font-bold text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
                     className="flex items-center gap-1 px-3 py-1.5 bg-neutral-100 hover:bg-neutral-200 text-black border-2 border-black font-bold text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
                   >
                   >
                     <ShieldCheck size={14} className="text-black" />
                     <ShieldCheck size={14} className="text-black" />
-                    <span>{t('nav.admin') || '管理后台'}</span>
+                    <span>{t('nav.admin')}</span>
                   </Link>
                   </Link>
                 )}
                 )}
 
 
@@ -152,16 +152,16 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
                   }`}
                   }`}
                 >
                 >
                   <LayoutDashboard size={14} />
                   <LayoutDashboard size={14} />
-                  <span>{t('nav.dashboard') || '控制台'}</span>
+                  <span>{t('nav.dashboard')}</span>
                 </Link>
                 </Link>
 
 
                 <button 
                 <button 
                   onClick={handleLogout} 
                   onClick={handleLogout} 
                   className="px-2.5 py-1.5 bg-white hover:bg-rose-100 text-black border-2 border-black font-bold text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1 uppercase"
                   className="px-2.5 py-1.5 bg-white hover:bg-rose-100 text-black border-2 border-black font-bold text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1 uppercase"
-                  title={t('nav.logout') || '退出登录'}
+                  title={t('nav.logout')}
                 >
                 >
                   <LogOut size={13} />
                   <LogOut size={13} />
-                  <span>[ {t('nav.logout') || '退出'} ]</span>
+                  <span>[ {t('nav.logout')} ]</span>
                 </button>
                 </button>
               </div>
               </div>
             ) : (
             ) : (
@@ -170,7 +170,7 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
                 className="px-4 py-1.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1.5 uppercase"
                 className="px-4 py-1.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1.5 uppercase"
               >
               >
                 <UserCircle size={15} />
                 <UserCircle size={15} />
-                <span>{t('nav.login') || '登录 / 注册'}</span>
+                <span>{t('nav.login')}</span>
               </Link>
               </Link>
             )}
             )}
           </div>
           </div>
@@ -182,7 +182,7 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
               ref={menuButton}
               ref={menuButton}
               onClick={() => setIsMobileMenuOpen(!isMobileMenuOpen)}
               onClick={() => setIsMobileMenuOpen(!isMobileMenuOpen)}
               className="p-1.5 bg-white border-2 border-black text-black shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none transition"
               className="p-1.5 bg-white border-2 border-black text-black shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none transition"
-              aria-label={labels?.menu ?? t('打开或关闭导航菜单')}
+              aria-label={labels?.menu ?? t('nav.toggle_menu')}
               aria-expanded={isMobileMenuOpen}
               aria-expanded={isMobileMenuOpen}
               aria-controls="site-mobile-menu"
               aria-controls="site-mobile-menu"
             >
             >
@@ -206,10 +206,10 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
                 <BookOpen size={14} /> {t('nav.blogs')}
                 <BookOpen size={14} /> {t('nav.blogs')}
               </a>}
               </a>}
               <MobileLink href="/services" icon={Briefcase} onClick={handleLinkClick} active={isServicesActive}>
               <MobileLink href="/services" icon={Briefcase} onClick={handleLinkClick} active={isServicesActive}>
-                {t('nav.services') || '服务工单库'}
+                {t('nav.services')}
               </MobileLink>
               </MobileLink>
               <MobileLink href="/slots" icon={CalendarSearch} onClick={handleLinkClick} active={isSlotsActive}>
               <MobileLink href="/slots" icon={CalendarSearch} onClick={handleLinkClick} active={isSlotsActive}>
-                {t('nav.slots') || '名额雷达'}
+                {t('nav.slots')}
               </MobileLink>
               </MobileLink>
             </div>
             </div>
 
 
@@ -218,18 +218,18 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
                 <>
                 <>
                   {showAdmin && (
                   {showAdmin && (
                     <MobileLink href="/admin" icon={ShieldCheck} onClick={handleLinkClick} className="bg-neutral-100">
                     <MobileLink href="/admin" icon={ShieldCheck} onClick={handleLinkClick} className="bg-neutral-100">
-                      {t('nav.admin') || '管理后台'}
+                      {t('nav.admin')}
                     </MobileLink>
                     </MobileLink>
                   )}
                   )}
                   <MobileLink href="/dashboard" icon={LayoutDashboard} onClick={handleLinkClick} active={isDashboardActive}>
                   <MobileLink href="/dashboard" icon={LayoutDashboard} onClick={handleLinkClick} active={isDashboardActive}>
-                    {t('nav.dashboard') || '控制台'}
+                    {t('nav.dashboard')}
                   </MobileLink>
                   </MobileLink>
                   <button 
                   <button 
                     onClick={handleLogout}
                     onClick={handleLogout}
                     className="w-full flex items-center justify-center gap-2 py-2.5 bg-rose-100 border-2 border-black font-black text-xs text-black shadow-[2px_2px_0px_#000] transition uppercase"
                     className="w-full flex items-center justify-center gap-2 py-2.5 bg-rose-100 border-2 border-black font-black text-xs text-black shadow-[2px_2px_0px_#000] transition uppercase"
                   >
                   >
                     <LogOut size={14} />
                     <LogOut size={14} />
-                    <span>[ {t('nav.logout') || '退出登录'} ]</span>
+                    <span>[ {t('nav.logout')} ]</span>
                   </button>
                   </button>
                 </>
                 </>
               ) : (
               ) : (
@@ -239,7 +239,7 @@ export default function Navbar({ showBlog = false, blogHref = '/blogs', navigati
                   className="flex w-full justify-center items-center gap-2 bg-amber-300 text-black border-2 border-black py-3 font-black text-xs shadow-[3px_3px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none transition uppercase"
                   className="flex w-full justify-center items-center gap-2 bg-amber-300 text-black border-2 border-black py-3 font-black text-xs shadow-[3px_3px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none transition uppercase"
                 >
                 >
                   <UserCircle size={16} />
                   <UserCircle size={16} />
-                  <span>[ {t('nav.login') || '登录 / 注册'} ]</span>
+                  <span>[ {t('nav.login')} ]</span>
                 </Link>
                 </Link>
               )}
               )}
             </div>
             </div>

+ 26 - 26
src/components/PaymentProcessor.tsx

@@ -111,7 +111,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
       else if (providerCode.includes('creem')) providerCode = 'creem';
       else if (providerCode.includes('creem')) providerCode = 'creem';
       else if (providerCode.includes('stripe') || providerCode.includes('card')) providerCode = 'stripe';
       else if (providerCode.includes('stripe') || providerCode.includes('card')) providerCode = 'stripe';
       if (isSlotSubscription && providerCode !== 'stripe' && providerCode !== 'creem') {
       if (isSlotSubscription && providerCode !== 'stripe' && providerCode !== 'creem') {
-        showMessage(t('payment.subscription_only_stripe_hint') || '名额订阅仅支持通过 Stripe / Creem 国际卡渠道签约', 'info');
+        showMessage(t('payment.subscription_only_stripe_hint'), 'info');
         setLoading(false);
         setLoading(false);
         return;
         return;
       }
       }
@@ -156,7 +156,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
       console.error(error);
       console.error(error);
       const errorMsg = error.response?.data?.message || error.response?.data?.detail || "";
       const errorMsg = error.response?.data?.message || error.response?.data?.detail || "";
       if (errorMsg.includes("active payment")) {
       if (errorMsg.includes("active payment")) {
-        showMessage(t('payment.active_payment_exists') || '当前已存在有效的待支付账单', 'info');
+        showMessage(t('payment.active_payment_exists'), 'info');
       } else {
       } else {
         showMessage(`${t('payment.init_failed')}: ` + (errorMsg || t('common.unknown_error')), 'error');
         showMessage(`${t('payment.init_failed')}: ` + (errorMsg || t('common.unknown_error')), 'error');
       }
       }
@@ -181,7 +181,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
 
 
       await paymentService.confirmByUser(payload);
       await paymentService.confirmByUser(payload);
 
 
-      showMessage(t('payment.confirm_success_alert') || '支付核销申请已提交,系统将尽快确认!', 'success', () => {
+      showMessage(t('payment.confirm_success_alert'), 'success', () => {
         router.push('/dashboard');
         router.push('/dashboard');
       });
       });
 
 
@@ -214,20 +214,20 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
           {/* 顶部工单账单编号卡 */}
           {/* 顶部工单账单编号卡 */}
           <div className="bg-neutral-100 border-2 border-black p-5 shadow-[4px_4px_0px_#000] space-y-2">
           <div className="bg-neutral-100 border-2 border-black p-5 shadow-[4px_4px_0px_#000] space-y-2">
             <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-bold">
             <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-bold">
-              <span className="uppercase text-neutral-600">[ {t('payment.order_created') || 'PAYMENT DESK // 官方收银台'} ]</span>
+              <span className="uppercase text-neutral-600">[ {t('payment.order_created')} ]</span>
               <span className="text-black">{t('common.status')}: {t('status.pending')}</span>
               <span className="text-black">{t('common.status')}: {t('status.pending')}</span>
             </div>
             </div>
             <div className="text-xl sm:text-2xl font-black text-black flex items-baseline gap-2 pt-1">
             <div className="text-xl sm:text-2xl font-black text-black flex items-baseline gap-2 pt-1">
-              <span>{t('payment.order_id') || '工单编号'}:</span>
+              <span>{t('payment.order_id')}:</span>
               <span className="bg-amber-300 px-2 py-0.5 border border-black shadow-[1px_1px_0px_#000]">#{orderId}</span>
               <span className="bg-amber-300 px-2 py-0.5 border border-black shadow-[1px_1px_0px_#000]">#{orderId}</span>
             </div>
             </div>
             <p className="text-xs text-neutral-600 font-sans leading-relaxed">
             <p className="text-xs text-neutral-600 font-sans leading-relaxed">
-              {t('payment.select_method_subtitle') || '请选择官方结算通道以完成账单支付,支付成功后系统将自动启动自动化流程。'}
+              {t('payment.select_method_subtitle')}
             </p>
             </p>
             {isSlotSubscription && (
             {isSlotSubscription && (
               <div className="mt-2 inline-flex items-center gap-1.5 border border-black px-2.5 py-1 text-xs text-black bg-amber-200">
               <div className="mt-2 inline-flex items-center gap-1.5 border border-black px-2.5 py-1 text-xs text-black bg-amber-200">
                 <Sparkles size={13} />
                 <Sparkles size={13} />
-                <span>{t('payment.subscription_only_stripe_hint') || '名额订阅优先推荐 Stripe 国际通道'}</span>
+                <span>{t('payment.subscription_only_stripe_hint')}</span>
               </div>
               </div>
             )}
             )}
           </div>
           </div>
@@ -235,11 +235,11 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
           {/* 支付通道列表 */}
           {/* 支付通道列表 */}
           <div className="space-y-3">
           <div className="space-y-3">
             <div className="text-xs font-black uppercase tracking-wider text-black">
             <div className="text-xs font-black uppercase tracking-wider text-black">
-              [ {t('payment.select_method') || '请选择受理支付通道'}]:</div>
+              [ {t('payment.select_method')} ]:</div>
 
 
             {availableProviders.length === 0 ? (
             {availableProviders.length === 0 ? (
               <div className="text-neutral-400 py-8 text-xs text-center border-2 border-dashed border-black">
               <div className="text-neutral-400 py-8 text-xs text-center border-2 border-dashed border-black">
-                [ {t('common.loading') || '正在加载支付通道...'} ]
+                [ {t('common.loading')} ]
               </div>
               </div>
             ) : (
             ) : (
               <div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
               <div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
@@ -271,11 +271,11 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
                       {p.config?.fee_rate !== undefined && (
                       {p.config?.fee_rate !== undefined && (
                         Number(p.config.fee_rate) > 0 ? (
                         Number(p.config.fee_rate) > 0 ? (
                           <span className="text-[10px] bg-amber-100 px-2 py-0.5 border border-black text-amber-900 font-bold">
                           <span className="text-[10px] bg-amber-100 px-2 py-0.5 border border-black text-amber-900 font-bold">
-                            {p.config.fee_label || `+${(Number(p.config.fee_rate) * 100).toFixed(1)}% ${t('payment.gateway_fee_badge') || '手续费'}`}
+                            {p.config.fee_label || `+${(Number(p.config.fee_rate) * 100).toFixed(1)}% ${t('payment.gateway_fee_badge')}`}
                           </span>
                           </span>
                         ) : (
                         ) : (
                           <span className="text-[10px] bg-emerald-100 px-2 py-0.5 border border-black text-emerald-800 font-bold">
                           <span className="text-[10px] bg-emerald-100 px-2 py-0.5 border border-black text-emerald-800 font-bold">
-                            {t('payment.fee_free') || '免手续费'}
+                            {t('payment.fee_free')}
                           </span>
                           </span>
                         )
                         )
                       )}
                       )}
@@ -305,28 +305,28 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
               className="px-3 py-1.5 bg-white border-2 border-black text-black font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-50 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1.5"
               className="px-3 py-1.5 bg-white border-2 border-black text-black font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-50 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1.5"
             >
             >
               <ArrowLeft className="w-3.5 h-3.5" />
               <ArrowLeft className="w-3.5 h-3.5" />
-              <span>[ ← {t('payment.reselect') || '重选通道'} ]</span>
+              <span>[ ← {t('payment.reselect')} ]</span>
             </button>
             </button>
             <div className="flex items-center gap-1.5 text-xs font-bold text-black bg-amber-300 px-2.5 py-1 border border-black shadow-[1px_1px_0px_#000]">
             <div className="flex items-center gap-1.5 text-xs font-bold text-black bg-amber-300 px-2.5 py-1 border border-black shadow-[1px_1px_0px_#000]">
               <Clock className="w-3.5 h-3.5" />
               <Clock className="w-3.5 h-3.5" />
               <LocalTime date={paymentData.expire_at} options={{ hour: '2-digit', minute: '2-digit' }} />
               <LocalTime date={paymentData.expire_at} options={{ hour: '2-digit', minute: '2-digit' }} />
-              <span>{t('payment.expires') || '前有效'}</span>
+              <span>{t('payment.expires')}</span>
             </div>
             </div>
           </div>
           </div>
 
 
-          <div className="text-base font-black text-black uppercase border-b-2 border-black pb-2">[ {t('账单明细')} ]</div>
+          <div className="text-base font-black text-black uppercase border-b-2 border-black pb-2">[ {t('payment.bill_details')} ]</div>
 
 
           <div className="grid gap-6 lg:grid-cols-[1.1fr_0.9fr]">
           <div className="grid gap-6 lg:grid-cols-[1.1fr_0.9fr]">
             {/* 左侧:账单核算清单 */}
             {/* 左侧:账单核算清单 */}
             <div className="bg-neutral-50 border-2 border-black p-5 shadow-[4px_4px_0px_#000] space-y-3 text-xs">
             <div className="bg-neutral-50 border-2 border-black p-5 shadow-[4px_4px_0px_#000] space-y-3 text-xs">
               <div className="flex justify-between items-center text-neutral-600 font-bold border-b border-dashed border-neutral-300 pb-2">
               <div className="flex justify-between items-center text-neutral-600 font-bold border-b border-dashed border-neutral-300 pb-2">
-                <span>{t('payment.original_amount') || '原始标准金额'}:</span>
+                <span>{t('payment.original_amount')}:</span>
                 <span className="font-mono text-black font-bold">{formatMoney(paymentData.base_amount, paymentData.base_currency)}</span>
                 <span className="font-mono text-black font-bold">{formatMoney(paymentData.base_amount, paymentData.base_currency)}</span>
               </div>
               </div>
 
 
               {paymentData.currency !== paymentData.base_currency && (
               {paymentData.currency !== paymentData.base_currency && (
                 <div className="flex justify-between text-[11px] text-neutral-500 border-b border-dashed border-neutral-300 pb-2">
                 <div className="flex justify-between text-[11px] text-neutral-500 border-b border-dashed border-neutral-300 pb-2">
-                  <span>{t('payment.exchange_rate') || '实时结算汇率'}:</span>
+                  <span>{t('payment.exchange_rate')}:</span>
                   <span>1 {paymentData.base_currency} ≈ {paymentData.exchange_rate} {paymentData.currency}</span>
                   <span>1 {paymentData.base_currency} ≈ {paymentData.exchange_rate} {paymentData.currency}</span>
                 </div>
                 </div>
               )}
               )}
@@ -335,7 +335,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
                 <div className="flex justify-between items-center bg-white border border-black p-2">
                 <div className="flex justify-between items-center bg-white border border-black p-2">
                   <span className="flex items-center gap-1 font-bold">
                   <span className="flex items-center gap-1 font-bold">
                     {paymentData.adjustment_delta < 0 ? <TrendingDown size={14} /> : <TrendingUp size={14} />}
                     {paymentData.adjustment_delta < 0 ? <TrendingDown size={14} /> : <TrendingUp size={14} />}
-                    {t('payment.manual_adjustment') || '价格核算调节'}
+                    {t('payment.manual_adjustment')}
                   </span>
                   </span>
                   <span className="font-bold font-mono">
                   <span className="font-bold font-mono">
                     {paymentData.adjustment_delta > 0 ? '+' : ''}{formatMoney(paymentData.adjustment_delta, paymentData.base_currency)}
                     {paymentData.adjustment_delta > 0 ? '+' : ''}{formatMoney(paymentData.adjustment_delta, paymentData.base_currency)}
@@ -348,7 +348,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
                   <span className="flex items-center gap-1">
                   <span className="flex items-center gap-1">
                     <Receipt size={14} className="text-amber-800" />
                     <Receipt size={14} className="text-amber-800" />
                     <span>
                     <span>
-                      {t('payment.gateway_fee') || '通道结算手续费'}
+                      {t('payment.gateway_fee')}
                       {paymentData.fee_rate ? ` (${(Number(paymentData.fee_rate) * 100).toFixed(1)}%)` : ''}
                       {paymentData.fee_rate ? ` (${(Number(paymentData.fee_rate) * 100).toFixed(1)}%)` : ''}
                     </span>
                     </span>
                   </span>
                   </span>
@@ -362,14 +362,14 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
                 <div className="flex justify-between items-center bg-rose-50 border border-black text-rose-900 p-2 font-bold">
                 <div className="flex justify-between items-center bg-rose-50 border border-black text-rose-900 p-2 font-bold">
                   <span className="flex items-center gap-1">
                   <span className="flex items-center gap-1">
                     <Sparkles size={14} className="text-rose-600" />
                     <Sparkles size={14} className="text-rose-600" />
-                    {t('payment.random_discount') || '随机优惠立减'}
+                    {t('payment.random_discount')}
                   </span>
                   </span>
                   <span>-{formatMoney(paymentData.random_offset, paymentData.currency)}</span>
                   <span>-{formatMoney(paymentData.random_offset, paymentData.currency)}</span>
                 </div>
                 </div>
               )}
               )}
 
 
               <div className="border-t-2 border-black pt-3 flex justify-between items-baseline font-black text-black">
               <div className="border-t-2 border-black pt-3 flex justify-between items-baseline font-black text-black">
-                <span className="uppercase text-xs">{t('payment.actual_pay') || '实付金额'}:</span>
+                <span className="uppercase text-xs">{t('payment.actual_pay')}:</span>
                 <span className="text-2xl sm:text-3xl tracking-tight text-black">
                 <span className="text-2xl sm:text-3xl tracking-tight text-black">
                   {formatMoney(paymentData.amount, paymentData.currency)}
                   {formatMoney(paymentData.amount, paymentData.currency)}
                 </span>
                 </span>
@@ -380,14 +380,14 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
             <div className="space-y-4 font-mono">
             <div className="space-y-4 font-mono">
               {paymentData.channel === 'online_link' && (
               {paymentData.channel === 'online_link' && (
                 <div className="bg-white border-2 border-black p-4 shadow-[4px_4px_0px_#000] space-y-3">
                 <div className="bg-white border-2 border-black p-4 shadow-[4px_4px_0px_#000] space-y-3">
-                  <p className="text-xs text-neutral-600 font-sans">{t('payment.link_pay_hint') || '点击下方按钮前往外部官方通道完成支付'}</p>
+                  <p className="text-xs text-neutral-600 font-sans">{t('payment.link_pay_hint')}</p>
                   <a
                   <a
                     href={paymentData.payment_url}
                     href={paymentData.payment_url}
                     target="_blank"
                     target="_blank"
                     rel="noopener noreferrer"
                     rel="noopener noreferrer"
                     className="w-full inline-flex items-center justify-center gap-2 border-2 border-black bg-neutral-100 hover:bg-amber-300 text-black px-4 py-3 text-xs font-black transition shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
                     className="w-full inline-flex items-center justify-center gap-2 border-2 border-black bg-neutral-100 hover:bg-amber-300 text-black px-4 py-3 text-xs font-black transition shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
                   >
                   >
-                    <span>{t('payment.go_to_pay') || '前往官方收银台支付'}</span>
+                    <span>{t('payment.go_to_pay')}</span>
                     <ExternalLink size={14} />
                     <ExternalLink size={14} />
                   </a>
                   </a>
                 </div>
                 </div>
@@ -395,12 +395,12 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
 
 
               {paymentData.channel === 'qr_static' && (
               {paymentData.channel === 'qr_static' && (
                 <div className="bg-white border-2 border-black shadow-[4px_4px_0px_#000] p-4 text-center space-y-3">
                 <div className="bg-white border-2 border-black shadow-[4px_4px_0px_#000] p-4 text-center space-y-3">
-                  <p className="text-xs text-neutral-600 font-sans">{t('payment.qr_pay_hint') || '请使用 App 扫描下方二维码完成支付'}</p>
+                  <p className="text-xs text-neutral-600 font-sans">{t('payment.qr_pay_hint')}</p>
                   <div className="inline-block border-2 border-black p-2 bg-white shadow-[2px_2px_0px_#000]">
                   <div className="inline-block border-2 border-black p-2 bg-white shadow-[2px_2px_0px_#000]">
                     {qrCode ? (
                     {qrCode ? (
                       <img
                       <img
                         src={qrCode.startsWith('http') || qrCode.startsWith('data:') ? qrCode : `data:image/png;base64,${qrCode}`}
                         src={qrCode.startsWith('http') || qrCode.startsWith('data:') ? qrCode : `data:image/png;base64,${qrCode}`}
-                        alt={t('付款二维码')}
+                        alt={t('payment.qr_code_alt')}
                         className="w-36 h-36 object-contain"
                         className="w-36 h-36 object-contain"
                       />
                       />
                     ) : (
                     ) : (
@@ -412,7 +412,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
 
 
               <div className="border-2 border-black bg-amber-50 p-3 text-[11px] text-black shadow-[2px_2px_0px_#000] font-sans">
               <div className="border-2 border-black bg-amber-50 p-3 text-[11px] text-black shadow-[2px_2px_0px_#000] font-sans">
                 <AlertCircle size={14} className="inline-block mr-1 text-black shrink-0" />
                 <AlertCircle size={14} className="inline-block mr-1 text-black shrink-0" />
-                {t('payment.confirm_hint_text') || '完成付款后请务必点击下方确认按钮,以便系统核销并开始处理'}
+                {t('payment.confirm_hint_text')}
               </div>
               </div>
 
 
               <button
               <button
@@ -421,7 +421,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
                 className="w-full bg-amber-300 hover:bg-amber-400 text-black font-black py-3.5 border-2 border-black shadow-[4px_4px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center justify-center gap-2 text-sm uppercase disabled:opacity-50"
                 className="w-full bg-amber-300 hover:bg-amber-400 text-black font-black py-3.5 border-2 border-black shadow-[4px_4px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center justify-center gap-2 text-sm uppercase disabled:opacity-50"
               >
               >
                 {confirming ? <Loader2 size={18} className="animate-spin" /> : <CheckCircle2 size={18} />}
                 {confirming ? <Loader2 size={18} className="animate-spin" /> : <CheckCircle2 size={18} />}
-                <span>{t('payment.completed_btn') || '我已完成支付 // 提交确认'}</span>
+                <span>{t('payment.completed_btn')}</span>
               </button>
               </button>
             </div>
             </div>
           </div>
           </div>

+ 19 - 23
src/components/ServiceList.tsx

@@ -212,12 +212,10 @@ export default function ServiceList() {
               const tutorialDisplayType = tutorial?.display_type || 'modal';
               const tutorialDisplayType = tutorial?.display_type || 'modal';
               const isTutorialExpanded = expandedTutorialId === item.id;
               const isTutorialExpanded = expandedTutorialId === item.id;
               const cardConfig = item.extra_fields?.card_config;
               const cardConfig = item.extra_fields?.card_config;
-              const officialTag = cardConfig?.official_tag;
+              const isOfficial = Boolean(cardConfig?.official_tag || item.provider === 'Official');
               const statusTag = cardConfig?.status_tag;
               const statusTag = cardConfig?.status_tag;
               const salesText = cardConfig?.sales_text;
               const salesText = cardConfig?.sales_text;
               const statusText = cardConfig?.status_text;
               const statusText = cardConfig?.status_text;
-              const buyButtonText = cardConfig?.buy_button_text || t('services.buy_now');
-              const sublinkText = cardConfig?.sublink_text;
               const pillText = cardConfig?.pill_text || (tutorialEnabled ? (tutorial?.modal_title || tutorial?.button_text) : null);
               const pillText = cardConfig?.pill_text || (tutorialEnabled ? (tutorial?.modal_title || tutorial?.button_text) : null);
               const descElement = renderDescription(item.description);
               const descElement = renderDescription(item.description);
 
 
@@ -249,9 +247,9 @@ export default function ServiceList() {
                         >
                         >
                           {item.title}
                           {item.title}
                         </h2>
                         </h2>
-                        {officialTag && (
+                        {isOfficial && (
                           <span className="bg-teal-100 text-teal-900 border border-black px-1.5 py-0.5 text-[10px] font-mono font-black shadow-[1px_1px_0px_#000] uppercase">
                           <span className="bg-teal-100 text-teal-900 border border-black px-1.5 py-0.5 text-[10px] font-mono font-black shadow-[1px_1px_0px_#000] uppercase">
-                            {officialTag}
+                            {t('services.official_tag_default')}
                           </span>
                           </span>
                         )}
                         )}
                         {statusTag && (
                         {statusTag && (
@@ -285,10 +283,10 @@ export default function ServiceList() {
                                     }
                                     }
                                   }}
                                   }}
                                   className="inline-flex items-center gap-1.5 px-3 py-1 bg-amber-50 hover:bg-amber-100 text-black border-2 border-black font-mono text-xs font-bold shadow-[2px_2px_0px_#000] hover:translate-x-0.5 hover:translate-y-0.5 active:shadow-none transition-all cursor-pointer"
                                   className="inline-flex items-center gap-1.5 px-3 py-1 bg-amber-50 hover:bg-amber-100 text-black border-2 border-black font-mono text-xs font-bold shadow-[2px_2px_0px_#000] hover:translate-x-0.5 hover:translate-y-0.5 active:shadow-none transition-all cursor-pointer"
-                                  title={t('services.open_guide_tooltip') || '在新标签页中打开官方外部使用指南'}
+                                  title={t('services.open_guide_tooltip')}
                                 >
                                 >
                                   <ExternalLink size={12} />
                                   <ExternalLink size={12} />
-                                    <span>[ {tutorial?.button_text || tutorial?.link_text || pillText || t('查阅使用指引 ↗')} ]</span>
+                                    <span>[ {tutorial?.button_text || tutorial?.link_text || pillText || t('tutorial.view_guide_arrow')} ]</span>
                                 </button>
                                 </button>
                               )}
                               )}
 
 
@@ -304,7 +302,7 @@ export default function ServiceList() {
                                       ? 'bg-amber-300 text-black'
                                       ? 'bg-amber-300 text-black'
                                       : 'bg-amber-50 hover:bg-amber-100 text-black'
                                       : 'bg-amber-50 hover:bg-amber-100 text-black'
                                   }`}
                                   }`}
-                                  title={isTutorialExpanded ? (t('tutorial.collapse_tooltip') || '收起内嵌使用指引') : (t('tutorial.expand_tooltip') || '展开内嵌使用指引')}
+                                  title={isTutorialExpanded ? t('tutorial.collapse_tooltip') : t('tutorial.expand_tooltip')}
                                 >
                                 >
                                   {isTutorialExpanded ? <ChevronUp size={12} /> : <ChevronDown size={12} />}
                                   {isTutorialExpanded ? <ChevronUp size={12} /> : <ChevronDown size={12} />}
                                   <span>
                                   <span>
@@ -323,7 +321,7 @@ export default function ServiceList() {
                                   className="inline-flex items-center gap-1.5 px-3 py-1 bg-amber-50 hover:bg-amber-100 text-black border-2 border-black font-mono text-xs font-bold shadow-[2px_2px_0px_#000] hover:translate-x-0.5 hover:translate-y-0.5 active:shadow-none transition-all cursor-pointer"
                                   className="inline-flex items-center gap-1.5 px-3 py-1 bg-amber-50 hover:bg-amber-100 text-black border-2 border-black font-mono text-xs font-bold shadow-[2px_2px_0px_#000] hover:translate-x-0.5 hover:translate-y-0.5 active:shadow-none transition-all cursor-pointer"
                                 >
                                 >
                                   <BookOpen size={12} />
                                   <BookOpen size={12} />
-                                  <span>[ {tutorial?.button_text || tutorial?.modal_title || pillText || t('查看办理教程 →')} ]</span>
+                                  <span>[ {tutorial?.button_text || tutorial?.modal_title || pillText || t('tutorial.view_tutorial_arrow')} ]</span>
                                 </button>
                                 </button>
                               )}
                               )}
 
 
@@ -336,7 +334,7 @@ export default function ServiceList() {
                                     className="inline-flex items-center gap-1.5 px-3 py-1 bg-amber-50 hover:bg-amber-100 text-black border-2 border-black font-mono text-xs font-bold shadow-[2px_2px_0px_#000] hover:translate-x-0.5 hover:translate-y-0.5 active:shadow-none transition-all cursor-pointer"
                                     className="inline-flex items-center gap-1.5 px-3 py-1 bg-amber-50 hover:bg-amber-100 text-black border-2 border-black font-mono text-xs font-bold shadow-[2px_2px_0px_#000] hover:translate-x-0.5 hover:translate-y-0.5 active:shadow-none transition-all cursor-pointer"
                                   >
                                   >
                                     <BookOpen size={12} />
                                     <BookOpen size={12} />
-                                    <span>[ {tutorial?.button_text || tutorial?.modal_title || pillText || t('查看办理教程 →')} ]</span>
+                                    <span>[ {tutorial?.button_text || tutorial?.modal_title || pillText || t('tutorial.view_tutorial_arrow')} ]</span>
                                   </button>
                                   </button>
 
 
                                   {tutorial?.link_url?.trim() && (
                                   {tutorial?.link_url?.trim() && (
@@ -345,10 +343,10 @@ export default function ServiceList() {
                                       target="_blank"
                                       target="_blank"
                                       rel="noopener noreferrer"
                                       rel="noopener noreferrer"
                                       className="inline-flex items-center gap-1.5 px-3 py-1 bg-white hover:bg-neutral-100 text-black border-2 border-black font-mono text-xs font-bold shadow-[2px_2px_0px_#000] hover:translate-x-0.5 hover:translate-y-0.5 active:shadow-none transition-all cursor-pointer"
                                       className="inline-flex items-center gap-1.5 px-3 py-1 bg-white hover:bg-neutral-100 text-black border-2 border-black font-mono text-xs font-bold shadow-[2px_2px_0px_#000] hover:translate-x-0.5 hover:translate-y-0.5 active:shadow-none transition-all cursor-pointer"
-                                      title={t('services.open_docs_tooltip') || '在新标签页中打开官方文档'}
+                                      title={t('services.open_docs_tooltip')}
                                     >
                                     >
                                       <ExternalLink size={12} />
                                       <ExternalLink size={12} />
-                                      <span>[ {tutorial?.link_text || t('官方文档 ↗')} ]</span>
+                                      <span>[ {tutorial?.link_text || t('services.official_docs')} ]</span>
                                     </a>
                                     </a>
                                   )}
                                   )}
                                 </>
                                 </>
@@ -403,7 +401,7 @@ export default function ServiceList() {
                     <div className="lg:w-48 xl:w-52 shrink-0 flex flex-row lg:flex-col items-center lg:items-end justify-between lg:justify-center gap-3 pt-4 lg:pt-0 border-t-2 border-neutral-200 lg:border-t-0 lg:border-l-2 lg:border-neutral-200 lg:pl-6">
                     <div className="lg:w-48 xl:w-52 shrink-0 flex flex-row lg:flex-col items-center lg:items-end justify-between lg:justify-center gap-3 pt-4 lg:pt-0 border-t-2 border-neutral-200 lg:border-t-0 lg:border-l-2 lg:border-neutral-200 lg:pl-6">
                       {/* 价格展示 */}
                       {/* 价格展示 */}
                       <div className="font-mono text-left lg:text-right">
                       <div className="font-mono text-left lg:text-right">
-                        <div className="text-[10px] font-bold uppercase tracking-wider text-neutral-500">{t('服务费总额')}</div>
+                        <div className="text-[10px] font-bold uppercase tracking-wider text-neutral-500">{t('services.fee_total')}</div>
                         <div className="flex items-baseline justify-end gap-1 mt-0.5">
                         <div className="flex items-baseline justify-end gap-1 mt-0.5">
                           <span className="text-lg font-bold text-black font-mono">
                           <span className="text-lg font-bold text-black font-mono">
                             {item.price_currency === 'CNY' ? '¥' : item.price_currency}
                             {item.price_currency === 'CNY' ? '¥' : item.price_currency}
@@ -419,18 +417,16 @@ export default function ServiceList() {
                         onClick={() => handleOrderClick(item.id)}
                         onClick={() => handleOrderClick(item.id)}
                         className="w-full sm:w-auto px-6 py-2.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black font-mono text-sm shadow-[3px_3px_0px_#000] hover:translate-x-0.5 hover:translate-y-0.5 active:shadow-none transition-all uppercase flex items-center justify-center gap-2 cursor-pointer"
                         className="w-full sm:w-auto px-6 py-2.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black font-mono text-sm shadow-[3px_3px_0px_#000] hover:translate-x-0.5 hover:translate-y-0.5 active:shadow-none transition-all uppercase flex items-center justify-center gap-2 cursor-pointer"
                       >
                       >
-                        <span>[ {buyButtonText} ]</span>
+                        <span>[ {t('services.buy_now')} ]</span>
                       </button>
                       </button>
 
 
-                      {/* 次级链接 (仅当后端配置了 sublink_text 时显示) */}
-                      {sublinkText && (
-                        <button
-                          onClick={() => handleOpenDetail(item)}
-                          className="text-xs font-mono font-bold text-neutral-600 hover:text-black underline underline-offset-4 transition inline-flex items-center gap-1 mt-0.5 cursor-pointer"
-                        >
-                          <span>{sublinkText}</span>
-                        </button>
-                      )}
+                      {/* 次级细则链接 */}
+                      <button
+                        onClick={() => handleOpenDetail(item)}
+                        className="text-xs font-mono font-bold text-neutral-600 hover:text-black underline underline-offset-4 transition inline-flex items-center gap-1 mt-0.5 cursor-pointer"
+                      >
+                        <span>{t('services.sublink_terms')}</span>
+                      </button>
                     </div>
                     </div>
                   </div>
                   </div>
 
 

+ 20 - 2
src/components/admin/orders/DynamicOrderSchemaForm.tsx

@@ -2,6 +2,7 @@
 
 
 import { Loader2, Check, CheckCircle, Info } from 'lucide-react';
 import { Loader2, Check, CheckCircle, Info } from 'lucide-react';
 import { SchemaProperty } from '@/types';
 import { SchemaProperty } from '@/types';
+import FileUploadField, { isFileProperty, inferAcceptType } from '@/components/common/FileUploadField';
 
 
 interface DynamicOrderSchemaFormProps {
 interface DynamicOrderSchemaFormProps {
   formSchema: any;
   formSchema: any;
@@ -57,6 +58,20 @@ export default function DynamicOrderSchemaForm({
       );
       );
     }
     }
 
 
+    if (isFileProperty(key, fieldSchema)) {
+      return (
+        <FileUploadField
+          key={key}
+          value={currentValue}
+          onChange={(url) => onInputChange(key, url)}
+          prefix="admin-orders"
+          compact={true}
+          accept={inferAcceptType(key, fieldSchema)}
+          helperText={fieldSchema.description}
+        />
+      );
+    }
+
     return (
     return (
       <input
       <input
         type={fieldSchema.type === 'integer' || fieldSchema.type === 'number' ? 'number' : 'text'}
         type={fieldSchema.type === 'integer' || fieldSchema.type === 'number' ? 'number' : 'text'}
@@ -80,15 +95,18 @@ export default function DynamicOrderSchemaForm({
           {sortedFields.map((key) => {
           {sortedFields.map((key) => {
             const fieldSchema = formSchema.properties[key] as SchemaProperty;
             const fieldSchema = formSchema.properties[key] as SchemaProperty;
             const hasValue = formValues[key] !== undefined && formValues[key] !== '';
             const hasValue = formValues[key] !== undefined && formValues[key] !== '';
+            const isFile = isFileProperty(key, fieldSchema);
+            const isRequired = Array.isArray(formSchema?.required) && formSchema.required.includes(key);
 
 
             return (
             return (
-              <div key={key} className="space-y-1">
+              <div key={key} className={`space-y-1 ${isFile ? 'col-span-1 md:col-span-2' : ''}`}>
                 <label className="block font-bold uppercase text-black flex items-center justify-between">
                 <label className="block font-bold uppercase text-black flex items-center justify-between">
                   <span>
                   <span>
                     {fieldSchema.title || key}
                     {fieldSchema.title || key}
+                    {isRequired && <span className="text-rose-600 font-bold ml-1" title="Required">*</span>}
                     <span className="ml-1 text-[10px] text-neutral-400 font-mono">({key})</span>
                     <span className="ml-1 text-[10px] text-neutral-400 font-mono">({key})</span>
                   </span>
                   </span>
-                  {hasValue && <span className="text-black font-black">★</span>}
+                  {hasValue && <span className="text-emerald-700 font-black text-[11px]">✓ 已填</span>}
                 </label>
                 </label>
                 {renderField(key, fieldSchema)}
                 {renderField(key, fieldSchema)}
                 {fieldSchema.description && (
                 {fieldSchema.description && (

+ 30 - 6
src/components/admin/orders/OrderDetailModal.tsx

@@ -253,12 +253,36 @@ export default function OrderDetailModal({ isOpen, onClose, order }: OrderDetail
                 [ 02 // 申请人填报资料 (USER INPUTS) ]
                 [ 02 // 申请人填报资料 (USER INPUTS) ]
               </span>
               </span>
               <div className="grid grid-cols-1 sm:grid-cols-2 gap-2 text-xs">
               <div className="grid grid-cols-1 sm:grid-cols-2 gap-2 text-xs">
-                {orderedUserInputs.map(({ key, value }) => (
-                  <div key={key} className="p-2 bg-white border border-black flex items-center justify-between">
-                    <span className="text-[10px] text-neutral-500 font-mono font-bold uppercase">{key}:</span>
-                    <span className="font-bold text-black select-all">{String(value)}</span>
-                  </div>
-                ))}
+                {orderedUserInputs.map(({ key, value }) => {
+                  const strVal = String(value ?? '');
+                  const isLink = strVal.startsWith('http://') || strVal.startsWith('https://') || strVal.startsWith('/api/r2/file');
+                  const isPdf = isLink && (strVal.toLowerCase().includes('.pdf') || key.toLowerCase().includes('pdf'));
+                  const isImg = isLink && (strVal.toLowerCase().includes('.png') || strVal.toLowerCase().includes('.jpg') || strVal.toLowerCase().includes('.jpeg') || strVal.toLowerCase().includes('.webp'));
+
+                  return (
+                    <div key={key} className="p-2 bg-white border border-black flex items-center justify-between gap-2">
+                      <span className="text-[10px] text-neutral-500 font-mono font-bold uppercase shrink-0">{key}:</span>
+                      {isLink ? (
+                        <div className="flex items-center gap-1.5 min-w-0">
+                          <a
+                            href={strVal}
+                            target="_blank"
+                            rel="noreferrer"
+                            className="inline-flex items-center gap-1 px-2 py-0.5 border border-black bg-amber-200 hover:bg-amber-300 text-black font-mono font-bold text-[10px] shadow-[1px_1px_0px_#000] shrink-0"
+                          >
+                            <ExternalLink size={10} />
+                            <span>{isPdf ? '查看 PDF' : isImg ? '查看图片' : '查看文件'}</span>
+                          </a>
+                          <span className="font-mono text-[10px] text-neutral-600 truncate max-w-[130px] select-all" title={strVal}>
+                            {strVal}
+                          </span>
+                        </div>
+                      ) : (
+                        <span className="font-bold text-black select-all truncate">{strVal}</span>
+                      )}
+                    </div>
+                  );
+                })}
               </div>
               </div>
             </div>
             </div>
           )}
           )}

+ 18 - 53
src/components/admin/products/ProductModal.tsx

@@ -476,12 +476,10 @@ export default function ProductModal({
     poster_sub: '',
     poster_sub: '',
     poster_tag: '',
     poster_tag: '',
     poster_accent_color: '#2563eb',
     poster_accent_color: '#2563eb',
-    official_tag: '官方直连',
-    status_tag: 'New',
+    official_tag: '',
+    status_tag: '',
     pill_text: '',
     pill_text: '',
     sales_text: '',
     sales_text: '',
-    buy_button_text: '立即购买',
-    sublink_text: '查阅服务细则 →',
   });
   });
 
 
   useEffect(() => {
   useEffect(() => {
@@ -620,8 +618,6 @@ export default function ProductModal({
             pill_text: c.pill_text || '',
             pill_text: c.pill_text || '',
             sales_text: c.sales_text || '',
             sales_text: c.sales_text || '',
             status_text: c.status_text || '',
             status_text: c.status_text || '',
-            buy_button_text: c.buy_button_text || '',
-            sublink_text: c.sublink_text || '',
           });
           });
         } else {
         } else {
           setCardConfig({
           setCardConfig({
@@ -636,8 +632,6 @@ export default function ProductModal({
             pill_text: '',
             pill_text: '',
             sales_text: '',
             sales_text: '',
             status_text: '',
             status_text: '',
-            buy_button_text: '',
-            sublink_text: '',
           });
           });
         }
         }
 
 
@@ -685,12 +679,10 @@ export default function ProductModal({
           poster_sub: '',
           poster_sub: '',
           poster_tag: '',
           poster_tag: '',
           poster_accent_color: '#2563eb',
           poster_accent_color: '#2563eb',
-          official_tag: '官方直连',
-          status_tag: 'New',
+          official_tag: '',
+          status_tag: '',
           pill_text: '',
           pill_text: '',
           sales_text: '',
           sales_text: '',
-          buy_button_text: '立即购买',
-          sublink_text: '查阅服务细则 →',
         });
         });
         setSelectedSchemaDetail(null);
         setSelectedSchemaDetail(null);
       }
       }
@@ -2000,20 +1992,21 @@ export default function ProductModal({
                 <div className="grid grid-cols-1 md:grid-cols-2 gap-3">
                 <div className="grid grid-cols-1 md:grid-cols-2 gap-3">
                   <div className="space-y-1">
                   <div className="space-y-1">
                     <label className="text-[11px] font-bold text-black uppercase">
                     <label className="text-[11px] font-bold text-black uppercase">
-                      活动/通道标贴 (如: 官方活动、官方直连、特惠直供)
+                      官方直连标识 (Official Channel Badge)
                     </label>
                     </label>
-                    <input
-                      type="text"
-                      placeholder="留空则不显示"
+                    <select
                       className="w-full border-2 border-black bg-white px-2.5 py-1.5 text-xs font-mono text-black outline-none shadow-[2px_2px_0px_#000]"
                       className="w-full border-2 border-black bg-white px-2.5 py-1.5 text-xs font-mono text-black outline-none shadow-[2px_2px_0px_#000]"
-                      value={cardConfig.official_tag || ''}
+                      value={cardConfig.official_tag ? '1' : ''}
                       onChange={(e) => setCardConfig((prev) => ({ ...prev, official_tag: e.target.value }))}
                       onChange={(e) => setCardConfig((prev) => ({ ...prev, official_tag: e.target.value }))}
-                    />
+                    >
+                      <option value="">不显示</option>
+                      <option value="1">启用 (系统自动多语言: 官方直连 / OFFICIAL LINK)</option>
+                    </select>
                   </div>
                   </div>
 
 
                   <div className="space-y-1">
                   <div className="space-y-1">
                     <label className="text-[11px] font-bold text-black uppercase">
                     <label className="text-[11px] font-bold text-black uppercase">
-                      状态徽标 (如: New、Hot、限时可约)
+                      状态徽标 (如: New、Hot)
                     </label>
                     </label>
                     <input
                     <input
                       type="text"
                       type="text"
@@ -2050,7 +2043,7 @@ export default function ProductModal({
                     />
                     />
                   </div>
                   </div>
 
 
-                  <div className="space-y-1">
+                  <div className="space-y-1 md:col-span-2">
                     <label className="text-[11px] font-bold text-black uppercase">
                     <label className="text-[11px] font-bold text-black uppercase">
                       渠道状态文案 (如: 直连就绪、通道正常、全天候巡检)
                       渠道状态文案 (如: 直连就绪、通道正常、全天候巡检)
                     </label>
                     </label>
@@ -2062,32 +2055,6 @@ export default function ProductModal({
                       onChange={(e) => setCardConfig((prev) => ({ ...prev, status_text: e.target.value }))}
                       onChange={(e) => setCardConfig((prev) => ({ ...prev, status_text: e.target.value }))}
                     />
                     />
                   </div>
                   </div>
-
-                  <div className="space-y-1">
-                    <label className="text-[11px] font-bold text-black uppercase">
-                      右侧购买按键文案 (如: 立即购买、立即申请、立即抢位)
-                    </label>
-                    <input
-                      type="text"
-                      placeholder="默认: 立即购买 / Order Now"
-                      className="w-full border-2 border-black bg-white px-2.5 py-1.5 text-xs font-mono text-black outline-none shadow-[2px_2px_0px_#000]"
-                      value={cardConfig.buy_button_text || ''}
-                      onChange={(e) => setCardConfig((prev) => ({ ...prev, buy_button_text: e.target.value }))}
-                    />
-                  </div>
-
-                  <div className="space-y-1">
-                    <label className="text-[11px] font-bold text-black uppercase">
-                      底部次级细字链接 (如: 已购买? 去激活 →、查阅服务细则 →)
-                    </label>
-                    <input
-                      type="text"
-                      placeholder="留空则不显示"
-                      className="w-full border-2 border-black bg-white px-2.5 py-1.5 text-xs font-mono text-black outline-none shadow-[2px_2px_0px_#000]"
-                      value={cardConfig.sublink_text || ''}
-                      onChange={(e) => setCardConfig((prev) => ({ ...prev, sublink_text: e.target.value }))}
-                    />
-                  </div>
                 </div>
                 </div>
               </div>
               </div>
 
 
@@ -2122,7 +2089,7 @@ export default function ProductModal({
                         </h3>
                         </h3>
                         {cardConfig.official_tag && (
                         {cardConfig.official_tag && (
                           <span className="bg-teal-100 text-teal-900 border border-black px-1.5 py-0.2 text-[10px] font-mono font-black shadow-[1px_1px_0px_#000] uppercase">
                           <span className="bg-teal-100 text-teal-900 border border-black px-1.5 py-0.2 text-[10px] font-mono font-black shadow-[1px_1px_0px_#000] uppercase">
-                            {cardConfig.official_tag}
+                            官方直连 / OFFICIAL LINK
                           </span>
                           </span>
                         )}
                         )}
                         {cardConfig.status_tag && (
                         {cardConfig.status_tag && (
@@ -2173,14 +2140,12 @@ export default function ProductModal({
                       </div>
                       </div>
 
 
                       <span className="px-4 py-2 bg-amber-300 text-black border-2 border-black font-black font-mono text-xs shadow-[2px_2px_0px_#000] uppercase">
                       <span className="px-4 py-2 bg-amber-300 text-black border-2 border-black font-black font-mono text-xs shadow-[2px_2px_0px_#000] uppercase">
-                        [ {cardConfig.buy_button_text || '立即购买'} ]
+                        [ 立即购买 / Order Now ]
                       </span>
                       </span>
 
 
-                      {cardConfig.sublink_text && (
-                        <span className="text-[10px] font-mono font-bold text-neutral-600 underline underline-offset-2">
-                          {cardConfig.sublink_text}
-                        </span>
-                      )}
+                      <span className="text-[10px] font-mono font-bold text-neutral-600 underline underline-offset-2">
+                        查阅服务细则 →
+                      </span>
                     </div>
                     </div>
                   </div>
                   </div>
                 </div>
                 </div>

+ 106 - 1
src/components/admin/products/SchemaManager.tsx

@@ -18,7 +18,8 @@ import {
   Layers,
   Layers,
   Braces,
   Braces,
   Minimize2,
   Minimize2,
-  AlertCircle
+  AlertCircle,
+  FileText
 } from 'lucide-react';
 } from 'lucide-react';
 import Editor from '@monaco-editor/react';
 import Editor from '@monaco-editor/react';
 import { toast } from 'react-hot-toast';
 import { toast } from 'react-hot-toast';
@@ -27,6 +28,7 @@ import { SchemaItem } from '@/types';
 import DynamicOrderSchemaForm from '@/components/admin/orders/DynamicOrderSchemaForm';
 import DynamicOrderSchemaForm from '@/components/admin/orders/DynamicOrderSchemaForm';
 import JsonEditor from '@/components/common/JsonEditor';
 import JsonEditor from '@/components/common/JsonEditor';
 import { productService } from '@/lib/services';
 import { productService } from '@/lib/services';
+import { isFileProperty, inferAcceptType } from '@/components/common/FileUploadField';
 
 
 const SCHEMA_TEMPLATES = [
 const SCHEMA_TEMPLATES = [
   {
   {
@@ -195,6 +197,99 @@ const SCHEMA_TEMPLATES = [
       2
       2
     ),
     ),
   },
   },
+  {
+    name: '意大利使馆签证申报表 (含护照及IRP PDF上传)',
+    description: '标准意大利使馆签证配置,支持护照PDF、IRP居留卡PDF (< 1MB) 在线安全上传与日期校验。',
+    schema_json: JSON.stringify(
+      {
+        type: 'object',
+        title: 'Italian Embassy Visa Config',
+        $schema: 'http://json-schema.org/draft-07/schema#',
+        required: [
+          'citizen',
+          'passport_no',
+          'address',
+          'passport_expiry_date',
+          'passport_pdf',
+          'irp_pdf',
+          'phone',
+          'email',
+        ],
+        properties: {
+          citizen: {
+            type: 'string',
+            title: 'Citizen',
+            'x-order': 1,
+            description: 'Citizenship / nationality',
+          },
+          passport_no: {
+            type: 'string',
+            title: 'Passport Number',
+            'x-order': 2,
+            description: 'Passport number',
+          },
+          address: {
+            type: 'string',
+            title: 'Address (include postcode)',
+            'x-order': 3,
+            description: 'Full address including postcode',
+          },
+          passport_expiry_date: {
+            type: 'string',
+            title: 'Passport Expiry Date',
+            format: 'date',
+            'x-order': 4,
+            description: 'Passport expiry date',
+          },
+          passport_pdf: {
+            type: 'string',
+            title: 'Passport PDF (< 1MB)',
+            format: 'uri',
+            'x-order': 5,
+            description: 'Download link for passport PDF, file size less than 1MB',
+          },
+          irp_pdf: {
+            type: 'string',
+            title: 'IRP PDF (< 1MB)',
+            format: 'uri',
+            'x-order': 6,
+            description: 'Download link for IRP PDF, file size less than 1MB',
+          },
+          phone: {
+            type: 'string',
+            title: 'Phone',
+            'x-order': 7,
+            description: 'Phone number',
+          },
+          email: {
+            type: 'string',
+            title: 'Email',
+            format: 'email',
+            'x-order': 8,
+            maxLength: 255,
+            description: 'Email address',
+          },
+          expected_start_date: {
+            type: 'string',
+            title: 'Expected Appointment Start Date',
+            format: 'date',
+            'x-order': 9,
+            description: 'Earliest expected appointment date',
+          },
+          expected_end_date: {
+            type: 'string',
+            title: 'Expected Appointment End Date',
+            format: 'date',
+            'x-order': 10,
+            description: 'Latest expected appointment date',
+          },
+        },
+        additionalProperties: false,
+      },
+      null,
+      2
+    ),
+  },
 ];
 ];
 
 
 interface SchemaManagerProps {
 interface SchemaManagerProps {
@@ -800,6 +895,16 @@ export default function SchemaManager({ isOpen, onClose }: SchemaManagerProps) {
                                           type="date"
                                           type="date"
                                           className="w-full border-2 border-black px-3 py-1.5 text-xs bg-white text-black outline-none shadow-[2px_2px_0px_#000]"
                                           className="w-full border-2 border-black px-3 py-1.5 text-xs bg-white text-black outline-none shadow-[2px_2px_0px_#000]"
                                         />
                                         />
+                                      ) : isFileProperty(fieldKey, prop) ? (
+                                        <div className="border-2 border-dashed border-black bg-neutral-50 p-3 text-center shadow-[2px_2px_0px_#000]">
+                                          <div className="flex items-center justify-center gap-1.5 font-bold text-xs text-black uppercase">
+                                            <FileText size={14} className="text-black" />
+                                            <span>[ {fieldTitle} // 文件/PDF上传槽位 ]</span>
+                                          </div>
+                                          <span className="text-[10px] text-neutral-500 font-mono block mt-1">
+                                            支持本地上传 / 拖拽提交至 R2 (&lt; 1MB) · 格式: {inferAcceptType(fieldKey, prop)}
+                                          </span>
+                                        </div>
                                       ) : prop.type === 'number' || prop.type === 'integer' ? (
                                       ) : prop.type === 'number' || prop.type === 'integer' ? (
                                         <input
                                         <input
                                           type="number"
                                           type="number"

+ 2 - 2
src/components/common/ConfirmModal.tsx

@@ -46,7 +46,7 @@ export default function ConfirmModal({ isOpen, onCancel, onConfirm, message, tit
             onClick={onCancel}
             onClick={onCancel}
             className="px-4 py-2 border-2 border-black bg-white text-black font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-50 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
             className="px-4 py-2 border-2 border-black bg-white text-black font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-50 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
           >
           >
-            [ {t('common.cancel') || '取消'} ]
+            [ {t('common.cancel')} ]
           </button>
           </button>
           <button
           <button
             onClick={() => {
             onClick={() => {
@@ -55,7 +55,7 @@ export default function ConfirmModal({ isOpen, onCancel, onConfirm, message, tit
             }}
             }}
             className="px-6 py-2 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
             className="px-6 py-2 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
           >
           >
-            [ {t('common.confirm_submit') || '确认提交 →'} ]
+            [ {t('common.confirm_submit')} ]
           </button>
           </button>
         </div>
         </div>
       </div>
       </div>

+ 630 - 0
src/components/common/FileUploadField.tsx

@@ -0,0 +1,630 @@
+'use client';
+
+import React, { useRef, useState, useId } from 'react';
+import { 
+  Upload, 
+  X, 
+  Loader2, 
+  FileText, 
+  ExternalLink, 
+  FileCheck, 
+  Link as LinkIcon, 
+  File, 
+  AlertCircle,
+  Eye
+} from 'lucide-react';
+import { toast } from 'react-hot-toast';
+import { storageService } from '@/lib/services/storageService';
+import { useLanguage } from '@/lib/i18n/LanguageContext';
+
+export interface FileUploadFieldProps {
+  label?: string;
+  value: string;
+  onChange: (url: string) => void;
+  prefix?: string;
+  maxSizeMB?: number;
+  helperText?: string;
+  accept?: string;
+  required?: boolean;
+  compact?: boolean;
+  disabled?: boolean;
+  className?: string;
+  onBeforeUpload?: () => Promise<boolean | void>;
+}
+
+/**
+ * 判断 URL 是否属于 PDF 文件
+ */
+export function isPdfUrl(url: string, keyName: string = ''): boolean {
+  if (!url) return false;
+  const clean = url.split('?')[0].toLowerCase();
+  return clean.endsWith('.pdf') || keyName.toLowerCase().includes('pdf');
+}
+
+/**
+ * 判断 URL 是否属于图片
+ */
+export function isImageUrl(url: string): boolean {
+  if (!url) return false;
+  const clean = url.split('?')[0].toLowerCase();
+  return (
+    clean.endsWith('.png') ||
+    clean.endsWith('.jpg') ||
+    clean.endsWith('.jpeg') ||
+    clean.endsWith('.webp') ||
+    clean.endsWith('.gif') ||
+    clean.endsWith('.svg')
+  );
+}
+
+/**
+ * 提取展示用文件名
+ */
+export function extractFileName(url: string, defaultName: string = 'Uploaded File'): string {
+  if (!url) return defaultName;
+  try {
+    const urlObj = new URL(url, 'https://dummy.base');
+    const key = urlObj.searchParams.get('key');
+    if (key) {
+      return key.split('/').pop() || defaultName;
+    }
+    const pathname = urlObj.pathname;
+    const parts = pathname.split('/').filter(Boolean);
+    if (parts.length > 0) {
+      return decodeURIComponent(parts[parts.length - 1]);
+    }
+  } catch {
+    const parts = url.split('/');
+    if (parts.length > 0) {
+      return parts[parts.length - 1].split('?')[0];
+    }
+  }
+  return defaultName;
+}
+
+/**
+ * 判断 Schema 属性是否代表文件上传项 (PDF, 文件, 图片等)
+ */
+export function isFileProperty(key: string, prop: any): boolean {
+  if (!prop || typeof prop !== 'object') return false;
+  // 1. 标准及常见 format / widget
+  if (prop.format === 'uri' || prop.format === 'data-url' || prop.format === 'file') return true;
+  if (prop['ui:widget'] === 'file' || prop['ui:widget'] === 'upload') return true;
+  if (prop.contentMediaType) return true;
+  // 2. 字段名规则 (以 _pdf, _file, _image 等结尾)
+  const lowerKey = key.toLowerCase();
+  if (
+    lowerKey.endsWith('_pdf') ||
+    lowerKey.endsWith('_file') ||
+    lowerKey.endsWith('_doc') ||
+    lowerKey.endsWith('_image') ||
+    lowerKey.endsWith('_img') ||
+    lowerKey.endsWith('_attachment') ||
+    lowerKey.endsWith('_voucher')
+  ) {
+    return true;
+  }
+  // 3. description 包含明确文件上传描述
+  if (typeof prop.description === 'string') {
+    const desc = prop.description.toLowerCase();
+    if (desc.includes('pdf') || desc.includes('download link') || desc.includes('file size')) {
+      return true;
+    }
+  }
+  return false;
+}
+
+/**
+ * 根据字段特征推断文件选择类型
+ */
+export function inferAcceptType(key: string, prop: any): string {
+  const lowerKey = key.toLowerCase();
+  const desc = (prop?.description || '').toLowerCase();
+  const title = (prop?.title || '').toLowerCase();
+
+  if (prop?.contentMediaType) {
+    return prop.contentMediaType;
+  }
+  if (lowerKey.includes('pdf') || desc.includes('pdf') || title.includes('pdf')) {
+    return 'application/pdf,.pdf';
+  }
+  if (
+    lowerKey.includes('image') ||
+    lowerKey.includes('img') ||
+    lowerKey.includes('pic') ||
+    lowerKey.includes('photo') ||
+    desc.includes('image')
+  ) {
+    return 'image/png,image/jpeg,image/webp,image/gif';
+  }
+  return '.pdf,image/png,image/jpeg,image/webp,application/pdf';
+}
+
+/**
+ * 多语言字典映射(支持全部 7 种系统官方语言)
+ */
+const I18N_MAP: Record<string, {
+  maxSize: (mb: number) => string;
+  pdfUploaded: string;
+  fileUploaded: string;
+  uploadFailed: string;
+  uploadFailedPrefix: string;
+  noUrlReturned: string;
+  switchToUpload: string;
+  manualHint: string;
+  viewDownload: string;
+  view: string;
+  replace: string;
+  remove: string;
+  dragOrClick: string;
+  defaultHelper: (mb: number) => string;
+  pasteLink: string;
+  uploading: string;
+  validating: string;
+  pdfBadge: string;
+  imageBadge: string;
+  fileBadge: string;
+  maxLabel: (mb: number) => string;
+  pastePlaceholder: string;
+}> = {
+  zh: {
+    maxSize: (mb) => `文件体积超出限制(最大允许 ${mb}MB)`,
+    pdfUploaded: 'PDF 文件上传成功',
+    fileUploaded: '文件已上传至云端存储',
+    uploadFailed: '文件上传失败,请检查网络后重试',
+    uploadFailedPrefix: '上传失败: ',
+    noUrlReturned: '未获取到返回的文件链接',
+    switchToUpload: '[ 切换上传 ]',
+    manualHint: '输入已托管的文件直链,或点击右侧切换为本地文件上传',
+    viewDownload: '[ 查看/下载 ]',
+    view: '[ 查看 ]',
+    replace: '[ 更换 ]',
+    remove: '[ 移除 ]',
+    dragOrClick: '[ 点击选择文件 或 拖拽至此处上传 ]',
+    defaultHelper: (mb) => `支持 PDF 及安全图片格式(单文件最大限制 ${mb}MB)`,
+    pasteLink: '[ 或手动粘贴外部直接下载链接 ]',
+    uploading: '[ 正在上传至云端存储... ]',
+    validating: '正在校验文件格式并加密传输至存储桶...',
+    pdfBadge: 'PDF 档案',
+    imageBadge: '图片',
+    fileBadge: '文件',
+    maxLabel: (mb) => `[ 最大 ${mb}MB ]`,
+    pastePlaceholder: 'https://... 或 /api/r2/file?key=...',
+  },
+  en: {
+    maxSize: (mb) => `File size exceeds the allowed limit (max ${mb}MB)`,
+    pdfUploaded: 'PDF document uploaded successfully',
+    fileUploaded: 'File uploaded successfully to cloud storage',
+    uploadFailed: 'File upload failed, please check network and retry',
+    uploadFailedPrefix: 'Upload failed: ',
+    noUrlReturned: 'No file URL returned from upload service',
+    switchToUpload: '[ Switch to Upload ]',
+    manualHint: 'Enter hosted file direct link, or click to switch to local file upload',
+    viewDownload: '[ View / Download ]',
+    view: '[ View ]',
+    replace: '[ Replace ]',
+    remove: '[ Remove ]',
+    dragOrClick: '[ Click to choose file or drag & drop here ]',
+    defaultHelper: (mb) => `Supports PDF and safe image formats (max ${mb}MB)`,
+    pasteLink: '[ Or paste external download link manually ]',
+    uploading: '[ UPLOADING TO SECURE STORAGE... ]',
+    validating: 'Validating format and streaming to storage bucket...',
+    pdfBadge: 'PDF DOSSIER',
+    imageBadge: 'IMAGE',
+    fileBadge: 'FILE',
+    maxLabel: (mb) => `[ MAX ${mb}MB ]`,
+    pastePlaceholder: 'https://... or /api/r2/file?key=...',
+  },
+  de: {
+    maxSize: (mb) => `Dateigröße überschreitet das Limit (max. ${mb}MB)`,
+    pdfUploaded: 'PDF-Dokument erfolgreich hochgeladen',
+    fileUploaded: 'Datei erfolgreich in den Cloud-Speicher hochgeladen',
+    uploadFailed: 'Upload fehlgeschlagen, bitte erneut versuchen',
+    uploadFailedPrefix: 'Upload fehlgeschlagen: ',
+    noUrlReturned: 'Keine Datei-URL vom Speicherdienst zurückgegeben',
+    switchToUpload: '[ Zu Upload wechseln ]',
+    manualHint: 'Geben Sie die gehostete Datei-URL ein oder wechseln Sie zum lokalen Upload',
+    viewDownload: '[ Anzeigen / Herunterladen ]',
+    view: '[ Anzeigen ]',
+    replace: '[ Ersetzen ]',
+    remove: '[ Entfernen ]',
+    dragOrClick: '[ Datei auswählen oder hierher ziehen ]',
+    defaultHelper: (mb) => `Unterstützt PDF und sichere Bildformate (max. ${mb}MB)`,
+    pasteLink: '[ Oder externen Download-Link manuell einfügen ]',
+    uploading: '[ WIRD IN DEN SPEICHER HOCHGELADEN... ]',
+    validating: 'Format wird überprüft und sicher übertragen...',
+    pdfBadge: 'PDF-DOSSIER',
+    imageBadge: 'BILD',
+    fileBadge: 'DATEI',
+    maxLabel: (mb) => `[ MAX. ${mb}MB ]`,
+    pastePlaceholder: 'https://... oder /api/r2/file?key=...',
+  },
+  fr: {
+    maxSize: (mb) => `La taille du fichier dépasse la limite (max. ${mb}Mo)`,
+    pdfUploaded: 'Document PDF téléversé avec succès',
+    fileUploaded: 'Fichier téléversé avec succès sur le stockage cloud',
+    uploadFailed: 'Échec du téléversement, veuillez réessayer',
+    uploadFailedPrefix: 'Échec du téléversement: ',
+    noUrlReturned: 'Aucune URL de fichier renvoyée',
+    switchToUpload: '[ Passer au téléversement ]',
+    manualHint: 'Entrez l\'URL directe hébergée ou cliquez pour téléverser un fichier local',
+    viewDownload: '[ Voir / Télécharger ]',
+    view: '[ Voir ]',
+    replace: '[ Remplacer ]',
+    remove: '[ Supprimer ]',
+    dragOrClick: '[ Cliquer pour choisir un fichier ou glisser-déposer ici ]',
+    defaultHelper: (mb) => `Prend en charge les formats PDF et images sûrs (max. ${mb}Mo)`,
+    pasteLink: '[ Ou coller le lien de téléchargement direct ]',
+    uploading: '[ TÉLÉVERSEMENT VERS LE STOCKAGE EN COURS... ]',
+    validating: 'Validation du format et chiffrement en cours...',
+    pdfBadge: 'DOSSIER PDF',
+    imageBadge: 'IMAGE',
+    fileBadge: 'FICHIER',
+    maxLabel: (mb) => `[ MAX ${mb}Mo ]`,
+    pastePlaceholder: 'https://... ou /api/r2/file?key=...',
+  },
+  es: {
+    maxSize: (mb) => `El tamaño del archivo excede el límite (máx. ${mb}MB)`,
+    pdfUploaded: 'Documento PDF subido con éxito',
+    fileUploaded: 'Archivo subido con éxito al almacenamiento en la nube',
+    uploadFailed: 'Error al subir el archivo, inténtelo de nuevo',
+    uploadFailedPrefix: 'Error al subir: ',
+    noUrlReturned: 'No se devolvió la URL del archivo',
+    switchToUpload: '[ Cambiar a subir archivo ]',
+    manualHint: 'Ingrese el enlace directo o cambie a subida local',
+    viewDownload: '[ Ver / Descargar ]',
+    view: '[ Ver ]',
+    replace: '[ Reemplazar ]',
+    remove: '[ Eliminar ]',
+    dragOrClick: '[ Haga clic para seleccionar o arrastre el archivo aquí ]',
+    defaultHelper: (mb) => `Admite formatos PDF e imágenes seguros (máx. ${mb}MB)`,
+    pasteLink: '[ O pegue el enlace de descarga directamente ]',
+    uploading: '[ SUBIENDO AL ALMACENAMIENTO SEGURO... ]',
+    validating: 'Validando formato y transfiriendo de forma segura...',
+    pdfBadge: 'EXPEDIENTE PDF',
+    imageBadge: 'IMAGEN',
+    fileBadge: 'ARCHIVO',
+    maxLabel: (mb) => `[ MÁX ${mb}MB ]`,
+    pastePlaceholder: 'https://... o /api/r2/file?key=...',
+  },
+  it: {
+    maxSize: (mb) => `La dimensione del file supera il limite (max. ${mb}MB)`,
+    pdfUploaded: 'Documento PDF caricato con successo',
+    fileUploaded: 'File caricato con successo nello spazio di archiviazione',
+    uploadFailed: 'Caricamento non riuscito, riprova',
+    uploadFailedPrefix: 'Caricamento non riuscito: ',
+    noUrlReturned: 'Nessun URL restituito dal servizio di archiviazione',
+    switchToUpload: '[ Passa al caricamento ]',
+    manualHint: 'Inserisci il link diretto o passa al caricamento locale',
+    viewDownload: '[ Visualizza / Scarica ]',
+    view: '[ Visualizza ]',
+    replace: '[ Sostituisci ]',
+    remove: '[ Rimuovi ]',
+    dragOrClick: '[ Fai clic per selezionare o trascina il file qui ]',
+    defaultHelper: (mb) => `Supporta PDF e formati immagine sicuri (max. ${mb}MB)`,
+    pasteLink: '[ O incolla manualmente il link di download ]',
+    uploading: '[ CARICAMENTO NELL\'ARCHIVIO IN CORSO... ]',
+    validating: 'Convalida del formato e trasferimento protetto in corso...',
+    pdfBadge: 'DOSSIER PDF',
+    imageBadge: 'IMMAGINE',
+    fileBadge: 'FILE',
+    maxLabel: (mb) => `[ MAX ${mb}MB ]`,
+    pastePlaceholder: 'https://... o /api/r2/file?key=...',
+  },
+  pt: {
+    maxSize: (mb) => `O tamanho do arquivo excede o limite (máx. ${mb}MB)`,
+    pdfUploaded: 'Documento PDF enviado com sucesso',
+    fileUploaded: 'Arquivo enviado com sucesso para o armazenamento em nuvem',
+    uploadFailed: 'Falha no envio do arquivo, tente novamente',
+    uploadFailedPrefix: 'Falha no envio: ',
+    noUrlReturned: 'Nenhum URL retornado pelo serviço de armazenamento',
+    switchToUpload: '[ Alternar para envio ]',
+    manualHint: 'Insira o link direto ou alterne para envio local',
+    viewDownload: '[ Ver / Baixar ]',
+    view: '[ Ver ]',
+    replace: '[ Substituir ]',
+    remove: '[ Remover ]',
+    dragOrClick: '[ Clique para selecionar ou arraste o arquivo para cá ]',
+    defaultHelper: (mb) => `Suporta PDF e formatos de imagem seguros (máx. ${mb}MB)`,
+    pasteLink: '[ Ou cole o link de download direto ]',
+    uploading: '[ ENVIANDO PARA O ARMAZENAMENTO SEGURO... ]',
+    validating: 'Validando formato e transferindo com segurança...',
+    pdfBadge: 'DOSSIÊ PDF',
+    imageBadge: 'IMAGEM',
+    fileBadge: 'ARQUIVO',
+    maxLabel: (mb) => `[ MÁX ${mb}MB ]`,
+    pastePlaceholder: 'https://... ou /api/r2/file?key=...',
+  },
+};
+
+export default function FileUploadField({
+  label,
+  value,
+  onChange,
+  prefix = 'uploads',
+  maxSizeMB = 1,
+  helperText,
+  accept = 'application/pdf,.pdf,image/png,image/jpeg,image/webp',
+  required = false,
+  compact = false,
+  disabled = false,
+  className = '',
+  onBeforeUpload,
+}: FileUploadFieldProps) {
+  const inputId = useId();
+  const fileInputRef = useRef<HTMLInputElement>(null);
+  const [uploading, setUploading] = useState(false);
+  const [isDragOver, setIsDragOver] = useState(false);
+  const [manualInputMode, setManualInputMode] = useState(false);
+
+  // 获取当前环境语言,缺失则智能回退
+  let currentLang = 'zh';
+  try {
+    const langContext = useLanguage();
+    if (langContext?.lang) {
+      currentLang = langContext.lang;
+    }
+  } catch {
+    // 兼容在非 LanguageProvider 上下文下使用
+  }
+
+  const i18n = I18N_MAP[currentLang] || I18N_MAP.en;
+
+  const isPdf = isPdfUrl(value);
+  const isImg = isImageUrl(value);
+  const fileName = extractFileName(value, isPdf ? 'document.pdf' : 'uploaded_file');
+
+  const processUpload = async (file: File) => {
+    if (fileInputRef.current) {
+      fileInputRef.current.value = '';
+    }
+
+    if (file.size > maxSizeMB * 1024 * 1024) {
+      toast.error(i18n.maxSize(maxSizeMB));
+      return;
+    }
+
+    if (onBeforeUpload) {
+      try {
+        const canProceed = await onBeforeUpload();
+        if (canProceed === false) return;
+      } catch (e) {
+        console.warn('onBeforeUpload check failed:', e);
+      }
+    }
+
+    setUploading(true);
+    try {
+      const res = await storageService.upload(file, prefix);
+      if (!res?.url) {
+        throw new Error(i18n.noUrlReturned);
+      }
+      onChange(res.url);
+      toast.success(isPdfUrl(res.url) ? i18n.pdfUploaded : i18n.fileUploaded);
+    } catch (err: any) {
+      console.error('[File Upload Error]', err);
+      const msg = err.response?.data?.message || err.message || i18n.uploadFailed;
+      toast.error(`${i18n.uploadFailedPrefix}${msg}`);
+    } finally {
+      setUploading(false);
+    }
+  };
+
+  const handleFileSelect = (e: React.ChangeEvent<HTMLInputElement>) => {
+    const file = e.target.files?.[0];
+    if (file) {
+      processUpload(file);
+    }
+  };
+
+  const handleDragOver = (e: React.DragEvent) => {
+    e.preventDefault();
+    if (!disabled && !uploading) {
+      setIsDragOver(true);
+    }
+  };
+
+  const handleDragLeave = (e: React.DragEvent) => {
+    e.preventDefault();
+    setIsDragOver(false);
+  };
+
+  const handleDrop = (e: React.DragEvent) => {
+    e.preventDefault();
+    setIsDragOver(false);
+    if (disabled || uploading) return;
+    const file = e.dataTransfer.files?.[0];
+    if (file) {
+      processUpload(file);
+    }
+  };
+
+  const handleRemove = (e: React.MouseEvent) => {
+    e.stopPropagation();
+    onChange('');
+  };
+
+  return (
+    <div className={`space-y-1.5 font-mono ${className}`}>
+      {label && (
+        <label htmlFor={inputId} className="text-xs font-bold text-black uppercase block flex items-center justify-between">
+          <span>
+            {label}
+            {required && <span className="text-rose-600 font-bold ml-1">*</span>}
+          </span>
+          <span className="text-[10px] text-neutral-500 font-normal">
+            {i18n.maxLabel(maxSizeMB)}
+          </span>
+        </label>
+      )}
+
+      {/* 原生隐藏 file input */}
+      <input
+        id={inputId}
+        type="file"
+        ref={fileInputRef}
+        onChange={handleFileSelect}
+        accept={accept}
+        disabled={disabled || uploading}
+        className="hidden"
+      />
+
+      {/* 状态 1: 手动输入 URL 模式 */}
+      {manualInputMode ? (
+        <div className="space-y-1.5">
+          <div className="flex gap-1.5">
+            <input
+              type="url"
+              value={value}
+              onChange={(e) => onChange(e.target.value)}
+              placeholder={i18n.pastePlaceholder}
+              className="flex-1 border-2 border-black bg-white p-2.5 text-xs text-black outline-none shadow-[2px_2px_0px_#000] focus:bg-amber-50"
+            />
+            <button
+              type="button"
+              onClick={() => setManualInputMode(false)}
+              className="px-2.5 py-1 bg-neutral-200 hover:bg-neutral-300 border-2 border-black text-black text-xs font-bold uppercase shadow-[2px_2px_0px_#000]"
+            >
+              {i18n.switchToUpload}
+            </button>
+          </div>
+          <p className="text-[10px] text-neutral-500 font-sans">
+            {i18n.manualHint}
+          </p>
+        </div>
+      ) : value ? (
+        /* 状态 2: 已上传/已有文件展示 */
+        <div className="border-2 border-black bg-white p-3 shadow-[3px_3px_0px_#000] space-y-2.5">
+          <div className="flex items-start justify-between gap-3">
+            <div className="flex items-center gap-2.5 min-w-0">
+              {/* 文件图标徽标 */}
+              <div className={`w-10 h-10 border-2 border-black flex items-center justify-center shrink-0 shadow-[2px_2px_0px_#000] ${
+                isPdf ? 'bg-rose-100 text-rose-700' : isImg ? 'bg-emerald-100 text-emerald-700' : 'bg-amber-100 text-amber-800'
+              }`}>
+                {isPdf ? (
+                  <FileText size={20} className="stroke-[2.2]" />
+                ) : isImg ? (
+                  <FileCheck size={20} className="stroke-[2.2]" />
+                ) : (
+                  <File size={20} className="stroke-[2.2]" />
+                )}
+              </div>
+
+              <div className="min-w-0">
+                <div className="flex items-center gap-1.5 flex-wrap">
+                  <span className={`px-1.5 py-0.2 border border-black text-[9px] font-black uppercase ${
+                    isPdf ? 'bg-rose-300 text-black' : isImg ? 'bg-emerald-300 text-black' : 'bg-neutral-200 text-black'
+                  }`}>
+                    {isPdf ? i18n.pdfBadge : isImg ? i18n.imageBadge : i18n.fileBadge}
+                  </span>
+                  <span className="text-xs font-bold text-black truncate max-w-[220px] sm:max-w-xs block" title={fileName}>
+                    {fileName}
+                  </span>
+                </div>
+                <p className="text-[10px] text-neutral-500 truncate max-w-[240px] sm:max-w-sm mt-0.5" title={value}>
+                  {value}
+                </p>
+              </div>
+            </div>
+
+            {/* 操作按键区 */}
+            <div className="flex items-center gap-1.5 shrink-0">
+              <a
+                href={value}
+                target="_blank"
+                rel="noreferrer"
+                className="px-2 py-1 bg-white hover:bg-neutral-100 border-2 border-black text-black text-xs font-bold flex items-center gap-1 shadow-[1px_1px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition"
+                title={i18n.viewDownload}
+              >
+                <ExternalLink size={12} />
+                <span className="hidden sm:inline">{i18n.viewDownload}</span>
+                <span className="sm:hidden">{i18n.view}</span>
+              </a>
+
+              <button
+                type="button"
+                disabled={disabled || uploading}
+                onClick={() => fileInputRef.current?.click()}
+                className="px-2 py-1 bg-amber-300 hover:bg-amber-400 border-2 border-black text-black text-xs font-bold uppercase shadow-[1px_1px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition disabled:opacity-50"
+              >
+                {i18n.replace}
+              </button>
+
+              <button
+                type="button"
+                disabled={disabled || uploading}
+                onClick={handleRemove}
+                className="px-2 py-1 bg-rose-100 hover:bg-rose-200 border-2 border-black text-rose-800 text-xs font-bold uppercase shadow-[1px_1px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition disabled:opacity-50"
+              >
+                {i18n.remove}
+              </button>
+            </div>
+          </div>
+
+          {/* 如果是图片,可展开小缩略图 */}
+          {isImg && (
+            <div className="pt-2 border-t border-dashed border-neutral-300">
+              <img
+                src={value}
+                alt="Uploaded preview"
+                className="max-h-24 max-w-full object-contain border border-black bg-neutral-100 p-1"
+              />
+            </div>
+          )}
+        </div>
+      ) : (
+        /* 状态 3: 未上传,拖拽与点击上传区域 */
+        <div
+          onDragOver={handleDragOver}
+          onDragLeave={handleDragLeave}
+          onDrop={handleDrop}
+          onClick={() => !disabled && !uploading && fileInputRef.current?.click()}
+          className={`border-2 border-dashed transition cursor-pointer flex flex-col items-center justify-center shadow-[2px_2px_0px_#000] select-none ${
+            isDragOver
+              ? 'border-black bg-amber-200 scale-[1.01]'
+              : 'border-black bg-neutral-50 hover:bg-amber-50/70'
+          } ${compact ? 'p-3' : 'p-5 sm:p-6'}`}
+        >
+          {uploading ? (
+            <div className="flex flex-col items-center gap-1.5 text-black">
+              <Loader2 size={22} className="animate-spin text-amber-500" />
+              <span className="text-xs font-black uppercase">
+                {i18n.uploading}
+              </span>
+              <span className="text-[10px] text-neutral-500 font-sans">
+                {i18n.validating}
+              </span>
+            </div>
+          ) : (
+            <div className="flex flex-col items-center gap-1.5 text-center">
+              <div className="w-9 h-9 border-2 border-black bg-white flex items-center justify-center shadow-[2px_2px_0px_#000] mb-0.5">
+                <Upload size={16} className="text-black" />
+              </div>
+              <div>
+                <span className="text-xs font-black text-black uppercase block">
+                  {i18n.dragOrClick}
+                </span>
+                <span className="text-[10px] text-neutral-500 block mt-0.5 font-sans">
+                  {helperText || i18n.defaultHelper(maxSizeMB)}
+                </span>
+              </div>
+
+              {/* 手动输入直链切换按钮 */}
+              <button
+                type="button"
+                onClick={(e) => {
+                  e.stopPropagation();
+                  setManualInputMode(true);
+                }}
+                className="mt-1 text-[10px] text-neutral-600 hover:text-black underline font-mono flex items-center gap-1"
+              >
+                <LinkIcon size={10} />
+                <span>{i18n.pasteLink}</span>
+              </button>
+            </div>
+          )}
+        </div>
+      )}
+    </div>
+  );
+}

+ 3 - 3
src/components/common/JsonEditor.tsx

@@ -48,7 +48,7 @@ export default function JsonEditor({
       setIsValid(true);
       setIsValid(true);
       return true;
       return true;
     } catch (err: any) {
     } catch (err: any) {
-      setError(err.message || t('common.json_invalid') || 'JSON 语法错误');
+      setError(err.message || t('common.json_invalid'));
       setIsValid(false);
       setIsValid(false);
       return false;
       return false;
     }
     }
@@ -72,7 +72,7 @@ export default function JsonEditor({
       setIsValid(true);
       setIsValid(true);
       toast.success('已自动格式化 JSON');
       toast.success('已自动格式化 JSON');
     } catch (err) {
     } catch (err) {
-      setError(t('common.json_syntax_error') || 'JSON 语法错误,无法格式化');
+      setError(t('common.json_syntax_error'));
       toast.error('JSON 语法错误,无法格式化');
       toast.error('JSON 语法错误,无法格式化');
     }
     }
   };
   };
@@ -88,7 +88,7 @@ export default function JsonEditor({
       setIsValid(true);
       setIsValid(true);
       toast.success('已压缩为单行 JSON');
       toast.success('已压缩为单行 JSON');
     } catch (err) {
     } catch (err) {
-      setError(t('common.json_syntax_error') || 'JSON 语法错误,无法压缩');
+      setError(t('common.json_syntax_error'));
       toast.error('JSON 语法错误,无法压缩');
       toast.error('JSON 语法错误,无法压缩');
     }
     }
   };
   };

+ 1 - 1
src/components/common/LocalTime.tsx

@@ -37,7 +37,7 @@ export default function LocalTime({ date, className, options }: LocalTimeProps)
 
 
     // 检查日期是否有效
     // 检查日期是否有效
     if (isNaN(dateObj.getTime())) {
     if (isNaN(dateObj.getTime())) {
-      setLocalTimeString(localizedUI ? t('日期无效') : 'Invalid Date');
+      setLocalTimeString(localizedUI ? t('common.invalid_date') : 'Invalid Date');
       return;
       return;
     }
     }
 
 

+ 2 - 2
src/components/common/MessageModal.tsx

@@ -24,7 +24,7 @@ export default function MessageModal({ isOpen, onClose, message, title, type = '
         <div className="px-4 py-3 border-b-2 border-black flex justify-between items-center bg-neutral-200 text-black">
         <div className="px-4 py-3 border-b-2 border-black flex justify-between items-center bg-neutral-200 text-black">
           <div className="font-bold text-xs flex items-center gap-2 uppercase tracking-wider">
           <div className="font-bold text-xs flex items-center gap-2 uppercase tracking-wider">
             <span className={`w-2.5 h-2.5 inline-block border border-black ${type === 'error' ? 'bg-rose-500' : 'bg-amber-300'}`} />
             <span className={`w-2.5 h-2.5 inline-block border border-black ${type === 'error' ? 'bg-rose-500' : 'bg-amber-300'}`} />
-            <span>[ {title || t('common.notice') || 'NOTICE'} ]</span>
+            <span>[ {title || t('common.notice')} ]</span>
           </div>
           </div>
           <button aria-label={t('common.close')}
           <button aria-label={t('common.close')}
             onClick={onClose}
             onClick={onClose}
@@ -47,7 +47,7 @@ export default function MessageModal({ isOpen, onClose, message, title, type = '
             onClick={onClose}
             onClick={onClose}
             className="w-full bg-amber-300 hover:bg-amber-400 text-black py-2.5 border-2 border-black font-black text-xs transition shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
             className="w-full bg-amber-300 hover:bg-amber-400 text-black py-2.5 border-2 border-black font-black text-xs transition shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
           >
           >
-            [ {t('common.confirm_known') || '知道了 // OK'} ]
+            [ {t('common.confirm_known')} ]
           </button>
           </button>
         </div>
         </div>
       </div>
       </div>

+ 25 - 25
src/components/common/ProductTutorialBanner.tsx

@@ -83,7 +83,7 @@ export default function ProductTutorialBanner({
   onCloseModal,
   onCloseModal,
   hideBanner = false,
   hideBanner = false,
 }: ProductTutorialBannerProps) {
 }: ProductTutorialBannerProps) {
-  const { t, lang, localizedUI } = useLanguage();
+  const { t } = useLanguage();
   const [isModalOpen, setIsModalOpen] = useState(defaultOpenModal);
   const [isModalOpen, setIsModalOpen] = useState(defaultOpenModal);
   const [isEmbeddedExpanded, setIsEmbeddedExpanded] = useState(true);
   const [isEmbeddedExpanded, setIsEmbeddedExpanded] = useState(true);
 
 
@@ -99,10 +99,10 @@ export default function ProductTutorialBanner({
   if (!tutorial || !tutorial.enabled) return null;
   if (!tutorial || !tutorial.enabled) return null;
 
 
   const displayType = tutorial.display_type || 'modal';
   const displayType = tutorial.display_type || 'modal';
-  const modalTitle = tutorial.modal_title || t('tutorial.default_modal_title') || '商品使用教程与资料准备指引';
-  const badgeText = tutorial.badge_text || t('tutorial.default_badge') || '申请人必读指引';
-  const buttonText = tutorial.button_text || (!localizedUI && lang === 'zh' ? '📖 查看使用教程与账号准备说明' : t('tutorial.default_btn'));
-  const linkText = tutorial.link_text || t('tutorial.default_link') || '打开完整图文文档 ↗';
+  const modalTitle = tutorial.modal_title || t('tutorial.default_modal_title');
+  const badgeText = tutorial.badge_text || t('tutorial.default_badge');
+  const buttonText = tutorial.button_text || t('tutorial.default_btn');
+  const linkText = tutorial.link_text || t('tutorial.default_link');
   const linkUrl = tutorial.link_url?.trim();
   const linkUrl = tutorial.link_url?.trim();
   const summary = tutorial.summary?.trim();
   const summary = tutorial.summary?.trim();
   const content = tutorial.content?.trim();
   const content = tutorial.content?.trim();
@@ -149,14 +149,14 @@ export default function ProductTutorialBanner({
                     target="_blank"
                     target="_blank"
                     rel="noopener noreferrer"
                     rel="noopener noreferrer"
                     className="px-3 py-1 bg-amber-300 hover:bg-amber-400 text-black border border-black text-xs font-black uppercase shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition flex items-center gap-1.5 cursor-pointer"
                     className="px-3 py-1 bg-amber-300 hover:bg-amber-400 text-black border border-black text-xs font-black uppercase shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition flex items-center gap-1.5 cursor-pointer"
-                    title={t('tutorial.open_external') || '在新窗口打开外部详细图文教程'}
+                    title={t('tutorial.open_external')}
                   >
                   >
                     <ExternalLink size={12} />
                     <ExternalLink size={12} />
                     <span>{buttonText || linkText}</span>
                     <span>{buttonText || linkText}</span>
                   </a>
                   </a>
                 ) : (
                 ) : (
                   <span className="px-2 py-0.5 bg-neutral-200 border border-neutral-400 text-neutral-500 text-[10px] font-bold">
                   <span className="px-2 py-0.5 bg-neutral-200 border border-neutral-400 text-neutral-500 text-[10px] font-bold">
-                    [ {t('tutorial.no_link_configured') || '外部链接未配置'} ]
+                    [ {t('tutorial.no_link_configured')} ]
                   </span>
                   </span>
                 )
                 )
               )}
               )}
@@ -179,7 +179,7 @@ export default function ProductTutorialBanner({
                       target="_blank"
                       target="_blank"
                       rel="noopener noreferrer"
                       rel="noopener noreferrer"
                       className="px-3 py-1 bg-white hover:bg-neutral-100 text-black border border-black text-xs font-black uppercase shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition flex items-center gap-1.5 cursor-pointer"
                       className="px-3 py-1 bg-white hover:bg-neutral-100 text-black border border-black text-xs font-black uppercase shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition flex items-center gap-1.5 cursor-pointer"
-                      title={t('tutorial.open_external') || '在新窗口打开外部详细图文教程'}
+                      title={t('tutorial.open_external')}
                     >
                     >
                       <ExternalLink size={12} />
                       <ExternalLink size={12} />
                       <span>{linkText}</span>
                       <span>{linkText}</span>
@@ -197,7 +197,7 @@ export default function ProductTutorialBanner({
                       target="_blank"
                       target="_blank"
                       rel="noopener noreferrer"
                       rel="noopener noreferrer"
                       className="px-3 py-1 bg-white hover:bg-neutral-100 text-black border border-black text-xs font-black uppercase shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition flex items-center gap-1.5 cursor-pointer"
                       className="px-3 py-1 bg-white hover:bg-neutral-100 text-black border border-black text-xs font-black uppercase shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition flex items-center gap-1.5 cursor-pointer"
-                      title={t('tutorial.open_external') || '在新窗口打开外部详细图文教程'}
+                      title={t('tutorial.open_external')}
                     >
                     >
                       <ExternalLink size={12} />
                       <ExternalLink size={12} />
                       <span>{linkText}</span>
                       <span>{linkText}</span>
@@ -207,9 +207,9 @@ export default function ProductTutorialBanner({
                     type="button"
                     type="button"
                     onClick={() => setIsEmbeddedExpanded(!isEmbeddedExpanded)}
                     onClick={() => setIsEmbeddedExpanded(!isEmbeddedExpanded)}
                     className="px-2 py-1 bg-amber-300 hover:bg-amber-400 border border-black text-xs font-bold shadow-[1px_1px_0px_#000] flex items-center gap-1 cursor-pointer"
                     className="px-2 py-1 bg-amber-300 hover:bg-amber-400 border border-black text-xs font-bold shadow-[1px_1px_0px_#000] flex items-center gap-1 cursor-pointer"
-                    title={isEmbeddedExpanded ? (t('tutorial.collapse_tooltip') || '收起内嵌步骤与内容') : (t('tutorial.expand_tooltip') || '展开内嵌步骤与内容')}
+                    title={isEmbeddedExpanded ? t('tutorial.collapse_tooltip') : t('tutorial.expand_tooltip')}
                   >
                   >
-                    <span>{isEmbeddedExpanded ? (t('tutorial.collapse_guide') || '收起指引') : (t('tutorial.expand_guide') || '展开指引')}</span>
+                    <span>{isEmbeddedExpanded ? t('tutorial.collapse_guide') : t('tutorial.expand_guide')}</span>
                     {isEmbeddedExpanded ? <ChevronUp size={14} /> : <ChevronDown size={14} />}
                     {isEmbeddedExpanded ? <ChevronUp size={14} /> : <ChevronDown size={14} />}
                   </button>
                   </button>
                 </>
                 </>
@@ -232,10 +232,10 @@ export default function ProductTutorialBanner({
             <div className="bg-white border-2 border-black p-3 shadow-[2px_2px_0px_#000] flex flex-col sm:flex-row sm:items-center justify-between gap-2.5">
             <div className="bg-white border-2 border-black p-3 shadow-[2px_2px_0px_#000] flex flex-col sm:flex-row sm:items-center justify-between gap-2.5">
               <div>
               <div>
                 <span className="font-black text-black uppercase text-xs block font-mono">
                 <span className="font-black text-black uppercase text-xs block font-mono">
-                  [ {t('tutorial.online_kb_title') || '官方在线图文知识库与账号指引'} ]
+                  [ {t('tutorial.online_kb_title')} ]
                 </span>
                 </span>
                 <p className="text-[11px] text-neutral-600 font-sans mt-0.5">
                 <p className="text-[11px] text-neutral-600 font-sans mt-0.5">
-                  {t('tutorial.online_kb_desc') || '本服务详细教程由官方在外部文档库持续更新维护,支持直接跳转查阅'}
+                  {t('tutorial.online_kb_desc')}
                 </p>
                 </p>
               </div>
               </div>
               <a
               <a
@@ -257,7 +257,7 @@ export default function ProductTutorialBanner({
               {steps.length > 0 && (
               {steps.length > 0 && (
                 <div className="space-y-2">
                 <div className="space-y-2">
                   <span className="text-[10px] font-bold text-neutral-500 uppercase block font-mono">
                   <span className="text-[10px] font-bold text-neutral-500 uppercase block font-mono">
-                    [ {t('tutorial.prep_steps_title') || '准备与操作步骤'} // {localizedUI ? t('步骤') : 'STEPS'} ({steps.length}) ]:
+                    [ {t('tutorial.prep_steps_title')} ({steps.length}) ]:
                   </span>
                   </span>
                   <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2.5">
                   <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2.5">
                     {steps.map((step, idx) => (
                     {steps.map((step, idx) => (
@@ -283,7 +283,7 @@ export default function ProductTutorialBanner({
                 <div className="bg-white border-2 border-black p-3.5 shadow-[2px_2px_0px_#000] space-y-2">
                 <div className="bg-white border-2 border-black p-3.5 shadow-[2px_2px_0px_#000] space-y-2">
                   <span className="font-black text-black uppercase text-xs block border-b border-neutral-200 pb-1 flex items-center gap-1.5">
                   <span className="font-black text-black uppercase text-xs block border-b border-neutral-200 pb-1 flex items-center gap-1.5">
                     <FileText size={13} />
                     <FileText size={13} />
-                    <span>[ {t('tutorial.faq_title') || '详细说明与常见疑问 FAQ'} ]</span>
+                    <span>[ {t('tutorial.faq_title')} ]</span>
                   </span>
                   </span>
                   <TutorialMarkdown content={content} />
                   <TutorialMarkdown content={content} />
                 </div>
                 </div>
@@ -294,10 +294,10 @@ export default function ProductTutorialBanner({
                 <div className="bg-sky-100 border-2 border-black p-3 shadow-[2px_2px_0px_#000] flex flex-col sm:flex-row sm:items-center justify-between gap-2.5">
                 <div className="bg-sky-100 border-2 border-black p-3 shadow-[2px_2px_0px_#000] flex flex-col sm:flex-row sm:items-center justify-between gap-2.5">
                   <div>
                   <div>
                     <span className="font-black text-black uppercase text-xs block">
                     <span className="font-black text-black uppercase text-xs block">
-                      {t('tutorial.external_doc_label') || '官方在线图文知识库 / 外部文档'}
+                      {t('tutorial.external_doc_label')}
                     </span>
                     </span>
                     <p className="text-[11px] text-neutral-600 font-sans mt-0.5">
                     <p className="text-[11px] text-neutral-600 font-sans mt-0.5">
-                      {t('tutorial.external_doc_subtext') || '支持在浏览器中查阅带图截屏与更详细的官方说明'}
+                      {t('tutorial.external_doc_subtext')}
                     </p>
                     </p>
                   </div>
                   </div>
                   <a
                   <a
@@ -332,7 +332,7 @@ export default function ProductTutorialBanner({
                   </h3>
                   </h3>
                   {productTitle && (
                   {productTitle && (
                     <p className="text-[10px] text-neutral-500 font-bold font-sans">
                     <p className="text-[10px] text-neutral-500 font-bold font-sans">
-                      {t('tutorial.applicable_product') || '适用商品'}: {productTitle}
+                      {t('tutorial.applicable_product')}: {productTitle}
                     </p>
                     </p>
                   )}
                   )}
                 </div>
                 </div>
@@ -356,7 +356,7 @@ export default function ProductTutorialBanner({
                   <AlertTriangle size={16} className="text-amber-800 shrink-0 mt-0.5" />
                   <AlertTriangle size={16} className="text-amber-800 shrink-0 mt-0.5" />
                   <div className="flex-1">
                   <div className="flex-1">
                     <span className="font-black text-black uppercase text-[11px] block mb-0.5">
                     <span className="font-black text-black uppercase text-[11px] block mb-0.5">
-                      [ {t('tutorial.core_requirements') || '核心填报与账号要求说明'} ]
+                      [ {t('tutorial.core_requirements')} ]
                     </span>
                     </span>
                     <TutorialMarkdown content={summary} />
                     <TutorialMarkdown content={summary} />
                   </div>
                   </div>
@@ -367,7 +367,7 @@ export default function ProductTutorialBanner({
               {steps.length > 0 && (
               {steps.length > 0 && (
                 <div className="space-y-3">
                 <div className="space-y-3">
                   <span className="font-black text-black uppercase text-xs block border-b-2 border-black pb-1">
                   <span className="font-black text-black uppercase text-xs block border-b-2 border-black pb-1">
-                    [ {t('tutorial.instructions_steps') || '操作指南与准备步骤'} // {localizedUI ? t('步骤') : 'STEP-BY-STEP GUIDE'} ({steps.length}) ]
+                    [ {t('tutorial.instructions_steps')} ({steps.length}) ]
                   </span>
                   </span>
                   <div className="space-y-2.5">
                   <div className="space-y-2.5">
                     {steps.map((step, idx) => (
                     {steps.map((step, idx) => (
@@ -395,7 +395,7 @@ export default function ProductTutorialBanner({
                 <div className="bg-neutral-50 border-2 border-black p-4 shadow-[2px_2px_0px_#000] space-y-2">
                 <div className="bg-neutral-50 border-2 border-black p-4 shadow-[2px_2px_0px_#000] space-y-2">
                   <span className="font-black text-black uppercase text-xs block border-b border-neutral-300 pb-1 flex items-center gap-1.5">
                   <span className="font-black text-black uppercase text-xs block border-b border-neutral-300 pb-1 flex items-center gap-1.5">
                     <FileText size={13} />
                     <FileText size={13} />
-                    <span>[ {t('tutorial.faq_title') || '详细说明与常见疑问 FAQ'} ]</span>
+                    <span>[ {t('tutorial.faq_title')} ]</span>
                   </span>
                   </span>
                   <TutorialMarkdown content={content} />
                   <TutorialMarkdown content={content} />
                 </div>
                 </div>
@@ -406,10 +406,10 @@ export default function ProductTutorialBanner({
                 <div className="bg-sky-50 border-2 border-black p-3.5 shadow-[2px_2px_0px_#000] flex flex-col sm:flex-row sm:items-center justify-between gap-3">
                 <div className="bg-sky-50 border-2 border-black p-3.5 shadow-[2px_2px_0px_#000] flex flex-col sm:flex-row sm:items-center justify-between gap-3">
                   <div>
                   <div>
                     <span className="font-black text-black uppercase text-xs block">
                     <span className="font-black text-black uppercase text-xs block">
-                      {t('tutorial.external_doc_label') || '官方在线图文知识库 / 外部文档'}
+                      {t('tutorial.external_doc_label')}
                     </span>
                     </span>
                     <p className="text-[11px] text-neutral-600 font-sans mt-0.5">
                     <p className="text-[11px] text-neutral-600 font-sans mt-0.5">
-                      {t('tutorial.external_doc_subtext') || '支持在电脑或手机浏览器中完整查阅带图截屏与更详细的说明'}
+                      {t('tutorial.external_doc_subtext')}
                     </p>
                     </p>
                   </div>
                   </div>
                   <a
                   <a
@@ -428,14 +428,14 @@ export default function ProductTutorialBanner({
             {/* Modal Footer */}
             {/* Modal Footer */}
             <div className="bg-neutral-200 border-t-2 border-black p-3.5 px-5 flex items-center justify-between">
             <div className="bg-neutral-200 border-t-2 border-black p-3.5 px-5 flex items-center justify-between">
               <span className="text-[10px] text-neutral-600 font-bold">
               <span className="text-[10px] text-neutral-600 font-bold">
-                {t('tutorial.security_note') || '* 建议仔细核对账号密码,以确保自动化工单能顺畅通过官网风控验证'}
+                {t('tutorial.security_note')}
               </span>
               </span>
               <button
               <button
                 type="button"
                 type="button"
                 onClick={handleCloseModal}
                 onClick={handleCloseModal}
                 className="px-4 py-1.5 bg-black hover:bg-neutral-800 text-white font-black text-xs uppercase shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition cursor-pointer"
                 className="px-4 py-1.5 bg-black hover:bg-neutral-800 text-white font-black text-xs uppercase shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition cursor-pointer"
               >
               >
-                [ {t('tutorial.understood_btn') || '我已阅读并了解'} ]
+                [ {t('tutorial.understood_btn')} ]
               </button>
               </button>
             </div>
             </div>
           </div>
           </div>

+ 18 - 18
src/components/dashboard/ChangePasswordModal.tsx

@@ -77,25 +77,25 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
   }, [countdown]);
   }, [countdown]);
 
 
   const handleSendCode = async () => {
   const handleSendCode = async () => {
-    if (!email) return showMessage(t('settings.email_not_found') || '未检测到绑定邮箱', 'error');
+    if (!email) return showMessage(t('settings.email_not_found'), 'error');
 
 
     try {
     try {
       await authService.sendResetCode(email);
       await authService.sendResetCode(email);
 
 
-      showMessage(`${t('settings.code_sent') || '验证码已发送至'} ${email}`, 'success');
+      showMessage(`${t('settings.code_sent')} ${email}`, 'success');
       setCountdown(60);
       setCountdown(60);
     } catch (error: any) {
     } catch (error: any) {
       console.error(error);
       console.error(error);
       const msg = error.response?.data?.message || t('common.unknown_error');
       const msg = error.response?.data?.message || t('common.unknown_error');
-      showMessage(`${t('settings.send_failed') || '发送失败'}: ${msg}`, 'error');
+      showMessage(`${t('settings.send_failed')}: ${msg}`, 'error');
     }
     }
   };
   };
 
 
   const handleSubmit = async (e: React.FormEvent) => {
   const handleSubmit = async (e: React.FormEvent) => {
     e.preventDefault();
     e.preventDefault();
-    if (!code) return showMessage(t('settings.enter_code') || '请输入验证码', 'error');
-    if (!newPassword) return showMessage(t('settings.enter_password') || '请输入新密码', 'error');
-    if (newPassword !== confirmPassword) return showMessage(t('settings.password_mismatch') || '两次输入的密码不一致', 'error');
+    if (!code) return showMessage(t('settings.enter_code'), 'error');
+    if (!newPassword) return showMessage(t('settings.enter_password'), 'error');
+    if (newPassword !== confirmPassword) return showMessage(t('settings.password_mismatch'), 'error');
 
 
     setLoading(true);
     setLoading(true);
     try {
     try {
@@ -105,7 +105,7 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
         new_password: newPassword
         new_password: newPassword
       });
       });
 
 
-      showMessage(t('settings.password_changed_success') || '密码重置成功!请重新登录。', 'success', () => {
+      showMessage(t('settings.password_changed_success'), 'success', () => {
         localStorage.removeItem('rsid');
         localStorage.removeItem('rsid');
         localStorage.removeItem('user_info');
         localStorage.removeItem('user_info');
         window.location.href = currentLocalePath('/login');
         window.location.href = currentLocalePath('/login');
@@ -115,7 +115,7 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
     } catch (error: any) {
     } catch (error: any) {
       console.error(error);
       console.error(error);
       const msg = error.response?.data?.message || error.message || t('settings.change_failed');
       const msg = error.response?.data?.message || error.message || t('settings.change_failed');
-      showMessage(`${t('settings.change_failed') || '密码修改失败'}: ${msg}`, 'error');
+      showMessage(`${t('settings.change_failed')}: ${msg}`, 'error');
     } finally {
     } finally {
       setLoading(false);
       setLoading(false);
     }
     }
@@ -151,11 +151,11 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
             />
             />
 
 
             <div className="flex gap-2 pt-1">
             <div className="flex gap-2 pt-1">
-              <input aria-label={t('settings.code_placeholder') || '------'}
+              <input aria-label={t('settings.code_placeholder')}
                 type="text"
                 type="text"
                 required
                 required
                 className="flex-1 border-2 border-black bg-neutral-50 p-2.5 text-xs font-mono text-center tracking-widest font-bold outline-none shadow-[2px_2px_0px_#000]"
                 className="flex-1 border-2 border-black bg-neutral-50 p-2.5 text-xs font-mono text-center tracking-widest font-bold outline-none shadow-[2px_2px_0px_#000]"
-                placeholder={t('settings.code_placeholder') || '------'}
+                placeholder={t('settings.code_placeholder')}
                 maxLength={6}
                 maxLength={6}
                 value={code}
                 value={code}
                 onChange={(e) => setCode(e.target.value)}
                 onChange={(e) => setCode(e.target.value)}
@@ -166,7 +166,7 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
                 onClick={handleSendCode}
                 onClick={handleSendCode}
                 className="w-32 border-2 border-black bg-neutral-100 hover:bg-neutral-200 text-black text-xs font-mono font-bold transition shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none disabled:opacity-50"
                 className="w-32 border-2 border-black bg-neutral-100 hover:bg-neutral-200 text-black text-xs font-mono font-bold transition shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none disabled:opacity-50"
               >
               >
-                {countdown > 0 ? `${countdown}s` : (t('settings.get_code') || '获取验证码')}
+                {countdown > 0 ? `${countdown}s` : t('settings.get_code')}
               </button>
               </button>
             </div>
             </div>
           </div>
           </div>
@@ -181,12 +181,12 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
                 type={showPassword ? "text" : "password"}
                 type={showPassword ? "text" : "password"}
                 required
                 required
                 className="w-full border-2 border-black bg-neutral-50 p-2.5 pr-10 text-xs font-mono outline-none shadow-[2px_2px_0px_#000] text-black"
                 className="w-full border-2 border-black bg-neutral-50 p-2.5 pr-10 text-xs font-mono outline-none shadow-[2px_2px_0px_#000] text-black"
-                placeholder={t('settings.new_password_placeholder') || '设置新安全密码...'}
+                placeholder={t('settings.new_password_placeholder')}
                 value={newPassword}
                 value={newPassword}
                 onChange={(e) => setNewPassword(e.target.value)}
                 onChange={(e) => setNewPassword(e.target.value)}
               />
               />
               <button
               <button
-                aria-label={t(showPassword ? '隐藏密码' : '查看密码')}
+                aria-label={showPassword ? t('common.hide') : t('common.show')}
                 type="button"
                 type="button"
                 onClick={() => setShowPassword(!showPassword)}
                 onClick={() => setShowPassword(!showPassword)}
                 className="absolute right-3 top-3 text-black"
                 className="absolute right-3 top-3 text-black"
@@ -198,17 +198,17 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
 
 
           {/* 确认密码 */}
           {/* 确认密码 */}
           <div className="space-y-1">
           <div className="space-y-1">
-            <label htmlFor="changepasswordmodal-field-3" className="block text-xs font-bold uppercase text-black">[ 03 // {t('确认新密码')} ]</label>
+            <label htmlFor="changepasswordmodal-field-3" className="block text-xs font-bold uppercase text-black">[ 03 // {t('settings.confirm_password_label')} ]</label>
             <input id="changepasswordmodal-field-3"
             <input id="changepasswordmodal-field-3"
               type={showPassword ? "text" : "password"}
               type={showPassword ? "text" : "password"}
               required
               required
               className="w-full border-2 border-black bg-neutral-50 p-2.5 text-xs font-mono outline-none shadow-[2px_2px_0px_#000] text-black"
               className="w-full border-2 border-black bg-neutral-50 p-2.5 text-xs font-mono outline-none shadow-[2px_2px_0px_#000] text-black"
-              placeholder={t('settings.confirm_password_placeholder') || '再次输入新密码...'}
+              placeholder={t('settings.confirm_password_placeholder')}
               value={confirmPassword}
               value={confirmPassword}
               onChange={(e) => setConfirmPassword(e.target.value)}
               onChange={(e) => setConfirmPassword(e.target.value)}
             />
             />
             {confirmPassword && newPassword !== confirmPassword && (
             {confirmPassword && newPassword !== confirmPassword && (
-              <p className="text-[10px] text-rose-600 font-bold mt-1">[ ! {t('settings.password_mismatch') || '两次输入的密码不一致'} ]</p>
+              <p className="text-[10px] text-rose-600 font-bold mt-1">[ ! {t('settings.password_mismatch')} ]</p>
             )}
             )}
           </div>
           </div>
 
 
@@ -218,14 +218,14 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
               onClick={onClose}
               onClick={onClose}
               className="px-4 py-2 bg-neutral-100 border-2 border-black text-black font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-200 transition active:translate-x-0.5 active:translate-y-0.5 uppercase"
               className="px-4 py-2 bg-neutral-100 border-2 border-black text-black font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-200 transition active:translate-x-0.5 active:translate-y-0.5 uppercase"
             >
             >
-              [ {t('common.cancel') || '取消'} ]
+              [ {t('common.cancel')} ]
             </button>
             </button>
             <button
             <button
               type="submit"
               type="submit"
               disabled={loading}
               disabled={loading}
               className="flex-1 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black py-2 font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex justify-center items-center gap-1.5 uppercase disabled:opacity-50"
               className="flex-1 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black py-2 font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex justify-center items-center gap-1.5 uppercase disabled:opacity-50"
             >
             >
-              {loading ? <Loader2 size={14} className="animate-spin" /> : <><Save size={13} /> <span>[ {t('common.confirm') || '确认重置'} ]</span></>}
+              {loading ? <Loader2 size={14} className="animate-spin" /> : <><Save size={13} /> <span>[ {t('common.confirm')} ]</span></>}
             </button>
             </button>
           </div>
           </div>
         </form>
         </form>

+ 6 - 6
src/components/dashboard/OrderList.tsx

@@ -107,9 +107,9 @@ export default function OrderList({ onRequestTicket, onViewDetail, openTicketsMa
       {/* 搜索过滤栏 */}
       {/* 搜索过滤栏 */}
       <div className="flex flex-col sm:flex-row gap-2">
       <div className="flex flex-col sm:flex-row gap-2">
         <div className="relative flex-grow">
         <div className="relative flex-grow">
-          <input aria-label={t('order.search_placeholder') || '输入工单号 / 服务名称检索...'}
+          <input aria-label={t('order.search_placeholder')}
             type="text"
             type="text"
-            placeholder={t('order.search_placeholder') || '输入工单号 / 服务名称检索...'}
+            placeholder={t('order.search_placeholder')}
             className="w-full pl-9 pr-4 py-2.5 bg-neutral-50 border-2 border-black text-xs font-sans focus:bg-white outline-none shadow-[2px_2px_0px_#000] text-black"
             className="w-full pl-9 pr-4 py-2.5 bg-neutral-50 border-2 border-black text-xs font-sans focus:bg-white outline-none shadow-[2px_2px_0px_#000] text-black"
             value={keyword}
             value={keyword}
             onChange={(e) => setKeyword(e.target.value)}
             onChange={(e) => setKeyword(e.target.value)}
@@ -139,8 +139,8 @@ export default function OrderList({ onRequestTicket, onViewDetail, openTicketsMa
           <div className="w-12 h-12 bg-white border-2 border-black flex items-center justify-center mx-auto shadow-[2px_2px_0px_#000] font-black text-lg">
           <div className="w-12 h-12 bg-white border-2 border-black flex items-center justify-center mx-auto shadow-[2px_2px_0px_#000] font-black text-lg">
             ?
             ?
           </div>
           </div>
-          <h3 className="text-sm font-black text-black uppercase">{t('order.empty_title') || '暂无工单申请记录'}</h3>
-          <p className="text-xs text-neutral-500 font-sans">{t('order.empty_desc') || '您名下暂无已提交的签证服务工单。'}</p>
+          <h3 className="text-sm font-black text-black uppercase">{t('order.empty_title')}</h3>
+          <p className="text-xs text-neutral-500 font-sans">{t('order.empty_desc')}</p>
           <button
           <button
             onClick={() => router.push('/services')}
             onClick={() => router.push('/services')}
             className="px-4 py-2 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none transition uppercase"
             className="px-4 py-2 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none transition uppercase"
@@ -209,7 +209,7 @@ export default function OrderList({ onRequestTicket, onViewDetail, openTicketsMa
 
 
                   {/* 价格结算区 */}
                   {/* 价格结算区 */}
                   <div className="text-left md:text-right shrink-0 border-t md:border-t-0 md:border-l-2 border-dashed border-neutral-300 pt-2 md:pt-0 md:pl-4">
                   <div className="text-left md:text-right shrink-0 border-t md:border-t-0 md:border-l-2 border-dashed border-neutral-300 pt-2 md:pt-0 md:pl-4">
-                    <span className="text-[10px] text-neutral-500 uppercase block font-bold">{t('order.settlement_fee') || 'SETTLEMENT FEE'}</span>
+                    <span className="text-[10px] text-neutral-500 uppercase block font-bold">{t('order.settlement_fee')}</span>
                     <div className="flex items-baseline gap-1 text-black font-black">
                     <div className="flex items-baseline gap-1 text-black font-black">
                       <span className="text-xs">{currency === 'CNY' ? '¥' : currency}</span>
                       <span className="text-xs">{currency === 'CNY' ? '¥' : currency}</span>
                       <span className="text-xl tracking-tight">{(final / 100).toLocaleString(formattingLocale(lang))}</span>
                       <span className="text-xl tracking-tight">{(final / 100).toLocaleString(formattingLocale(lang))}</span>
@@ -231,7 +231,7 @@ export default function OrderList({ onRequestTicket, onViewDetail, openTicketsMa
                       title={t('ticket.already_has_open_ticket')}
                       title={t('ticket.already_has_open_ticket')}
                     >
                     >
                       <MessageSquare size={13} className="text-amber-800" />
                       <MessageSquare size={13} className="text-amber-800" />
-                      <span>{t('ticket.ticket_in_progress') || '工单处理中'}</span>
+                      <span>{t('ticket.ticket_in_progress')}</span>
                       <span className="px-1.5 py-0.2 bg-black text-white text-[10px] font-mono">
                       <span className="px-1.5 py-0.2 bg-black text-white text-[10px] font-mono">
                         #{openTicketsMap[String(order.id)].id}
                         #{openTicketsMap[String(order.id)].id}
                       </span>
                       </span>

+ 10 - 10
src/components/dashboard/ProfileSettings.tsx

@@ -61,7 +61,7 @@ export default function ProfileSettings() {
     if (!file) return;
     if (!file) return;
 
 
     if (file.size > 2 * 1024 * 1024) {
     if (file.size > 2 * 1024 * 1024) {
-      showMessage(t('profile.image_size_limit') || '图片大小不能超过 2MB', 'error');
+      showMessage(t('profile.image_size_limit'), 'error');
       return;
       return;
     }
     }
 
 
@@ -92,7 +92,7 @@ export default function ProfileSettings() {
           finalAvatarUrl = await uploadImage(avatarFile);
           finalAvatarUrl = await uploadImage(avatarFile);
         } catch (uploadError) {
         } catch (uploadError) {
           console.error("Upload failed", uploadError);
           console.error("Upload failed", uploadError);
-          showMessage(t('profile.upload_failed') || '头像上传失败', 'error');
+          showMessage(t('profile.upload_failed'), 'error');
           setLoading(false);
           setLoading(false);
           return;
           return;
         }
         }
@@ -116,7 +116,7 @@ export default function ProfileSettings() {
       localStorage.setItem('user_info', JSON.stringify(newUserInfo));
       localStorage.setItem('user_info', JSON.stringify(newUserInfo));
       window.dispatchEvent(new Event('storage'));
       window.dispatchEvent(new Event('storage'));
 
 
-      showMessage(t('profile.update_success') || '个人资料更新成功!', 'success');
+      showMessage(t('profile.update_success'), 'success');
 
 
       setUser(newUserInfo);
       setUser(newUserInfo);
       setAvatarFile(null);
       setAvatarFile(null);
@@ -125,7 +125,7 @@ export default function ProfileSettings() {
     } catch (error: any) {
     } catch (error: any) {
       console.error(error);
       console.error(error);
       const msg = error.response?.data?.message || error.message || t('common.unknown_error');
       const msg = error.response?.data?.message || error.message || t('common.unknown_error');
-      showMessage(`${t('profile.update_failed') || '更新失败'}: ${msg}`, 'error');
+      showMessage(`${t('profile.update_failed')}: ${msg}`, 'error');
     } finally {
     } finally {
       setLoading(false);
       setLoading(false);
     }
     }
@@ -171,7 +171,7 @@ export default function ProfileSettings() {
             <div className="flex flex-col sm:flex-row gap-6 items-center sm:items-start">
             <div className="flex flex-col sm:flex-row gap-6 items-center sm:items-start">
               <div className="w-24 h-24 border-2 border-black bg-neutral-100 shadow-[3px_3px_0px_#000] overflow-hidden flex items-center justify-center shrink-0">
               <div className="w-24 h-24 border-2 border-black bg-neutral-100 shadow-[3px_3px_0px_#000] overflow-hidden flex items-center justify-center shrink-0">
                 {user.avatar_url ? (
                 {user.avatar_url ? (
-                  <img src={user.avatar_url} alt={t('头像')} className="w-full h-full object-cover" />
+                  <img src={user.avatar_url} alt={t('profile.avatar')} className="w-full h-full object-cover" />
                 ) : (
                 ) : (
                   <User size={40} className="text-black" />
                   <User size={40} className="text-black" />
                 )}
                 )}
@@ -179,8 +179,8 @@ export default function ProfileSettings() {
 
 
               <div className="flex-1 space-y-3 w-full text-center sm:text-left">
               <div className="flex-1 space-y-3 w-full text-center sm:text-left">
                 <div>
                 <div>
-                  <h3 className="text-xl font-black text-black font-sans">{user.nickname || t('profile.no_nickname') || t('profile.no_nickname')}</h3>
-                  <p className="text-xs text-neutral-500 font-mono mt-0.5">{t('账户编号')}: #{user.id}</p>
+                  <h3 className="text-xl font-black text-black font-sans">{user.nickname || t('profile.no_nickname')}</h3>
+                  <p className="text-xs text-neutral-500 font-mono mt-0.5">{t('profile.account_id')}: #{user.id}</p>
                 </div>
                 </div>
 
 
                 <div className="grid grid-cols-1 sm:grid-cols-2 gap-3 pt-1">
                 <div className="grid grid-cols-1 sm:grid-cols-2 gap-3 pt-1">
@@ -202,7 +202,7 @@ export default function ProfileSettings() {
                 <div className="flex flex-col items-center space-y-2">
                 <div className="flex flex-col items-center space-y-2">
                   <label htmlFor="avatar-upload" className="cursor-pointer w-24 h-24 border-2 border-black bg-neutral-100 shadow-[3px_3px_0px_#000] overflow-hidden relative group flex items-center justify-center">
                   <label htmlFor="avatar-upload" className="cursor-pointer w-24 h-24 border-2 border-black bg-neutral-100 shadow-[3px_3px_0px_#000] overflow-hidden relative group flex items-center justify-center">
                     {avatarPreview ? (
                     {avatarPreview ? (
-                      <img src={avatarPreview} alt={t('头像')} className="w-full h-full object-cover" />
+                      <img src={avatarPreview} alt={t('profile.avatar')} className="w-full h-full object-cover" />
                     ) : (
                     ) : (
                       <User size={40} className="text-black" />
                       <User size={40} className="text-black" />
                     )}
                     )}
@@ -292,8 +292,8 @@ export default function ProfileSettings() {
                   <Lock size={16} />
                   <Lock size={16} />
                 </div>
                 </div>
                 <div>
                 <div>
-                  <h4 className="font-black text-black text-xs uppercase">{t('profile.login_password') || '登录凭证密码'}</h4>
-                  <p className="text-[11px] text-neutral-600 font-sans mt-0.5">{t('profile.password_tip') || '建议定期更换强密码以保护账户工单与资产安全'}</p>
+                  <h4 className="font-black text-black text-xs uppercase">{t('profile.login_password')}</h4>
+                  <p className="text-[11px] text-neutral-600 font-sans mt-0.5">{t('profile.password_tip')}</p>
                 </div>
                 </div>
               </div>
               </div>
               <button
               <button

+ 4 - 4
src/components/dashboard/Sidebar.tsx

@@ -34,9 +34,9 @@ export default function Sidebar({ activeTab, setActiveTab }: SidebarProps) {
   const WHATSAPP_NUMBER = "8617386033451"; 
   const WHATSAPP_NUMBER = "8617386033451"; 
 
 
   const menuItems: MenuItem[] = [
   const menuItems: MenuItem[] = [
-    { id: 'orders', label: t('sidebar.orders') || '申请工单记录', icon: FileText },
-    { id: 'tickets', label: t('sidebar.tickets') || '专属客服工单', icon: LifeBuoy },
-    { id: 'settings', label: t('sidebar.settings') || '账户安全设置', icon: Settings },
+    { id: 'orders', label: t('sidebar.orders'), icon: FileText },
+    { id: 'tickets', label: t('sidebar.tickets'), icon: LifeBuoy },
+    { id: 'settings', label: t('sidebar.settings'), icon: Settings },
   ];
   ];
 
 
   return (
   return (
@@ -74,7 +74,7 @@ export default function Sidebar({ activeTab, setActiveTab }: SidebarProps) {
         </div>
         </div>
         
         
         <p className="text-[11px] text-neutral-600 font-sans leading-relaxed">
         <p className="text-[11px] text-neutral-600 font-sans leading-relaxed">
-          {t('sidebar.contact_desc') || '如遇签证资料申报、预约加急或退款问题,请随时联系值班签证顾问。'}
+          {t('sidebar.contact_desc')}
         </p>
         </p>
         
         
         {/* 联系方式列表 */}
         {/* 联系方式列表 */}

+ 5 - 5
src/components/dashboard/TicketList.tsx

@@ -87,9 +87,9 @@ export default function TicketList({ onViewDetail, refreshTrigger }: TicketListP
       {/* 搜索过滤栏 */}
       {/* 搜索过滤栏 */}
       <div className="flex flex-col sm:flex-row gap-2">
       <div className="flex flex-col sm:flex-row gap-2">
         <div className="relative flex-grow">
         <div className="relative flex-grow">
-          <input aria-label={t('ticket.search_placeholder') || '输入工单标题 / 问题描述检索...'}
+          <input aria-label={t('ticket.search_placeholder')}
             type="text"
             type="text"
-            placeholder={t('ticket.search_placeholder') || '输入工单标题 / 问题描述检索...'}
+            placeholder={t('ticket.search_placeholder')}
             className="w-full pl-9 pr-4 py-2.5 bg-neutral-50 border-2 border-black text-xs font-sans focus:bg-white outline-none shadow-[2px_2px_0px_#000] text-black"
             className="w-full pl-9 pr-4 py-2.5 bg-neutral-50 border-2 border-black text-xs font-sans focus:bg-white outline-none shadow-[2px_2px_0px_#000] text-black"
             value={keyword}
             value={keyword}
             onChange={(e) => setKeyword(e.target.value)}
             onChange={(e) => setKeyword(e.target.value)}
@@ -119,8 +119,8 @@ export default function TicketList({ onViewDetail, refreshTrigger }: TicketListP
           <div className="w-12 h-12 bg-white border-2 border-black flex items-center justify-center mx-auto shadow-[2px_2px_0px_#000] font-black text-lg">
           <div className="w-12 h-12 bg-white border-2 border-black flex items-center justify-center mx-auto shadow-[2px_2px_0px_#000] font-black text-lg">
             ?
             ?
           </div>
           </div>
-          <h3 className="text-sm font-black text-black uppercase">{t('ticket.empty_title') || '暂无专属客服工单'}</h3>
-          <p className="text-xs text-neutral-500 font-sans">{t('ticket.empty_desc') || '如在申请过程中遇到任何疑问,点击右上角提交工单即可与顾问对话。'}</p>
+          <h3 className="text-sm font-black text-black uppercase">{t('ticket.empty_title')}</h3>
+          <p className="text-xs text-neutral-500 font-sans">{t('ticket.empty_desc')}</p>
         </div>
         </div>
       )}
       )}
 
 
@@ -161,7 +161,7 @@ export default function TicketList({ onViewDetail, refreshTrigger }: TicketListP
                     [{translatedValue(t, 'ticket.types.' + ticket.type, ticket.type)}] {ticket.reason.slice(0, 40)}
                     [{translatedValue(t, 'ticket.types.' + ticket.type, ticket.type)}] {ticket.reason.slice(0, 40)}
                   </h3>
                   </h3>
                   <p className="text-xs text-neutral-600 font-sans line-clamp-2 leading-relaxed">
                   <p className="text-xs text-neutral-600 font-sans line-clamp-2 leading-relaxed">
-                    {ticket.reason || t('ticket.no_reason') || t('ticket.no_reason')}
+                    {ticket.reason || t('ticket.no_reason')}
                   </p>
                   </p>
                 </div>
                 </div>
 
 

+ 11 - 11
src/components/dashboard/TicketModal.tsx

@@ -70,7 +70,7 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
     if (loading) return;
     if (loading) return;
 
 
     if (existingActiveTicket) {
     if (existingActiveTicket) {
-      setErrorMsg(t('ticket.already_has_open_ticket') || `该订单已存在进行中的工单 (#${existingActiveTicket.id}),无法重复发起`);
+      setErrorMsg(t('ticket.already_has_open_ticket'));
       return;
       return;
     }
     }
 
 
@@ -80,14 +80,14 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
     try {
     try {
       await ticketService.create(form);
       await ticketService.create(form);
 
 
-      showMessage(t('ticket.create_success') || '工单创建成功!', 'success', () => {
+      showMessage(t('ticket.create_success'), 'success', () => {
         if (onSuccess) onSuccess();
         if (onSuccess) onSuccess();
         onClose();
         onClose();
       });
       });
 
 
     } catch (error: any) {
     } catch (error: any) {
       console.error(error);
       console.error(error);
-      const msg = error.response?.data?.message || t('ticket.submit_error_default') || '提交失败,请重试';
+      const msg = error.response?.data?.message || t('ticket.submit_error_default');
       setErrorMsg(msg);
       setErrorMsg(msg);
     } finally {
     } finally {
       setLoading(false);
       setLoading(false);
@@ -135,12 +135,12 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
                 }`}
                 }`}
                 value={form.order_id}
                 value={form.order_id}
                 onChange={e => setForm({ ...form, order_id: e.target.value })}
                 onChange={e => setForm({ ...form, order_id: e.target.value })}
-                placeholder={t('ticket.order_id_placeholder') || '例如: 1024'}
+                placeholder={t('ticket.order_id_placeholder')}
               />
               />
               {existingActiveTicket && (
               {existingActiveTicket && (
                 <div className="p-2 bg-rose-50 border border-rose-600 text-[11px] font-bold text-rose-700 flex items-center gap-1 mt-1">
                 <div className="p-2 bg-rose-50 border border-rose-600 text-[11px] font-bold text-rose-700 flex items-center gap-1 mt-1">
                   <AlertTriangle size={13} className="shrink-0 text-rose-600" />
                   <AlertTriangle size={13} className="shrink-0 text-rose-600" />
-                  <span>{t('ticket.already_has_open_ticket') || '该订单已有处理中的工单'} (#{existingActiveTicket.id})</span>
+                  <span>{t('ticket.already_has_open_ticket')} (#{existingActiveTicket.id})</span>
                 </div>
                 </div>
               )}
               )}
             </div>
             </div>
@@ -154,9 +154,9 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
                 value={form.type}
                 value={form.type}
                 onChange={e => setForm({ ...form, type: e.target.value })}
                 onChange={e => setForm({ ...form, type: e.target.value })}
               >
               >
-                <option value="refund">{t('ticket.types.refund') || '申请退款 / 订单取消'}</option>
-                <option value="dispute">{t('ticket.types.dispute') || '服务异议 / 预约异常申诉'}</option>
-                <option value="change_request">{t('ticket.types.change_request') || '变更申请申报材料'}</option>
+                <option value="refund">{t('ticket.types.refund')}</option>
+                <option value="dispute">{t('ticket.types.dispute')}</option>
+                <option value="change_request">{t('ticket.types.change_request')}</option>
               </select>
               </select>
             </div>
             </div>
 
 
@@ -168,7 +168,7 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
                 required
                 required
                 rows={4}
                 rows={4}
                 className="w-full border-2 border-black bg-neutral-50 p-2.5 text-xs font-sans focus:bg-white outline-none shadow-[2px_2px_0px_#000] resize-none text-black"
                 className="w-full border-2 border-black bg-neutral-50 p-2.5 text-xs font-sans focus:bg-white outline-none shadow-[2px_2px_0px_#000] resize-none text-black"
-                placeholder={t('ticket.desc_placeholder') || '请尽可能详细描述您遇到的问题或诉求...'}
+                placeholder={t('ticket.desc_placeholder')}
                 value={form.reason}
                 value={form.reason}
                 onChange={e => setForm({ ...form, reason: e.target.value })}
                 onChange={e => setForm({ ...form, reason: e.target.value })}
               />
               />
@@ -180,14 +180,14 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
                 onClick={onClose}
                 onClick={onClose}
                 className="px-4 py-2 border-2 border-black bg-neutral-100 hover:bg-neutral-200 text-black font-bold text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
                 className="px-4 py-2 border-2 border-black bg-neutral-100 hover:bg-neutral-200 text-black font-bold text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
               >
               >
-                [ {t('common.cancel') || '取消'} ]
+                [ {t('common.cancel')} ]
               </button>
               </button>
               <button
               <button
                 type="submit"
                 type="submit"
                 disabled={loading || !!existingActiveTicket}
                 disabled={loading || !!existingActiveTicket}
                 className="px-6 py-2 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase flex items-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed"
                 className="px-6 py-2 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase flex items-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed"
               >
               >
-                {loading ? <Loader2 className="animate-spin w-4 h-4" /> : <><Send size={13} /> <span>[ {t('ticket.submit_btn') || '确认提交工单'} ]</span></>}
+                {loading ? <Loader2 className="animate-spin w-4 h-4" /> : <><Send size={13} /> <span>[ {t('ticket.submit_btn')} ]</span></>}
               </button>
               </button>
             </div>
             </div>
           </form>
           </form>

+ 44 - 14
src/components/dashboard/UserOrderDetailModal.tsx

@@ -1,7 +1,7 @@
 'use client';
 'use client';
 
 
 import { useState, useEffect, useMemo } from 'react';
 import { useState, useEffect, useMemo } from 'react';
-import { X, CreditCard, FileText, Package, Check, Clock, Loader2 } from 'lucide-react';
+import { X, CreditCard, FileText, Package, Check, Clock, Loader2, ExternalLink } from 'lucide-react';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
 import LocalTime from '@/components/common/LocalTime';
 import LocalTime from '@/components/common/LocalTime';
 import { Order } from '@/types';
 import { Order } from '@/types';
@@ -25,7 +25,7 @@ const FIELD_DISPLAY_ORDER = [
 ];
 ];
 
 
 export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrderDetailModalProps) {
 export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrderDetailModalProps) {
-  const { t } = useLanguage();
+  const { t, lang } = useLanguage();
 
 
   const [payments, setPayments] = useState<any[]>([]);
   const [payments, setPayments] = useState<any[]>([]);
   const [loadingPayments, setLoadingPayments] = useState(false);
   const [loadingPayments, setLoadingPayments] = useState(false);
@@ -121,7 +121,7 @@ export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrd
               </h4>
               </h4>
               <div className="text-xs text-neutral-500 flex items-center gap-1">
               <div className="text-xs text-neutral-500 flex items-center gap-1">
                 <Clock size={12} />
                 <Clock size={12} />
-                <span>{t('order.created_at') || '创建时间'}:</span>
+                <span>{t('order.created_at')}:</span>
                 <LocalTime date={order.created_at} className="ml-1" />
                 <LocalTime date={order.created_at} className="ml-1" />
               </div>
               </div>
             </div>
             </div>
@@ -145,16 +145,46 @@ export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrd
             <div className="p-5">
             <div className="p-5">
               {sortedUserInputs.length > 0 ? (
               {sortedUserInputs.length > 0 ? (
                 <div className="grid grid-cols-1 sm:grid-cols-2 gap-4 text-xs">
                 <div className="grid grid-cols-1 sm:grid-cols-2 gap-4 text-xs">
-                  {sortedUserInputs.map(([key, value]) => (
-                    <div key={key} className="border-b border-dashed border-neutral-300 pb-2">
-                      <span className="block text-[10px] font-bold text-neutral-500 uppercase mb-0.5">
-                        [{applicationFieldLabel(t, key)}]
-                      </span>
-                      <span className="block font-bold text-black font-sans break-words break-all">
-                        {String(value)}
-                      </span>
-                    </div>
-                  ))}
+                  {sortedUserInputs.map(([key, value]) => {
+                    const strVal = String(value ?? '');
+                    const isLink = strVal.startsWith('http://') || strVal.startsWith('https://') || strVal.startsWith('/api/r2/file');
+                    const isPdf = isLink && (strVal.toLowerCase().includes('.pdf') || key.toLowerCase().includes('pdf'));
+                    const isImg = isLink && (strVal.toLowerCase().includes('.png') || strVal.toLowerCase().includes('.jpg') || strVal.toLowerCase().includes('.jpeg') || strVal.toLowerCase().includes('.webp'));
+
+                    return (
+                      <div key={key} className="border-b border-dashed border-neutral-300 pb-2">
+                        <span className="block text-[10px] font-bold text-neutral-500 uppercase mb-0.5">
+                          [{applicationFieldLabel(t, key)}]
+                        </span>
+                        {isLink ? (
+                          <div className="flex items-center gap-1.5 mt-1 flex-wrap">
+                            <a
+                              href={strVal}
+                              target="_blank"
+                              rel="noreferrer"
+                              className="inline-flex items-center gap-1 px-2 py-0.5 border border-black bg-amber-100 hover:bg-amber-200 text-black font-mono font-bold text-[11px] shadow-[1px_1px_0px_#000] transition"
+                            >
+                              <ExternalLink size={11} />
+                              <span>
+                                {isPdf
+                                  ? t('order.view_download_pdf')
+                                  : isImg
+                                  ? t('order.view_image')
+                                  : t('order.view_attachment')}
+                              </span>
+                            </a>
+                            <span className="text-[10px] text-neutral-400 font-mono truncate max-w-[150px]" title={strVal}>
+                              {strVal}
+                            </span>
+                          </div>
+                        ) : (
+                          <span className="block font-bold text-black font-sans break-words break-all">
+                            {strVal}
+                          </span>
+                        )}
+                      </div>
+                    );
+                  })}
                 </div>
                 </div>
               ) : (
               ) : (
                 <div className="text-center py-4 text-neutral-400 text-xs">
                 <div className="text-center py-4 text-neutral-400 text-xs">
@@ -240,7 +270,7 @@ export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrd
             onClick={onClose}
             onClick={onClose}
             className="px-6 py-2 bg-white hover:bg-amber-300 text-black border-2 border-black font-black text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
             className="px-6 py-2 bg-white hover:bg-amber-300 text-black border-2 border-black font-black text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
           >
           >
-            [ {t('common.close') || '关闭工单档案'} ]
+            [ {t('common.close')} ]
           </button>
           </button>
         </div>
         </div>
       </div>
       </div>

+ 13 - 13
src/components/dashboard/UserTicketDetailModal.tsx

@@ -91,7 +91,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
     if (fileInputRef.current) fileInputRef.current.value = '';
     if (fileInputRef.current) fileInputRef.current.value = '';
 
 
     if (file.size > 1 * 1024 * 1024) {
     if (file.size > 1 * 1024 * 1024) {
-      showMessage(t('ticket.image_size_limit') || '图片大小不能超过 1MB', 'error');
+      showMessage(t('ticket.image_size_limit'), 'error');
       return;
       return;
     }
     }
 
 
@@ -101,7 +101,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
       setAttachedImages(prev => [...prev, res.url]);
       setAttachedImages(prev => [...prev, res.url]);
     } catch (err: any) {
     } catch (err: any) {
       console.error("Image upload failed", err);
       console.error("Image upload failed", err);
-      const errText = err.response?.data?.message || err.message || t('ticket.image_upload_failed') || '图片上传失败,请重试';
+      const errText = err.response?.data?.message || err.message || t('ticket.image_upload_failed');
       showMessage(errText, 'error');
       showMessage(errText, 'error');
     } finally {
     } finally {
       setUploadingImage(false);
       setUploadingImage(false);
@@ -116,7 +116,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
     e.preventDefault();
     e.preventDefault();
     if ((!replyContent.trim() && attachedImages.length === 0) || !ticket) return;
     if ((!replyContent.trim() && attachedImages.length === 0) || !ticket) return;
 
 
-    const attachmentLabel = t('ticket.image_attachment') || '[图片附件]';
+    const attachmentLabel = t('ticket.image_attachment');
     const contentToSend = replyContent.trim() || (attachedImages.length > 0 ? attachmentLabel : '');
     const contentToSend = replyContent.trim() || (attachedImages.length > 0 ? attachmentLabel : '');
     const imagesToSend = [...attachedImages];
     const imagesToSend = [...attachedImages];
 
 
@@ -146,7 +146,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
       await fetchMessages(true);
       await fetchMessages(true);
     } catch (error) {
     } catch (error) {
       console.error("Send message failed", error);
       console.error("Send message failed", error);
-      showMessage(t('ticket.send_failed') || '发送失败,请重试', 'error');
+      showMessage(t('ticket.send_failed'), 'error');
       // 发送失败恢复数据并同步
       // 发送失败恢复数据并同步
       fetchMessages(true);
       fetchMessages(true);
     } finally {
     } finally {
@@ -208,14 +208,14 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
           {/* 工单初始描述气泡 */}
           {/* 工单初始描述气泡 */}
           <div className="bg-white border-2 border-black p-4 shadow-[3px_3px_0px_#000] space-y-2">
           <div className="bg-white border-2 border-black p-4 shadow-[3px_3px_0px_#000] space-y-2">
             <div className="flex items-center justify-between border-b border-black pb-1.5 text-[11px] font-bold text-neutral-600">
             <div className="flex items-center justify-between border-b border-black pb-1.5 text-[11px] font-bold text-neutral-600">
-              <span>[ {t('ticket.initial_reason_title') || '初始提交工单描述'} ]</span>
+              <span>[ {t('ticket.initial_reason_title')} ]</span>
               <LocalTime date={ticket.created_at} />
               <LocalTime date={ticket.created_at} />
             </div>
             </div>
             <div className="font-black text-black text-sm font-sans">
             <div className="font-black text-black text-sm font-sans">
               [{translatedValue(t, 'ticket.types.' + ticket.type, ticket.type)}] {ticket.reason.slice(0, 50)}
               [{translatedValue(t, 'ticket.types.' + ticket.type, ticket.type)}] {ticket.reason.slice(0, 50)}
             </div>
             </div>
             <p className="text-xs text-neutral-800 font-sans leading-relaxed whitespace-pre-line">
             <p className="text-xs text-neutral-800 font-sans leading-relaxed whitespace-pre-line">
-              {ticket.reason || t('ticket.no_reason') || '无补充描述'}
+              {ticket.reason || t('ticket.no_reason')}
             </p>
             </p>
           </div>
           </div>
 
 
@@ -243,7 +243,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
                 <div key={msg.id} className={`flex ${isMe ? 'justify-end' : 'justify-start'}`}>
                 <div key={msg.id} className={`flex ${isMe ? 'justify-end' : 'justify-start'}`}>
                   <div className={`max-w-[85%] space-y-1 ${isMe ? 'text-right' : 'text-left'}`}>
                   <div className={`max-w-[85%] space-y-1 ${isMe ? 'text-right' : 'text-left'}`}>
                     <div className="text-[10px] text-neutral-500 font-mono px-1">
                     <div className="text-[10px] text-neutral-500 font-mono px-1">
-                      {isMe ? `ME // ${t('ticket.applicant_label') || '申请人'}` : `AGENT // ${t('ticket.agent_label') || '专属顾问'}`} • <LocalTime date={msg.created_at} options={{ hour: '2-digit', minute: '2-digit' }} />
+                      {isMe ? `ME // ${t('ticket.applicant_label')}` : `AGENT // ${t('ticket.agent_label')}`} • <LocalTime date={msg.created_at} options={{ hour: '2-digit', minute: '2-digit' }} />
                     </div>
                     </div>
 
 
                     <div className={`p-3.5 text-xs font-sans border-2 border-black ${
                     <div className={`p-3.5 text-xs font-sans border-2 border-black ${
@@ -273,7 +273,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
                               />
                               />
                               <div className="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 flex items-center justify-center transition text-white text-[10px] font-bold">
                               <div className="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 flex items-center justify-center transition text-white text-[10px] font-bold">
                                 <ExternalLink size={12} className="mr-1" />
                                 <ExternalLink size={12} className="mr-1" />
-                                <span>{t('ticket.view_original') || '原图'}</span>
+                                <span>{t('ticket.view_original')}</span>
                               </div>
                               </div>
                             </a>
                             </a>
                           ))}
                           ))}
@@ -301,7 +301,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
                     type="button"
                     type="button"
                     onClick={() => handleRemoveImage(idx)}
                     onClick={() => handleRemoveImage(idx)}
                     className="absolute -top-1.5 -right-1.5 w-4 h-4 bg-rose-500 hover:bg-rose-600 text-white rounded-full flex items-center justify-center text-[10px] font-bold shadow"
                     className="absolute -top-1.5 -right-1.5 w-4 h-4 bg-rose-500 hover:bg-rose-600 text-white rounded-full flex items-center justify-center text-[10px] font-bold shadow"
-                    title={t('ticket.remove_image') || '移除图片'}
+                    title={t('ticket.remove_image')}
                   >
                   >
                     ✕
                     ✕
                   </button>
                   </button>
@@ -326,7 +326,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
               disabled={uploadingImage || sending}
               disabled={uploadingImage || sending}
               onClick={() => fileInputRef.current?.click()}
               onClick={() => fileInputRef.current?.click()}
               className="p-2.5 bg-neutral-100 hover:bg-amber-100 text-black border-2 border-black shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 disabled:opacity-50 shrink-0"
               className="p-2.5 bg-neutral-100 hover:bg-amber-100 text-black border-2 border-black shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 disabled:opacity-50 shrink-0"
-              title={t('ticket.upload_image_title') || '本地上传图片附件 (最大 1MB)'}
+              title={t('ticket.upload_image_title')}
             >
             >
               {uploadingImage ? (
               {uploadingImage ? (
                 <Loader2 size={16} className="animate-spin text-amber-600" />
                 <Loader2 size={16} className="animate-spin text-amber-600" />
@@ -336,7 +336,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
             </button>
             </button>
 
 
             <div className="flex-1">
             <div className="flex-1">
-              <textarea aria-label={t('ticket.reply_placeholder') || '输入工单回复信息 (Enter 发送)...'}
+              <textarea aria-label={t('ticket.reply_placeholder')}
                 value={replyContent}
                 value={replyContent}
                 onChange={(e) => setReplyContent(e.target.value)}
                 onChange={(e) => setReplyContent(e.target.value)}
                 onKeyDown={(e) => {
                 onKeyDown={(e) => {
@@ -345,7 +345,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
                     handleSend(e);
                     handleSend(e);
                   }
                   }
                 }}
                 }}
-                placeholder={t('ticket.reply_placeholder') || '输入工单回复信息 (Enter 发送)...'}
+                placeholder={t('ticket.reply_placeholder')}
                 rows={2}
                 rows={2}
                 className="w-full border-2 border-black bg-neutral-50 p-2 text-xs font-sans focus:bg-white outline-none shadow-[2px_2px_0px_#000] resize-none text-black"
                 className="w-full border-2 border-black bg-neutral-50 p-2 text-xs font-sans focus:bg-white outline-none shadow-[2px_2px_0px_#000] resize-none text-black"
               />
               />
@@ -356,7 +356,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
               disabled={sending || (!replyContent.trim() && attachedImages.length === 0)}
               disabled={sending || (!replyContent.trim() && attachedImages.length === 0)}
               className="px-5 py-2.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none disabled:opacity-50 flex items-center justify-center gap-1 uppercase shrink-0"
               className="px-5 py-2.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none disabled:opacity-50 flex items-center justify-center gap-1 uppercase shrink-0"
             >
             >
-              {sending ? <Loader2 className="animate-spin w-4 h-4" /> : <><Send size={13} /> <span>[ {t('ticket.send_reply') || '发送'} ]</span></>}
+              {sending ? <Loader2 className="animate-spin w-4 h-4" /> : <><Send size={13} /> <span>[ {t('ticket.send_reply')} ]</span></>}
             </button>
             </button>
           </form>
           </form>
         </div>
         </div>

+ 2 - 2
src/components/home/HomePage.tsx

@@ -25,7 +25,7 @@ export default function Home() {
             href="/services"
             href="/services"
             className="w-full sm:w-auto min-w-0 px-8 py-4 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-sm sm:text-base shadow-[4px_4px_0px_#000] flex items-center justify-center gap-2.5 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase group"
             className="w-full sm:w-auto min-w-0 px-8 py-4 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-sm sm:text-base shadow-[4px_4px_0px_#000] flex items-center justify-center gap-2.5 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase group"
           >
           >
-            <span>[ {t('home.cta_order') || '下单'} ]</span>
+            <span>[ {t('home.cta_order')} ]</span>
             <ArrowRight size={18} className="group-hover:translate-x-1 transition-transform" />
             <ArrowRight size={18} className="group-hover:translate-x-1 transition-transform" />
           </Link>
           </Link>
           <Link
           <Link
@@ -33,7 +33,7 @@ export default function Home() {
             className="w-full sm:w-auto min-w-0 px-8 py-4 bg-white hover:bg-neutral-50 text-black border-2 border-black font-black text-sm sm:text-base shadow-[4px_4px_0px_#000] flex items-center justify-center gap-2.5 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase group"
             className="w-full sm:w-auto min-w-0 px-8 py-4 bg-white hover:bg-neutral-50 text-black border-2 border-black font-black text-sm sm:text-base shadow-[4px_4px_0px_#000] flex items-center justify-center gap-2.5 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase group"
           >
           >
             <CalendarSearch size={18} className="group-hover:scale-110 transition-transform" />
             <CalendarSearch size={18} className="group-hover:scale-110 transition-transform" />
-            <span>[ {t('home.cta_check_slots') || '查询 Slot'} ]</span>
+            <span>[ {t('home.cta_check_slots')} ]</span>
           </Link>
           </Link>
         </div>
         </div>
 
 

+ 6 - 6
src/components/pages/ContactPage.tsx

@@ -14,17 +14,17 @@ export default function ContactPage() {
         <div className="flex flex-wrap items-center justify-between gap-2 border-b-2 border-black pb-3 mb-4 text-xs font-bold select-none">
         <div className="flex flex-wrap items-center justify-between gap-2 border-b-2 border-black pb-3 mb-4 text-xs font-bold select-none">
           <div className="flex items-center gap-2">
           <div className="flex items-center gap-2">
             <span className="w-3 h-3 bg-amber-300 border border-black inline-block" />
             <span className="w-3 h-3 bg-amber-300 border border-black inline-block" />
-            <span className="tracking-widest uppercase">[ VAS-SUPPORT // {t('联系渠道')} ]</span>
+            <span className="tracking-widest uppercase">[ VAS-SUPPORT // {t('footer.contact')} ]</span>
           </div>
           </div>
-          <div className="text-neutral-500">{t('服务节点在线')} // 24/7</div>
+          <div className="text-neutral-500">SYS.NODE: ONLINE // 24/7</div>
         </div>
         </div>
 
 
         <div className="space-y-2">
         <div className="space-y-2">
           <h1 className="text-2xl sm:text-4xl font-black tracking-tight text-black uppercase">
           <h1 className="text-2xl sm:text-4xl font-black tracking-tight text-black uppercase">
-            {t('contact.title') || '官方专属顾问与技术支持专线'}
+            {t('contact.title')}
           </h1>
           </h1>
           <p className="text-xs sm:text-sm text-neutral-600 font-mono">
           <p className="text-xs sm:text-sm text-neutral-600 font-mono">
-            {t('contact.description') || '我们在全球多时区设有值班顾问团队,随时协助您完成签证申报与名额锁位。'}
+            {t('contact.description')}
           </p>
           </p>
         </div>
         </div>
       </div>
       </div>
@@ -74,7 +74,7 @@ export default function ContactPage() {
         <div className="bg-white border-2 border-black p-5 shadow-[4px_4px_0px_#000] space-y-3 flex flex-col justify-between">
         <div className="bg-white border-2 border-black p-5 shadow-[4px_4px_0px_#000] space-y-3 flex flex-col justify-between">
           <div className="space-y-2">
           <div className="space-y-2">
             <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
             <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
-              <span>[ 03 // {t('位置')} ]</span>
+              <span>[ 03 // {t('contact.address_label')} ]</span>
               <MapPin size={16} className="text-black" />
               <MapPin size={16} className="text-black" />
             </div>
             </div>
             <p className="text-[11px] text-neutral-500 font-sans">{t('contact.location_desc')}</p>
             <p className="text-[11px] text-neutral-500 font-sans">{t('contact.location_desc')}</p>
@@ -82,7 +82,7 @@ export default function ContactPage() {
               {t('contact.address')}
               {t('contact.address')}
             </p>
             </p>
           </div>
           </div>
-          <div className="py-2 bg-neutral-50 border border-black text-center text-[10px] text-neutral-500 font-bold uppercase">{t('状态:登记有效')}</div>
+          <div className="py-2 bg-neutral-50 border border-black text-center text-[10px] text-neutral-500 font-bold uppercase">[ VERIFIED // OFFICIAL ]</div>
         </div>
         </div>
 
 
       </div>
       </div>

+ 9 - 9
src/components/pages/CookiePolicyPage.tsx

@@ -20,10 +20,10 @@ export default function CookiePolicyPage() {
 
 
         <div className="space-y-2">
         <div className="space-y-2">
           <h1 className="text-2xl sm:text-4xl font-black tracking-tight text-black uppercase">
           <h1 className="text-2xl sm:text-4xl font-black tracking-tight text-black uppercase">
-            {t('footer.cookie') || 'Cookie 与本地存储使用规范'}
+            {t('footer.cookie')}
           </h1>
           </h1>
           <p className="text-xs sm:text-sm text-neutral-600 font-mono">
           <p className="text-xs sm:text-sm text-neutral-600 font-mono">
-            {t('cookie_content.last_updated') || '最后修订更新于: 2026 年度官方公报'}
+            {t('cookie_content.last_updated')}
           </p>
           </p>
         </div>
         </div>
       </div>
       </div>
@@ -36,12 +36,12 @@ export default function CookiePolicyPage() {
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
             <span className="flex items-center gap-1.5">
             <span className="flex items-center gap-1.5">
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 01</span>
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 01</span>
-              <span>{t('cookie_content.section1_title') || 'Cookie 与本地存储的作用'}</span>
+              <span>{t('cookie_content.section1_title')}</span>
             </span>
             </span>
             <span className="text-[10px] text-neutral-500">{t('cookie_content.section1_title')}</span>
             <span className="text-[10px] text-neutral-500">{t('cookie_content.section1_title')}</span>
           </div>
           </div>
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
-            {t('cookie_content.section1_desc') || '为了保障您的会话登录状态、多语言偏好设置以及提供稳定的使馆名额轮询加速服务,系统会在您的浏览器中存储必要的轻量凭证。'}
+            {t('cookie_content.section1_desc')}
           </p>
           </p>
         </div>
         </div>
 
 
@@ -50,18 +50,18 @@ export default function CookiePolicyPage() {
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
             <span className="flex items-center gap-1.5">
             <span className="flex items-center gap-1.5">
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 02</span>
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 02</span>
-              <span>{t('cookie_content.section2_title') || '我们采用的技术存储类别'}</span>
+              <span>{t('cookie_content.section2_title')}</span>
             </span>
             </span>
             <span className="text-[10px] text-neutral-500">{t('cookie_content.section2_title')}</span>
             <span className="text-[10px] text-neutral-500">{t('cookie_content.section2_title')}</span>
           </div>
           </div>
           <ul className="space-y-2 text-xs text-neutral-700 font-sans pl-2 pt-1">
           <ul className="space-y-2 text-xs text-neutral-700 font-sans pl-2 pt-1">
             <li className="flex items-start gap-2">
             <li className="flex items-start gap-2">
               <span className="text-black font-mono">▪</span>
               <span className="text-black font-mono">▪</span>
-              <span><strong>{t('cookie_content.section2_item1_label') || '必要性凭据 (Essential):'}</strong> {t('cookie_content.section2_item1_desc') || '用于维持用户身份安全鉴权(如 rsid 令牌)与防止 CSRF 跨站攻击。'}</span>
+              <span><strong>{t('cookie_content.section2_item1_label')}</strong> {t('cookie_content.section2_item1_desc')}</span>
             </li>
             </li>
             <li className="flex items-start gap-2">
             <li className="flex items-start gap-2">
               <span className="text-black font-mono">▪</span>
               <span className="text-black font-mono">▪</span>
-              <span><strong>{t('cookie_content.section2_item2_label') || '功能性首选项 (Functional):'}</strong> {t('cookie_content.section2_item2_desc') || '用于记忆您的界面语言选择(中/英文)及城市筛选历史。'}</span>
+              <span><strong>{t('cookie_content.section2_item2_label')}</strong> {t('cookie_content.section2_item2_desc')}</span>
             </li>
             </li>
           </ul>
           </ul>
         </div>
         </div>
@@ -71,12 +71,12 @@ export default function CookiePolicyPage() {
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
             <span className="flex items-center gap-1.5">
             <span className="flex items-center gap-1.5">
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 03</span>
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 03</span>
-              <span>{t('cookie_content.section3_title') || '用户自主管理与清除偏好'}</span>
+              <span>{t('cookie_content.section3_title')}</span>
             </span>
             </span>
             <span className="text-[10px] text-neutral-500">{t('cookie_content.section3_title')}</span>
             <span className="text-[10px] text-neutral-500">{t('cookie_content.section3_title')}</span>
           </div>
           </div>
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
-            {t('cookie_content.section3_desc') || '您可以通过浏览器设置随时清空全部本地 Cookie 及缓存数据。请注意清除必要凭据后,您可能需要重新登录控制台。'}
+            {t('cookie_content.section3_desc')}
           </p>
           </p>
         </div>
         </div>
 
 

+ 1 - 1
src/components/pages/CreateOrderPage.tsx

@@ -18,7 +18,7 @@ export default function CreateOrderPage({ params }: { params: { id: string } })
             className="px-3.5 py-1.5 bg-white text-black border-2 border-black font-mono font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-50 flex items-center gap-1.5 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
             className="px-3.5 py-1.5 bg-white text-black border-2 border-black font-mono font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-50 flex items-center gap-1.5 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
           >
           >
             <ArrowLeft size={14} />
             <ArrowLeft size={14} />
-            <span>[ ← {t('common.back') || '返回上一页'} ]</span>
+            <span>[ ← {t('common.back')} ]</span>
           </button>
           </button>
         </div>
         </div>
 
 

+ 9 - 9
src/components/pages/DashboardPage.tsx

@@ -52,7 +52,7 @@ export default function DashboardPage() {
   const showMessage = (message: string, type: 'info'|'error'|'success' = 'info', onOk?: () => void) => {
   const showMessage = (message: string, type: 'info'|'error'|'success' = 'info', onOk?: () => void) => {
     setMsgModal({
     setMsgModal({
       isOpen: true,
       isOpen: true,
-      title: t('common.notice') || '提示',
+      title: t('common.notice'),
       message,
       message,
       type,
       type,
       onOk: onOk || null
       onOk: onOk || null
@@ -119,7 +119,7 @@ export default function DashboardPage() {
     if (targetOrderId && openTicketsMap[targetOrderId]) {
     if (targetOrderId && openTicketsMap[targetOrderId]) {
       const activeTicket = openTicketsMap[targetOrderId];
       const activeTicket = openTicketsMap[targetOrderId];
       showMessage(
       showMessage(
-        t('ticket.already_has_open_ticket') || '该订单已有正在处理中的工单,已为您打开现有工单。',
+        t('ticket.already_has_open_ticket'),
         'info',
         'info',
         () => {
         () => {
           setSelectedTicket(activeTicket);
           setSelectedTicket(activeTicket);
@@ -134,7 +134,7 @@ export default function DashboardPage() {
 
 
   const handleTicketSuccess = () => {
   const handleTicketSuccess = () => {
     setRefreshTickets(prev => prev + 1);
     setRefreshTickets(prev => prev + 1);
-    showMessage(t('ticket.create_success') || '工单提交成功,客服人员将尽快与您对接!', 'success');
+    showMessage(t('ticket.create_success'), 'success');
   };
   };
 
 
   const handleViewOrder = (order: Order) => {
   const handleViewOrder = (order: Order) => {
@@ -149,7 +149,7 @@ export default function DashboardPage() {
 
 
   const handleForceBindSuccess = () => {
   const handleForceBindSuccess = () => {
     setIsForceBindEmailOpen(false);
     setIsForceBindEmailOpen(false);
-    showMessage(t('bind_email.force_bind_success') || '邮箱绑定成功!已为您解锁全部控制台功能。', 'success');
+    showMessage(t('bind_email.force_bind_success'), 'success');
   };
   };
 
 
   if (isCheckingAuth) {
   if (isCheckingAuth) {
@@ -182,10 +182,10 @@ export default function DashboardPage() {
         <div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4">
         <div className="flex flex-col sm:flex-row sm:items-center justify-between gap-4">
           <div className="space-y-1">
           <div className="space-y-1">
             <h1 className="text-2xl sm:text-3xl font-black tracking-tight text-black uppercase">
             <h1 className="text-2xl sm:text-3xl font-black tracking-tight text-black uppercase">
-              {t('dashboard.title') || '用户工单与账户管理中心'}
+              {t('dashboard.title')}
             </h1>
             </h1>
             <p className="text-xs text-neutral-600 font-mono">
             <p className="text-xs text-neutral-600 font-mono">
-              {t('dashboard.subtitle') || '统一查看名下全部签证申请进度、工单沟通与账户安全配置。'}
+              {t('dashboard.subtitle')}
             </p>
             </p>
           </div>
           </div>
 
 
@@ -195,7 +195,7 @@ export default function DashboardPage() {
               className="px-4 py-2.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1.5 uppercase whitespace-normal sm:whitespace-nowrap max-w-full min-w-0"
               className="px-4 py-2.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1.5 uppercase whitespace-normal sm:whitespace-nowrap max-w-full min-w-0"
             >
             >
               <Plus size={15} />
               <Plus size={15} />
-              <span>[ {t('dashboard.new_ticket') || '提交客服工单'} ]</span>
+              <span>[ {t('dashboard.new_ticket')} ]</span>
             </button>
             </button>
           </div>
           </div>
         </div>
         </div>
@@ -330,8 +330,8 @@ export default function DashboardPage() {
       {/* 通用交互弹窗 */}
       {/* 通用交互弹窗 */}
       <ConfirmModal
       <ConfirmModal
         isOpen={isLogoutConfirmOpen}
         isOpen={isLogoutConfirmOpen}
-        title={t('nav.logout_confirm_title') || '退出登录'}
-        message={t('nav.logout_confirm_desc') || '确定要退出当前账号吗?'}
+        title={t('nav.logout_confirm_title')}
+        message={t('nav.logout_confirm_desc')}
         onConfirm={() => {
         onConfirm={() => {
           localStorage.removeItem('rsid');
           localStorage.removeItem('rsid');
           localStorage.removeItem('user_info');
           localStorage.removeItem('user_info');

+ 8 - 8
src/components/pages/PrivacyPage.tsx

@@ -20,10 +20,10 @@ export default function PrivacyPage() {
 
 
         <div className="space-y-2">
         <div className="space-y-2">
           <h1 className="text-2xl sm:text-4xl font-black tracking-tight text-black uppercase">
           <h1 className="text-2xl sm:text-4xl font-black tracking-tight text-black uppercase">
-            {t('footer.privacy') || '隐私数据保护声明'}
+            {t('footer.privacy')}
           </h1>
           </h1>
           <p className="text-xs sm:text-sm text-neutral-600 font-mono">
           <p className="text-xs sm:text-sm text-neutral-600 font-mono">
-            {t('privacy_content.last_updated') || '最后修订更新于: 2026 年度官方公报'}
+            {t('privacy_content.last_updated')}
           </p>
           </p>
         </div>
         </div>
       </div>
       </div>
@@ -36,12 +36,12 @@ export default function PrivacyPage() {
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
             <span className="flex items-center gap-1.5">
             <span className="flex items-center gap-1.5">
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 01</span>
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 01</span>
-              <span>{t('privacy_content.section1_title') || '我们收集的申报信息范围'}</span>
+              <span>{t('privacy_content.section1_title')}</span>
             </span>
             </span>
             <span className="text-[10px] text-neutral-500">{t('privacy_content.section1_title')}</span>
             <span className="text-[10px] text-neutral-500">{t('privacy_content.section1_title')}</span>
           </div>
           </div>
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
-            {t('privacy_content.section1_desc') || '仅在您提交签证订单或名额监控时,收集必要的申请人姓名、护照号、生日、联系邮箱及签证中心预约所需的特定表单参数。'}
+            {t('privacy_content.section1_desc')}
           </p>
           </p>
         </div>
         </div>
 
 
@@ -50,12 +50,12 @@ export default function PrivacyPage() {
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
             <span className="flex items-center gap-1.5">
             <span className="flex items-center gap-1.5">
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 02</span>
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 02</span>
-              <span>{t('privacy_content.section2_title') || '信息使用目的与自动化调用'}</span>
+              <span>{t('privacy_content.section2_title')}</span>
             </span>
             </span>
             <span className="text-[10px] text-neutral-500">{t('privacy_content.section2_title')}</span>
             <span className="text-[10px] text-neutral-500">{t('privacy_content.section2_title')}</span>
           </div>
           </div>
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
-            {t('privacy_content.section2_desc') || '所收集信息仅用于向指定使馆官方系统发送自动化放号抢约指令及生成预约回执。平台绝不出售或向无关第三方披露您的个人敏感档案。'}
+            {t('privacy_content.section2_desc')}
           </p>
           </p>
         </div>
         </div>
 
 
@@ -64,12 +64,12 @@ export default function PrivacyPage() {
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
             <span className="flex items-center gap-1.5">
             <span className="flex items-center gap-1.5">
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 03</span>
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 03</span>
-              <span>{t('privacy_content.section3_title') || '银行级加密存储与数据销毁'}</span>
+              <span>{t('privacy_content.section3_title')}</span>
             </span>
             </span>
             <span className="text-[10px] text-neutral-500">{t('privacy_content.section3_title')}</span>
             <span className="text-[10px] text-neutral-500">{t('privacy_content.section3_title')}</span>
           </div>
           </div>
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
-            {t('privacy_content.section3_desc') || '传输全程采用 TLS 1.3 强加密,静态数据在数据库中进行 AES-256 分段加密。服务履约完成后支持在控制台手动清除档案记录。'}
+            {t('privacy_content.section3_desc')}
           </p>
           </p>
         </div>
         </div>
 
 

+ 34 - 34
src/components/pages/RefundPolicyPage.tsx

@@ -37,10 +37,10 @@ export default function RefundPolicyPage() {
 
 
         <div className="space-y-2">
         <div className="space-y-2">
           <h1 className="text-2xl sm:text-4xl font-black tracking-tight text-black uppercase">
           <h1 className="text-2xl sm:text-4xl font-black tracking-tight text-black uppercase">
-            {t('refund.title') || '退款政策与适用条件'}
+            {t('refund.title')}
           </h1>
           </h1>
           <p className="text-xs sm:text-sm text-neutral-600 font-mono">
           <p className="text-xs sm:text-sm text-neutral-600 font-mono">
-            {t('refund.subtitle') || '透明规范的退款条款与退单手续费扣减细则。'}
+            {t('refund.subtitle')}
           </p>
           </p>
         </div>
         </div>
       </div>
       </div>
@@ -53,7 +53,7 @@ export default function RefundPolicyPage() {
           <div className="flex items-center justify-between border-b-2 border-black pb-2">
           <div className="flex items-center justify-between border-b-2 border-black pb-2">
             <h2 className="text-base sm:text-lg font-black text-black uppercase flex items-center gap-2">
             <h2 className="text-base sm:text-lg font-black text-black uppercase flex items-center gap-2">
               <span className="px-2 py-0.5 bg-black text-white text-xs font-bold">§ 01</span>
               <span className="px-2 py-0.5 bg-black text-white text-xs font-bold">§ 01</span>
-              <span>{t('refund.standard_refund_title') || '标准退款政策与网关手续费扣减'}</span>
+              <span>{t('refund.standard_refund_title')}</span>
             </h2>
             </h2>
             <span className="text-[10px] text-neutral-500 font-bold">[ {t('refund.standard_refund_title')} ]</span>
             <span className="text-[10px] text-neutral-500 font-bold">[ {t('refund.standard_refund_title')} ]</span>
           </div>
           </div>
@@ -62,27 +62,27 @@ export default function RefundPolicyPage() {
           <div className="bg-neutral-50 border-2 border-black p-5 shadow-[3px_3px_0px_#000] space-y-4">
           <div className="bg-neutral-50 border-2 border-black p-5 shadow-[3px_3px_0px_#000] space-y-4">
             <div className="flex items-center gap-2 text-xs font-bold text-black uppercase">
             <div className="flex items-center gap-2 text-xs font-bold text-black uppercase">
               <Info size={15} />
               <Info size={15} />
-              <span>{t('refund.fee_notice_title') || '退单手续费须知'}</span>
+              <span>{t('refund.fee_notice_title')}</span>
             </div>
             </div>
             <p className="text-neutral-700 text-xs font-sans leading-relaxed">
             <p className="text-neutral-700 text-xs font-sans leading-relaxed">
-              {t('refund.fee_notice_desc') || '如因个人原因申请自愿退款,因第三方支付网关已收取不可退还的交易结算手续费,退款将扣除对应通道的实际手续费。'}
+              {t('refund.fee_notice_desc')}
             </p>
             </p>
 
 
             {/* 支付方式手续费明细表 */}
             {/* 支付方式手续费明细表 */}
             <div className="border-2 border-black overflow-hidden bg-white">
             <div className="border-2 border-black overflow-hidden bg-white">
               <div className="grid grid-cols-2 bg-neutral-100 p-2.5 text-xs font-black uppercase text-black border-b-2 border-black">
               <div className="grid grid-cols-2 bg-neutral-100 p-2.5 text-xs font-black uppercase text-black border-b-2 border-black">
-                <div>{t('refund.fee_table_method') || '支付通道 / 结算网关'}</div>
-                <div className="text-right">{t('refund.fee_table_deduction') || '网关扣除费率'}</div>
+                <div>{t('refund.fee_table_method')}</div>
+                <div className="text-right">{t('refund.fee_table_deduction')}</div>
               </div>
               </div>
 
 
               {/* Stripe */}
               {/* Stripe */}
               <div className="grid grid-cols-2 p-3 text-xs border-b border-neutral-200 items-center">
               <div className="grid grid-cols-2 p-3 text-xs border-b border-neutral-200 items-center">
                 <div className="flex items-center gap-2 font-bold">
                 <div className="flex items-center gap-2 font-bold">
                   <CreditCard size={14} className="text-black"/>
                   <CreditCard size={14} className="text-black"/>
-                  <span>{t('refund.fee_stripe') || 'Stripe (信用卡 / 国际卡)'}</span>
+                  <span>{t('refund.fee_stripe')}</span>
                 </div>
                 </div>
                 <div className="text-right font-black text-black">
                 <div className="text-right font-black text-black">
-                  <span className="bg-amber-100 px-2 py-0.5 border border-black">{t('refund.fee_stripe_val') || '3.5% + $0.30'}</span>
+                  <span className="bg-amber-100 px-2 py-0.5 border border-black">{t('refund.fee_stripe_val')}</span>
                 </div>
                 </div>
               </div>
               </div>
 
 
@@ -90,10 +90,10 @@ export default function RefundPolicyPage() {
               <div className="grid grid-cols-2 p-3 text-xs border-b border-neutral-200 items-center">
               <div className="grid grid-cols-2 p-3 text-xs border-b border-neutral-200 items-center">
                 <div className="flex items-center gap-2 font-bold">
                 <div className="flex items-center gap-2 font-bold">
                   <Smartphone size={14} className="text-black"/>
                   <Smartphone size={14} className="text-black"/>
-                  <span>{t('refund.fee_wechat') || '微信支付 / 支付宝'}</span>
+                  <span>{t('refund.fee_wechat')}</span>
                 </div>
                 </div>
                 <div className="text-right font-black text-black">
                 <div className="text-right font-black text-black">
-                  <span className="bg-amber-100 px-2 py-0.5 border border-black">{t('refund.fee_wechat_val') || '0.6%'}</span>
+                  <span className="bg-amber-100 px-2 py-0.5 border border-black">{t('refund.fee_wechat_val')}</span>
                 </div>
                 </div>
               </div>
               </div>
 
 
@@ -101,16 +101,16 @@ export default function RefundPolicyPage() {
               <div className="grid grid-cols-2 p-3 text-xs items-center">
               <div className="grid grid-cols-2 p-3 text-xs items-center">
                 <div className="flex items-center gap-2 font-bold">
                 <div className="flex items-center gap-2 font-bold">
                   <Wallet size={14} className="text-black"/>
                   <Wallet size={14} className="text-black"/>
-                  <span>{t('refund.fee_other') || '其他本地支付通道'}</span>
+                  <span>{t('refund.fee_other')}</span>
                 </div>
                 </div>
                 <div className="text-right font-bold text-neutral-600">
                 <div className="text-right font-bold text-neutral-600">
-                  <span>{t('refund.fee_other_val') || '按通道实际费率'}</span>
+                  <span>{t('refund.fee_other_val')}</span>
                 </div>
                 </div>
               </div>
               </div>
             </div>
             </div>
           </div>
           </div>
 
 
-          <p className="text-xs font-bold text-black">{t('refund.standard_refund_desc') || '以下为常规符合退款的场景条件:'}</p>
+          <p className="text-xs font-bold text-black">{t('refund.standard_refund_desc')}</p>
           <ul className="space-y-1.5 text-xs text-neutral-700 font-sans pl-2">
           <ul className="space-y-1.5 text-xs text-neutral-700 font-sans pl-2">
             <li className="flex items-start gap-2">
             <li className="flex items-start gap-2">
               <span className="text-black font-mono">▪</span>
               <span className="text-black font-mono">▪</span>
@@ -118,11 +118,11 @@ export default function RefundPolicyPage() {
             </li>
             </li>
             <li className="flex items-start gap-2">
             <li className="flex items-start gap-2">
               <span className="text-black font-mono">▪</span>
               <span className="text-black font-mono">▪</span>
-              <span>{t('refund.standard_refund_item_2') || '在约定服务监控周期内,系统未能成功捕获到符合您指定时间段的名额。'}</span>
+              <span>{t('refund.standard_refund_item_2')}</span>
             </li>
             </li>
             <li className="flex items-start gap-2">
             <li className="flex items-start gap-2">
               <span className="text-black font-mono">▪</span>
               <span className="text-black font-mono">▪</span>
-              <span>{t('refund.standard_refund_item_3') || '使馆政策不可抗力关闭预约通道,导致服务无法继续履约。'}</span>
+              <span>{t('refund.standard_refund_item_3')}</span>
             </li>
             </li>
           </ul>
           </ul>
         </section>
         </section>
@@ -132,7 +132,7 @@ export default function RefundPolicyPage() {
           <div className="flex items-center justify-between border-b-2 border-black pb-2">
           <div className="flex items-center justify-between border-b-2 border-black pb-2">
             <h2 className="text-base sm:text-lg font-black text-black uppercase flex items-center gap-2">
             <h2 className="text-base sm:text-lg font-black text-black uppercase flex items-center gap-2">
               <span className="px-2 py-0.5 bg-black text-white text-xs font-bold">§ 02</span>
               <span className="px-2 py-0.5 bg-black text-white text-xs font-bold">§ 02</span>
-              <span>{t('refund.no_refund_title') || '无法支持退款的特殊情况'}</span>
+              <span>{t('refund.no_refund_title')}</span>
             </h2>
             </h2>
             <span className="text-[10px] text-neutral-500 font-bold">[ {t('refund.no_refund_title')} ]</span>
             <span className="text-[10px] text-neutral-500 font-bold">[ {t('refund.no_refund_title')} ]</span>
           </div>
           </div>
@@ -140,27 +140,27 @@ export default function RefundPolicyPage() {
           <div className="bg-rose-50 border-2 border-black p-4 shadow-[2px_2px_0px_#000] space-y-1 text-xs">
           <div className="bg-rose-50 border-2 border-black p-4 shadow-[2px_2px_0px_#000] space-y-1 text-xs">
             <div className="font-bold flex items-center gap-2 text-black">
             <div className="font-bold flex items-center gap-2 text-black">
               <AlertTriangle size={15} className="text-rose-600"/>
               <AlertTriangle size={15} className="text-rose-600"/>
-              <span>{t('refund.important_note') || '特别注意事项'}</span>
+              <span>{t('refund.important_note')}</span>
             </div>
             </div>
-            <p className="text-neutral-700 font-sans">{t('refund.important_note_desc') || '若服务已履约或因用户个人原因导致失误,恕不支持退单:'}</p>
+            <p className="text-neutral-700 font-sans">{t('refund.important_note_desc')}</p>
           </div>
           </div>
 
 
           <ul className="space-y-1.5 text-xs text-neutral-700 font-sans pl-2">
           <ul className="space-y-1.5 text-xs text-neutral-700 font-sans pl-2">
             <li className="flex items-start gap-2">
             <li className="flex items-start gap-2">
               <span className="text-black font-mono">▪</span>
               <span className="text-black font-mono">▪</span>
-              <span>{t('refund.no_refund_item_1') || '系统已成功锁定使馆名额并生成官方确认凭据后,服务已视为交付完成。'}</span>
+              <span>{t('refund.no_refund_item_1')}</span>
             </li>
             </li>
             <li className="flex items-start gap-2">
             <li className="flex items-start gap-2">
               <span className="text-black font-mono">▪</span>
               <span className="text-black font-mono">▪</span>
-              <span>{t('refund.no_refund_item_2') || '申请人因自身提供虚假材料或资料不全导致使馆审核驳回。'}</span>
+              <span>{t('refund.no_refund_item_2')}</span>
             </li>
             </li>
             <li className="flex items-start gap-2">
             <li className="flex items-start gap-2">
               <span className="text-black font-mono">▪</span>
               <span className="text-black font-mono">▪</span>
-              <span>{t('refund.no_refund_item_3') || '申请人自行缺席使馆面试或放弃递签。'}</span>
+              <span>{t('refund.no_refund_item_3')}</span>
             </li>
             </li>
             <li className="flex items-start gap-2">
             <li className="flex items-start gap-2">
               <span className="text-black font-mono">▪</span>
               <span className="text-black font-mono">▪</span>
-              <span>{t('refund.no_refund_item_4') || '超过退款有效申请期限发起的主张。'}</span>
+              <span>{t('refund.no_refund_item_4')}</span>
             </li>
             </li>
           </ul>
           </ul>
         </section>
         </section>
@@ -170,26 +170,26 @@ export default function RefundPolicyPage() {
           <div className="flex items-center justify-between border-b-2 border-black pb-2">
           <div className="flex items-center justify-between border-b-2 border-black pb-2">
             <h2 className="text-base sm:text-lg font-black text-black uppercase flex items-center gap-2">
             <h2 className="text-base sm:text-lg font-black text-black uppercase flex items-center gap-2">
               <span className="px-2 py-0.5 bg-black text-white text-xs font-bold">§ 03</span>
               <span className="px-2 py-0.5 bg-black text-white text-xs font-bold">§ 03</span>
-              <span>{t('refund.process_title') || '退款申请 3 步处理流转'}</span>
+              <span>{t('refund.process_title')}</span>
             </h2>
             </h2>
             <span className="text-[10px] text-neutral-500 font-bold">[ {t('refund.process_title')} ]</span>
             <span className="text-[10px] text-neutral-500 font-bold">[ {t('refund.process_title')} ]</span>
           </div>
           </div>
 
 
           <div className="grid grid-cols-1 sm:grid-cols-3 gap-4 text-xs font-mono">
           <div className="grid grid-cols-1 sm:grid-cols-3 gap-4 text-xs font-mono">
             <div className="p-4 border-2 border-black bg-neutral-50 shadow-[3px_3px_0px_#000] space-y-1">
             <div className="p-4 border-2 border-black bg-neutral-50 shadow-[3px_3px_0px_#000] space-y-1">
-              <div className="font-black text-black uppercase">[ {t('步骤')} 01 ]</div>
-              <div className="font-bold text-black font-sans">{t('refund.step_1_title') || '提交退款工单'}</div>
-              <p className="text-neutral-600 font-sans">{t('refund.step_1_desc') || '在控制台工单模块选择退款申诉并填写理由。'}</p>
+              <div className="font-black text-black uppercase">[ § 01 ]</div>
+              <div className="font-bold text-black font-sans">{t('refund.step_1_title')}</div>
+              <p className="text-neutral-600 font-sans">{t('refund.step_1_desc')}</p>
             </div>
             </div>
             <div className="p-4 border-2 border-black bg-neutral-50 shadow-[3px_3px_0px_#000] space-y-1">
             <div className="p-4 border-2 border-black bg-neutral-50 shadow-[3px_3px_0px_#000] space-y-1">
-              <div className="font-black text-black uppercase">[ {t('步骤')} 02 ]</div>
-              <div className="font-bold text-black font-sans">{t('refund.step_2_title') || '专员审核核销'}</div>
-              <p className="text-neutral-600 font-sans">{t('refund.step_2_desc') || '财务与签证顾问将在 1-2 个工作日内完成审核。'}</p>
+              <div className="font-black text-black uppercase">[ § 02 ]</div>
+              <div className="font-bold text-black font-sans">{t('refund.step_2_title')}</div>
+              <p className="text-neutral-600 font-sans">{t('refund.step_2_desc')}</p>
             </div>
             </div>
             <div className="p-4 border-2 border-black bg-neutral-50 shadow-[3px_3px_0px_#000] space-y-1">
             <div className="p-4 border-2 border-black bg-neutral-50 shadow-[3px_3px_0px_#000] space-y-1">
-              <div className="font-black text-black uppercase">[ {t('步骤')} 03 ]</div>
-              <div className="font-bold text-black font-sans">{t('refund.step_3_title') || '原路资金退回'}</div>
-              <p className="text-neutral-600 font-sans">{t('refund.step_3_desc') || '审核通过后资金将在 3-7 个工作日原路退回付款账户。'}</p>
+              <div className="font-black text-black uppercase">[ § 03 ]</div>
+              <div className="font-bold text-black font-sans">{t('refund.step_3_title')}</div>
+              <p className="text-neutral-600 font-sans">{t('refund.step_3_desc')}</p>
             </div>
             </div>
           </div>
           </div>
         </section>
         </section>
@@ -198,7 +198,7 @@ export default function RefundPolicyPage() {
         <section className="border-t-2 border-dashed border-neutral-300 pt-6 space-y-4">
         <section className="border-t-2 border-dashed border-neutral-300 pt-6 space-y-4">
           <h2 className="text-sm font-black text-black uppercase flex items-center gap-2">
           <h2 className="text-sm font-black text-black uppercase flex items-center gap-2">
             <HelpCircle size={16} />
             <HelpCircle size={16} />
-            <span>{t('refund.contact_title') || 'STRATA 服务支持'}</span>
+            <span>{t('refund.contact_title')}</span>
           </h2>
           </h2>
 
 
           <div className="grid grid-cols-1 md:grid-cols-3 gap-3">
           <div className="grid grid-cols-1 md:grid-cols-3 gap-3">

+ 4 - 4
src/components/pages/SettingsPage.tsx

@@ -40,10 +40,10 @@ export default function SettingsPage() {
         <div className="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4">
         <div className="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4">
           <div>
           <div>
             <h1 className="text-2xl sm:text-3xl font-black tracking-tight text-black uppercase">
             <h1 className="text-2xl sm:text-3xl font-black tracking-tight text-black uppercase">
-              {t('settings.title') || '账户设置与安全选项'}
+              {t('settings.title')}
             </h1>
             </h1>
             <p className="text-xs text-neutral-600 font-mono mt-1">
             <p className="text-xs text-neutral-600 font-mono mt-1">
-              {t('settings.subtitle') || '管理您的绑定邮箱、安全密码与系统权限。'}
+              {t('settings.subtitle')}
             </p>
             </p>
           </div>
           </div>
           <div className="flex gap-2.5">
           <div className="flex gap-2.5">
@@ -51,13 +51,13 @@ export default function SettingsPage() {
               onClick={() => router.push('/services')}
               onClick={() => router.push('/services')}
               className="flex items-center gap-1.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black px-4 py-2 text-xs font-black shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
               className="flex items-center gap-1.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black px-4 py-2 text-xs font-black shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
             >
             >
-              <Plus size={14} /> <span>[ {t('common.new_application') || '新建申请'} ]</span>
+              <Plus size={14} /> <span>[ {t('common.new_application')} ]</span>
             </button>
             </button>
             <button
             <button
               onClick={handleLogout}
               onClick={handleLogout}
               className="flex items-center gap-1.5 bg-white hover:bg-rose-100 text-black border-2 border-black px-4 py-2 text-xs font-black shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
               className="flex items-center gap-1.5 bg-white hover:bg-rose-100 text-black border-2 border-black px-4 py-2 text-xs font-black shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase"
             >
             >
-              <LogOut size={14} /> <span>[ {t('nav.logout') || '退出登录'} ]</span>
+              <LogOut size={14} /> <span>[ {t('nav.logout')} ]</span>
             </button>
             </button>
           </div>
           </div>
         </div>
         </div>

+ 2 - 2
src/components/pages/SlotsPage.tsx

@@ -78,10 +78,10 @@ export default function SlotDashboardPage() {
 
 
         <div className="max-w-3xl space-y-2">
         <div className="max-w-3xl space-y-2">
           <h1 className="text-2xl sm:text-3xl font-black tracking-tight text-black uppercase">
           <h1 className="text-2xl sm:text-3xl font-black tracking-tight text-black uppercase">
-            {t('slots.title') || '实时使馆名额雷达监控'}
+            {t('slots.title')}
           </h1>
           </h1>
           <p className="text-xs sm:text-sm text-neutral-600 font-mono leading-relaxed">
           <p className="text-xs sm:text-sm text-neutral-600 font-mono leading-relaxed">
-            {t('slots.subtitle') || '查看预约名额记录,并留意数据更新时间。'}
+            {t('slots.subtitle')}
           </p>
           </p>
         </div>
         </div>
       </div>
       </div>

+ 11 - 11
src/components/pages/TermsPage.tsx

@@ -22,10 +22,10 @@ export default function TermsPage() {
 
 
         <div className="space-y-2">
         <div className="space-y-2">
           <h1 className="text-2xl sm:text-4xl font-black tracking-tight text-black uppercase">
           <h1 className="text-2xl sm:text-4xl font-black tracking-tight text-black uppercase">
-            {t('terms.title') || '用户服务协议与使用条款'}
+            {t('terms.title')}
           </h1>
           </h1>
           <p className="text-xs sm:text-sm text-neutral-600 font-mono">
           <p className="text-xs sm:text-sm text-neutral-600 font-mono">
-            {t('terms.subtitle') || '使用 STRATA 签证自动化与名额监控系统需遵循的法律规范。'}
+            {t('terms.subtitle')}
           </p>
           </p>
         </div>
         </div>
       </div>
       </div>
@@ -35,7 +35,7 @@ export default function TermsPage() {
 
 
         <div className="bg-neutral-50 border-2 border-black p-4 shadow-[2px_2px_0px_#000]">
         <div className="bg-neutral-50 border-2 border-black p-4 shadow-[2px_2px_0px_#000]">
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
-            {t('terms.description') || '欢迎访问 STRATA 全球签证自动化系统。在您使用本平台提供的名额监控、代办提交及相关增值服务前,请审慎阅读以下条款。'}
+            {t('terms.description')}
           </p>
           </p>
         </div>
         </div>
 
 
@@ -43,43 +43,43 @@ export default function TermsPage() {
           <div className="p-4 border-2 border-black bg-white shadow-[3px_3px_0px_#000] space-y-1">
           <div className="p-4 border-2 border-black bg-white shadow-[3px_3px_0px_#000] space-y-1">
             <div className="flex items-center justify-between border-b border-black pb-1.5 text-xs font-black">
             <div className="flex items-center justify-between border-b border-black pb-1.5 text-xs font-black">
               <span>[ {t('terms.article_1_title')} ]</span>
               <span>[ {t('terms.article_1_title')} ]</span>
-              <span className="text-[10px] text-neutral-500">{t('章节')} 1</span>
+              <span className="text-[10px] text-neutral-500">§ 01</span>
             </div>
             </div>
             <p className="text-xs text-neutral-700 font-sans leading-relaxed pt-1">
             <p className="text-xs text-neutral-700 font-sans leading-relaxed pt-1">
-              {t('terms.point_one') || '用户须保证所填报的个人身份证明、护照信息及使馆申报资料真实合法。平台仅依据用户授权执行自动化辅助递交。'}
+              {t('terms.point_one')}
             </p>
             </p>
           </div>
           </div>
 
 
           <div className="p-4 border-2 border-black bg-white shadow-[3px_3px_0px_#000] space-y-1">
           <div className="p-4 border-2 border-black bg-white shadow-[3px_3px_0px_#000] space-y-1">
             <div className="flex items-center justify-between border-b border-black pb-1.5 text-xs font-black">
             <div className="flex items-center justify-between border-b border-black pb-1.5 text-xs font-black">
               <span>[ {t('terms.article_2_title')} ]</span>
               <span>[ {t('terms.article_2_title')} ]</span>
-              <span className="text-[10px] text-neutral-500">{t('章节')} 2</span>
+              <span className="text-[10px] text-neutral-500">§ 02</span>
             </div>
             </div>
             <p className="text-xs text-neutral-700 font-sans leading-relaxed pt-1">
             <p className="text-xs text-neutral-700 font-sans leading-relaxed pt-1">
-              {t('terms.point_two') || '名额开放周期与签证获批与否由各国使领馆及签证中心全权裁定,自动化系统提供高并发实时监控与锁位服务保障。'}
+              {t('terms.point_two')}
             </p>
             </p>
           </div>
           </div>
 
 
           <div className="p-4 border-2 border-black bg-white shadow-[3px_3px_0px_#000] space-y-1">
           <div className="p-4 border-2 border-black bg-white shadow-[3px_3px_0px_#000] space-y-1">
             <div className="flex items-center justify-between border-b border-black pb-1.5 text-xs font-black">
             <div className="flex items-center justify-between border-b border-black pb-1.5 text-xs font-black">
               <span>[ {t('terms.article_3_title')} ]</span>
               <span>[ {t('terms.article_3_title')} ]</span>
-              <span className="text-[10px] text-neutral-500">{t('章节')} 3</span>
+              <span className="text-[10px] text-neutral-500">§ 03</span>
             </div>
             </div>
             <p className="text-xs text-neutral-700 font-sans leading-relaxed pt-1">
             <p className="text-xs text-neutral-700 font-sans leading-relaxed pt-1">
-              {t('terms.point_three') || '平台采用银行级对称加密保护用户申报数据,严禁利用本系统实施任何违反使领馆规则或破坏公共网络的行为。'}
+              {t('terms.point_three')}
             </p>
             </p>
           </div>
           </div>
         </div>
         </div>
 
 
         <div className="pt-4 border-t-2 border-dashed border-neutral-300 flex flex-col sm:flex-row justify-between items-center gap-3 text-xs">
         <div className="pt-4 border-t-2 border-dashed border-neutral-300 flex flex-col sm:flex-row justify-between items-center gap-3 text-xs">
           <span className="text-neutral-500 font-sans">
           <span className="text-neutral-500 font-sans">
-            {t('terms.contact_prompt') || '如对服务条款有任何异议或咨询:'}
+            {t('terms.contact_prompt')}
           </span>
           </span>
           <Link
           <Link
             href="/contact"
             href="/contact"
             className="px-4 py-2 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 uppercase flex items-center gap-1"
             className="px-4 py-2 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 uppercase flex items-center gap-1"
           >
           >
-            <span>[ {t('footer.contact') || '联系 STRATA 支持'} ]</span>
+            <span>[ {t('footer.contact')} ]</span>
             <ArrowRight size={13} />
             <ArrowRight size={13} />
           </Link>
           </Link>
         </div>
         </div>

+ 10 - 10
src/components/payment/PaymentConfirmCard.tsx

@@ -25,7 +25,7 @@ export default function PaymentConfirmCard() {
   const hasFetched = useRef(false);
   const hasFetched = useRef(false);
 
 
   const [status, setStatus] = useState<'loading' | 'success' | 'error'>('loading');
   const [status, setStatus] = useState<'loading' | 'success' | 'error'>('loading');
-  const [message, setMessage] = useState(() => t('payment_confirm.verifying') || '正在验证支付核销记录...');
+  const [message, setMessage] = useState(() => t('payment_confirm.verifying'));
   const [paymentId, setPaymentId] = useState<string>('');
   const [paymentId, setPaymentId] = useState<string>('');
 
 
   useEffect(() => {
   useEffect(() => {
@@ -34,7 +34,7 @@ export default function PaymentConfirmCard() {
 
 
     if (!pid || !token) {
     if (!pid || !token) {
       setStatus('error');
       setStatus('error');
-      setMessage(t('payment_confirm.param_missing') || '参数校验缺失:URL 中必须包含 payment_id 与 token 校验参数');
+      setMessage(t('payment_confirm.param_missing'));
       return;
       return;
     }
     }
 
 
@@ -48,12 +48,12 @@ export default function PaymentConfirmCard() {
         await paymentService.checkConfirm(Number(pid));
         await paymentService.checkConfirm(Number(pid));
 
 
         setStatus('success');
         setStatus('success');
-        setMessage(t('payment_confirm.success_msg') || '支付已成功确认核销!自动化监控系统已启动后续流程。');
+        setMessage(t('payment_confirm.success_msg'));
       } catch (error: any) {
       } catch (error: any) {
         console.error(error);
         console.error(error);
         setStatus('error');
         setStatus('error');
-        const errorMsg = error.response?.data?.message || error.message || t('payment_confirm.unknown_error') || t('payment_confirm.unknown_error');
-        setMessage(`${t('payment_confirm.failed_prefix') || '核销确认失败: '}${errorMsg}`);
+        const errorMsg = error.response?.data?.message || error.message || t('payment_confirm.unknown_error');
+        setMessage(`${t('payment_confirm.failed_prefix')}${errorMsg}`);
       }
       }
     };
     };
 
 
@@ -98,13 +98,13 @@ export default function PaymentConfirmCard() {
         <div>
         <div>
           <h1 className="text-lg font-black text-black uppercase">
           <h1 className="text-lg font-black text-black uppercase">
             {status === 'loading' 
             {status === 'loading' 
-              ? `[ ${t('payment_confirm.badge_verifying') || '正在验证中...'} ]`
+              ? `[ ${t('payment_confirm.badge_verifying')} ]`
               : status === 'success' 
               : status === 'success' 
-              ? `[ ${t('payment_confirm.badge_success') || '支付核销成功'} ]` 
-              : `[ ${t('payment_confirm.badge_failed') || '核销失败'} ]`}
+              ? `[ ${t('payment_confirm.badge_success')} ]` 
+              : `[ ${t('payment_confirm.badge_failed')} ]`}
           </h1>
           </h1>
           <p className="text-xs text-neutral-600 font-sans mt-2 leading-relaxed">
           <p className="text-xs text-neutral-600 font-sans mt-2 leading-relaxed">
-            {message || (t('payment_confirm.verifying') || '正在验证支付核销记录...')}
+            {message || t('payment_confirm.verifying')}
           </p>
           </p>
         </div>
         </div>
 
 
@@ -115,7 +115,7 @@ export default function PaymentConfirmCard() {
             className="w-full py-3 bg-neutral-100 hover:bg-amber-300 text-black border-2 border-black font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center justify-center gap-2 uppercase"
             className="w-full py-3 bg-neutral-100 hover:bg-amber-300 text-black border-2 border-black font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center justify-center gap-2 uppercase"
           >
           >
             <ArrowLeft size={14} />
             <ArrowLeft size={14} />
-            <span>[ {t('payment_confirm.back_to_dashboard') || '返回控制台查看订单'} ]</span>
+            <span>[ {t('payment_confirm.back_to_dashboard')} ]</span>
           </button>
           </button>
         </div>
         </div>
       </div>
       </div>

+ 4 - 4
src/components/services/ServiceDetailModal.tsx

@@ -160,7 +160,7 @@ export default function ServiceDetailModal({
                 <div className="bg-white border-2 border-black p-2.5 text-center shadow-[2px_2px_0px_#000]">
                 <div className="bg-white border-2 border-black p-2.5 text-center shadow-[2px_2px_0px_#000]">
                   <div className="text-base mb-1 font-black text-black">⚡</div>
                   <div className="text-base mb-1 font-black text-black">⚡</div>
                   <div className="text-xs font-bold text-black">{t('services.feature_fast')}</div>
                   <div className="text-xs font-bold text-black">{t('services.feature_fast')}</div>
-                  <div className="text-[10px] text-neutral-500 mt-0.5">{t('毫秒级自动化')}</div>
+                  <div className="text-[10px] text-neutral-500 mt-0.5">{t('services.feature_fast_desc')}</div>
                 </div>
                 </div>
 
 
                 <div className="bg-white border-2 border-black p-2.5 text-center shadow-[2px_2px_0px_#000]">
                 <div className="bg-white border-2 border-black p-2.5 text-center shadow-[2px_2px_0px_#000]">
@@ -172,13 +172,13 @@ export default function ServiceDetailModal({
                 <div className="bg-white border-2 border-black p-2.5 text-center shadow-[2px_2px_0px_#000]">
                 <div className="bg-white border-2 border-black p-2.5 text-center shadow-[2px_2px_0px_#000]">
                   <div className="text-base mb-1 font-black text-black">📋</div>
                   <div className="text-base mb-1 font-black text-black">📋</div>
                   <div className="text-xs font-bold text-black">{t('services.feature_review')}</div>
                   <div className="text-xs font-bold text-black">{t('services.feature_review')}</div>
-                  <div className="text-[10px] text-neutral-500 mt-0.5">{t('一对一审核')}</div>
+                  <div className="text-[10px] text-neutral-500 mt-0.5">{t('services.feature_review_desc')}</div>
                 </div>
                 </div>
 
 
                 <div className="bg-white border-2 border-black p-2.5 text-center shadow-[2px_2px_0px_#000]">
                 <div className="bg-white border-2 border-black p-2.5 text-center shadow-[2px_2px_0px_#000]">
                   <div className="text-base mb-1 font-black text-black">🤖</div>
                   <div className="text-base mb-1 font-black text-black">🤖</div>
                   <div className="text-xs font-bold text-black">{t('services.feature_automation')}</div>
                   <div className="text-xs font-bold text-black">{t('services.feature_automation')}</div>
-                  <div className="text-[10px] text-neutral-500 mt-0.5">{t('全天候机器人监控')}</div>
+                  <div className="text-[10px] text-neutral-500 mt-0.5">{t('services.feature_automation_desc')}</div>
                 </div>
                 </div>
               </div>
               </div>
 
 
@@ -306,7 +306,7 @@ export default function ServiceDetailModal({
               onClick={onClose}
               onClick={onClose}
               className="px-4 py-2.5 border-2 border-black bg-white text-black font-mono font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-100 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
               className="px-4 py-2.5 border-2 border-black bg-white text-black font-mono font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-100 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
             >
             >
-              [ {t('common.close') || '关闭'} ]
+              [ {t('common.close')} ]
             </button>
             </button>
             <button
             <button
               onClick={() => {
               onClick={() => {

+ 4 - 4
src/components/services/ServicePoster.tsx

@@ -50,7 +50,7 @@ export default function ServicePoster({ product, className = '' }: ServicePoster
         symbolType: 'schengen',
         symbolType: 'schengen',
       };
       };
     }
     }
-    if (countryLower.includes('united states') || countryLower.includes('usa') || countryLower.includes('us') || countryLower.includes('美国')) {
+    if (countryLower.includes('united states') || countryLower.includes('usa') || countryLower === 'us' || countryLower.includes('美国')) {
       return {
       return {
         accentColor: '#dc2626', // red
         accentColor: '#dc2626', // red
         flagColors: ['#b22234', '#ffffff', '#3c3b6e'],
         flagColors: ['#b22234', '#ffffff', '#3c3b6e'],
@@ -58,7 +58,7 @@ export default function ServicePoster({ product, className = '' }: ServicePoster
         symbolType: 'us',
         symbolType: 'us',
       };
       };
     }
     }
-    if (countryLower.includes('united kingdom') || countryLower.includes('uk') || countryLower.includes('英国')) {
+    if (countryLower.includes('united kingdom') || countryLower === 'uk' || countryLower.includes('英国')) {
       return {
       return {
         accentColor: '#b91c1c',
         accentColor: '#b91c1c',
         flagColors: ['#012169', '#ffffff', '#c8102e'],
         flagColors: ['#012169', '#ffffff', '#c8102e'],
@@ -136,7 +136,7 @@ export default function ServicePoster({ product, className = '' }: ServicePoster
   const theme = {
   const theme = {
     ...baseTheme,
     ...baseTheme,
     brand: cardConfig?.poster_tag || product.provider || '',
     brand: cardConfig?.poster_tag || product.provider || '',
-    accentTag: cardConfig?.official_tag || (localizedUI ? t(product.city || '') : product.city) || '',
+    accentTag: (cardConfig?.official_tag || product.provider === 'Official') ? t('services.official_tag_default') : ((localizedUI ? t(product.city || '') : product.city) || ''),
     mainTitle: cardConfig?.poster_title || (localizedUI ? countryLabel(product.country, lang) : product.country || '').toUpperCase(),
     mainTitle: cardConfig?.poster_title || (localizedUI ? countryLabel(product.country, lang) : product.country || '').toUpperCase(),
     highlightTitle: cardConfig?.poster_highlight || (visaType ? (localizedUI ? t(visaType) : visaType).toUpperCase() : ''),
     highlightTitle: cardConfig?.poster_highlight || (visaType ? (localizedUI ? t(visaType) : visaType).toUpperCase() : ''),
     sub: cardConfig?.poster_sub || product.title || '',
     sub: cardConfig?.poster_sub || product.title || '',
@@ -268,7 +268,7 @@ export default function ServicePoster({ product, className = '' }: ServicePoster
 
 
       {/* 底部微信息与水印 */}
       {/* 底部微信息与水印 */}
       <div className="flex items-center justify-between text-[9px] font-mono text-neutral-500 z-10 pt-1 border-t border-neutral-300">
       <div className="flex items-center justify-between text-[9px] font-mono text-neutral-500 z-10 pt-1 border-t border-neutral-300">
-        <span className="truncate font-bold">{t('services.guarantee_badge') || '官方通道直连 · 失败全退'}</span>
+        <span className="truncate font-bold">{t('services.guarantee_badge')}</span>
         <span className="font-bold text-black">{theme.watermark}</span>
         <span className="font-bold text-black">{theme.watermark}</span>
       </div>
       </div>
     </div>
     </div>

+ 10 - 10
src/components/slots/CitySlotCard.tsx

@@ -49,7 +49,7 @@ export default function CitySlotCard({ data }: { data: SlotSnapshot; isBlacklist
       return {
       return {
         badgeBg: 'bg-amber-300 text-black border-2 border-black font-black shadow-[1px_1px_0px_#000]',
         badgeBg: 'bg-amber-300 text-black border-2 border-black font-black shadow-[1px_1px_0px_#000]',
         icon: '★',
         icon: '★',
-        label: t('slots.status_available') || 'AVAILABLE',
+        label: t('slots.status_available'),
         isStale: false
         isStale: false
       };
       };
     }
     }
@@ -58,7 +58,7 @@ export default function CitySlotCard({ data }: { data: SlotSnapshot; isBlacklist
       return {
       return {
         badgeBg: 'bg-orange-100 text-orange-950 border border-black font-bold',
         badgeBg: 'bg-orange-100 text-orange-950 border border-black font-bold',
         icon: '⏱',
         icon: '⏱',
-        label: t('历史快照'),
+        label: t('slots.history_snapshot'),
         isStale: true
         isStale: true
       };
       };
     }
     }
@@ -67,7 +67,7 @@ export default function CitySlotCard({ data }: { data: SlotSnapshot; isBlacklist
       return {
       return {
         badgeBg: 'bg-neutral-100 text-neutral-500 border border-black font-mono',
         badgeBg: 'bg-neutral-100 text-neutral-500 border border-black font-mono',
         icon: '⊘',
         icon: '⊘',
-        label: t('监控离线'),
+        label: t('slots.monitor_offline'),
         isStale: true
         isStale: true
       };
       };
     }
     }
@@ -75,7 +75,7 @@ export default function CitySlotCard({ data }: { data: SlotSnapshot; isBlacklist
     return {
     return {
       badgeBg: 'bg-neutral-100 text-neutral-500 border border-black font-mono',
       badgeBg: 'bg-neutral-100 text-neutral-500 border border-black font-mono',
       icon: '✕',
       icon: '✕',
-      label: t('slots.status_unavailable') || 'NONE',
+      label: t('slots.status_unavailable'),
       isStale: false
       isStale: false
     };
     };
   };
   };
@@ -87,8 +87,8 @@ export default function CitySlotCard({ data }: { data: SlotSnapshot; isBlacklist
       return (
       return (
         <div className="flex items-center gap-2 font-mono font-bold text-sm sm:text-base text-black">
         <div className="flex items-center gap-2 font-mono font-bold text-sm sm:text-base text-black">
           <Hourglass size={16} />
           <Hourglass size={16} />
-          <span>{t('等待名单')}</span>
-          {style.isStale && <span className="text-[10px] bg-orange-100 border border-black px-1">{t('数据已过期')}</span>}
+          <span>{t('slots.waitlist')}</span>
+          {style.isStale && <span className="text-[10px] bg-orange-100 border border-black px-1">{t('slots.data_expired')}</span>}
         </div>
         </div>
       );
       );
     }
     }
@@ -98,7 +98,7 @@ export default function CitySlotCard({ data }: { data: SlotSnapshot; isBlacklist
         <div className="flex items-center gap-2 font-mono font-black text-sm sm:text-base text-black">
         <div className="flex items-center gap-2 font-mono font-black text-sm sm:text-base text-black">
           <Calendar size={16} />
           <Calendar size={16} />
           <span>{formatDate(data.earliest_date)}</span>
           <span>{formatDate(data.earliest_date)}</span>
-          {style.isStale && <span className="text-[10px] bg-orange-100 border border-black px-1 font-normal">{t('数据已过期')}</span>}
+          {style.isStale && <span className="text-[10px] bg-orange-100 border border-black px-1 font-normal">{t('slots.data_expired')}</span>}
         </div>
         </div>
       );
       );
     }
     }
@@ -142,7 +142,7 @@ export default function CitySlotCard({ data }: { data: SlotSnapshot; isBlacklist
         {/* 核心最早名额指标 */}
         {/* 核心最早名额指标 */}
         <div className="bg-neutral-50 border-2 border-black p-3 shadow-[2px_2px_0px_#000] mb-4">
         <div className="bg-neutral-50 border-2 border-black p-3 shadow-[2px_2px_0px_#000] mb-4">
           <p className="text-[10px] uppercase text-neutral-500 font-bold mb-1">
           <p className="text-[10px] uppercase text-neutral-500 font-bold mb-1">
-            [ {rawStatus === 'Waitlist' ? t('common.status') : (t('slots.earliest_date') || 'EARLIEST SLOT')} ]
+            [ {rawStatus === 'Waitlist' ? t('common.status') : t('slots.earliest_date')} ]
           </p>
           </p>
           <div className="min-h-[28px] flex items-center">
           <div className="min-h-[28px] flex items-center">
             {renderCenterContent()}
             {renderCenterContent()}
@@ -173,12 +173,12 @@ export default function CitySlotCard({ data }: { data: SlotSnapshot; isBlacklist
             rel="noopener noreferrer"
             rel="noopener noreferrer"
             className="w-full flex items-center justify-center gap-1.5 py-2.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black text-xs font-black transition uppercase shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
             className="w-full flex items-center justify-center gap-1.5 py-2.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black text-xs font-black transition uppercase shadow-[2px_2px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 active:shadow-none"
           >
           >
-            <span>{t('common.book_now') || '前往使馆预约'}</span>
+            <span>{t('common.book_now')}</span>
             <ExternalLink size={12} />
             <ExternalLink size={12} />
           </a>
           </a>
         ) : (
         ) : (
           <div className="w-full flex items-center justify-center py-2.5 bg-neutral-100 text-neutral-400 border border-neutral-300 text-xs font-mono select-none">
           <div className="w-full flex items-center justify-center py-2.5 bg-neutral-100 text-neutral-400 border border-neutral-300 text-xs font-mono select-none">
-            {t('slots.no_direct_link') || '使馆暂无直达链接'}
+            {t('slots.no_direct_link')}
           </div>
           </div>
         )}
         )}
       </div>
       </div>

+ 1 - 1
src/components/slots/SlotFilterBar.tsx

@@ -99,7 +99,7 @@ export default function SlotFilterBar({
           className="w-full md:w-auto flex items-center justify-center gap-2 px-6 py-2.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none disabled:opacity-50 uppercase whitespace-nowrap"
           className="w-full md:w-auto flex items-center justify-center gap-2 px-6 py-2.5 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none disabled:opacity-50 uppercase whitespace-nowrap"
         >
         >
           <RefreshCw size={14} className={loading ? 'animate-spin' : ''} />
           <RefreshCw size={14} className={loading ? 'animate-spin' : ''} />
-          <span>[ ⚡ {t('common.refresh') || '刷新数据'} ]</span>
+          <span>[ ⚡ {t('common.refresh')} ]</span>
         </button>
         </button>
       </div>
       </div>
     </div>
     </div>

+ 1 - 1
src/components/slots/SlotGrid.tsx

@@ -35,7 +35,7 @@ export default function SlotGrid({
         </div>
         </div>
         <h3 className="text-sm font-black text-black uppercase">[ {t('slots.no_open_slots')} ]</h3>
         <h3 className="text-sm font-black text-black uppercase">[ {t('slots.no_open_slots')} ]</h3>
         <p className="text-xs text-neutral-600 font-sans">
         <p className="text-xs text-neutral-600 font-sans">
-          {t('slots.no_monitoring') || '当前中心城市未检索到活跃的使馆放号监控工单'}
+          {t('slots.no_monitoring')}
         </p>
         </p>
       </div>
       </div>
     );
     );

+ 1 - 3
src/lib/i18n/catalog.ts

@@ -2,11 +2,9 @@ import type { Product } from '@/types';
 import type { AppLocale } from './config';
 import type { AppLocale } from './config';
 
 
 type Translate = (key: string) => string;
 type Translate = (key: string) => string;
-const verifiedServices: Record<number, string> = { 34: 'Greece', 35: 'Netherlands', 36: 'Denmark' };
-
 // Localize presentation only. Routing, prices, form schema IDs and submitted enum values remain API-owned.
 // Localize presentation only. Routing, prices, form schema IDs and submitted enum values remain API-owned.
 export function displayProduct<T extends Product>(product: T, t: Translate): T {
 export function displayProduct<T extends Product>(product: T, t: Translate): T {
-  if (verifiedServices[product.id] !== product.country || product.city !== 'Dublin' || product.visa_type !== 'Tourist') return product;
+  if (!product) return product;
   const tutorial = product.extra_fields?.tutorial;
   const tutorial = product.extra_fields?.tutorial;
   const card = product.extra_fields?.card_config;
   const card = product.extra_fields?.card_config;
   return {
   return {

+ 3 - 0
src/lib/i18n/display.ts

@@ -9,8 +9,10 @@ const inputLabels: Record<string, string> = {
   last_name: 'Last Name', lastname: 'Last Name',
   last_name: 'Last Name', lastname: 'Last Name',
   birthday: 'Birthday', email: 'Email', phone: 'Phone Number',
   birthday: 'Birthday', email: 'Email', phone: 'Phone Number',
   phone_country_code: 'Phone Country Code', gender: 'Gender', nationality: 'Nationality',
   phone_country_code: 'Phone Country Code', gender: 'Gender', nationality: 'Nationality',
+  citizen: 'Citizen', citizenship: 'Citizen',
   passport_number: 'Passport Number', passport_no: 'Passport Number',
   passport_number: 'Passport Number', passport_no: 'Passport Number',
   passport_expiry_date: 'Passport Expiry Date', passport_expiry: 'Passport Expiry Date',
   passport_expiry_date: 'Passport Expiry Date', passport_expiry: 'Passport Expiry Date',
+  passport_pdf: 'Passport PDF', irp_pdf: 'IRP PDF',
   expected_start_date: 'Preferred Start Date', expected_end_date: 'Preferred End Date',
   expected_start_date: 'Preferred Start Date', expected_end_date: 'Preferred End Date',
   arrival_date: 'Expected Arrival Date', social_media_account: 'Social Media Account',
   arrival_date: 'Expected Arrival Date', social_media_account: 'Social Media Account',
   cover_letter_id: 'Cover Letter Id', address: 'Address',
   cover_letter_id: 'Cover Letter Id', address: 'Address',
@@ -22,3 +24,4 @@ const inputLabels: Record<string, string> = {
 export function applicationFieldLabel(t: (key: string) => string, field: string): string {
 export function applicationFieldLabel(t: (key: string) => string, field: string): string {
   return inputLabels[field] ? t(inputLabels[field]) : field.replace(/_/g, ' ');
   return inputLabels[field] ? t(inputLabels[field]) : field.replace(/_/g, ' ');
 }
 }
+

+ 30 - 0
src/lib/i18n/locales/en.ts

@@ -43,6 +43,9 @@ export const en = {
     go_to_payment: '[ Go to Payment → ]',
     go_to_payment: '[ Go to Payment → ]',
     view_ticket_detail: '[ View Details ]',
     view_ticket_detail: '[ View Details ]',
     confirm_submit: 'Confirm Submit →',
     confirm_submit: 'Confirm Submit →',
+    required: 'Required',
+    tip: 'Tip',
+    invalid_date: 'Invalid Date',
   },
   },
   auth: {
   auth: {
     welcome_back: 'Welcome Back',
     welcome_back: 'Welcome Back',
@@ -130,6 +133,7 @@ export const en = {
     enter_password: 'Enter your new password.',
     enter_password: 'Enter your new password.',
     password_changed_success: 'Password changed successfully. Log in again.',
     password_changed_success: 'Password changed successfully. Log in again.',
     change_failed: 'Change failed',
     change_failed: 'Change failed',
+    confirm_password_label: 'Confirm New Password',
   },
   },
   home: {
   home: {
     hero_title_prefix: 'Visa Application, ',
     hero_title_prefix: 'Visa Application, ',
@@ -211,6 +215,14 @@ export const en = {
     no_followup_events: 'No follow-up events',
     no_followup_events: 'No follow-up events',
     no_extra_data: 'No additional application data',
     no_extra_data: 'No additional application data',
     settlement_fee: 'Settlement Fee',
     settlement_fee: 'Settlement Fee',
+    view_download_pdf: '[ View / Download PDF ]',
+    view_image: '[ View Image ]',
+    view_attachment: '[ View Attachment ]',
+    required_field_prompt: 'Please fill or upload the required field: [{field}]',
+    session_refresh_failed: 'Session refresh failed',
+    loading_archive: 'Loading application archive…',
+    secure_form: 'Secure Form',
+    processing_order: 'Processing order…',
   },
   },
   status: {
   status: {
     pending: 'Pending',
     pending: 'Pending',
@@ -312,6 +324,9 @@ export const en = {
     login: 'Login / Sign up',
     login: 'Login / Sign up',
     logout_confirm_title: 'Logout Confirmation',
     logout_confirm_title: 'Logout Confirmation',
     logout_confirm_desc: 'Are you sure you want to log out of your account?',
     logout_confirm_desc: 'Are you sure you want to log out of your account?',
+    home: 'Home',
+    toggle_menu: 'Toggle Navigation Menu',
+    skip_to_content: 'Skip to main content',
   },
   },
   dashboard: {
   dashboard: {
     title: 'Dashboard',
     title: 'Dashboard',
@@ -424,10 +439,15 @@ export const en = {
     view_details: 'VIEW DOSSIER',
     view_details: 'VIEW DOSSIER',
     hot_tag: 'HOT // RECOMMENDED',
     hot_tag: 'HOT // RECOMMENDED',
     feature_fast: '⚡ Fast Slot',
     feature_fast: '⚡ Fast Slot',
+    feature_fast_desc: 'Millisecond Automation',
     feature_review: '📋 Expert Review',
     feature_review: '📋 Expert Review',
+    feature_review_desc: 'One-on-one Expert Review',
     feature_security: '🛡️ No appointment, full refund',
     feature_security: '🛡️ No appointment, full refund',
     guarantee_text: 'If no appointment is secured, we will issue a full refund to the original payment method.',
     guarantee_text: 'If no appointment is secured, we will issue a full refund to the original payment method.',
     feature_automation: '🤖 Auto Bot',
     feature_automation: '🤖 Auto Bot',
+    feature_automation_desc: '24/7 Bot Monitoring',
+    fee_total: 'Total Service Fee',
+    official_docs: 'Official Docs ↗',
     modal_title: 'SERVICE DOSSIER RECORD',
     modal_title: 'SERVICE DOSSIER RECORD',
     overview_tab: '01 // OVERVIEW',
     overview_tab: '01 // OVERVIEW',
     process_tab: '02 // PROCEDURE',
     process_tab: '02 // PROCEDURE',
@@ -477,6 +497,10 @@ export const en = {
     node_monitor: 'Node Monitor',
     node_monitor: 'Node Monitor',
     no_direct_link: 'No direct embassy link',
     no_direct_link: 'No direct embassy link',
     no_monitoring: 'No active embassy slot monitoring task recorded for this center',
     no_monitoring: 'No active embassy slot monitoring task recorded for this center',
+    history_snapshot: 'Historical Snapshot',
+    monitor_offline: 'Monitor Offline',
+    waitlist: 'Waitlist',
+    data_expired: 'Data Expired',
   },
   },
   pagination: {
   pagination: {
     prev: 'Previous',
     prev: 'Previous',
@@ -518,6 +542,8 @@ export const en = {
     nickname_placeholder_form: 'Enter your display name',
     nickname_placeholder_form: 'Enter your display name',
     save_archive: 'Save Profile',
     save_archive: 'Save Profile',
     change_password_btn: 'Change Password →',
     change_password_btn: 'Change Password →',
+    avatar: 'Avatar',
+    account_id: 'Account ID',
   },
   },
   sidebar: {
   sidebar: {
     orders: 'My Orders',
     orders: 'My Orders',
@@ -595,6 +621,8 @@ export const en = {
     confirm_subtext: 'System will verify automatically upon clicking',
     confirm_subtext: 'System will verify automatically upon clicking',
     confirm_success_alert: 'Confirmation received! We are verifying your payment now. Please check order status shortly.',
     confirm_success_alert: 'Confirmation received! We are verifying your payment now. Please check order status shortly.',
     confirm_failed: 'Submission failed',
     confirm_failed: 'Submission failed',
+    bill_details: 'Bill Details',
+    qr_code_alt: 'Payment QR Code',
   },
   },
   privacy_content: {
   privacy_content: {
     last_updated: 'Last Updated: January 1, 2025',
     last_updated: 'Last Updated: January 1, 2025',
@@ -650,5 +678,7 @@ export const en = {
     instructions_steps: 'Step-by-Step Guide',
     instructions_steps: 'Step-by-Step Guide',
     security_note: '* Please verify account credentials carefully to pass official risk verification smoothly',
     security_note: '* Please verify account credentials carefully to pass official risk verification smoothly',
     understood_btn: 'I Have Read & Understood',
     understood_btn: 'I Have Read & Understood',
+    view_guide_arrow: 'View Guide ↗',
+    view_tutorial_arrow: 'View Tutorial →',
   }
   }
 };
 };

+ 30 - 0
src/lib/i18n/locales/zh.ts

@@ -43,6 +43,9 @@ export const zh = {
     go_to_payment: '[ 前往收银台支付 → ]',
     go_to_payment: '[ 前往收银台支付 → ]',
     view_ticket_detail: '[ 查阅工单明细 ]',
     view_ticket_detail: '[ 查阅工单明细 ]',
     confirm_submit: '确认提交 →',
     confirm_submit: '确认提交 →',
+    required: '必填',
+    tip: '提示',
+    invalid_date: '日期无效',
   },
   },
   auth: {
   auth: {
     welcome_back: '欢迎回来',
     welcome_back: '欢迎回来',
@@ -130,6 +133,7 @@ export const zh = {
     enter_password: '请输入新密码',
     enter_password: '请输入新密码',
     password_changed_success: '密码修改成功!请使用新密码重新登录。',
     password_changed_success: '密码修改成功!请使用新密码重新登录。',
     change_failed: '修改失败',
     change_failed: '修改失败',
+    confirm_password_label: '确认新密码',
   },
   },
   home: {
   home: {
     hero_title_prefix: '签证申请,',
     hero_title_prefix: '签证申请,',
@@ -211,6 +215,14 @@ export const zh = {
     no_followup_events: '暂无后续流转事件',
     no_followup_events: '暂无后续流转事件',
     no_extra_data: '暂无申报附加资料记录',
     no_extra_data: '暂无申报附加资料记录',
     settlement_fee: '结算费用',
     settlement_fee: '结算费用',
+    view_download_pdf: '[ 查看/下载 PDF ]',
+    view_image: '[ 查看图片 ]',
+    view_attachment: '[ 查看附件 ]',
+    required_field_prompt: '请先填写或上传必填项: [{field}]',
+    session_refresh_failed: '会话刷新失败',
+    loading_archive: '正在加载档案数据…',
+    secure_form: '安全表单',
+    processing_order: '正在处理订单…',
   },
   },
   status: {
   status: {
     pending: '待支付',
     pending: '待支付',
@@ -312,6 +324,9 @@ export const zh = {
     login: '登录 / 注册',
     login: '登录 / 注册',
     logout_confirm_title: '退出登录',
     logout_confirm_title: '退出登录',
     logout_confirm_desc: '确定要退出当前账号吗?',
     logout_confirm_desc: '确定要退出当前账号吗?',
+    home: '首页',
+    toggle_menu: '打开或关闭导航菜单',
+    skip_to_content: '跳到主要内容',
   },
   },
   dashboard: {
   dashboard: {
     title: '用户控制台',
     title: '用户控制台',
@@ -423,10 +438,15 @@ export const zh = {
     view_details: '查看档案',
     view_details: '查看档案',
     hot_tag: 'HOT // 推荐',
     hot_tag: 'HOT // 推荐',
     feature_fast: '⚡ 极速预约',
     feature_fast: '⚡ 极速预约',
+    feature_fast_desc: '毫秒级自动化',
     feature_review: '📋 专家预审',
     feature_review: '📋 专家预审',
+    feature_review_desc: '一对一审核',
     feature_security: '🛡️ 未预约全额退款',
     feature_security: '🛡️ 未预约全额退款',
     guarantee_text: '未成功锁位全额原路退款',
     guarantee_text: '未成功锁位全额原路退款',
     feature_automation: '🤖 智能托管',
     feature_automation: '🤖 智能托管',
+    feature_automation_desc: '全天候机器人监控',
+    fee_total: '服务费总额',
+    official_docs: '官方文档 ↗',
     modal_title: '服务工单详情档案',
     modal_title: '服务工单详情档案',
     overview_tab: '01 // 工单概览',
     overview_tab: '01 // 工单概览',
     process_tab: '02 // 办理步骤',
     process_tab: '02 // 办理步骤',
@@ -476,6 +496,10 @@ export const zh = {
     node_monitor: '监控节点',
     node_monitor: '监控节点',
     no_direct_link: '使馆暂无直达链接',
     no_direct_link: '使馆暂无直达链接',
     no_monitoring: '当前中心城市未检索到活跃的使馆放号监控工单',
     no_monitoring: '当前中心城市未检索到活跃的使馆放号监控工单',
+    history_snapshot: '历史快照',
+    monitor_offline: '监控离线',
+    waitlist: '等待名单',
+    data_expired: '数据已过期',
   },
   },
   pagination: {
   pagination: {
     prev: '上一页',
     prev: '上一页',
@@ -517,6 +541,8 @@ export const zh = {
     nickname_placeholder_form: '设置您的称呼...',
     nickname_placeholder_form: '设置您的称呼...',
     save_archive: '保存档案',
     save_archive: '保存档案',
     change_password_btn: '修改安全密码 →',
     change_password_btn: '修改安全密码 →',
+    avatar: '头像',
+    account_id: '账户编号',
   },
   },
   sidebar: {
   sidebar: {
     orders: '我的订单',
     orders: '我的订单',
@@ -594,6 +620,8 @@ export const zh = {
     confirm_subtext: '点击后系统将自动进行核验',
     confirm_subtext: '点击后系统将自动进行核验',
     confirm_success_alert: '已收到您的付款确认!系统正在加急核对账单,请留意订单状态变化。',
     confirm_success_alert: '已收到您的付款确认!系统正在加急核对账单,请留意订单状态变化。',
     confirm_failed: '提交确认失败',
     confirm_failed: '提交确认失败',
+    bill_details: '账单明细',
+    qr_code_alt: '付款二维码',
   },
   },
   privacy_content: {
   privacy_content: {
     last_updated: '最后更新日期:2025年1月1日',
     last_updated: '最后更新日期:2025年1月1日',
@@ -649,5 +677,7 @@ export const zh = {
     instructions_steps: '操作指南与准备步骤',
     instructions_steps: '操作指南与准备步骤',
     security_note: '* 建议仔细核对账号密码,以确保自动化工单能顺畅通过官网风控验证',
     security_note: '* 建议仔细核对账号密码,以确保自动化工单能顺畅通过官网风控验证',
     understood_btn: '我已阅读并了解',
     understood_btn: '我已阅读并了解',
+    view_guide_arrow: '查阅使用指引 ↗',
+    view_tutorial_arrow: '查看办理教程 →',
   }
   }
 };
 };

+ 210 - 0
src/lib/i18n/messages.json

@@ -1721,6 +1721,34 @@
     "Importo da pagare",
     "Importo da pagare",
     "Montante a pagar"
     "Montante a pagar"
   ],
   ],
+  "order.view_download_pdf": [
+    "[ PDF ansehen / herunterladen ]",
+    "[ Voir / Télécharger le PDF ]",
+    "[ Ver / Descargar PDF ]",
+    "[ Visualizza / Scarica PDF ]",
+    "[ Ver / Baixar PDF ]"
+  ],
+  "order.view_image": [
+    "[ Bild ansehen ]",
+    "[ Voir l’image ]",
+    "[ Ver imagen ]",
+    "[ Visualizza immagine ]",
+    "[ Ver imagem ]"
+  ],
+  "order.view_attachment": [
+    "[ Anhang ansehen ]",
+    "[ Voir la pièce jointe ]",
+    "[ Ver adjunto ]",
+    "[ Visualizza allegato ]",
+    "[ Ver anexo ]"
+  ],
+  "order.required_field_prompt": [
+    "Bitte füllen Sie das erforderliche Feld aus oder laden Sie es hoch: [{field}]",
+    "Veuillez remplir ou téléverser le champ requis: [{field}]",
+    "Por favor complete o suba el campo obligatorio: [{field}]",
+    "Si prega di compilare o caricare il campo obbligatorio: [{field}]",
+    "Por favor preencha ou envie o campo obrigatório: [{field}]"
+  ],
   "product.title": [
   "product.title": [
     "Produktverwaltung",
     "Produktverwaltung",
     "Gestion des produits",
     "Gestion des produits",
@@ -1994,6 +2022,34 @@
     "Nessun monitoraggio attivo registrato per questo centro.",
     "Nessun monitoraggio attivo registrato per questo centro.",
     "Não está registada monitorização ativa de marcações para este centro."
     "Não está registada monitorização ativa de marcações para este centro."
   ],
   ],
+  "slots.history_snapshot": [
+    "Historischer Snapshot",
+    "Aperçu historique",
+    "Captura histórica",
+    "Istantanea storica",
+    "Instantâneo histórico"
+  ],
+  "slots.monitor_offline": [
+    "Überwachung offline",
+    "Surveillance hors ligne",
+    "Monitor desconectado",
+    "Monitor offline",
+    "Monitor offline"
+  ],
+  "slots.waitlist": [
+    "Warteliste",
+    "Liste d’attente",
+    "Lista de espera",
+    "Lista d’attesa",
+    "Lista de espera"
+  ],
+  "slots.data_expired": [
+    "Daten abgelaufen",
+    "Données expirées",
+    "Datos caducados",
+    "Dati scaduti",
+    "Dados expirados"
+  ],
   "tutorial.default_modal_title": [
   "tutorial.default_modal_title": [
     "Serviceanleitung und Vorbereitung",
     "Serviceanleitung und Vorbereitung",
     "Guide du service et préparation",
     "Guide du service et préparation",
@@ -3345,6 +3401,20 @@
     "Invio non riuscito",
     "Invio non riuscito",
     "Falha no envio"
     "Falha no envio"
   ],
   ],
+  "payment.bill_details": [
+    "Rechnungsdetails",
+    "Détails de la facture",
+    "Detalles de la factura",
+    "Dettagli della fattura",
+    "Detalhes da fatura"
+  ],
+  "payment.qr_code_alt": [
+    "Zahlungs-QR-Code",
+    "Code QR de paiement",
+    "Código QR de pago",
+    "Codice QR di pagamento",
+    "Código QR de pagamento"
+  ],
   "payment_confirm.verifying": [
   "payment_confirm.verifying": [
     "Zahlungseingang und Bestätigungsdaten werden geprüft…",
     "Zahlungseingang und Bestätigungsdaten werden geprüft…",
     "Vérification du paiement et des données de confirmation…",
     "Vérification du paiement et des données de confirmation…",
@@ -4107,5 +4177,145 @@
     "TODOS LOS DERECHOS RESERVADOS // Gestión de pedidos de visados",
     "TODOS LOS DERECHOS RESERVADOS // Gestión de pedidos de visados",
     "TUTTI I DIRITTI RISERVATI // Gestione degli ordini per i visti",
     "TUTTI I DIRITTI RISERVATI // Gestione degli ordini per i visti",
     "TODOS OS DIREITOS RESERVADOS // Gestão de pedidos de vistos"
     "TODOS OS DIREITOS RESERVADOS // Gestão de pedidos de vistos"
+  ],
+  "common.required": [
+    "Erforderlich",
+    "Obligatoire",
+    "Obligatorio",
+    "Obbligatorio",
+    "Obrigatório"
+  ],
+  "common.tip": [
+    "Hinweis",
+    "Astuce",
+    "Consejo",
+    "Suggerimento",
+    "Dica"
+  ],
+  "common.invalid_date": [
+    "Ungültiges Datum",
+    "Date non valide",
+    "Fecha no válida",
+    "Data non valida",
+    "Data inválida"
+  ],
+  "settings.confirm_password_label": [
+    "Neues Passwort bestätigen",
+    "Confirmer le nouveau mot de passe",
+    "Confirmar nueva contraseña",
+    "Conferma nuova password",
+    "Confirmar nova palavra-passe"
+  ],
+  "order.session_refresh_failed": [
+    "Sitzungsaktualisierung fehlgeschlagen",
+    "Échec de l’actualisation de la session",
+    "Error al actualizar la sesión",
+    "Aggiornamento della sessione non riuscito",
+    "Falha ao atualizar a sessão"
+  ],
+  "order.loading_archive": [
+    "Antragsdaten werden geladen…",
+    "Chargement des données du dossier…",
+    "Cargando datos del expediente…",
+    "Caricamento dei dati della pratica…",
+    "Carregando dados do processo…"
+  ],
+  "order.secure_form": [
+    "Sicheres Formular",
+    "Formulaire sécurisé",
+    "Formulario seguro",
+    "Modulo sicuro",
+    "Formulário seguro"
+  ],
+  "order.processing_order": [
+    "Bestellung wird verarbeitet…",
+    "Traitement de la commande…",
+    "Procesando pedido…",
+    "Elaborazione ordine in corso…",
+    "Processando pedido…"
+  ],
+  "nav.home": [
+    "Startseite",
+    "Accueil",
+    "Inicio",
+    "Home",
+    "Início"
+  ],
+  "nav.toggle_menu": [
+    "Navigationsmenü umschalten",
+    "Basculer le menu de navigation",
+    "Alternar menú de navegación",
+    "Apri/chiudi menu di navigazione",
+    "Alternar menu de navegação"
+  ],
+  "services.feature_fast_desc": [
+    "Millisekunden-Automatisierung",
+    "Automatisation en millisecondes",
+    "Automatización en milisegundos",
+    "Automazione in millisecondi",
+    "Automação em milissegundos"
+  ],
+  "services.feature_review_desc": [
+    "Individuelle Expertenprüfung",
+    "Vérification experte individuelle",
+    "Revisión experta individual",
+    "Revisione individuale da esperti",
+    "Revisão individual especializada"
+  ],
+  "services.feature_automation_desc": [
+    "24/7 Bot-Überwachung",
+    "Surveillance par bot 24/7",
+    "Monitoreo por bot 24/7",
+    "Monitoraggio bot 24/7",
+    "Monitoramento por bot 24/7"
+  ],
+  "services.fee_total": [
+    "Gesamte Servicegebühr",
+    "Frais de service totaux",
+    "Tarifa total de servicio",
+    "Tariffa totale del servizio",
+    "Taxa total do serviço"
+  ],
+  "services.official_docs": [
+    "Offizielle Dokumente ↗",
+    "Documents officiels ↗",
+    "Documentos oficiales ↗",
+    "Documenti ufficiali ↗",
+    "Documentos oficiais ↗"
+  ],
+  "profile.avatar": [
+    "Profilbild",
+    "Avatar",
+    "Avatar",
+    "Avatar",
+    "Avatar"
+  ],
+  "profile.account_id": [
+    "Konto-ID",
+    "ID de compte",
+    "ID de cuenta",
+    "ID account",
+    "ID da conta"
+  ],
+  "tutorial.view_guide_arrow": [
+    "Anleitung ansehen ↗",
+    "Consulter le guide ↗",
+    "Consultar la guía ↗",
+    "Consulta la guida ↗",
+    "Consultar o guia ↗"
+  ],
+  "tutorial.view_tutorial_arrow": [
+    "Tutorial ansehen →",
+    "Consulter le tutoriel →",
+    "Ver tutorial →",
+    "Vedi tutorial →",
+    "Ver tutorial →"
+  ],
+  "nav.skip_to_content": [
+    "Zum Hauptinhalt",
+    "Aller au contenu principal",
+    "Ir al contenido principal",
+    "Vai al contenuto principal",
+    "Ir para o conteúdo principal"
   ]
   ]
 }
 }

+ 1 - 290
src/lib/i18n/ui-messages.json

@@ -1,290 +1 @@
-{
-  "首页": [
-    "Home",
-    "Startseite",
-    "Accueil",
-    "Inicio",
-    "Home",
-    "Início"
-  ],
-  "打开或关闭导航菜单": [
-    "Open or close navigation menu",
-    "Navigationsmenü öffnen oder schließen",
-    "Ouvrir ou fermer le menu",
-    "Abrir o cerrar el menú",
-    "Apri o chiudi il menu",
-    "Abrir ou fechar o menu"
-  ],
-  "必填": [
-    "Required",
-    "Erforderlich",
-    "Obligatoire",
-    "Obligatorio",
-    "Obbligatorio",
-    "Obrigatório"
-  ],
-  "提示": [
-    "Note",
-    "Hinweis",
-    "Remarque",
-    "Nota",
-    "Nota",
-    "Nota"
-  ],
-  "账单明细": [
-    "Payment breakdown",
-    "Zahlungsübersicht",
-    "Détail du paiement",
-    "Desglose del pago",
-    "Dettaglio del pagamento",
-    "Detalhes do pagamento"
-  ],
-  "付款二维码": [
-    "Payment QR code",
-    "Zahlungs-QR-Code",
-    "QR code de paiement",
-    "Código QR de pago",
-    "Codice QR di pagamento",
-    "Código QR de pagamento"
-  ],
-  "确认新密码": [
-    "Confirm new password",
-    "Neues Passwort bestätigen",
-    "Confirmer le nouveau mot de passe",
-    "Confirmar nueva contraseña",
-    "Conferma nuova password",
-    "Confirmar nova palavra-passe"
-  ],
-  "账户编号": [
-    "Account ID",
-    "Kontonummer",
-    "Identifiant du compte",
-    "Identificador de cuenta",
-    "ID dell’account",
-    "Identificador da conta"
-  ],
-  "等待名单": [
-    "Waiting list",
-    "Warteliste",
-    "Liste d’attente",
-    "Lista de espera",
-    "Lista d’attesa",
-    "Lista de espera"
-  ],
-  "历史快照": [
-    "Historical snapshot",
-    "Frühere Erfassung",
-    "Relevé antérieur",
-    "Registro histórico",
-    "Rilevazione precedente",
-    "Registo histórico"
-  ],
-  "监控离线": [
-    "Monitoring offline",
-    "Überwachung offline",
-    "Suivi hors ligne",
-    "Seguimiento desconectado",
-    "Monitoraggio offline",
-    "Monitorização desligada"
-  ],
-  "数据已过期": [
-    "Outdated data",
-    "Veraltete Daten",
-    "Données anciennes",
-    "Datos antiguos",
-    "Dati non aggiornati",
-    "Dados antigos"
-  ],
-  "步骤": [
-    "Step",
-    "Schritt",
-    "Étape",
-    "Paso",
-    "Passaggio",
-    "Passo"
-  ],
-  "章节": [
-    "Section",
-    "Abschnitt",
-    "Section",
-    "Sección",
-    "Sezione",
-    "Secção"
-  ],
-  "访问服务前,请核对官方要求。": [
-    "Check the official requirements before using a service.",
-    "Prüfen Sie die offiziellen Anforderungen vor der Nutzung eines Services.",
-    "Vérifiez les exigences officielles avant d’utiliser un service.",
-    "Revisa los requisitos oficiales antes de utilizar un servicio.",
-    "Controlla i requisiti ufficiali prima di usare un servizio.",
-    "Verifique os requisitos oficiais antes de utilizar um serviço."
-  ],
-  "日期无效": [
-    "Invalid date",
-    "Ungültiges Datum",
-    "Date non valide",
-    "Fecha no válida",
-    "Data non valida",
-    "Data inválida"
-  ],
-  "查看密码": [
-    "Show password",
-    "Passwort anzeigen",
-    "Afficher le mot de passe",
-    "Mostrar contraseña",
-    "Mostra password",
-    "Mostrar palavra-passe"
-  ],
-  "隐藏密码": [
-    "Hide password",
-    "Passwort ausblenden",
-    "Masquer le mot de passe",
-    "Ocultar contraseña",
-    "Nascondi password",
-    "Ocultar palavra-passe"
-  ],
-  "跳到主要内容": [
-    "Skip to main content",
-    "Zum Hauptinhalt",
-    "Aller au contenu principal",
-    "Ir al contenido principal",
-    "Vai al contenuto principale",
-    "Ir para o conteúdo principal"
-  ],
-  "语言": [
-    "Language",
-    "Sprache",
-    "Langue",
-    "Idioma",
-    "Lingua",
-    "Idioma"
-  ],
-  "头像": [
-    "Profile photo",
-    "Profilfoto",
-    "Photo de profil",
-    "Foto del perfil",
-    "Immagine del profilo",
-    "Fotografia de perfil"
-  ],
-  "联系渠道": [
-    "CONTACT CHANNELS",
-    "KONTAKTWEGE",
-    "CANAUX DE CONTACT",
-    "CANALES DE CONTACTO",
-    "CANALI DI CONTATTO",
-    "CANAIS DE CONTACTO"
-  ],
-  "服务节点在线": [
-    "DISPATCH NODE: ONLINE",
-    "SERVICEKNOTEN: ONLINE",
-    "NŒUD DE SERVICE : EN LIGNE",
-    "NODO DE SERVICIO: EN LÍNEA",
-    "NODO DI SERVIZIO: ONLINE",
-    "NÓ DE SERVIÇO: ONLINE"
-  ],
-  "位置": [
-    "LOCATION",
-    "STANDORT",
-    "EMPLACEMENT",
-    "UBICACIÓN",
-    "SEDE",
-    "LOCALIZAÇÃO"
-  ],
-  "状态:登记有效": [
-    "STATUS: ACTIVE REGISTRY",
-    "STATUS: AKTIVER EINTRAG",
-    "STATUT : ENREGISTREMENT ACTIF",
-    "ESTADO: REGISTRO ACTIVO",
-    "STATO: REGISTRAZIONE ATTIVA",
-    "ESTADO: REGISTO ATIVO"
-  ],
-  "正在加载档案数据…": [
-    "LOADING DOSSIER DATA...",
-    "AKTENDATEN WERDEN GELADEN…",
-    "CHARGEMENT DES DONNÉES DU DOSSIER…",
-    "CARGANDO DATOS DEL EXPEDIENTE…",
-    "CARICAMENTO DEI DATI DELLA PRATICA…",
-    "A CARREGAR OS DADOS DO PROCESSO…"
-  ],
-  "安全表单": [
-    "SECURE-FORM",
-    "SICHERES FORMULAR",
-    "FORMULAIRE SÉCURISÉ",
-    "FORMULARIO SEGURO",
-    "MODULO SICURO",
-    "FORMULÁRIO SEGURO"
-  ],
-  "正在处理订单…": [
-    "PROCESSING ORDER...",
-    "AUFTRAG WIRD BEARBEITET…",
-    "TRAITEMENT DE LA COMMANDE…",
-    "PROCESANDO EL PEDIDO…",
-    "ELABORAZIONE DELL’ORDINE…",
-    "A PROCESSAR O PEDIDO…"
-  ],
-  "服务费总额": [
-    "TOTAL SERVICE FEE",
-    "GESAMTE SERVICEGEBÜHR",
-    "TOTAL DES FRAIS DE SERVICE",
-    "TOTAL DE LA TARIFA DEL SERVICIO",
-    "TOTALE DELLA TARIFFA DEL SERVIZIO",
-    "TOTAL DA TAXA DE SERVIÇO"
-  ],
-  "毫秒级自动化": [
-    "MILLI-SEC AUTO",
-    "AUTOMATISIERUNG IN MILLISEKUNDEN",
-    "AUTOMATISATION EN MILLISECONDES",
-    "AUTOMATIZACIÓN EN MILISEGUNDOS",
-    "AUTOMAZIONE IN MILLISECONDI",
-    "AUTOMATIZAÇÃO EM MILISSEGUNDOS"
-  ],
-  "一对一审核": [
-    "1-ON-1 AUDIT",
-    "INDIVIDUELLE PRÜFUNG",
-    "VÉRIFICATION INDIVIDUELLE",
-    "REVISIÓN INDIVIDUAL",
-    "VERIFICA INDIVIDUALE",
-    "VERIFICAÇÃO INDIVIDUAL"
-  ],
-  "全天候机器人监控": [
-    "24/7 BOT MONITOR",
-    "BOT-ÜBERWACHUNG RUND UM DIE UHR",
-    "SURVEILLANCE PAR ROBOT 24 H/24",
-    "SUPERVISIÓN POR BOTS LAS 24 HORAS",
-    "MONITORAGGIO BOT 24 ORE SU 24",
-    "MONITORIZAÇÃO POR BOTS 24 HORAS POR DIA"
-  ],
-  "查阅使用指引 ↗": [
-    "View Guide ↗",
-    "Anleitung ansehen ↗",
-    "Consulter le guide ↗",
-    "Consultar la guía ↗",
-    "Consulta la guida ↗",
-    "Consultar o guia ↗"
-  ],
-  "查看办理教程 →": [
-    "View Guide →",
-    "Anleitung ansehen →",
-    "Consulter le guide →",
-    "Consultar la guía →",
-    "Consulta la guida →",
-    "Consultar o guia →"
-  ],
-  "官方文档 ↗": [
-    "Docs ↗",
-    "Dokumentation ↗",
-    "Documentation ↗",
-    "Documentación ↗",
-    "Documentazione ↗",
-    "Documentação ↗"
-  ],
-  "会话刷新失败": [
-    "Session refresh failed",
-    "Aktualisierung der Sitzung fehlgeschlagen",
-    "Échec de l’actualisation de la session",
-    "Error al actualizar la sesión",
-    "Aggiornamento della sessione non riuscito",
-    "Falha ao atualizar a sessão"
-  ]
-}
+{}

+ 0 - 2
src/types/product.ts

@@ -108,8 +108,6 @@ export interface ProductCardConfig {
   pill_text?: string;          // 绿色细线胶囊文本 (如 无法完成绑卡?, 查看办理教程与材料清单)
   pill_text?: string;          // 绿色细线胶囊文本 (如 无法完成绑卡?, 查看办理教程与材料清单)
   sales_text?: string;         // 底部销售/库存描述 (如 仅剩 5 件 · 已售 77, 实时监控中 · 已售 88)
   sales_text?: string;         // 底部销售/库存描述 (如 仅剩 5 件 · 已售 77, 实时监控中 · 已售 88)
   status_text?: string;        // 渠道状态 (如 直连就绪、通道正常)
   status_text?: string;        // 渠道状态 (如 直连就绪、通道正常)
-  buy_button_text?: string;    // 购买按钮文案 (如 立即购买, 立即申请)
-  sublink_text?: string;       // 底部次级细字链接 (如 查阅服务细则 →, 已购买? 查工单 →)
 }
 }
 
 
 /**
 /**