#2 feat: 七语言签证指南与访客/用户页面本地化,准备 Google 索引

Merged
jerry merged 10 commits from jerry/feat/blog-targeted-multilingual-copy into jerry/master 1 månad sedan
100 ändrade filer med 3536 tillägg och 554 borttagningar
  1. 4 0
      .env.production
  2. 7 1
      .gitignore
  3. 8 1
      next.config.js
  4. 4 1
      package.json
  5. 20 0
      public/blog-icon.svg
  6. 273 0
      scripts/check-app-browser.py
  7. 252 0
      scripts/check-blog-browser.py
  8. 145 0
      scripts/check-blog-http.mjs
  9. 114 0
      scripts/check-blog-nav.cjs
  10. 34 0
      scripts/check-blog-readability.mjs
  11. 56 0
      scripts/check-blog-style.mjs
  12. 32 0
      scripts/check-blog-targeted-copy.mjs
  13. 100 0
      scripts/check-blog.mjs
  14. 83 0
      scripts/check-i18n.mjs
  15. 107 0
      scripts/check-localization-scope.mjs
  16. 337 0
      scripts/fixtures/english-form-copy.json
  17. 0 0
      scripts/fixtures/public-products.json
  18. 321 0
      scripts/fixtures/schema-13.json
  19. 142 0
      scripts/fixtures/schema-14.json
  20. 329 0
      scripts/fixtures/schema-15.json
  21. 117 0
      seo_opt/BLUEPRINT.md
  22. 0 0
      src/app/(app)/admin/accounts/page.tsx
  23. 0 0
      src/app/(app)/admin/agent/page.tsx
  24. 0 0
      src/app/(app)/admin/configurations/page.tsx
  25. 0 0
      src/app/(app)/admin/layout.tsx
  26. 0 0
      src/app/(app)/admin/node-configurations/page.tsx
  27. 0 0
      src/app/(app)/admin/orders/new/page.tsx
  28. 0 0
      src/app/(app)/admin/orders/page.tsx
  29. 0 0
      src/app/(app)/admin/page.tsx
  30. 0 0
      src/app/(app)/admin/payments/page.tsx
  31. 0 0
      src/app/(app)/admin/plugins/page.tsx
  32. 0 0
      src/app/(app)/admin/products/page.tsx
  33. 0 0
      src/app/(app)/admin/proxies/page.tsx
  34. 0 0
      src/app/(app)/admin/settlement/page.tsx
  35. 0 0
      src/app/(app)/admin/tasks/page.tsx
  36. 0 0
      src/app/(app)/admin/tickets/page.tsx
  37. 0 0
      src/app/(app)/admin/users/page.tsx
  38. 6 0
      src/app/(app)/contact/page.tsx
  39. 6 0
      src/app/(app)/cookie-policy/page.tsx
  40. 7 0
      src/app/(app)/create-order/[id]/page.tsx
  41. 6 0
      src/app/(app)/dashboard/page.tsx
  42. 6 0
      src/app/(app)/dashboard/settings/page.tsx
  43. 16 6
      src/app/(app)/layout.tsx
  44. 6 0
      src/app/(app)/login/page.tsx
  45. 6 0
      src/app/(app)/page.tsx
  46. 7 0
      src/app/(app)/payment/[id]/page.tsx
  47. 6 0
      src/app/(app)/payment/confirm/page.tsx
  48. 6 0
      src/app/(app)/privacy/page.tsx
  49. 6 0
      src/app/(app)/refund-policy/page.tsx
  50. 6 0
      src/app/(app)/services/page.tsx
  51. 6 0
      src/app/(app)/slots/page.tsx
  52. 6 0
      src/app/(app)/terms/page.tsx
  53. 16 0
      src/app/(blog-en)/blogs/[slug]/page.tsx
  54. 6 0
      src/app/(blog-en)/blogs/layout.tsx
  55. 9 0
      src/app/(blog-en)/blogs/page.tsx
  56. 16 0
      src/app/(blog-localized)/[locale]/blogs/[slug]/page.tsx
  57. 12 0
      src/app/(blog-localized)/[locale]/blogs/page.tsx
  58. 11 0
      src/app/(blog-localized)/[locale]/layout.tsx
  59. 7 0
      src/app/robots.ts
  60. 14 0
      src/app/sitemap.ts
  61. 8 8
      src/components/AuthForm.tsx
  62. 26 26
      src/components/BindEmailModal.tsx
  63. 34 24
      src/components/CreateOrderForm.tsx
  64. 8 11
      src/components/Footer.tsx
  65. 8 10
      src/components/ForgotPasswordModal.tsx
  66. 51 23
      src/components/Navbar.tsx
  67. 37 40
      src/components/PaymentProcessor.tsx
  68. 18 19
      src/components/ServiceList.tsx
  69. 35 0
      src/components/blog/BlogNavbar.tsx
  70. 33 0
      src/components/blog/BlogShell.tsx
  71. 75 0
      src/components/blog/BlogViews.tsx
  72. 143 0
      src/components/blog/blog.css
  73. 5 5
      src/components/common/ConfirmModal.tsx
  74. 20 11
      src/components/common/LanguageSwitcher.tsx
  75. 6 5
      src/components/common/LocalTime.tsx
  76. 12 0
      src/components/common/LocalizedLink.tsx
  77. 5 5
      src/components/common/MessageModal.tsx
  78. 5 4
      src/components/common/ProductTutorialBanner.tsx
  79. 16 9
      src/components/common/TimeAgo.tsx
  80. 37 34
      src/components/dashboard/ChangePasswordModal.tsx
  81. 15 16
      src/components/dashboard/OrderList.tsx
  82. 60 59
      src/components/dashboard/ProfileSettings.tsx
  83. 12 14
      src/components/dashboard/TicketList.tsx
  84. 17 17
      src/components/dashboard/TicketModal.tsx
  85. 12 12
      src/components/dashboard/UserOrderDetailModal.tsx
  86. 25 27
      src/components/dashboard/UserTicketDetailModal.tsx
  87. 12 12
      src/components/home/HomePage.tsx
  88. 9 13
      src/components/pages/ContactPage.tsx
  89. 7 10
      src/components/pages/CookiePolicyPage.tsx
  90. 8 23
      src/components/pages/CreateOrderPage.tsx
  91. 27 27
      src/components/pages/DashboardPage.tsx
  92. 0 0
      src/components/pages/LoginPage.tsx
  93. 2 2
      src/components/pages/PaymentConfirmPage.tsx
  94. 0 0
      src/components/pages/PaymentPage.tsx
  95. 7 10
      src/components/pages/PrivacyPage.tsx
  96. 30 32
      src/components/pages/RefundPolicyPage.tsx
  97. 0 0
      src/components/pages/ServicesPage.tsx
  98. 13 15
      src/components/pages/SettingsPage.tsx
  99. 8 8
      src/components/pages/SlotsPage.tsx
  100. 12 14
      src/components/pages/TermsPage.tsx

+ 4 - 0
.env.production

@@ -1,2 +1,6 @@
 # .env.production
 NEXT_PUBLIC_API_URL=https://api.text.skin
+
+# Approved public-page and blog indexing for production builds (2026-10-10).
+# Development previews remain noindex unless explicitly enabled.
+BLOG_INDEXING_ENABLED=true

+ 7 - 1
.gitignore

@@ -1,3 +1,9 @@
 node_modules
 .next
-*.tsbuildinfo
+*.tsbuildinfo
+output/playwright/
+__pycache__/
+*.py[cod]
+
+# Local working notes and verification records for the blog/localization task.
+/docs/editorial/

+ 8 - 1
next.config.js

@@ -1,6 +1,13 @@
 /** @type {import('next').NextConfig} */
 const nextConfig = {
   output: "standalone",
+  // Keep internal locale rewrites on the original origin, including 127.0.0.1 previews in Next 14.
+  skipMiddlewareUrlNormalize: true,
+  async headers() {
+    return ['admin', 'dashboard', 'login', 'payment', 'create-order'].flatMap(segment => [
+      `/${segment}/:path*`, `/:locale(de|fr|es|it|pt|zh)/${segment}/:path*`,
+    ].map(source => ({ source, headers: [{ key: 'X-Robots-Tag', value: 'noindex, nofollow' }] })));
+  },
   async rewrites() {
     return [
       {
@@ -14,4 +21,4 @@ const nextConfig = {
   },
 };
 
-module.exports = nextConfig;
+module.exports = nextConfig;

+ 4 - 1
package.json

@@ -6,7 +6,10 @@
         "dev": "next dev",
         "build": "next build",
         "start": "next start",
-        "lint": "next lint"
+        "lint": "next lint",
+        "check:blog": "node scripts/check-blog.mjs",
+        "check:blog:http": "node scripts/check-blog-http.mjs",
+        "check:blog:release": "node scripts/check-blog.mjs --release"
     },
     "dependencies": {
         "@monaco-editor/react": "^4.7.0",

+ 20 - 0
public/blog-icon.svg

@@ -0,0 +1,20 @@
+<!-- Plane path from lucide-react 0.330.0, also used by the site's Navbar.
+ISC License
+Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+-->
+<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
+  <rect x="1" y="1" width="30" height="30" fill="#fcd34d" stroke="#000" stroke-width="2"/>
+  <g transform="translate(6 6) scale(.8333333) rotate(-45 12 12)" fill="none" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+    <path d="M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z"/>
+  </g>
+</svg>

+ 273 - 0
scripts/check-app-browser.py

@@ -0,0 +1,273 @@
+"""Real Chromium UI verification for seven-language visitor and user routes.
+Public service/schema fixtures are dated read-only catalogue snapshots. Account,
+order, ticket and payment responses are synthetic UI fixtures. ALL API requests
+are intercepted; this is not real login, payment, booking or refund verification.
+"""
+import json, os, re
+from pathlib import Path
+from urllib.parse import urlparse, parse_qs
+from playwright.sync_api import sync_playwright
+
+base = os.environ.get('BLOG_TEST_URL', 'http://127.0.0.1:3108').rstrip('/')
+indexing = os.environ.get('BLOG_INDEXING_ENABLED') == 'true'
+output = Path(os.environ.get('APP_SCREENSHOT_DIR', 'output/playwright/multilingual-user-cta/app-browser'))
+output.mkdir(parents=True, exist_ok=True)
+locales = ['en', 'de', 'fr', 'es', 'it', 'pt', 'zh']
+public_paths = ['/', '/services', '/slots', '/terms', '/refund-policy', '/privacy', '/cookie-policy', '/contact']
+copy = json.loads(Path('src/lib/i18n/public-pages.json').read_text())
+base_en = json.loads(Path('src/lib/i18n/messages.json').read_text())
+catalog = json.loads(Path('src/lib/i18n/catalog-messages.json').read_text())
+fixtures = Path('scripts/fixtures')
+products_response = json.loads((fixtures / 'public-products.json').read_text())
+products = products_response['data'] if isinstance(products_response['data'], list) else products_response['data']['items']
+products_by_id = {p['id']: p for p in products}
+schemas = {i: json.loads((fixtures / f'schema-{i}.json').read_text()) for i in [13, 14, 15]}
+user = {'id': 90001, 'email': 'qa@example.invalid', 'nickname': 'QA fixture', 'phone': '', 'role': 'user', 'avatar': '', 'created_at': '2026-10-01T12:00:00Z'}
+order = {'id': 90002, 'product_id': 35, 'product_title': 'Ireland Netherlands Visa Slot', 'base_amount': 7000, 'base_currency': 'EUR', 'final_amount': 7000, 'final_currency': 'EUR', 'amount': 7000, 'currency': 'EUR', 'status': 'pending', 'created_at': '2026-10-01T12:00:00Z', 'user_inputs': {'first_name': 'QA', 'last_name': 'EXAMPLE'}, 'user_id': user['id']}
+ticket = {'id': 90003, 'order_id': order['id'], 'type': 'refund', 'status': 'pending', 'reason': 'QA fixture request', 'created_at': '2026-10-01T12:00:00Z'}
+rows, api_calls, page_errors, console_errors, actions, layout_errors, control_errors, states = [], [], [], [], [], [], [], []
+
+
+def localize(path, locale):
+    return path if locale == 'en' else '/' + locale + ('' if path == '/' else path)
+
+
+def attach_fixtures(context, authenticated=False):
+    # Move the isolated API placeholder to a local intercepted URL; no unsafe-port
+    # exception or external server is enabled. Axios request/response code still runs.
+    context.add_init_script(r"""
+      const open = XMLHttpRequest.prototype.open;
+      XMLHttpRequest.prototype.open = function(method, url, ...args) {
+        const fixtureUrl = String(url).replace(/^http:\/\/127\.0\.0\.1:9(?=\/api\/)/, location.origin);
+        return open.call(this, method, fixtureUrl, ...args);
+      };
+      localStorage.setItem('app_lang', 'zh');
+    """)
+    if authenticated:
+        context.add_init_script("""if (!localStorage.getItem('qa-fixture-initialized')) {
+          localStorage.setItem('rsid', 'INVALID-QA-FIXTURE-NOT-A-REAL-SESSION');
+          localStorage.setItem('user_info', %s);
+          localStorage.setItem('qa-fixture-initialized', 'true');
+        }""" % json.dumps(json.dumps(user)))
+
+    def intercept(route):
+        req = route.request
+        u = urlparse(req.url); q = parse_qs(u.query)
+        api_calls.append({'method': req.method, 'path': u.path, 'intercepted': True, 'synthetic': u.path not in ['/api/vas/product/list-enable', '/api/vas/product/detail', '/api/vas/schema/detail']})
+        if req.method != 'GET' and not (req.method == 'POST' and u.path == '/api/vas/payment/create'):
+            route.fulfill(status=400, content_type='application/json', body=json.dumps({'code': 400, 'message': 'Blocked fixture mutation'})); return
+        if u.path.endswith('/product/list-enable'): response = products_response
+        elif u.path.endswith('/product/detail'): response = {'code': 0, 'data': products_by_id.get(int(q.get('product_id', ['0'])[0]))}
+        elif u.path.endswith('/schema/detail'): response = schemas[int(q['schema_id'][0])]
+        elif u.path.endswith('/order/list_by_user'): response = {'code': 0, 'data': {'items': [order], 'total': 1}}
+        elif u.path.endswith('/ticket/list_by_user'): response = {'code': 0, 'data': {'items': [ticket], 'total': 1}}
+        elif u.path.endswith('/order/detail'): response = {'code': 0, 'data': order}
+        elif u.path.endswith('/payment_provider/list_enabled'): response = {'code': 0, 'data': [{'id': 90004, 'name': 'stripe', 'title': 'Stripe QA fixture', 'currency': 'EUR', 'provider_type': 'stripe', 'enabled': 1}]}
+        elif u.path.endswith('/payment/create'):
+            # Invoice rendering only. No request leaves Playwright, and the link
+            # uses the reserved .invalid domain. It is never opened or confirmed.
+            response = {'code': 0, 'data': {'id': 90005, 'payment_id': 90005, 'order_id': order['id'], 'base_amount': 7000, 'base_currency': 'EUR', 'amount': 7000, 'currency': 'EUR', 'fee_amount': 0, 'random_offset': 0, 'channel': 'online_link', 'payment_url': 'https://example.invalid/qa-payment', 'provider_type': 'stripe', 'status': 'pending'}}
+        elif u.path.endswith('/payment/confirm'): response = {'code': 0, 'data': {'status': 'succeeded'}}
+        elif 'message' in u.path: response = {'code': 0, 'data': {'items': [], 'total': 0}}
+        elif 'snapshot' in u.path or 'slots' in u.path: response = {'code': 0, 'data': []}
+        elif u.path.endswith('/list_by_order') or 'events' in u.path: response = {'code': 0, 'data': []}
+        else: response = {'code': 0, 'data': {'items': [], 'total': 0}}
+        route.fulfill(status=200, content_type='application/json', body=json.dumps(response))
+
+    context.route('**/api/**', intercept)
+    # The fixture catalogue has remote marketing images. Their network performance
+    # is not measured here; stop those remote assets from leaving the test context.
+    context.route('https://api.text.skin/**', lambda route: route.abort())
+
+
+def observe(page):
+    page.on('pageerror', lambda error: page_errors.append({'url': page.url, 'message': str(error)}))
+    page.on('console', lambda msg: console_errors.append({'url': page.url, 'message': msg.text, 'source': msg.location.get('url')}) if msg.type == 'error' else None)
+
+
+def inspect_view(page, label, locale, widths=(320, 390, 1440)):
+    for width in widths:
+        page.set_viewport_size({'width': width, 'height': 900})
+        if not page.evaluate('document.documentElement.scrollWidth <= innerWidth'):
+            layout_errors.append({'path': localize(label, locale), 'width': width, 'scrollWidth': page.evaluate('document.documentElement.scrollWidth')})
+    controls = page.locator('input:not([type="hidden"]), textarea, select, button').evaluate_all("""els => els.filter(el => el.getClientRects().length).map(el => ({tag: el.tagName, type: el.type, name: el.getAttribute('aria-label') || el.getAttribute('aria-labelledby') || [...(el.labels || [])].map(l => l.innerText).join(' ').trim() || (el.tagName === 'BUTTON' ? el.innerText.trim() || el.title || [...el.querySelectorAll('img')].map(i => i.alt).join(' ').trim() : '')}))""")
+    if not all(c['name'] for c in controls): control_errors.append({'url': page.url, 'state': label, 'controls': [c for c in controls if not c['name']]})
+    states.append({'path': localize(label, locale), 'checkedWidths': list(widths), 'layoutPass': not any(e['path'] == localize(label, locale) for e in layout_errors), 'namedControls': sum(bool(c['name']) for c in controls)})
+    return len(controls)
+
+
+def verify_page(page, path, locale, public=False):
+    response = page.goto(base + localize(path, locale), wait_until='networkidle')
+    assert response and response.status == 200, page.url
+    assert page.locator('html').get_attribute('lang') == ('zh-CN' if locale == 'zh' else locale), page.url
+    assert page.locator('nav select:visible').first.input_value() == locale, page.url
+    assert page.locator('link[rel="canonical"]').get_attribute('href') == 'https://text.skin' + localize(path, locale), page.url
+    if public:
+        assert page.title() == copy[locale][path][0] + ' | STRATA', page.url
+        assert page.locator('h1').count() == 1, page.url
+        assert page.locator('link[rel="alternate"][hreflang]').count() == 8, page.url
+    else:
+        assert page.locator('meta[name="robots"]').get_attribute('content') == 'noindex, nofollow', page.url
+        assert response.headers.get('x-robots-tag') == 'noindex, nofollow', page.url
+    widths = [320, 390, 768, 1024, 1440]
+    count = inspect_view(page, path, locale, widths)
+    rows.append({'path': localize(path, locale), 'language': locale, 'status': response.status, 'title': page.title(), 'public': public, 'checkedWidths': widths, 'layoutPass': not any(e['path'] == localize(path, locale) for e in layout_errors), 'namedControls': count, 'api': 'Isolated UI fixtures; no live account or transaction'})
+    (output / 'progress.json').write_text(json.dumps({'completedPages': rows, 'layoutErrors': layout_errors, 'unnamedControlErrors': control_errors, 'pageErrors': page_errors}, ensure_ascii=False, indent=2))
+    print('Checked', localize(path, locale), flush=True)
+    return response
+
+
+with sync_playwright() as p:
+    options = {'headless': True}
+    if os.environ.get('CHROMIUM_PATH'): options['executable_path'] = os.environ['CHROMIUM_PATH']
+    browser = p.chromium.launch(**options)
+    context = browser.new_context(viewport={'width': 1440, 'height': 900}, locale='en-IE')
+    attach_fixtures(context)
+    page = context.new_page(); observe(page)
+    for locale in locales:
+        for path in public_paths:
+            verify_page(page, path, locale, public=True)
+            if path == '/slots':
+                assert page.locator('#slot-country').input_value() == 'IE'
+                assert page.locator('#slot-city').input_value() == 'Dublin'
+                page.locator('#slot-country').select_option('GB')
+                assert page.locator('#slot-city').input_value() == 'London'
+                assert page.locator('#slot-city option').evaluate_all('(els) => els.map(el => el.value)') == ['London', 'Manchester']
+            if path == '/services':
+                for product in products:
+                    heading = page.get_by_role('heading', name=catalog[product['title']][locales.index(locale)], exact=True)
+                    assert heading.count() == 1
+                    heading.click()
+                    modal = page.locator('main .fixed.inset-0.z-50').first
+                    assert modal.is_visible()
+                    inspect_view(page, '/services#detail-' + str(product['id']), locale)
+                    modal.locator('button[aria-label]').first.click()
+                if locale in ['de', 'fr', 'zh']:
+                    page.set_viewport_size({'width': 390, 'height': 900})
+                    page.screenshot(path=str(output / f'{locale}-services-mobile.png'), full_page=True)
+        # Client navigation updates metadata for the newly selected page.
+        page.goto(base + localize('/', locale), wait_until='networkidle')
+        page.locator('main a[href="' + localize('/services', locale) + '"]').focus(); page.keyboard.press('Enter')
+        page.wait_for_url(base + localize('/services', locale), wait_until='networkidle')
+        assert page.title() == copy[locale]['/services'][0] + ' | STRATA'
+        assert page.locator('link[rel="canonical"]').get_attribute('href').endswith(localize('/services', locale))
+        # The URL owns the language even with a contradictory saved preference.
+        page.goto(base + localize('/services', locale) + '?source=qa#details', wait_until='networkidle')
+        target_locale = 'fr' if locale != 'fr' else 'de'
+        page.locator('nav select:visible').select_option(target_locale)
+        page.wait_for_url(base + localize('/services', target_locale) + '?source=qa#details', wait_until='networkidle')
+        assert page.locator('html').get_attribute('lang') == target_locale
+        assert page.title() == copy[target_locale]['/services'][0] + ' | STRATA'
+        actions.append({'locale': locale, 'clientNavigationMetadata': True, 'languagePreservesQueryAndFragment': True, 'slotValuesPreserved': True})
+    context.close()
+    for locale in locales:
+        context = browser.new_context(viewport={'width': 1440, 'height': 900}, locale='en-IE')
+        attach_fixtures(context, authenticated=True)
+        page = context.new_page(); observe(page)
+        for path in ['/login', '/dashboard', '/dashboard/settings', '/create-order/34', '/create-order/35', '/create-order/36', '/payment/90002', '/payment/confirm']:
+            verify_page(page, path, locale)
+            if path == '/login':
+                page.locator('main form button[type="button"]').click()
+                inspect_view(page, '/login#forgot-password', locale)
+                page.locator('main .fixed.inset-0.z-50 button[aria-label]').first.click()
+                page.locator('main > div > div > div.flex.border-b-2 button').nth(1).click()
+                inspect_view(page, '/login#register-info', locale)
+            if path == '/dashboard':
+                page.locator('main button').filter(has=page.locator('svg.lucide-eye')).first.click()
+                inspect_view(page, '/dashboard#order-detail', locale)
+                page.locator('main .fixed.inset-0.z-50 button[aria-label]').first.click()
+                page.set_viewport_size({'width': 390, 'height': 900})
+                tabs = page.locator('main > div > div.md\\:hidden button')
+                tabs.nth(1).click()
+                inspect_view(page, '/dashboard#tickets', locale)
+                page.locator('main button').filter(has=page.locator('svg.lucide-eye')).first.click()
+                inspect_view(page, '/dashboard#ticket-detail', locale)
+                page.locator('main .fixed.inset-0.z-50 button[aria-label]').first.click()
+                page.locator('main button').filter(has=page.locator('svg.lucide-plus')).first.click()
+                inspect_view(page, '/dashboard#new-ticket', locale)
+                page.locator('main .fixed.inset-0.z-50 button[aria-label]').first.click()
+            if path.startswith('/create-order/'):
+                product = products_by_id[int(path.rsplit('/', 1)[1])]
+                assert page.locator('h1').inner_text() == catalog[product['title']][locales.index(locale)]
+                nationality = page.locator('#field-nationality')
+                if nationality.count():
+                    schema_record = schemas[product['schema_id']]['data']
+                    schema = schema_record['schema_json']
+                    if isinstance(schema, str): schema = json.loads(schema)
+                    expected_default = schema['properties']['nationality'].get('default', '')
+                    assert nationality.input_value() == expected_default, (page.url, expected_default)
+                    if nationality.evaluate('(el) => el.tagName') == 'SELECT':
+                        assert nationality.locator('option').evaluate_all('(els) => els.slice(1).map(el => el.value)') == schema['properties']['nationality']['enum']
+                    if nationality.evaluate('(el) => el.tagName') == 'SELECT':
+                        nationality.select_option('China'); assert nationality.input_value() == 'China'
+                    else:
+                        nationality.fill('Chinese'); assert nationality.input_value() == 'Chinese'
+                gender = page.locator('#field-gender')
+                if gender.count():
+                    gender.select_option('female'); assert gender.input_value() == 'female'
+                if product['id'] == 35 and locale in ['de', 'zh']:
+                    page.set_viewport_size({'width': 390, 'height': 900})
+                    page.screenshot(path=str(output / f'{locale}-netherlands-order-mobile.png'), full_page=True)
+            if path == '/dashboard/settings':
+                page.locator('main button').filter(has=page.locator('svg.lucide-pen')).click()
+                inspect_view(page, '/dashboard/settings#edit-profile', locale)
+                page.locator('main form button[type="button"]').click()
+                page.locator('main button').filter(has_text=re.compile(r'^\[')).last.click()
+                assert page.locator('#changepasswordmodal-field-1').is_visible()
+                inspect_view(page, '/dashboard/settings#password-form', locale)
+                page.locator('main .fixed.inset-0.z-50 button[aria-label]').first.click()
+                page.set_viewport_size({'width': 390, 'height': 900})
+                if locale == 'zh': page.screenshot(path=str(output / 'zh-settings-mobile.png'), full_page=True)
+            if path == '/payment/90002':
+                page.locator('main button').filter(has_text='Stripe QA fixture').click()
+                page.locator('main a[href="https://example.invalid/qa-payment"]').wait_for(state='visible')
+                inspect_view(page, '/payment/90002#invoice-fixture', locale)
+                if locale == 'fr':
+                    page.set_viewport_size({'width': 390, 'height': 900})
+                    page.screenshot(path=str(output / 'fr-invoice-fixture-mobile.png'), full_page=True)
+        # Follow each visible article conversion button to its correct localized
+        # service using the same fully intercepted UI context. No order is submitted.
+        for service_id, slug in [(35, 'netherlands'), (34, 'greece'), (36, 'denmark')]:
+            page.goto(base + localize('/blogs/' + slug + '-visa-appointments-dublin', locale), wait_until='networkidle')
+            cta = page.locator('.blog-service-button'); cta.focus(); page.keyboard.press('Enter')
+            page.wait_for_url(base + localize('/create-order/' + str(service_id), locale), wait_until='networkidle')
+            assert page.locator('h1').inner_text() == catalog[products_by_id[service_id]['title']][locales.index(locale)]
+            assert page.locator('html').get_attribute('lang') == ('zh-CN' if locale == 'zh' else locale)
+            actions.append({'locale': locale, 'articleServiceCTA': service_id, 'destination': localize('/create-order/' + str(service_id), locale), 'keyboard': True, 'api': 'Public catalogue snapshot; no order submission'})
+        # Real DOM/native-control language change, with service ID and parameters kept.
+        page.goto(base + localize('/create-order/35', locale) + '?routing_key=qa_route&slot_country=Netherlands&slot_city=Dublin&slot_visa_type=Tourist#details', wait_until='networkidle')
+        target_locale = 'pt' if locale != 'pt' else 'it'
+        page.locator('nav select:visible').select_option(target_locale)
+        page.wait_for_url(re.compile(re.escape(base + localize('/create-order/35', target_locale)) + r'\?'), wait_until='networkidle')
+        assert page.locator('input[name="slot_country"]').input_value() == 'Netherlands'
+        assert page.locator('input[name="slot_city"]').input_value() == 'Dublin'
+        assert page.locator('input[name="slot_visa_type"]').input_value() == 'Tourist'
+        assert 'routing_key=qa_route' in page.url and page.url.endswith('#details')
+        # Keyboard menu operation and same-locale user navigation.
+        page.set_viewport_size({'width': 390, 'height': 900})
+        toggle = page.locator('button[aria-controls="site-mobile-menu"]:visible')
+        toggle.focus(); page.keyboard.press('Enter'); assert toggle.get_attribute('aria-expanded') == 'true'
+        page.keyboard.press('Escape'); assert toggle.get_attribute('aria-expanded') == 'false'
+        assert toggle.evaluate('(el) => el === document.activeElement')
+        page.goto(base + localize('/dashboard', locale), wait_until='networkidle')
+        toggle = page.locator('button[aria-controls="site-mobile-menu"]:visible')
+        toggle.click(); page.locator('#site-mobile-menu a[href="' + localize('/dashboard', locale) + '"]').click()
+        page.wait_for_url(base + localize('/dashboard', locale), wait_until='networkidle')
+        actions.append({'locale': locale, 'serviceIdAndRawQueryValuesPreserved': True, 'keyboardMenuAndEscape': True, 'userSession': 'Synthetic local marker only'})
+        context.close()
+    browser_version = browser.version
+    browser.close()
+
+# Remote fixture images are intentionally not fetched. Record each blocked image
+# separately; every JS/hydration error or other console error still fails the run.
+image_errors = [e for e in console_errors if 'api.text.skin/api/r2/file' in (e['source'] or '') and 'ERR_FAILED' in e['message']]
+unexpected = [e for e in console_errors if e not in image_errors]
+receipt = {'base': base, 'indexing': indexing, 'browser': browser_version, 'pages': rows, 'uiStates': states, 'actions': actions, 'apiRequests': api_calls, 'pageErrors': page_errors, 'unexpectedConsoleErrors': unexpected, 'fixtureImageErrors': image_errors, 'layoutErrors': layout_errors, 'unnamedControlErrors': control_errors, 'scope': 'Real Chromium rendering/navigation with intercepted API fixtures. Invoice creation POST is handled entirely by Playwright; no payment link is opened or confirmed. NOT real authentication, payment, booking, email, refund or image performance verification'}
+(output / 'app-browser-results.json').write_text(json.dumps(receipt, ensure_ascii=False, indent=2) + '\n')
+assert not layout_errors, layout_errors
+assert not control_errors, control_errors
+assert not page_errors, page_errors
+assert not unexpected, unexpected
+assert all(call['method'] == 'GET' or (call['method'] == 'POST' and call['path'] == '/api/vas/payment/create' and call['intercepted'] and call['synthetic']) for call in api_calls), 'Unexpected business mutation'
+assert sum(call['method'] == 'POST' for call in api_calls) == 7, 'Only seven intercepted invoice fixture requests are expected'
+print(f'PASS: {len(rows)} seven-language visitor/user pages in real Chromium; localized metadata, named controls, phone/tablet/desktop overflow, service and enum values, query-preserving language changes, client navigation and keyboard menu. API responses are isolated UI fixtures. Receipt: {output}')

+ 252 - 0
scripts/check-blog-browser.py

@@ -0,0 +1,252 @@
+"""Real local Chromium QA for the public homepage, 21 guides and seven indexes.
+Requires Python Playwright and Chromium; CHROMIUM_PATH can select an installed
+browser. Tests a fresh logged-out context, never a booking or login submission.
+BLOG_INDEXING_ENABLED must match the build. Output is a local QA receipt, not
+field Core Web Vitals or an authenticated end-to-end test.
+"""
+import json
+import os
+import re
+from pathlib import Path
+from playwright.sync_api import sync_playwright
+
+base = os.environ.get('BLOG_TEST_URL', 'http://127.0.0.1:3108').rstrip('/')
+indexing = os.environ.get('BLOG_INDEXING_ENABLED') == 'true'
+all_articles = json.loads(Path('src/content/blog/articles.json').read_text())
+articles = [a for a in all_articles if not indexing or a['published']]
+published = [a for a in all_articles if a['published']]
+locales = ['en', 'de', 'fr', 'es', 'it', 'pt', 'zh']
+output = Path(os.environ.get('BLOG_SCREENSHOT_DIR', 'output/playwright'))
+output.mkdir(parents=True, exist_ok=True)
+rows, errors, console_errors, links = [], [], [], {}
+home_rows = []
+titles, descriptions = set(), set()
+
+def index_path(locale):
+    return ('' if locale == 'en' else '/' + locale) + '/blogs'
+
+def article_path(article):
+    return index_path(article['locale']) + '/' + article['slug']
+
+with sync_playwright() as p:
+    options = {'headless': True}
+    if os.environ.get('CHROMIUM_PATH'):
+        options['executable_path'] = os.environ['CHROMIUM_PATH']
+    browser = p.chromium.launch(**options)
+    context = browser.new_context(viewport={'width': 1440, 'height': 1080}, locale='zh-CN')
+    # Saved app language and browser language must not override the blog route.
+    context.add_init_script("localStorage.setItem('app_lang', 'zh')")
+    page = context.new_page()
+    page.on('pageerror', lambda e: errors.append({'url': page.url, 'error': str(e)}))
+    page.on('console', lambda m: console_errors.append({'url': page.url, 'sourceUrl': m.location.get('url'), 'error': m.text}) if m.type == 'error' else None)
+    def load(path):
+        response = page.goto(base + path, wait_until='networkidle')
+        assert response and response.status == 200, path
+        assert page.locator('[data-blog-navigation] select:visible').count() == 1, path
+        return response
+    public_copy = json.loads(Path('src/lib/i18n/public-pages.json').read_text())
+    def localize(path, locale):
+        return path if locale == 'en' else '/' + locale + ('' if path == '/' else path)
+    for home_lang in locales:
+        home_path = localize('/', home_lang)
+        page.set_viewport_size({'width': 1440, 'height': 1080})
+        home_response = page.goto(base + home_path, wait_until='networkidle')
+        assert home_response and home_response.status == 200
+        assert page.locator('html').get_attribute('lang') == ('zh-CN' if home_lang == 'zh' else home_lang)
+        assert page.locator('h1').count() == 1
+        assert page.title() == public_copy[home_lang]['/'][0] + ' | STRATA'
+        assert page.locator('meta[name="description"]').get_attribute('content') == public_copy[home_lang]['/'][1]
+        robots = 'index, follow' if indexing or home_lang == 'en' else 'noindex, follow'
+        assert page.locator('meta[name="robots"]').get_attribute('content') == robots
+        assert page.locator('link[rel="canonical"]').count() == 1
+        assert page.locator('link[rel="canonical"]').get_attribute('href') == 'https://text.skin' + home_path
+        assert page.locator('meta[property="og:url"]').get_attribute('content') == 'https://text.skin' + home_path
+        assert page.locator('link[rel="alternate"][hreflang]').count() == 8
+        assert page.locator('nav select:visible').input_value() == home_lang
+        assert page.locator('link[rel="icon"]').get_attribute('href') == '/blog-icon.svg'
+        # The homepage hero keeps its original title and two primary actions.
+        # The existing shared Navbar still provides the localized blog entry.
+        assert page.locator('main a[href="' + index_path(home_lang) + '"]').count() == 0
+        guide = page.locator('nav a[href="' + index_path(home_lang) + '"]:visible').first
+        assert guide.count() == 1
+        for width in [320, 390, 768, 1024, 1280, 1440]:
+            page.set_viewport_size({'width': width, 'height': 844})
+            assert page.evaluate('document.documentElement.scrollWidth <= innerWidth'), f'Homepage overflow {home_lang}/{width}'
+        page.set_viewport_size({'width': 1440, 'height': 1080})
+        page.screenshot(path=str(output / ('home-' + home_lang + '-desktop.png')), full_page=True)
+        page.set_viewport_size({'width': 390, 'height': 844})
+        page.screenshot(path=str(output / ('home-' + home_lang + '-mobile.png')), full_page=True)
+        page.set_viewport_size({'width': 1440, 'height': 1080})
+        guide.focus()
+        page.keyboard.press('Enter')
+        page.wait_for_url(base + index_path(home_lang), wait_until='networkidle')
+        assert page.locator('html').get_attribute('lang') == home_lang
+        page.go_back(wait_until='networkidle')
+        assert page.url == base + home_path
+        assert page.locator('link[rel="canonical"]').get_attribute('href') == 'https://text.skin' + home_path
+        home_rows.append({'path': home_path, 'status': home_response.status, 'uiLanguage': home_lang, 'serverMetadataLanguage': home_lang, 'canonical': 'https://text.skin' + home_path, 'robots': robots, 'widthsWithoutOverflow': [320, 390, 768, 1024, 1280, 1440], 'keyboardGuideLink': True, 'historyCanonicalRestored': True})
+    for locale in locales:
+        records = [{'locale': locale, 'path': index_path(locale)}] + [dict(a, path=article_path(a)) for a in articles if a['locale'] == locale]
+        for a in records:
+            path = a['path']
+            page.set_viewport_size({'width': 1440, 'height': 1080})
+            response = load(path)
+            for desktop_width in [1280, 1440]:
+                page.set_viewport_size({'width': desktop_width, 'height': 1080})
+                assert page.evaluate('document.documentElement.scrollWidth <= innerWidth'), f'Overflow {desktop_width}: {path}'
+                assert page.locator('button[aria-controls="site-mobile-menu"]:visible').count() == 0, path
+            assert page.locator('html').get_attribute('lang') == locale, path
+            title = page.title()
+            description = page.locator('meta[name="description"]').get_attribute('content')
+            assert title and title.endswith(' | STRATA') and title not in titles, path
+            assert description and description not in descriptions, path
+            titles.add(title)
+            descriptions.add(description)
+            assert page.locator('h1').count() == 1 and page.locator('h1').text_content().strip() == title.removesuffix(' | STRATA'), path
+            assert page.locator('link[rel="canonical"]').get_attribute('href') == 'https://text.skin' + path, path
+            assert page.locator('meta[name="robots"]').get_attribute('content') == ('index' if indexing else 'noindex') + ', follow', path
+            assert page.locator('meta[property="og:url"]').get_attribute('content') == 'https://text.skin' + path, path
+            assert page.locator('meta[property="og:title"]').get_attribute('content') == title.removesuffix(' | STRATA'), path
+            assert page.locator('meta[property="og:description"]').get_attribute('content') == description, path
+            assert page.locator('link[rel="icon"]').get_attribute('href') == '/blog-icon.svg', path
+            expected = {b['locale']: 'https://text.skin' + article_path(b) for b in published if b['id'] == a['id']} if 'id' in a else {l: 'https://text.skin' + index_path(l) for l in locales if any(b['locale'] == l for b in published)}
+            if 'en' in expected:
+                expected['x-default'] = expected['en']
+            alternates = page.locator('link[rel="alternate"][hreflang]').evaluate_all('(els) => Object.fromEntries(els.map(e => [e.hreflang, e.href]))')
+            assert alternates == expected, path
+            counterparts = [b for b in articles if b['id'] == a['id']] if 'id' in a else [{'locale': l} for l in locales]
+            targets = [article_path(b) if 'id' in b else index_path(b['locale']) for b in counterparts]
+            selector = page.locator('[data-blog-navigation] select:visible')
+            assert sorted(selector.locator('option').evaluate_all('(els) => els.map(e => e.value)')) == sorted(targets), path
+            assert selector.input_value() == path and selector.get_attribute('aria-label'), path
+            assert 'nav.' not in page.locator('[data-blog-navigation]').inner_text(), path
+            assert page.locator('main img').count() == 0, 'Review new images for alt/dimensions/performance'
+            headings = page.locator('.blog-prose h2').all_inner_texts()
+            if 'id' in a:
+                assert headings == re.findall(r'^## (.+)$', a['body'], re.M), path
+                assert page.locator('.blog-button').get_attribute('href') == a['officialBooking']['url'], path
+                schema = json.loads(page.locator('script[type="application/ld+json"]').inner_text())
+                assert schema[0]['@type'] == 'Article' and schema[0]['headline'] == a['title'], path
+                assert schema[0]['description'] == description and schema[0]['inLanguage'] == locale, path
+                assert schema[0]['dateModified'] == a['reviewedAt'] and 'datePublished' not in schema[0], path
+                assert 'STRATA' in page.locator('.blog-reviewed').inner_text(), path
+                assert schema[0]['citation'] == page.locator('.blog-sources li a').evaluate_all('(els) => els.map(e => e.href)'), path
+                assert schema[1]['@type'] == 'BreadcrumbList' and schema[1]['itemListElement'][1]['name'] == a['title'], path
+                assert schema[1]['itemListElement'][0]['item'] == 'https://text.skin' + index_path(locale), path
+                assert page.locator('main a[href="' + localize('/services', locale) + '"]').count() == 1, path
+                service_id = {'netherlands-appointment-booking': 35, 'greece-appointment-booking': 34, 'denmark-appointment-booking': 36}[a['id']]
+                cta = page.locator('.blog-service-button')
+                assert cta.count() == 1 and cta.get_attribute('href') == localize('/create-order/' + str(service_id), locale), path
+                assert cta.evaluate('(el) => getComputedStyle(el).backgroundColor') == 'rgb(21, 128, 61)', path
+                assert cta.evaluate('(el) => getComputedStyle(el).color') == 'rgb(255, 255, 255)', path
+                cta.focus()
+                assert cta.evaluate('(el) => el === document.activeElement && getComputedStyle(el).outlineStyle === \"solid\"'), path
+                cta_info = {'id': service_id, 'href': cta.get_attribute('href'), 'background': 'rgb(21, 128, 61)', 'text': 'rgb(255, 255, 255)', 'keyboardFocus': True}
+                toc = page.locator('.blog-toc a')
+                assert toc.count() == len(headings), path
+                for i in range(toc.count()):
+                    target = toc.nth(i).get_attribute('href')
+                    assert page.locator(target).count() == 1 and toc.nth(i).inner_text() == page.locator(target).inner_text(), path + target
+                toc.first.focus()
+                page.keyboard.press('Enter')
+                target = toc.first.get_attribute('href')
+                assert page.locator(target).evaluate('(el) => el === document.activeElement'), path
+                assert page.locator(target).bounding_box()['y'] >= 64, path
+                page.evaluate('window.scrollTo(0, 0)')
+            else:
+                assert page.locator('.blog-card').count() == len([b for b in articles if b['locale'] == locale]), path
+                assert page.locator('.blog-routes tbody tr').count() == 3, path
+                for b in [b for b in articles if b['locale'] == locale]:
+                    assert page.locator('.blog-routes a[href="' + article_path(b) + '"]').count() == 1, path
+                    assert page.locator('.blog-routes a[href="' + b['officialBooking']['url'] + '"]').count() == 1, path
+            assert page.locator('footer a[href="mailto:support@text.skin"]').count() == 1, path
+            table = page.locator('.blog-table-scroll')
+            assert table.count() == 1 and table.get_attribute('role') == 'region', path
+            assert table.get_attribute('tabindex') == '0' and (table.get_attribute('aria-label') or table.get_attribute('aria-labelledby')), path
+            assert table.locator('thead th[scope="col"]').count() == 3, path
+            assert table.locator('tbody tr').count() == (4 if 'id' in a else 3), path
+            for href in page.locator('a[href]').evaluate_all('(els) => els.map(e => e.getAttribute("href"))'):
+                if href.startswith('#'):
+                    assert page.locator(href).count() == 1, path + href
+                elif href.startswith('/') and not href.startswith('//'):
+                    target = href.split('#')[0].split('?')[0]
+                    if target not in links:
+                        links[target] = context.request.get(base + target).status
+                    assert links[target] == 200, path + ' → ' + target
+            shot = locale + '-' + (a.get('slug') or 'index')
+            page.screenshot(path=str(output / (shot + '-desktop.png')), full_page=True)
+            answer_y = None
+            for width in [320, 390, 768, 1024]:
+                page.set_viewport_size({'width': width, 'height': 844})
+                assert page.evaluate('document.documentElement.scrollWidth <= innerWidth'), f'Overflow {width}: {path}'
+                if width == 390:
+                    page.evaluate('window.scrollTo(0, 0)')
+                    if 'id' in a:
+                        answer_y = page.locator('.blog-prose > p').first.bounding_box()['y']
+                        assert answer_y < 620, f'Answer delayed: {path}: {answer_y}'
+                    page.screenshot(path=str(output / (shot + '-mobile.png')), full_page=True)
+                    page.screenshot(path=str(output / (shot + '-viewport.png')))
+                toggle = page.locator('button[aria-controls="site-mobile-menu"]:visible')
+                toggle.focus()
+                page.keyboard.press('Enter')
+                assert toggle.get_attribute('aria-expanded') == 'true', path
+                page.locator('#site-mobile-menu a[href="' + index_path(locale) + '"]').focus()
+                page.keyboard.press('Escape')
+                assert toggle.get_attribute('aria-expanded') == 'false' and toggle.evaluate('(el) => el === document.activeElement'), path
+            page.set_viewport_size({'width': 390, 'height': 844})
+            table.evaluate('(el) => { el.scrollLeft = 0; }')
+            table.focus()
+            assert table.evaluate('(el) => el === document.activeElement && el.scrollWidth > el.clientWidth'), path
+            page.keyboard.press('ArrowRight')
+            page.wait_for_function('document.querySelector(".blog-table-scroll").scrollLeft > 0')
+            table.evaluate('(el) => { el.scrollLeft = 0; }')
+            if 'id' in a:
+                byline = page.locator('.blog-reviewed a[href="#blog-sources"]')
+                byline.focus()
+                page.keyboard.press('Enter')
+                assert page.locator('#blog-sources').evaluate('(el) => el === document.activeElement'), path
+                assert page.locator('#blog-sources').bounding_box()['y'] >= 64, path
+                correction = page.locator('.blog-sources a[href^="mailto:support@text.skin?"]')
+                assert correction.count() == 1 and 'subject=' in correction.get_attribute('href'), path
+            for b in counterparts:
+                target = article_path(b) if 'id' in b else index_path(b['locale'])
+                if page.locator('[data-blog-navigation] select:visible').input_value() != target:
+                    page.locator('[data-blog-navigation] select:visible').select_option(target)
+                    page.wait_for_url(base + target, wait_until='networkidle')
+                assert page.locator('html').get_attribute('lang') == b['locale'], target
+                if 'id' in b:
+                    assert page.locator('h1').text_content().strip() == b['title'], target
+                assert page.locator('[data-blog-navigation] select:visible').input_value() == target, target
+            load(path)
+            page.reload(wait_until='networkidle')
+            assert page.locator('html').get_attribute('lang') == locale, path
+            page.locator('.blog-breadcrumb a' if 'id' in a else '.blog-card h2 a').first.click()
+            page.wait_for_load_state('networkidle')
+            assert page.locator('html').get_attribute('lang') == locale, path
+            page.go_back(wait_until='networkidle')
+            assert page.url == base + path and page.locator('h1').text_content().strip() == title.removesuffix(' | STRATA'), path
+            load(path)
+            page.keyboard.press('Tab')
+            assert page.locator('.blog-skip').evaluate('(el) => el === document.activeElement'), path
+            page.keyboard.press('Enter')
+            assert page.locator('#blog-main').evaluate('(el) => el === document.activeElement'), path
+            rows.append({'path': path, 'status': response.status, 'locale': locale, 'title': title, 'titleCharacters': len(title), 'descriptionCharacters': len(description), 'h2': len(headings), 'renderedH2': page.locator('main h2').count(), 'tableKeyboardScrolling': True, 'correctionLinksValidated': True, 'firstAnswerY390': answer_y, 'canonical': 'https://text.skin' + path, 'robots': ('index' if indexing else 'noindex') + ', follow', 'hreflang': alternates, 'counterpartsTested': targets, 'widthsWithoutOverflow': [320, 390, 768, 1024, 1280, 1440], 'serviceCTA': cta_info if 'id' in a else None, 'screenshots': [shot + '-desktop.png', shot + '-mobile.png', shot + '-viewport.png']})
+    load('/fr/blogs')
+    page.locator('button[aria-controls="site-mobile-menu"]:visible').click()
+    page.locator('#site-mobile-menu a[href="/fr/services"]').click()
+    page.wait_for_url(base + '/fr/services', wait_until='networkidle')
+    page.go_back(wait_until='networkidle')
+    assert page.url == base + '/fr/blogs' and page.locator('html').get_attribute('lang') == 'fr'
+    assert page.locator('button[aria-controls="site-mobile-menu"]:visible').get_attribute('aria-expanded') == 'false'
+    # Keep the specific isolated-API error and pre-existing app favicon failure in
+    # the receipt. Both occur on /services, outside the blog implementation.
+    # Do not suppress blog errors or any other resource/network failure.
+    expected_preview_errors = [e for e in console_errors if re.fullmatch(re.escape(base) + r'/(?:[a-z]{2}/)?services', e['url']) and e['sourceUrl'] == 'http://127.0.0.1:9/api/vas/product/list-enable?size=1000' and e['error'] == 'Failed to load resource: net::ERR_UNSAFE_PORT']
+    known_app_errors = [e for e in console_errors if re.fullmatch(re.escape(base) + r'/(?:[a-z]{2}/)?services', e['url']) and e['sourceUrl'] == base + '/favicon.ico' and e['error'] == 'Failed to load resource: the server responded with a status of 404 (Not Found)']
+    unexpected_errors = [e for e in console_errors if e not in expected_preview_errors + known_app_errors]
+    receipt = {'base': base, 'indexing': indexing, 'browser': browser.version, 'homepage': home_rows, 'pages': rows, 'internalLinkStatuses': links, 'pageErrors': errors, 'consoleErrors': console_errors, 'expectedPreviewErrors': expected_preview_errors, 'knownNonBlogErrors': known_app_errors, 'unexpectedConsoleErrors': unexpected_errors, 'authentication': 'Fresh logged-out context; no real login or booking availability checked'}
+    (output / 'browser-results.json').write_text(json.dumps(receipt, ensure_ascii=False, indent=2))
+    assert not errors, errors
+    assert not unexpected_errors, unexpected_errors
+    browser.close()
+print(f'PASS: seven route-localized homepages and {len(rows)} real browser blog pages; all locale counterparts, metadata/schema/visible content, 320/390/768/1024/1280/1440px overflow, desktop navigation, contents/skip/menu/table/source keyboard controls, correction links, internal links, history/reload and no unexpected page/console errors. Expected offline API errors on services: {len(expected_preview_errors)}; known app favicon errors: {len(known_app_errors)}. Screenshots: {output}')

+ 145 - 0
scripts/check-blog-http.mjs

@@ -0,0 +1,145 @@
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+const base = process.env.BLOG_TEST_URL || 'http://127.0.0.1:3108';
+const indexing = process.env.BLOG_INDEXING_ENABLED === 'true';
+const approvedInventory = JSON.parse(fs.readFileSync('src/content/blog/approved-inventory.json', 'utf8'));
+const all = JSON.parse(fs.readFileSync('src/content/blog/articles.json', 'utf8'));
+const visible = all.filter(a => !indexing || a.published);
+const published = all.filter(a => a.published);
+const pathFor = a => `${a.locale === 'en' ? '' : `/${a.locale}`}/blogs/${a.slug}`;
+const indexFor = locale => `${locale === 'en' ? '' : `/${locale}`}/blogs`;
+const locales = ['en', 'de', 'fr', 'es', 'it', 'pt', 'zh'];
+const publicPaths = ['/', '/services', '/slots', '/terms', '/refund-policy', '/privacy', '/cookie-policy', '/contact'];
+const localize = (path, locale) => locale === 'en' ? path : '/' + locale + (path === '/' ? '' : path);
+const publicCopy = JSON.parse(fs.readFileSync('src/lib/i18n/public-pages.json', 'utf8'));
+const serviceIds = { 'netherlands-appointment-booking': 35, 'greece-appointment-booking': 34, 'denmark-appointment-booking': 36 };
+const receipt = [];
+const escape = value => value.replaceAll('&', '&amp;').replaceAll('"', '&quot;').replaceAll("'", '&#x27;').replaceAll('<', '&lt;').replaceAll('>', '&gt;');
+let checked = 0;
+for (const locale of new Set(visible.map(a => a.locale))) {
+  const records = [{ locale, path: indexFor(locale) }, ...visible.filter(a => a.locale === locale).map(a => ({ ...a, path: pathFor(a) }))];
+  for (const a of records) {
+    const response = await fetch(`${base}${a.path}`);
+    assert.equal(response.status, 200, a.path);
+    assert.equal(response.headers.get('x-robots-tag'), null, `Private route header leaked onto blog: ${a.path}`);
+    const html = await response.text();
+    assert(html.includes(`<html lang="${locale}"`), `Wrong HTML language: ${a.path}`);
+    assert.equal((html.match(/<html\b/g) || []).length, 1, 'Nested HTML root');
+    assert(html.includes(`rel="canonical" href="https://text.skin${a.path}"`), `Wrong canonical: ${a.path}`);
+    assert(html.includes(`name="robots" content="${indexing ? 'index' : 'noindex'}, follow"`), `Wrong robots: ${a.path}`);
+    assert(/<title>[^<]+STRATA<\/title>/.test(html), `Missing title: ${a.path}`);
+    assert(/name="description" content="[^"]+"/.test(html));
+    assert(html.includes(`property="og:url" content="https://text.skin${a.path}"`));
+    const ogLocales = { en:'en_IE', de:'de_DE', fr:'fr_FR', es:'es_ES', it:'it_IT', pt:'pt_PT', zh:'zh_CN' };
+    assert(html.includes(`property="og:locale" content="${ogLocales[locale]}"`));
+    assert(html.includes('rel="icon" href="/blog-icon.svg"'), `Missing blog icon: ${a.path}`);
+    const variants = a.id ? published.filter(b => b.id === a.id) : [...new Set(published.map(b => b.locale))].map(locale => ({ locale }));
+    for (const b of variants) assert(html.includes(`hrefLang="${b.locale}" href="https://text.skin${b.id ? pathFor(b) : indexFor(b.locale)}"`), `Missing SEO alternate ${a.path} → ${b.locale}`);
+    const alternateCount = (html.match(/rel="alternate" hrefLang=/g) || []).length;
+    assert.equal(alternateCount, variants.length + (variants.some(b => b.locale === 'en') ? 1 : 0), `Unexpected alternate: ${a.path}`);
+    assert(!html.replace(/<script\b[^>]*>.*?<\/script>/gs, '').includes('nav.blogs'), 'Untranslated key in visible markup');
+    assert(html.includes('data-blog-navigation'), 'Missing shared site navigation wrapper');
+    assert(!html.includes('class="blog-languages"'), 'Duplicate blog language row must be absent');
+    for (const target of ['/services', '/slots', '/login'].map(path => localize(path, locale))) assert(html.includes(`href="${target}"`), `Missing shared navigation action: ${target}`);
+    assert(html.includes('aria-expanded="false"'), 'Mobile menu must SSR closed');
+    assert(html.includes('<select') && html.includes('lang="'+locale+'"'), 'Missing locale navigation selector');
+    const options = [...html.matchAll(/<option[^>]*value="([^"]+)"/g)].map(m => m[1]);
+    const expectedOptions = a.id ? visible.filter(b => b.id === a.id).map(pathFor) : [...new Set(visible.map(b => b.locale))].map(indexFor);
+    assert.deepEqual([...new Set(options)].sort(), expectedOptions.sort(), 'Navigation must link actual counterparts');
+    assert([...html.matchAll(/<option[^>]+>/g)].some(([tag]) => tag.includes(`value="${a.path}"`) && tag.includes('selected=""')), 'Current locale counterpart must be selected');
+    receipt.push({ path: a.path, status: response.status, language: locale, canonical: 'https://text.skin' + a.path, robots: indexing ? 'index, follow' : 'noindex, follow', alternates: alternateCount });
+    if (a.id) {
+      assert(html.includes(`data-service-id="${serviceIds[a.id]}"`), 'Missing destination-specific conversion section');
+      assert(html.includes(`class="blog-service-button" href="${localize('/create-order/' + serviceIds[a.id], locale)}"`), 'Wrong service CTA');
+      assert(/<h1>.+?<\/h1>/.test(html), 'Missing server-rendered heading');
+      assert(/<h2\b[^>]*>.+?<\/h2>/.test(html), 'Missing server-rendered article body');
+      const schema = JSON.parse(html.match(/<script type="application\/ld\+json">(.*?)<\/script>/s)[1]);
+      assert.equal(schema[0]['@type'], 'Article');
+      assert.equal(schema[0].inLanguage, locale);
+      assert.equal(schema[1]['@type'], 'BreadcrumbList');
+      assert(!('datePublished' in schema[0]), 'Invented publish date');
+      for (const source of a.sources) assert(html.includes(source.url.replace(/&/g, '&amp;')), `Missing source: ${source.url}`);
+      assert(html.includes(a.officialBooking.url.replace(/&/g, '&amp;')), 'Missing destination-specific official CTA');
+      assert(!html.includes('prenotami.esteri.it'), 'Stale Italy CTA');
+    }
+    checked++;
+  }
+}
+for (const route of [...new Set(visible.map(a => `${indexFor(a.locale)}/nonexistent-guide`)), '/xx/blogs', '/en/blogs', '/blogs/nonexistent-guide', '/de/blogs/nonexistent-guide', '/blogs/italy-visa-appointments-dublin-prenotami', '/blogs/no-italy-visa-appointments-dublin', '/blogs/italy-tourist-visa-documents-ireland', '/nonexistent-route']) {
+  const response = await fetch(`${base}${route}`);
+  assert.equal(response.status, 404, `Should 404: ${route}`);
+  assert(/name="robots" content="noindex(?:,|"|\s)/.test(await response.text()), `Missing error-page noindex: ${route}`);
+}
+let publicChecked = 0, privateChecked = 0;
+for (const locale of locales) {
+  for (const path of publicPaths) {
+    const route = localize(path, locale);
+    const response = await fetch(base + route);
+    assert.equal(response.status, 200, route);
+    assert.equal(response.headers.get('x-robots-tag'), null, route);
+    const html = await response.text();
+    const canonical = 'https://text.skin' + route;
+    const robots = indexing || (locale === 'en' && path === '/') ? 'index, follow' : 'noindex, follow';
+    assert(html.includes(`<html lang="${locale === 'zh' ? 'zh-CN' : locale}"`), route);
+    assert.equal((html.match(/<html\b/g) || []).length, 1, route);
+    assert(html.includes(`<title>${escape(publicCopy[locale][path][0])} | STRATA</title>`), route);
+    assert(html.includes(`name="description" content="${escape(publicCopy[locale][path][1])}"`), route);
+    assert(html.includes(`name="robots" content="${robots}"`), route);
+    assert(html.includes(`rel="canonical" href="${canonical}"`), route);
+    assert.equal((html.match(/rel="canonical"/g) || []).length, 1, route);
+    assert(html.includes(`property="og:url" content="${canonical}"`), route);
+    assert.equal((html.match(/rel="alternate" hrefLang=/g) || []).length, 8, route);
+    for (const other of locales) assert(html.includes(`hrefLang="${other}" href="https://text.skin${localize(path, other)}"`), route);
+    assert(html.includes(`hrefLang="x-default" href="https://text.skin${path}"`), route);
+    assert.equal((html.match(/<h1\b/g) || []).length, 1, route);
+    for (const target of ['/services', '/slots', '/login', '/blogs']) assert(html.includes(`href="${localize(target, locale)}"`), route);
+    receipt.push({ path: route, status: 200, language: locale, canonical, robots, alternates: 8 });
+    publicChecked++;
+  }
+  for (const path of ['/login', '/dashboard', '/dashboard/settings', '/payment/test', '/payment/confirm', '/create-order/35']) {
+    const route = localize(path, locale);
+    const response = await fetch(base + route);
+    assert.equal(response.status, 200, route);
+    assert.equal(response.headers.get('x-robots-tag'), 'noindex, nofollow', route);
+    const html = await response.text();
+    assert(html.includes(`<html lang="${locale === 'zh' ? 'zh-CN' : locale}"`), route);
+    assert(html.includes('name="robots" content="noindex, nofollow"'), route);
+    assert(html.includes(`rel="canonical" href="https://text.skin${route}"`), route);
+    assert.equal((html.match(/rel="alternate" hrefLang=/g) || []).length, 0, route);
+    receipt.push({ path: route, status: 200, language: locale, robots: 'noindex, nofollow', private: true });
+    privateChecked++;
+  }
+  const query = await fetch(base + localize('/', locale) + '?utm_source=qa');
+  assert.equal(query.status, 200);
+  assert((await query.text()).includes(`rel="canonical" href="https://text.skin${localize('/', locale)}"`), 'Query leaked into canonical');
+}
+const admin = await fetch(base + '/admin');
+assert.equal(admin.status, 200);
+assert.equal(admin.headers.get('x-robots-tag'), 'noindex, nofollow');
+for (const route of ['/en', '/en/services', '/xx', '/fr/admin', '/de/not-a-page', '/fr/services/missing']) {
+  const response = await fetch(base + route); assert.equal(response.status, 404, route);
+  assert((await response.text()).includes('noindex'), '404 must be non-indexable: ' + route);
+}
+const spoof = await fetch(base + '/fr/services', { headers: { 'x-strata-locale': 'zh', 'x-strata-path': '/' } });
+assert((await spoof.text()).includes('<html lang="fr"'), 'Client headers must not override URL language');
+const sitemapResponse = await fetch(`${base}/sitemap.xml`);
+assert.equal(sitemapResponse.status, 200, 'Sitemap response');
+const sitemap = await sitemapResponse.text();
+const urls = [...sitemap.matchAll(/<loc>(.*?)<\/loc>/g)].map(m => m[1]);
+assert.equal(urls.length, indexing ? publicPaths.length * locales.length + published.length + new Set(published.map(a => a.locale)).size : 0);
+if (indexing) {
+  const expectedUrls = [...locales.flatMap(locale => publicPaths.map(path => 'https://text.skin' + localize(path, locale))), ...new Set(approvedInventory.map(a => `https://text.skin${indexFor(a.locale)}`)), ...approvedInventory.map(a => `https://text.skin${pathFor(a)}`)].sort();
+  assert.equal(expectedUrls.length, 84, 'Local indexing-enabled scope is 56 public pages and 28 blog pages; not production approval');
+  assert.deepEqual([...urls].sort(), expectedUrls, 'Sitemap must exactly match approved multilingual cohort');
+}
+for (const url of urls) assert(url.startsWith('https://text.skin/') && !/\/(?:admin|login|dashboard|payment|create-order)(?:\/|$)/.test(url));
+const robotsResponse = await fetch(`${base}/robots.txt`);
+assert.equal(robotsResponse.status, 200, 'Robots response');
+const robots = await robotsResponse.text();
+const iconResponse = await fetch(`${base}/blog-icon.svg`);
+assert.equal(iconResponse.status, 200, 'Blog icon response');
+assert(iconResponse.headers.get('content-type')?.includes('image/svg+xml'), 'Blog icon MIME type');
+assert(robots.includes('Disallow: /api/'));
+assert(!/Disallow: \/(?:blogs|admin|dashboard|login|payment|create-order)/.test(robots));
+if (process.env.BLOG_HTTP_RECEIPT) fs.writeFileSync(process.env.BLOG_HTTP_RECEIPT, JSON.stringify({ base, indexing, pages: receipt, sitemapUrls: urls, publication: 'Local build verification only; no production approval or deployment' }, null, 2) + '\n');
+console.log(`PASS: ${publicChecked} public and ${privateChecked} private localized pages, admin exclusions and ${checked} server-rendered blog pages; language, metadata, sources, structured data; excluded/unknown routes; query canonicals; private headers; sitemap (${urls.length} URLs) and robots.`);

+ 114 - 0
scripts/check-blog-nav.cjs

@@ -0,0 +1,114 @@
+const assert = require('node:assert/strict');
+const fs = require('node:fs');
+const path = require('node:path');
+const vm = require('node:vm');
+const ts = require('typescript');
+const React = require('react');
+const { renderToStaticMarkup } = require('react-dom/server');
+const root = process.cwd();
+function loader(overrides = {}, globals = {}) {
+  const cache = new Map();
+  function load(file) {
+    file = path.resolve(root, file);
+    if (!path.extname(file)) file += fs.existsSync(file + '.tsx') ? '.tsx' : '.ts';
+    if (file.endsWith('.json')) return JSON.parse(fs.readFileSync(file, 'utf8'));
+    if (cache.has(file)) return cache.get(file);
+    const module = { exports: {} }; cache.set(file, module.exports);
+    const source = ts.transpileModule(fs.readFileSync(file, 'utf8'), { compilerOptions: { module: ts.ModuleKind.CommonJS, esModuleInterop: true, jsx: ts.JsxEmit.ReactJSX, target: ts.ScriptTarget.ES2022 } }).outputText;
+    const resolve = spec => {
+      if (Object.hasOwn(overrides, spec)) return overrides[spec];
+      if (spec.startsWith('@/')) return load('src/' + spec.slice(2));
+      if (spec.startsWith('.')) return load(path.resolve(path.dirname(file), spec));
+      return require(spec);
+    };
+    vm.runInNewContext(source, { module, exports: module.exports, require: resolve, ...globals }, { filename: file });
+    return module.exports;
+  }
+  return load;
+}
+const nextMocks = {
+  'next/navigation': { usePathname: () => '/blogs/netherlands-visa-appointments-dublin' },
+  'next/link': props => React.createElement('a', props, props.children),
+  '@/lib/auth': { isAdmin: () => false, logout: () => {} },
+};
+const loadSSR = loader(nextMocks);
+const { navigationCopy } = loadSSR('src/lib/blog/translations.ts');
+const locales = ['en', 'de', 'fr', 'es', 'it', 'pt', 'zh'];
+const indexes = locales.map(locale => ({ locale, href: `${locale === 'en' ? '' : '/' + locale}/blogs` }));
+const articles = indexes.map(a => ({ ...a, id: 'netherlands', href: a.href + '/netherlands-' + a.locale }));
+for (const locale of locales) {
+  const current = articles.find(a => a.locale === locale);
+  const localizedLoad = loader({ ...nextMocks, 'next/navigation': { usePathname: () => current.href } });
+  const LocalNavbar = localizedLoad('src/components/blog/BlogNavbar.tsx').default;
+  const html = renderToStaticMarkup(React.createElement(LocalNavbar, { locale, indexes, articles }));
+  assert([...html.matchAll(/<option[^>]+>/g)].some(([tag]) => tag.includes(`value="${current.href}"`) && tag.includes('selected=""')), 'Current article must be selected');
+  for (const href of [locale === 'en' ? '/' : '/' + locale, indexes.find(a => a.locale === locale).href, ...['/services', '/slots', '/login'].map(path => (locale === 'en' ? '' : '/' + locale) + path)]) assert(html.includes(`href="${href}"`));
+  assert(html.includes(`lang="${locale}"`) && html.includes('aria-expanded="false"'));
+  assert(html.includes('<select') && !html.includes('article language stays unchanged'));
+  assert(html.includes('w-24 sm:w-auto') && html.includes('hidden xl:flex'), 'Blog navigation needs a readable mobile selector and wider desktop breakpoint');
+  for (const a of articles) assert(html.includes(`value="${a.href}"`), 'Missing counterpart');
+  assert(!html.includes('nav.services'), 'Untranslated navigation key');
+  for (const key of ['nav.services', 'nav.slots', 'nav.blogs', 'nav.login']) assert(html.includes(navigationCopy[locale][key]), `Missing localized label: ${locale}/${key}`);
+}
+// Exercise the actual selector handler with explicit pathname fixtures.
+for (const current of [indexes[0], articles[0], indexes[6], articles[6]]) {
+  let assigned;
+  const load = loader({ ...nextMocks, 'next/navigation': { usePathname: () => current.href } }, { window: { location: { assign: href => assigned = href } } });
+  const tree = load('src/components/blog/BlogNavbar.tsx').default({ locale: current.locale, indexes, articles });
+  const nav = tree.props.children.props.children;
+  const selector = nav.props.languageControl;
+  const expected = 'id' in current ? articles : indexes;
+  assert.equal(selector.props.value, current.href);
+  assert.deepEqual(selector.props.children.map(option => option.props.value), expected.map(a => a.href));
+  selector.props.onChange({ target: { value: expected[1].href } });
+  assert.equal(assigned, expected[1].href);
+}
+
+// Simulated provider hooks test browser-preference isolation and document-language ownership.
+function providerCase(options, expectedDefault, detect) {
+  const state = []; const effects = []; let index = 0; let reads = 0; const writes = [];
+  const fakeReact = { ...React, useCallback: fn => fn, useMemo: fn => fn(),
+    createContext: () => ({ Provider: 'context-provider' }),
+    useState: initial => { const i = index++; if (!(i in state)) state[i] = initial; return [state[i], value => { state[i] = value; }]; },
+    useEffect: callback => effects.push(callback),
+  };
+  const document = { documentElement: { lang: 'en' } };
+  const load = loader({ react: fakeReact }, { document, navigator: { language: 'zh-CN' }, localStorage: { getItem: () => { reads++; return expectedDefault === 'en' ? 'zh' : 'en'; }, setItem: (...args) => writes.push(args) } });
+  const Provider = load('src/lib/i18n/LanguageContext.tsx').LanguageProvider;
+  const element = Provider({ children: null, ...options });
+  assert.equal(element.props.value.lang, expectedDefault);
+  effects.forEach(fn => fn());
+  assert.equal(reads > 0, detect);
+  assert.equal(state[0], 'en', 'Homepage honors stored English; blog ignores stored Chinese');
+  element.props.value.setLang('zh');
+  assert.equal(state[0], 'zh');
+  assert.deepEqual(writes[0], ['app_lang', 'zh']);
+  assert.equal(document.documentElement.lang, options.updateDocumentLanguage === false ? 'en' : 'zh-CN');
+}
+providerCase({ initialLang: 'en', detectPreference: false, updateDocumentLanguage: false }, 'en', false);
+providerCase({}, 'zh', true);
+
+// Simulated shared-Navbar hooks cover mobile/auth branches without a browser or real session.
+for (const [logged, admin, open] of [[false, false, false], [false, false, true], [true, false, true], [true, true, true]]) {
+  let index = 0; const states = [logged, admin, open]; const effects = []; const changes = []; let logoutCalls = 0; const events = [];
+  const fakeReact = { ...React, useRef: () => ({current:null}), useCallback: fn => fn, useMemo: fn => fn(), useState: () => { const i = index++; return [states[i], value => changes.push([i, value])]; }, useEffect: callback => effects.push(callback) };
+  const load = loader({ ...nextMocks, react: fakeReact,
+    '@/lib/i18n/LanguageContext': { useLanguage: () => ({ t: key => key.split('.').pop(), lang: 'en', setLang: () => {} }) },
+    '@/lib/auth': { isAdmin: () => admin, logout: () => { logoutCalls++; } },
+  }, { localStorage: { getItem: () => logged ? 'test-session-marker' : null }, window: { addEventListener: (name, callback) => events.push([name, callback]), removeEventListener: () => {} } });
+  const tree = load('src/components/Navbar.tsx').default({ showBlog: true, blogHref: '/blogs', navigationLanguageOnly: true });
+  const nodes = [];
+  function visit(node) { if (Array.isArray(node)) return node.forEach(visit); if (!node || typeof node !== 'object') return; nodes.push(node); visit(node.props?.children); }
+  visit(tree);
+  for (const href of ['/blogs', '/services', '/slots', logged ? '/dashboard' : '/login']) assert(nodes.some(n => n.props?.href === href));
+  assert.equal(nodes.some(n => n.props?.href === '/admin'), logged && admin);
+  assert.equal(nodes.some(n => n.props?.id === 'site-mobile-menu'), open);
+  const toggle = nodes.find(n => n.props?.['aria-controls'] === 'site-mobile-menu');
+  assert.equal(toggle.props['aria-expanded'], open); toggle.props.onClick();
+  assert(changes.some(([i, value]) => i === 2 && value === !open));
+  effects.forEach(fn => fn()); assert(events.some(([name]) => name === 'storage'));
+  assert(changes.some(([i, value]) => i === 0 && value === logged));
+  if (logged) { nodes.find(n => n.props?.title === 'logout').props.onClick(); assert.equal(logoutCalls, 1); assert(changes.some(([i, value]) => i === 2 && value === false)); }
+  if (open) { nodes.find(n => n.props?.className?.includes('fixed inset-0')).props.onClick(); assert(changes.some(([i, value]) => i === 2 && value === false)); }
+}
+console.log('PASS: shared navbar SSR links/actions and seven-language labels/counterpart selection; provider defaults and document-language isolation; simulated mobile toggle/overlay and logged-out/user/admin/logout/storage branches. This is not browser interaction or authenticated end-to-end QA.');

+ 34 - 0
scripts/check-blog-readability.mjs

@@ -0,0 +1,34 @@
+import assert from 'node:assert/strict';
+import { execFileSync } from 'node:child_process';
+
+// The user's verified handoff is the preservation baseline for this body-only edit.
+const baseline = '9cae31f7ac0c1ef41790436e0454757d79b7783d';
+const before = JSON.parse(execFileSync('git', ['show', `${baseline}:src/content/blog/articles.json`], { encoding: 'utf8' }));
+// Preserve the accepted readability milestone; subsequent targeted source additions
+// are checked separately by check-blog-targeted-copy.mjs.
+const acceptedReadability = 'e84a62e17e2f4cbd985968d716361e3bbd6d0f87';
+const after = JSON.parse(execFileSync('git', ['show', `${acceptedReadability}:src/content/blog/articles.json`], { encoding: 'utf8' }));
+const key = a => `${a.locale}/${a.id}`;
+const links = body => [...body.matchAll(/\]\(([^)\s]+)\)/g)].map(m => m[1]).sort();
+const headings = body => (body.match(/^## /gm) || []).length;
+const stats = body => {
+  const paragraphs = body.split(/\n\s*\n/).filter(p => p.trim() && !/^(?:#|\||[-*] |\d+\. )/.test(p));
+  const visible = paragraphs.map(p => p.replace(/\[([^\]]+)\]\([^)]+\)/g, '$1').replace(/[*_`]/g, ''));
+  return { proseBlocks: paragraphs.length, longestVisibleProseBlock: Math.max(0, ...visible.map(p => p.length)), listItems: (body.match(/^(?:[-*]|\d+\.) /gm) || []).length };
+};
+assert.equal(before.length, 21);
+assert.equal(after.length, 21);
+assert.deepEqual(after.map(key).sort(), before.map(key).sort());
+const report = [];
+for (const article of after) {
+  const original = before.find(a => key(a) === key(article));
+  const { body: oldBody, ...oldFields } = original;
+  const { body, ...fields } = article;
+  assert.deepEqual(fields, oldFields, `${key(article)} changed fields outside body`);
+  assert.deepEqual(links(body), links(oldBody), `${key(article)} changed link occurrences`);
+  assert.equal(headings(body), headings(oldBody), `${key(article)} changed H2 section count`);
+  assert(!/<\/?(?:script|iframe|html|body)\b/i.test(body), 'Unsafe HTML');
+  report.push({ article: key(article), changed: body !== oldBody, before: stats(oldBody), after: stats(body) });
+}
+console.log(JSON.stringify({ baseline, acceptedReadability, changedBodies: report.filter(a => a.changed).length, articles: report }, null, 2));
+console.log('PASS: 21-article inventory, body-only scope, exact link occurrences and H2 boundaries. Readability statistics are descriptive; factual qualifiers require editorial review.');

+ 56 - 0
scripts/check-blog-style.mjs

@@ -0,0 +1,56 @@
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+import postcss from 'postcss';
+const css = fs.readFileSync('src/components/blog/blog.css', 'utf8');
+const sheet = postcss.parse(css);
+const declarations = selector => {
+  const values = {};
+  sheet.walkRules(rule => { if (rule.selector === selector && rule.parent.type === 'root') rule.walkDecls(d => { values[d.prop] = d.value; }); });
+  return values;
+};
+const tokens = declarations('.blog-body');
+assert.equal(tokens['--blog-page'], '#f8fafc');
+assert.equal(tokens['--blog-surface'], '#ffffff');
+assert.equal(tokens['--blog-ink'], '#000000');
+assert.equal(tokens['--blog-accent'], '#fcd34d');
+assert.equal(tokens['--blog-accent-hover'], '#fbbf24');
+assert.equal(tokens['--blog-line'], '2px solid var(--blog-ink)');
+assert.equal(tokens['--blog-shadow'], '4px 4px 0 var(--blog-ink)');
+const sharedNav = fs.readFileSync('src/components/Navbar.tsx', 'utf8');
+assert(sharedNav.includes('items-center h-16'), 'Use the existing 64px shared navigation');
+assert(!css.includes('.blog-header'), 'Do not duplicate the shared navigation styles');
+assert(!/\.blog-body a/.test(css), 'Blog CSS must not override shared navigation anchor colors');
+assert.equal(declarations('.blog-hero')['box-shadow'], 'var(--blog-shadow)');
+assert.equal(declarations('.blog-hero').padding, '20px 24px');
+assert.equal(declarations('.blog-hero')['margin-bottom'], '24px');
+assert.equal(declarations('.blog-hero h1')['font-size'], 'clamp(24px, 3vw, 32px)');
+assert.equal(declarations('.blog-hero h1')['margin-bottom'], '12px');
+assert.equal(declarations('.blog-hero .blog-eyebrow')['margin-bottom'], '8px');
+assert(!css.includes('.blog-languages'), 'No duplicate language-control styling');
+const views = fs.readFileSync('src/components/blog/BlogViews.tsx', 'utf8');
+assert(!views.includes('LanguageLinks') && !views.includes('blog-languages'), 'Use shared Nav instead of duplicate language controls');
+assert.equal(declarations('.blog-main')['scroll-margin-top'], '88px');
+assert.equal(declarations('.blog-footer nav')['overflow-wrap'], 'anywhere');
+assert.equal(declarations('.blog-card').border, 'var(--blog-line)');
+assert.equal(declarations('.blog-footer').background, 'var(--blog-surface)');
+assert.equal(declarations('.blog-footer')['border-top'], 'var(--blog-line)');
+assert.equal(declarations('.blog-hero h1, .blog-article h1')['font-weight'], '900');
+assert.equal(declarations('.blog-hero h1, .blog-article h1')['text-transform'], 'uppercase');
+assert.equal(declarations('.blog-prose')['font-size'], '17px');
+assert(!/#(?:f5f3ed|172523|24765e|3d6659|e6ebdd|315a49|215c45)\b/i.test(css), 'Old cream/green palette must not return');
+sheet.walkDecls('border-radius', d => assert(/^0(?:px)?$/.test(d.value), 'Homepage uses square corners'));
+const media = [];
+sheet.walkAtRules('media', rule => media.push(rule.params));
+assert(media.includes('(max-width: 1023px)') && media.includes('(max-width: 639px)'));
+assert(media.includes('(prefers-reduced-motion: reduce)'));
+assert(css.includes('.blog-main a:focus-visible'));
+const shell = fs.readFileSync('src/components/blog/BlogShell.tsx', 'utf8');
+assert(shell.includes('blog-brand-mark') && shell.includes('<Plane size={16}'));
+assert(!shell.includes('use client'), 'Do not reintroduce browser-dependent language state');
+assert(shell.includes('tabIndex={-1}'), 'Skip link target must accept focus');
+assert(shell.includes('{t.disclaimer}'), 'Keep independent-service disclosure');
+assert.equal(declarations('.blog-main .blog-service-button').background, '#15803d');
+assert.equal(declarations('.blog-main .blog-service-button').color, '#fff');
+assert.equal(declarations('.blog-conversion').border, 'var(--blog-line)');
+assert(views.includes('data-service-id') && views.includes('/create-order/'));
+console.log('PASS: homepage-matched slate/white/black/amber tokens, square borders, hard shadows, typography, responsive rules, focus and reduced-motion styles; server-localized shell. Structural checks are not rendered visual QA.');

+ 32 - 0
scripts/check-blog-targeted-copy.mjs

@@ -0,0 +1,32 @@
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+import { execFileSync } from 'node:child_process';
+
+const baseline = 'e84a62e17e2f4cbd985968d716361e3bbd6d0f87';
+const before = JSON.parse(execFileSync('git', ['show', `${baseline}:src/content/blog/articles.json`], { encoding: 'utf8' }));
+const after = JSON.parse(fs.readFileSync('src/content/blog/articles.json', 'utf8'));
+const key = a => `${a.locale}/${a.id}`;
+const links = body => [...body.matchAll(/\]\(([^)\s]+)\)/g)].map(m => m[1]).sort();
+const newDenmarkSource = 'https://visa.vfsglobal.com/one-pager/denmark/Ireland/english/';
+assert.equal(after.length, 21);
+assert.deepEqual(after.map(key).sort(), before.map(key).sort());
+for (const article of after) {
+  const original = before.find(a => key(a) === key(article));
+  const { body: oldBody, sources: oldSources, ...oldFields } = original;
+  const { body, sources, ...fields } = article;
+  assert.deepEqual(fields, oldFields, `${key(article)} changed protected metadata`);
+  assert.equal((body.match(/^## /gm) || []).length, 7, 'Retain seven main sections');
+  const denmark = article.id === 'denmark-appointment-booking';
+  assert.deepEqual(links(body), [...links(oldBody), ...(denmark ? [newDenmarkSource] : [])].sort(), `${key(article)} changed unapproved links`);
+  if (denmark) {
+    assert.deepEqual(sources.slice(0, oldSources.length), oldSources);
+    assert.equal(sources.length, oldSources.length + 1);
+    assert.equal(sources.at(-1).url, newDenmarkSource);
+    assert(sources.at(-1).title.trim());
+  } else assert.deepEqual(sources, oldSources);
+  const visibleText = body.replace(/\]\([^)]+\)/g, ']');
+  assert(!/text\.skin/i.test(visibleText), 'Brand copy must use Strata; URL destinations remain unchanged');
+  assert(/\[Strata\b|\bStrata\b/.test(visibleText), 'Missing Strata service invitation');
+  assert(!/<\/?(?:script|iframe|html|body)\b/i.test(body), 'Unsafe HTML');
+}
+console.log('PASS: 21 records; exact titles/metadata; seven H2s; existing URLs/sources preserved except the approved added Denmark source; Strata brand copy. Refund meaning, removed recommendations and Denmark sequencing require independent editorial review.');

+ 100 - 0
scripts/check-blog.mjs

@@ -0,0 +1,100 @@
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+import path from 'node:path';
+import vm from 'node:vm';
+import ts from 'typescript';
+const root = process.cwd();
+const articles = JSON.parse(fs.readFileSync('src/content/blog/articles.json', 'utf8'));
+const locales = ['en', 'de', 'fr', 'es', 'it', 'pt', 'zh'];
+const inventory = JSON.parse(fs.readFileSync('src/content/blog/approved-inventory.json', 'utf8'));
+assert.deepEqual(articles.map(a => `${a.locale}/${a.id}/${a.slug}`).sort(), inventory.map(a => `${a.locale}/${a.id}/${a.slug}`).sort(), 'Active collection must match the approved topic/locale/slug inventory');
+const keys = new Set();
+for (const a of articles) {
+  assert(locales.includes(a.locale), `Invalid locale: ${a.locale}`);
+  assert(/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a.slug), `Invalid slug: ${a.slug}`);
+  assert(!keys.has(`${a.locale}/${a.slug}`), `Duplicate route: ${a.locale}/${a.slug}`);
+  keys.add(`${a.locale}/${a.slug}`);
+  assert(typeof a.published === 'boolean');
+  assert(a.title.length > 10 && a.description.length > 30 && a.body.length > 1000, `Thin content: ${a.id}/${a.locale}`);
+  assert(/^\d{4}-\d{2}-\d{2}$/.test(a.reviewedAt) && Number.isFinite(Date.parse(a.reviewedAt)));
+  assert(!/<\/?(?:script|iframe|html|body)\b/i.test(a.body), 'HTML is not allowed');
+  assert(!/prenotami|italy-visa/i.test(a.body), 'Archived Italy content must not leak into this cohort');
+  assert(a.sources.length > 0);
+  assert(a.destinationLabel && a.officialBooking?.label);
+  assert(new URL(a.officialBooking.url).protocol === 'https:');
+  assert(a.sources.some(source => source.url === a.officialBooking.url), 'Official CTA must be a verified source');
+  for (const source of a.sources) assert(new URL(source.url).protocol === 'https:', 'Sources must use HTTPS');
+  for (const id of a.relatedIds) assert(articles.some(b => b.locale === a.locale && b.id === id), `Missing related guide: ${id}/${a.locale}`);
+  for (const match of a.body.matchAll(/\]\((\/(?:[a-z]{2}\/)?blogs\/[^)\s]+)\)/g)) {
+    const target = match[1].replace(/^\//, '').replace(/^blogs\//, 'en/').replace('/blogs/', '/');
+    assert(articles.some(b => `${b.locale}/${b.slug}` === target), `Broken contextual link: ${match[1]}`);
+  }
+}
+// Every translation retains the reviewed English source set and booking destination.
+for (const a of articles.filter(a => a.locale !== 'en')) {
+  const en = articles.find(b => b.id === a.id && b.locale === 'en');
+  assert(en, `Missing English master: ${a.id}`);
+  assert.equal(a.reviewedAt, en.reviewedAt);
+  assert.equal(a.officialBooking.url, en.officialBooking.url);
+  assert.deepEqual(a.sources.map(s => s.url).sort(), en.sources.map(s => s.url).sort());
+  assert.notEqual(a.title, en.title, 'Untranslated title');
+  assert.notEqual(a.body, en.body, 'Untranslated body');
+  const externalLinks = body => [...body.matchAll(/\]\((https?:[^)\s]+)\)/g)].map(m => m[1]).sort();
+  assert.deepEqual(externalLinks(a.body), externalLinks(en.body), 'Translation changed official body links');
+  assert.equal((a.body.match(/^## /gm) || []).length, (en.body.match(/^## /gm) || []).length, 'Translation omitted a section');
+}
+// Execute our TypeScript helpers with in-memory fixtures; never modify editorial publication flags.
+function loadModule(filename, fixture, indexing, cache = new Map()) {
+  filename = path.resolve(root, filename);
+  if (cache.has(filename)) return cache.get(filename);
+  const source = fs.readFileSync(filename, 'utf8');
+  const compiled = ts.transpileModule(source, { compilerOptions: { module: ts.ModuleKind.CommonJS, esModuleInterop: true, target: ts.ScriptTarget.ES2022 } }).outputText;
+  const module = { exports: {} }; cache.set(filename, module.exports);
+  const require = spec => {
+    if (spec.endsWith('articles.json')) return fixture;
+    const resolved = spec.startsWith('@/') ? path.join(root, 'src', spec.slice(2)) : path.resolve(path.dirname(filename), spec);
+    return loadModule(`${resolved}.ts`, fixture, indexing, cache);
+  };
+  vm.runInNewContext(compiled, { exports: module.exports, module, require, process: { env: { BLOG_INDEXING_ENABLED: indexing ? 'true' : 'false' } }, URL });
+  return module.exports;
+}
+assert(articles.length > 0, 'No guides to validate');
+const master = articles.find(a => a.locale === 'en');
+const fixture = locales.map(locale => ({ ...master, locale, published: true }));
+fixture.push({ ...master, id: 'unpublished', slug: 'unpublished', locale: 'en', published: false });
+const live = loadModule('src/lib/blog/data.ts', fixture, true);
+assert.equal(live.publishedArticles().length, 7);
+assert.equal(live.visibleArticles().length, 7);
+assert.equal(live.getArticle('en', 'unpublished'), undefined);
+const preview = loadModule('src/lib/blog/data.ts', fixture, false);
+assert.equal(preview.visibleArticles().length, 8);
+const meta = loadModule('src/lib/blog/metadata.ts', fixture, true);
+for (const a of fixture.filter(a => a.published)) {
+  const m = meta.blogMetadata(a.locale, a);
+  assert.equal(m.alternates.canonical, `https://text.skin${a.locale === 'en' ? '' : `/${a.locale}`}/blogs/${a.slug}`);
+  assert.equal(Object.keys(m.alternates.languages).length, 8);
+  assert.equal(m.robots.index, true);
+  assert.equal(m.openGraph.url, m.alternates.canonical);
+}
+const partialMeta = loadModule('src/lib/blog/metadata.ts', fixture.slice(0, 2), true);
+assert.equal(Object.keys(partialMeta.blogMetadata('en', fixture[0]).alternates.languages).length, 3);
+const draftMeta = loadModule('src/lib/blog/metadata.ts', articles.map(a => ({ ...a, published: false })), false);
+assert.equal(draftMeta.blogMetadata('en', master).robots.index, false);
+assert.equal(Object.keys(draftMeta.blogMetadata('en', master).alternates.languages).length, 0);
+const sitemap = loadModule('src/app/sitemap.ts', fixture, true).default();
+assert.equal(sitemap.length, 70);
+assert.equal(sitemap.filter(a => a.url === 'https://text.skin/').length, 1);
+assert(sitemap.every(a => !a.url.includes('unpublished') && !/\/(?:login|dashboard|payment|create-order|admin)(?:\/|$)/.test(a.url)));
+assert.equal(sitemap.filter(a => /\/blogs(?:\/|$)/.test(a.url)).length, 14);
+assert.equal(new Set(sitemap.map(a => a.url)).size, 70);
+assert.equal(loadModule('src/app/sitemap.ts', fixture, false).default().length, 0);
+console.log(`PASS: ${articles.length} articles; content references, publication gates, reciprocal SEO alternates, canonical URLs, and sitemap fixtures.`);
+if (process.argv.includes('--release')) {
+  assert.equal(inventory.length, 21, 'Approved multilingual inventory is three guides in seven languages');
+  for (const a of articles.filter(a => a.locale === 'en')) assert.deepEqual(articles.filter(b => b.id === a.id).map(b => b.locale).sort(), [...locales].sort(), 'Each guide needs all seven reviewed editions');
+  const expected = inventory.map(a => `${a.locale}/${a.id}`).sort();
+  const actual = articles.filter(a => a.published).map(a => `${a.locale}/${a.id}`).sort();
+  assert.deepEqual(actual, expected, 'Release blocked: published records must match the approved inventory exactly');
+  assert.equal(process.env.BLOG_INDEXING_ENABLED, 'true', 'Release blocked: BLOG_INDEXING_ENABLED must be true at build time');
+  console.log('PASS: editorial release flags and approved inventory. This does not establish deployment, indexing, traffic, or payment outcomes.');
+}

+ 83 - 0
scripts/check-i18n.mjs

@@ -0,0 +1,83 @@
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+import path from 'node:path';
+import vm from 'node:vm';
+import ts from 'typescript';
+const cache = new Map();
+function load(file) {
+  file = path.resolve(file);
+  if (!path.extname(file)) file += fs.existsSync(file + '.tsx') ? '.tsx' : '.ts';
+  if (file.endsWith('.json')) return JSON.parse(fs.readFileSync(file, 'utf8'));
+  if (cache.has(file)) return cache.get(file);
+  const module = { exports: {} }; cache.set(file, module.exports);
+  const compiled = ts.transpileModule(fs.readFileSync(file, 'utf8'), { compilerOptions: { module: ts.ModuleKind.CommonJS, target: ts.ScriptTarget.ES2022, esModuleInterop: true } }).outputText;
+  const require = spec => load(spec.startsWith('@/') ? 'src/' + spec.slice(2) : path.resolve(path.dirname(file), spec));
+  vm.runInNewContext(compiled, { module, exports: module.exports, require, Intl, Map, URL });
+  return module.exports;
+}
+const { appLocales } = load('src/lib/i18n/config');
+const { getMessages, flattenMessages } = load('src/lib/i18n/dictionaries');
+const english = flattenMessages(load('src/lib/i18n/locales/en').en);
+const chinese = flattenMessages(load('src/lib/i18n/locales/zh').zh);
+assert.deepEqual(Object.keys(english).sort(), Object.keys(chinese).sort());
+const matrix = JSON.parse(fs.readFileSync('src/lib/i18n/messages.json', 'utf8'));
+assert.deepEqual(Object.keys(matrix).sort(), Object.keys(english).sort());
+for (const [key, row] of Object.entries(matrix)) assert(row.length === 5 && row.every(value => typeof value === 'string' && value.trim()), key);
+for (const [key, row] of Object.entries(JSON.parse(fs.readFileSync('src/lib/i18n/ui-messages.json', 'utf8')))) assert(row.length === 6 && row.every(value => value.trim()), key);
+const catalog = JSON.parse(fs.readFileSync('src/lib/i18n/catalog-messages.json', 'utf8'));
+const englishFormEdits = JSON.parse(fs.readFileSync('scripts/fixtures/english-form-copy.json', 'utf8')).edits;
+const englishFormCatalog = new Map(englishFormEdits.filter(edit => edit.source === 'catalog').map(edit => [edit.key, edit]));
+for (const [key, row] of Object.entries(catalog)) assert(row.length === 7 && row.every(value => value.trim()), key);
+for (const [key, row] of Object.entries(catalog)) assert.equal(row[0], englishFormCatalog.get(key)?.after ?? key, `English catalogue wording outside the form-copy scope changed: ${key}`);
+for (const edit of englishFormEdits) {
+  assert(['base', 'catalog'].includes(edit.source), `Unsupported form-copy source: ${edit.source}`);
+  assert.equal(edit.source === 'base' ? english[edit.key] : catalog[edit.key]?.[0], edit.after, `Reviewed English form wording: ${edit.key}`);
+  if (edit.source === 'catalog') assert.equal(edit.before, edit.key, `Original schema wording: ${edit.key}`);
+}
+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);
+let keys = new Set(), files = 0;
+const excluded = new Set(['JsonEditor.tsx', 'JsonConfigEditor.tsx', 'AdminUserSelect.tsx', 'ImageUploadField.tsx']);
+function walk(dir) {
+  for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
+    const file = path.join(dir, entry.name);
+    if (entry.isDirectory()) { if (!['admin', 'blog'].includes(entry.name)) walk(file); continue; }
+    if (!entry.name.endsWith('.tsx') || excluded.has(entry.name)) continue;
+    files++;
+    const ast = ts.createSourceFile(file, fs.readFileSync(file, 'utf8'), ts.ScriptTarget.Latest, true, ts.ScriptKind.TSX);
+    function visit(node) {
+      if (ts.isCallExpression(node) && node.expression.getText(ast) === 't' && ts.isStringLiteral(node.arguments[0])) keys.add(node.arguments[0].text);
+      ts.forEachChild(node, visit);
+    }
+    visit(ast);
+  }
+}
+walk('src/components');
+for (const locale of appLocales) {
+  const messages = getMessages(locale);
+  for (const key of keys) assert(typeof messages[key] === 'string' && messages[key].trim(), `${locale}: ${key}`);
+  for (const status of ['pending', 'paid', 'succeeded', 'completed', 'failed', 'cancelled']) assert(messages['status.' + status]);
+}
+const { localizedPath, splitLocalePath, publicAppPaths } = load('src/lib/i18n/routes');
+for (const locale of appLocales) {
+  for (const route of [...publicAppPaths, '/login', '/dashboard/settings', '/create-order/35', '/payment/confirm', '/blogs/netherlands-visa-appointments-dublin']) {
+    const href = localizedPath(route + '?source=guide#details', locale);
+    assert.equal(splitLocalePath(href).path, route + '?source=guide#details');
+    assert.equal(splitLocalePath(href).locale, locale);
+    assert.equal(localizedPath(href, 'en'), route + '?source=guide#details');
+  }
+  for (const route of ['/admin', '/api/vas/product/detail', 'https://example.com/', '//example.com/']) assert.equal(localizedPath(route, locale), route);
+}
+const { displayProduct, countryLabel } = load('src/lib/i18n/catalog');
+const catalogue = JSON.parse(fs.readFileSync('scripts/fixtures/public-products.json', 'utf8'));
+const products = Array.isArray(catalogue.data) ? catalogue.data : catalogue.data.items;
+for (const locale of appLocales) for (const product of products) {
+  const before = JSON.stringify(product);
+  const display = displayProduct(product, key => getMessages(locale)[key] ?? key);
+  assert.equal(JSON.stringify(product), before, 'Must not mutate API data');
+  for (const key of ['id', 'schema_id', 'price_amount', 'price_currency', 'country', 'city', 'visa_type', 'enabled']) assert.equal(display[key], product[key]);
+  assert.equal(display.description, getMessages(locale)[product.description] ?? product.description, 'Translate the original API description without replacing its content');
+  assert(countryLabel(product.country, locale));
+}
+assert.equal(countryLabel('unknown-catalogue-value', 'fr'), 'unknown-catalogue-value');
+console.log(`PASS: ${appLocales.length} languages, ${Object.keys(english).length} complete base translations, ${keys.size} active static UI keys in ${files} files, interpolation, locale-preserving public/user routes, admin/API exclusions and unchanged catalogue identifiers/values.`);

+ 107 - 0
scripts/check-localization-scope.mjs

@@ -0,0 +1,107 @@
+import fs from 'node:fs';
+import cp from 'node:child_process';
+import ts from 'typescript';
+const baseline = '317182004f51f1cb88f2022e8dbce8d7e1802b06';
+const printer = ts.createPrinter({ removeComments: true });
+const ast = (p,text) => ts.createSourceFile(p,text,ts.ScriptTarget.Latest,true,ts.ScriptKind.TSX);
+const print = (n,a) => printer.printNode(ts.EmitHint.Unspecified,n,a).trim();
+function collect(a) {
+ const functions={},effects=[],state=[],controls=[];
+ function walk(n) {
+  if (ts.isVariableDeclaration(n) && ts.isIdentifier(n.name) && n.initializer && (ts.isArrowFunction(n.initializer)||ts.isFunctionExpression(n.initializer))) functions[n.name.text]=print(n.initializer,a);
+  if (ts.isFunctionDeclaration(n) && n.name && n.name.text==='initData') functions.initData=print(n,a);
+  if (ts.isCallExpression(n) && n.expression.getText(a)==='useEffect') effects.push(print(n,a));
+  if (ts.isCallExpression(n) && n.expression.getText(a)==='useState') state.push(print(n,a));
+  if ((ts.isJsxOpeningElement(n)||ts.isJsxSelfClosingElement(n)) && ['input','select','textarea'].includes(n.tagName.getText(a))) {
+   const important=['type','name','required','min','max','minLength','maxLength','pattern','disabled','readOnly','value','checked','onChange'];
+   controls.push(n.tagName.getText(a)+' '+n.attributes.properties.filter(p=>ts.isJsxAttribute(p)&&important.includes(p.name.getText(a))).map(p=>print(p,a)).sort().join(' '));
+  }
+  ts.forEachChild(n,walk);
+ }
+ walk(a);return {functions,effects,state,controls};
+}
+const sources={
+ 'src/components/CreateOrderForm.tsx': ['initData','ensureUserLoggedIn','checkUserEmail','handleInputChange','performOrderCreation','handleSubmit','handleConfirmSubmit','handleBindSuccess','getSortedKeys'],
+ 'src/components/AuthForm.tsx':['handleSubmit','handleCloseMsg','showMessage'],
+ 'src/components/BindEmailModal.tsx':['handleSendCode','handleVerifyAndBind','handleCloseMsg','showMessage'],
+ 'src/components/ForgotPasswordModal.tsx':['handleSendCode','handleSubmitReset','handleCloseMsg','showMessage'],
+ 'src/components/PaymentProcessor.tsx':['fetchProviders','fetchOrderInfo','handlePay','handleUserConfirm','handleBack','formatMoney','showMessage','handleCloseMsg'],
+ 'src/components/dashboard/ChangePasswordModal.tsx':['handleSendCode','handleSubmit','showMessage','handleCloseMsg'],
+ 'src/components/dashboard/ProfileSettings.tsx':['handleFileChange','uploadImage','handleSubmit','handleCancel','showMessage','handleCloseMsg'],
+ 'src/components/dashboard/OrderList.tsx':['fetchOrders','handleSearch','handleKeyDown','formatMoney'],
+ 'src/components/dashboard/TicketList.tsx':['fetchTickets','handleSearch','handleKeyDown'],
+ 'src/components/dashboard/TicketModal.tsx':['handleSubmit','showMessage','handleCloseMsg'],
+ 'src/components/dashboard/UserTicketDetailModal.tsx':['fetchMessages','handleImageUpload','handleRemoveImage','handleSend','scrollToBottom','extractImages','showMessage','handleCloseMsg'],
+ 'src/components/dashboard/UserOrderDetailModal.tsx':['fetchPayments','fetchEvents','formatMoney'],
+ 'src/components/payment/PaymentConfirmCard.tsx':[],
+ 'src/components/pages/DashboardPage.tsx':['handleCreateTicket','handleTicketSuccess','handleViewOrder','handleViewTicket','handleForceBindSuccess','showMessage','handleMessageClose'],
+ 'src/components/pages/SettingsPage.tsx':['handleLogout','handleTabChange'],
+ 'src/components/pages/SlotsPage.tsx':[],
+};
+const oldPath = p => p.startsWith('src/components/pages/') ? {'DashboardPage.tsx':'src/app/(app)/dashboard/page.tsx','SettingsPage.tsx':'src/app/(app)/dashboard/settings/page.tsx','SlotsPage.tsx':'src/app/(app)/slots/page.tsx'}[p.split('/').pop()] : p;
+const changes=[],proof=[];
+for (const [p,names] of Object.entries(sources)) {
+ const before=collect(ast(p,cp.execFileSync('git',['show',baseline+':'+oldPath(p)],{encoding:'utf8'}))), after=collect(ast(p,fs.readFileSync(p,'utf8')));
+ const normalize=s=>s.replace(/setProduct\(displayProduct\(prodData, t\)\)/g,'setProduct(prodData)').replace("currentLocalePath('/login')", "'/login'").replace("error.message || t('settings.change_failed')", "error.message || '重置失败'").replace("t('payment_confirm.unknown_error') || t('payment_confirm.unknown_error')", "t('payment_confirm.unknown_error') || '未知异常'").replace("showMessage(t('会话刷新失败'))", 'showMessage("Session refresh failed")');
+ for (const name of names) {
+  if (!before.functions[name] || !after.functions[name]) {changes.push({p,name,missing:true});continue;}
+  if(normalize(before.functions[name])!==normalize(after.functions[name])) changes.push({p,name,before:before.functions[name],after:after.functions[name]});
+  else proof.push({file:p,check:name,unchanged:true});
+ }
+ for(const kind of ['state','controls','effects']) {
+  if(p==='src/components/pages/SlotsPage.tsx' && kind==='controls') continue; // Labels' data arrays are checked separately by browser.
+  if(JSON.stringify(before[kind].map(normalize))!==JSON.stringify(after[kind].map(normalize))) changes.push({p,kind,before:before[kind],after:after[kind]});
+  else proof.push({file:p,check:kind,unchanged:true});
+ }
+}
+for (const p of [...cp.execFileSync('git',['ls-files','src/lib/services','src/types','src/components/admin','src/app/(app)/admin'],{encoding:'utf8'}).trim().split('\n').filter(Boolean)]) {
+ const before=cp.execFileSync('git',['show',baseline+':'+p],{encoding:'utf8'}); const after=fs.readFileSync(p,'utf8');
+ if(before!==after) changes.push({p,kind:'Protected module changed'}); else proof.push({file:p,check:'byte-identical',unchanged:true});
+}
+for(const p of ['src/lib/api.js','src/lib/auth.ts']) {
+ const before=ast(p,cp.execFileSync('git',['show',baseline+':'+p],{encoding:'utf8'}));
+ let text=fs.readFileSync(p,'utf8').replace(/^import .*from '@\/lib\/i18n\/routes';\n/m,'').replace(/currentLocalePath\('\/login'\)/g,"'/login'").replace('splitLocalePath(window.location.pathname).path.startsWith', 'window.location.pathname.startsWith');
+ const after=ast(p,text);
+ if(printer.printFile(before)!==printer.printFile(after)) changes.push({p,kind:'Authentication or API rule changed'});else proof.push({file:p,check:'Only login URL retains locale; all other AST unchanged',unchanged:true});
+}
+// Existing terms/refund/privacy/cookie commitments are not copy-optimization targets.
+function readDictionary(text, name) {
+  const compiled = ts.transpileModule(text, { compilerOptions: { module: ts.ModuleKind.CommonJS } }).outputText;
+  const module = { exports: {} }; new Function('module', 'exports', compiled)(module, module.exports);
+  return module.exports[name];
+}
+const englishFormEdits = JSON.parse(fs.readFileSync('scripts/fixtures/english-form-copy.json', 'utf8')).edits;
+const englishFormDictionary = new Map(englishFormEdits.filter(edit => edit.source === 'base').map(edit => [edit.key, edit]));
+const englishFormCopyChanges = [];
+for (const locale of ['en', 'zh']) {
+  const p = `src/lib/i18n/locales/${locale}.ts`;
+  const before = readDictionary(cp.execFileSync('git', ['show', baseline + ':' + p], { encoding: 'utf8' }), locale);
+  const after = readDictionary(fs.readFileSync(p, 'utf8'), locale);
+  const originalCopyDifferences = [];
+  function compareOriginalCopy(source, current, prefix = '') {
+    for (const [key, value] of Object.entries(source)) {
+      const name = prefix ? `${prefix}.${key}` : key;
+      if (typeof value === 'string') {
+        if (current?.[key] !== value) {
+          const edit = locale === 'en' ? englishFormDictionary.get(name) : undefined;
+          if (edit?.before === value && edit.after === current?.[key]) englishFormCopyChanges.push(name);
+          else originalCopyDifferences.push(name);
+        }
+      } else if (value && typeof value === 'object') {
+        compareOriginalCopy(value, current?.[key], name);
+      }
+    }
+  }
+  compareOriginalCopy(before, after);
+  if (originalCopyDifferences.length) changes.push({ p, kind: 'Original wording outside the authorized English form-copy edits changed', keys: originalCopyDifferences });
+  else proof.push({ file: p, check: locale === 'en' ? 'Original wording preserved except exact English form edits listed in scripts/fixtures/english-form-copy.json' : 'All original Chinese dictionary wording unchanged', unchanged: true });
+  for (const section of ['refund', 'terms', 'privacy_content', 'cookie_content']) {
+    if (JSON.stringify(before[section]) !== JSON.stringify(after[section])) changes.push({ p, kind: 'Policy commitments changed', section });
+    else proof.push({ file: p, check: section + ' unchanged', unchanged: true });
+  }
+}
+const allowedPresentationChanges=['Product display clone only; raw API response unchanged','Login return URL keeps locale; authentication conditions unchanged','Translated fallback for password error','Translated fallback for payment error','Translated session refresh error'];
+fs.writeFileSync(process.env.LOCALIZATION_SCOPE_RECEIPT || 'output/playwright/multilingual-resume/business-scope-check.json',JSON.stringify({baseline,allowedPresentationChanges,englishFormCopyChanges,proof,changes},null,2));
+console.log('Unchanged protected functions/controls/state/effects:',proof.length,'differences requiring review:',changes.length);
+if(changes.length) process.exitCode=1;
+console.log(changes.map(c=>[c.p,c.name||c.kind,c.missing||''].join(': ')).join('\n'));

+ 337 - 0
scripts/fixtures/english-form-copy.json

@@ -0,0 +1,337 @@
+{
+  "edits": [
+    {
+      "source": "base",
+      "key": "auth.login_btn",
+      "before": "Login",
+      "after": "Log in",
+      "forms": [
+        "AuthForm"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "auth.auto_register",
+      "before": "Quick Start",
+      "after": "Create account",
+      "forms": [
+        "AuthForm"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "auth.auto_reg_desc",
+      "before": "No password required. The system will create a secure account for you. Please bind email later to prevent data loss.",
+      "after": "No password required. The system will create a secure account for you. Add your email later to prevent data loss.",
+      "forms": [
+        "AuthForm"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "auth.auto_reg_btn_action",
+      "before": "Get Started Now",
+      "after": "Create account",
+      "forms": [
+        "AuthForm"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "forgot_password.step1_desc",
+      "before": "Enter your registered email address, and we will send you a verification code to reset your password.",
+      "after": "Enter your registered email address to receive a verification code and reset your password.",
+      "forms": [
+        "ForgotPasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "forgot_password.new_password_placeholder",
+      "before": "Set new password",
+      "after": "Enter your new password",
+      "forms": [
+        "ForgotPasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "forgot_password.enter_email_alert",
+      "before": "Please enter email",
+      "after": "Enter your email address.",
+      "forms": [
+        "ForgotPasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "forgot_password.enter_code_alert",
+      "before": "Please enter code",
+      "after": "Enter your verification code.",
+      "forms": [
+        "ForgotPasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "forgot_password.enter_password_alert",
+      "before": "Please enter new password",
+      "after": "Enter your new password.",
+      "forms": [
+        "ForgotPasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "forgot_password.reset_success",
+      "before": "Password reset successfully! Please login with new password.",
+      "after": "Password reset successfully. Log in with your new password.",
+      "forms": [
+        "ForgotPasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "bind_email.title_step1",
+      "before": "Bind Email",
+      "after": "Add email",
+      "forms": [
+        "BindEmailModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "bind_email.desc_step1",
+      "before": "To ensure account security and receive order notifications, please bind your email address.",
+      "after": "Add your email address for account security and order notifications.",
+      "forms": [
+        "BindEmailModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "bind_email.resend_suffix",
+      "before": "s resend",
+      "after": "s to resend",
+      "forms": [
+        "BindEmailModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "bind_email.confirm_btn",
+      "before": "Confirm Bind",
+      "after": "Verify",
+      "forms": [
+        "BindEmailModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "bind_email.alert_input_email",
+      "before": "Please enter email",
+      "after": "Enter your email address.",
+      "forms": [
+        "BindEmailModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "bind_email.alert_input_code",
+      "before": "Please enter code",
+      "after": "Enter your verification code.",
+      "forms": [
+        "BindEmailModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "bind_email.alert_code_length",
+      "before": "Please enter 6-digit code",
+      "after": "Enter the 6-digit code.",
+      "forms": [
+        "BindEmailModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "bind_email.success",
+      "before": "Email bound successfully!",
+      "after": "Email added to your account.",
+      "forms": [
+        "BindEmailModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "bind_email.failed",
+      "before": "Bind failed",
+      "after": "Could not add email",
+      "forms": [
+        "BindEmailModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "settings.get_code",
+      "before": "Get Code",
+      "after": "Send code",
+      "forms": [
+        "dashboard/ChangePasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "settings.new_password_placeholder",
+      "before": "Enter new password",
+      "after": "Enter your new password",
+      "forms": [
+        "dashboard/ChangePasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "settings.confirm_password_placeholder",
+      "before": "Confirm new password",
+      "after": "Re-enter your new password",
+      "forms": [
+        "dashboard/ChangePasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "settings.enter_code",
+      "before": "Please enter verification code",
+      "after": "Enter your verification code.",
+      "forms": [
+        "dashboard/ChangePasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "settings.enter_password",
+      "before": "Please enter new password",
+      "after": "Enter your new password.",
+      "forms": [
+        "dashboard/ChangePasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "settings.password_changed_success",
+      "before": "Password changed successfully! Please login again.",
+      "after": "Password changed successfully. Log in again.",
+      "forms": [
+        "dashboard/ChangePasswordModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "profile.email_readonly_label",
+      "before": "Bound Email (Read-only)",
+      "after": "Email (read-only)",
+      "forms": [
+        "dashboard/ProfileSettings"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "profile.nickname_placeholder_form",
+      "before": "Set your display name...",
+      "after": "Enter your display name",
+      "forms": [
+        "dashboard/ProfileSettings"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "ticket.inquiry_type",
+      "before": "Inquiry & Appeal Type",
+      "after": "Request type",
+      "forms": [
+        "dashboard/TicketModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "ticket.desc_placeholder",
+      "before": "Please describe your issue in detail...",
+      "after": "Describe your issue in detail.",
+      "forms": [
+        "dashboard/TicketModal"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "order.no_extra_info_needed",
+      "before": "No extra information needed, please proceed.",
+      "after": "No extra information is needed. You can proceed.",
+      "forms": [
+        "CreateOrderForm"
+      ]
+    },
+    {
+      "source": "base",
+      "key": "order.confirm_submit_msg",
+      "before": "Please verify your information. It cannot be easily changed after submission.",
+      "after": "Check your information. It is difficult to change after submission.",
+      "forms": [
+        "CreateOrderForm"
+      ]
+    },
+    {
+      "source": "catalog",
+      "key": "Birthday",
+      "before": "Birthday",
+      "after": "Date of birth",
+      "forms": [
+        "CreateOrderForm"
+      ]
+    },
+    {
+      "source": "catalog",
+      "key": "Birthday in YYYY-MM-DD format",
+      "before": "Birthday in YYYY-MM-DD format",
+      "after": "Date of birth in YYYY-MM-DD format",
+      "forms": [
+        "CreateOrderForm"
+      ]
+    },
+    {
+      "source": "catalog",
+      "key": "Cover Letter Id",
+      "before": "Cover Letter Id",
+      "after": "Cover letter ID",
+      "forms": [
+        "CreateOrderForm"
+      ]
+    },
+    {
+      "source": "catalog",
+      "key": "Application form reference number, you need to fill out the application form online form first.",
+      "before": "Application form reference number, you need to fill out the application form online form first.",
+      "after": "Application form reference number. Complete the online application form first.",
+      "forms": [
+        "CreateOrderForm"
+      ]
+    },
+    {
+      "source": "catalog",
+      "key": "Visa Reason",
+      "before": "Visa Reason",
+      "after": "Reason for applying",
+      "forms": [
+        "CreateOrderForm"
+      ]
+    },
+    {
+      "source": "catalog",
+      "key": "Apply greece visa reason",
+      "before": "Apply greece visa reason",
+      "after": "Reason for applying for a Greek visa",
+      "forms": [
+        "CreateOrderForm"
+      ]
+    }
+  ]
+}

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
scripts/fixtures/public-products.json


+ 321 - 0
scripts/fixtures/schema-13.json

@@ -0,0 +1,321 @@
+{
+  "code": 0,
+  "message": "success",
+  "data": {
+    "name": "vfs_required_info",
+    "description": "VFS 抢号需要信息",
+    "schema_json": {
+      "type": "object",
+      "title": "Visa Applicant Basic Info",
+      "$schema": "http://json-schema.org/draft-07/schema#",
+      "required": [
+        "last_name",
+        "first_name",
+        "birthday",
+        "email",
+        "phone_country_code",
+        "phone",
+        "nationality",
+        "passport_no",
+        "gender",
+        "passport_expiry_date",
+        "expected_start_date",
+        "expected_end_date"
+      ],
+      "properties": {
+        "email": {
+          "type": "string",
+          "title": "Email",
+          "format": "email",
+          "x-order": 10,
+          "maxLength": 255
+        },
+        "phone": {
+          "type": "string",
+          "title": "Phone Number",
+          "pattern": "^0[0-9]{6,15}$",
+          "x-order": 9,
+          "description": "Phone number starting with 0"
+        },
+        "gender": {
+          "enum": [
+            "male",
+            "female",
+            "other"
+          ],
+          "type": "string",
+          "title": "Gender",
+          "x-order": 4,
+          "description": "Gender of the user"
+        },
+        "birthday": {
+          "type": "string",
+          "title": "Birthday",
+          "format": "date",
+          "x-order": 3,
+          "description": "Birthday in YYYY-MM-DD format"
+        },
+        "last_name": {
+          "type": "string",
+          "title": "Last Name",
+          "pattern": "^[A-Za-z\\-\\s]+$",
+          "x-order": 2,
+          "maxLength": 50,
+          "minLength": 1,
+          "description": "Surname (Latin letters only, no Chinese characters)"
+        },
+        "first_name": {
+          "type": "string",
+          "title": "First Name",
+          "pattern": "^[A-Za-z\\-\\s]+$",
+          "x-order": 1,
+          "maxLength": 50,
+          "minLength": 1,
+          "description": "Given name (Latin letters only, no Chinese characters)"
+        },
+        "nationality": {
+          "enum": [
+            "Afghanistan",
+            "Albania",
+            "Algeria",
+            "Andorra",
+            "Angola",
+            "Antigua And Barbuda",
+            "Argentina",
+            "Armenia",
+            "Australia",
+            "Austria",
+            "Azerbaijan",
+            "Bahamas",
+            "Bahrain",
+            "Bangladesh",
+            "Barbados",
+            "Belarus",
+            "Belgium",
+            "Belize",
+            "Benin",
+            "Bhutan",
+            "Bolivia",
+            "Bosnia And Herzegovina",
+            "Botswana",
+            "Brazil",
+            "Brunei",
+            "Bulgaria",
+            "Burkina faso",
+            "Burundi",
+            "Cabo verde",
+            "Cambodia",
+            "Cameroon",
+            "Canada",
+            "Central African Republic",
+            "Chad",
+            "Chile",
+            "China",
+            "Colombia",
+            "Comoros",
+            "Congo (Brazzaville)",
+            "Congo (Kinshasa)",
+            "Costa Rica",
+            "Croatia",
+            "Cuba",
+            "Cyprus",
+            "Czech Republic",
+            "Denmark",
+            "Djibouti",
+            "Dominica",
+            "Dominican Republic",
+            "Ecuador",
+            "Egypt",
+            "El Salvador",
+            "Equatorial Guinea",
+            "Eritrea",
+            "Estonia",
+            "Eswatini",
+            "Ethiopia",
+            "Fiji",
+            "Finland",
+            "France",
+            "Gabon",
+            "Gambia",
+            "Georgia",
+            "Germany",
+            "Ghana",
+            "Greece",
+            "Grenada",
+            "Guatemala",
+            "Guinea",
+            "Guinea-Bissau",
+            "Guyana",
+            "Haiti",
+            "Honduras",
+            "Hungary",
+            "Iceland",
+            "India",
+            "Indonesia",
+            "Iran",
+            "Iraq",
+            "Ireland",
+            "Israel",
+            "Italy",
+            "Jamaica",
+            "Japan",
+            "Jordan",
+            "Kazakhstan",
+            "Kenya",
+            "Kiribati",
+            "Korea, north",
+            "Korea, south",
+            "Kuwait",
+            "Kyrgyzstan",
+            "Laos",
+            "Latvia",
+            "Lebanon",
+            "Lesotho",
+            "Liberia",
+            "Libya",
+            "Liechtenstein",
+            "Lithuania",
+            "Luxembourg",
+            "Madagascar",
+            "Malawi",
+            "Malaysia",
+            "Maldives",
+            "Mali",
+            "Malta",
+            "Marshall islands",
+            "Mauritania",
+            "Mauritius",
+            "Mexico",
+            "Micronesia",
+            "Moldova",
+            "Monaco",
+            "Mongolia",
+            "Montenegro",
+            "Morocco",
+            "Mozambique",
+            "Myanmar",
+            "Namibia",
+            "Nauru",
+            "Nepal",
+            "Netherlands",
+            "New zealand",
+            "Nicaragua",
+            "Niger",
+            "Nigeria",
+            "North macedonia",
+            "Norway",
+            "Oman",
+            "Pakistan",
+            "Palau",
+            "Panama",
+            "Papua new guinea",
+            "Paraguay",
+            "Peru",
+            "Philippines",
+            "Poland",
+            "Portugal",
+            "Patar",
+            "Romania",
+            "Russia",
+            "Rwanda",
+            "Saudi arabia",
+            "Senegal",
+            "Serbia",
+            "Seychelles",
+            "Sierra leone",
+            "Singapore",
+            "Slovakia",
+            "Slovenia",
+            "Solomon islands",
+            "Somalia",
+            "South africa",
+            "Spain",
+            "Sri lanka",
+            "Sudan",
+            "Suriname",
+            "Sweden",
+            "Switzerland",
+            "Syria",
+            "Tajikistan",
+            "Tanzania",
+            "Thailand",
+            "Timor-leste",
+            "Togo",
+            "Tonga",
+            "Tunisia",
+            "Turkey",
+            "Turkmenistan",
+            "Uganda",
+            "Ukraine",
+            "United arab emirates",
+            "United kingdom",
+            "United states",
+            "Uruguay",
+            "Uzbekistan",
+            "Vanuatu",
+            "Venezuela",
+            "Vietnam",
+            "Yemen",
+            "Zambia",
+            "Zimbabwe"
+          ],
+          "type": "string",
+          "title": "Nationality",
+          "x-order": 5,
+          "description": "Nationality must be one of the predefined country names (lowercase)"
+        },
+        "passport_no": {
+          "type": "string",
+          "title": "Passport Number",
+          "pattern": "^[A-Z0-9]+$",
+          "x-order": 6,
+          "maxLength": 20,
+          "minLength": 5,
+          "description": "Passport number (alphanumeric, uppercase)"
+        },
+        "expected_end_date": {
+          "type": "string",
+          "title": "Preferred End Date",
+          "format": "date",
+          "x-order": 13,
+          "description": "Latest preferred date. Note: If no slots are available in this range, we will automatically book the next available slot."
+        },
+        "phone_country_code": {
+          "type": "string",
+          "title": "Phone Country Code",
+          "pattern": "^[0-9]{1,4}$",
+          "x-order": 8,
+          "description": "Country code without +, e.g. 86"
+        },
+        "expected_start_date": {
+          "type": "string",
+          "title": "Preferred Start Date",
+          "format": "date",
+          "x-order": 12,
+          "description": "Earliest date you can attend the appointment."
+        },
+        "passport_expiry_date": {
+          "type": "string",
+          "title": "Passport Expiry Date",
+          "format": "date",
+          "x-order": 7,
+          "examples": [
+            "2031-08-15"
+          ],
+          "description": "Passport expiration date (YYYY-MM-DD)"
+        },
+        "social_media_account": {
+          "type": "string",
+          "title": "Social Media Account",
+          "x-order": 14,
+          "maxLength": 100,
+          "description": "Optional: Social media username or ID (e.g. WeChat ID, Telegram handle)"
+        }
+      },
+      "additionalProperties": false
+    },
+    "id": 13,
+    "created_at": "2026-05-18T15:39:51",
+    "updated_at": "2026-05-18T15:39:51"
+  }
+}

+ 142 - 0
scripts/fixtures/schema-14.json

@@ -0,0 +1,142 @@
+{
+  "code": 0,
+  "message": "success",
+  "data": {
+    "name": "greece_visa",
+    "description": "希腊抢号信息表格",
+    "schema_json": {
+      "type": "object",
+      "title": "Greek Embassy Visa Config",
+      "$schema": "http://json-schema.org/draft-07/schema#",
+      "required": [
+        "username",
+        "password",
+        "first_name",
+        "last_name",
+        "phone_country_code",
+        "phone",
+        "email",
+        "nationality",
+        "passport_no",
+        "address"
+      ],
+      "properties": {
+        "email": {
+          "type": "string",
+          "title": "Email",
+          "format": "email",
+          "x-order": 10,
+          "maxLength": 255
+        },
+        "phone": {
+          "type": "string",
+          "title": "Phone Number",
+          "pattern": "^0[0-9]{6,15}$",
+          "x-order": 9,
+          "description": "Phone number starting with 0"
+        },
+        "address": {
+          "type": "string",
+          "title": "Address",
+          "default": "Dublin, Ireland",
+          "x-order": 7
+        },
+        "password": {
+          "type": "string",
+          "title": "Account Password",
+          "format": "password",
+          "x-order": 2,
+          "description": "Password for the registered account."
+        },
+        "username": {
+          "type": "string",
+          "title": "Account Username",
+          "x-order": 1,
+          "description": "Please register an account first at: https://www.supersaas.com/schedule/GreekEmbassyInDublin/Visas"
+        },
+        "last_name": {
+          "type": "string",
+          "title": "Last Name",
+          "pattern": "^[A-Za-z\\-\\s]+$",
+          "x-order": 4,
+          "maxLength": 50,
+          "minLength": 1,
+          "description": "Surname (Latin letters only, no Chinese characters)"
+        },
+        "first_name": {
+          "type": "string",
+          "title": "First Name",
+          "pattern": "^[A-Za-z\\-\\s]+$",
+          "x-order": 3,
+          "maxLength": 50,
+          "minLength": 1,
+          "description": "Given name (Latin letters only, no Chinese characters)"
+        },
+        "nationality": {
+          "type": "string",
+          "title": "Nationality",
+          "default": "Chinese",
+          "x-order": 5,
+          "description": "Nationality"
+        },
+        "passport_no": {
+          "type": "string",
+          "title": "Passport Number",
+          "x-order": 6
+        },
+        "visa_reason": {
+          "enum": [
+            "tourism",
+            "business",
+            "family visit"
+          ],
+          "type": "string",
+          "title": "Visa Reason",
+          "default": "tourism",
+          "x-order": 11,
+          "description": "Apply greece visa reason"
+        },
+        "arrival_date": {
+          "type": "string",
+          "title": "Expected Arrival Date",
+          "format": "date",
+          "x-order": 12,
+          "description": "Date of entry to Greece."
+        },
+        "expected_end_date": {
+          "type": "string",
+          "title": "Preferred End Date",
+          "format": "date",
+          "x-order": 14,
+          "description": "Optional: Latest preferred date. Note: If no slots are available in this range, we will automatically book the next available slot."
+        },
+        "phone_country_code": {
+          "type": "string",
+          "title": "Phone Country Code",
+          "default": "353",
+          "pattern": "^[0-9]{1,4}$",
+          "x-order": 8,
+          "description": "Country code without +, e.g. 353"
+        },
+        "expected_start_date": {
+          "type": "string",
+          "title": "Preferred Start Date",
+          "format": "date",
+          "x-order": 13,
+          "description": "Optional: Earliest date you can attend the appointment."
+        },
+        "social_media_account": {
+          "type": "string",
+          "title": "Social Media Account",
+          "x-order": 15,
+          "maxLength": 100,
+          "description": "Optional: Social media username or ID (e.g. WeChat ID, Telegram handle)"
+        }
+      },
+      "additionalProperties": false
+    },
+    "id": 14,
+    "created_at": "2026-05-18T15:40:43",
+    "updated_at": "2026-05-18T15:40:43"
+  }
+}

+ 329 - 0
scripts/fixtures/schema-15.json

@@ -0,0 +1,329 @@
+{
+  "code": 0,
+  "message": "success",
+  "data": {
+    "name": "vfs_for_denmark",
+    "description": "VFS 丹麦签证表格",
+    "schema_json": {
+      "type": "object",
+      "title": "Visa Applicant Basic Info",
+      "$schema": "http://json-schema.org/draft-07/schema#",
+      "required": [
+        "last_name",
+        "first_name",
+        "birthday",
+        "email",
+        "phone_country_code",
+        "phone",
+        "nationality",
+        "passport_no",
+        "gender",
+        "cover_letter_id",
+        "passport_expiry_date",
+        "expected_start_date",
+        "expected_end_date"
+      ],
+      "properties": {
+        "email": {
+          "type": "string",
+          "title": "Email",
+          "format": "email",
+          "x-order": 10,
+          "maxLength": 255
+        },
+        "phone": {
+          "type": "string",
+          "title": "Phone Number",
+          "pattern": "^0[0-9]{6,15}$",
+          "x-order": 9,
+          "description": "Phone number starting with 0"
+        },
+        "gender": {
+          "enum": [
+            "male",
+            "female",
+            "other"
+          ],
+          "type": "string",
+          "title": "Gender",
+          "x-order": 4,
+          "description": "Gender of the user"
+        },
+        "birthday": {
+          "type": "string",
+          "title": "Birthday",
+          "format": "date",
+          "x-order": 3,
+          "description": "Birthday in YYYY-MM-DD format"
+        },
+        "last_name": {
+          "type": "string",
+          "title": "Last Name",
+          "pattern": "^[A-Za-z\\-\\s]+$",
+          "x-order": 2,
+          "maxLength": 50,
+          "minLength": 1,
+          "description": "Surname (Latin letters only, no Chinese characters)"
+        },
+        "first_name": {
+          "type": "string",
+          "title": "First Name",
+          "pattern": "^[A-Za-z\\-\\s]+$",
+          "x-order": 1,
+          "maxLength": 50,
+          "minLength": 1,
+          "description": "Given name (Latin letters only, no Chinese characters)"
+        },
+        "nationality": {
+          "enum": [
+            "Afghanistan",
+            "Albania",
+            "Algeria",
+            "Andorra",
+            "Angola",
+            "Antigua And Barbuda",
+            "Argentina",
+            "Armenia",
+            "Australia",
+            "Austria",
+            "Azerbaijan",
+            "Bahamas",
+            "Bahrain",
+            "Bangladesh",
+            "Barbados",
+            "Belarus",
+            "Belgium",
+            "Belize",
+            "Benin",
+            "Bhutan",
+            "Bolivia",
+            "Bosnia And Herzegovina",
+            "Botswana",
+            "Brazil",
+            "Brunei",
+            "Bulgaria",
+            "Burkina faso",
+            "Burundi",
+            "Cabo verde",
+            "Cambodia",
+            "Cameroon",
+            "Canada",
+            "Central African Republic",
+            "Chad",
+            "Chile",
+            "China",
+            "Colombia",
+            "Comoros",
+            "Congo (Brazzaville)",
+            "Congo (Kinshasa)",
+            "Costa Rica",
+            "Croatia",
+            "Cuba",
+            "Cyprus",
+            "Czech Republic",
+            "Denmark",
+            "Djibouti",
+            "Dominica",
+            "Dominican Republic",
+            "Ecuador",
+            "Egypt",
+            "El Salvador",
+            "Equatorial Guinea",
+            "Eritrea",
+            "Estonia",
+            "Eswatini",
+            "Ethiopia",
+            "Fiji",
+            "Finland",
+            "France",
+            "Gabon",
+            "Gambia",
+            "Georgia",
+            "Germany",
+            "Ghana",
+            "Greece",
+            "Grenada",
+            "Guatemala",
+            "Guinea",
+            "Guinea-Bissau",
+            "Guyana",
+            "Haiti",
+            "Honduras",
+            "Hungary",
+            "Iceland",
+            "India",
+            "Indonesia",
+            "Iran",
+            "Iraq",
+            "Ireland",
+            "Israel",
+            "Italy",
+            "Jamaica",
+            "Japan",
+            "Jordan",
+            "Kazakhstan",
+            "Kenya",
+            "Kiribati",
+            "Korea, north",
+            "Korea, south",
+            "Kuwait",
+            "Kyrgyzstan",
+            "Laos",
+            "Latvia",
+            "Lebanon",
+            "Lesotho",
+            "Liberia",
+            "Libya",
+            "Liechtenstein",
+            "Lithuania",
+            "Luxembourg",
+            "Madagascar",
+            "Malawi",
+            "Malaysia",
+            "Maldives",
+            "Mali",
+            "Malta",
+            "Marshall islands",
+            "Mauritania",
+            "Mauritius",
+            "Mexico",
+            "Micronesia",
+            "Moldova",
+            "Monaco",
+            "Mongolia",
+            "Montenegro",
+            "Morocco",
+            "Mozambique",
+            "Myanmar",
+            "Namibia",
+            "Nauru",
+            "Nepal",
+            "Netherlands",
+            "New zealand",
+            "Nicaragua",
+            "Niger",
+            "Nigeria",
+            "North macedonia",
+            "Norway",
+            "Oman",
+            "Pakistan",
+            "Palau",
+            "Panama",
+            "Papua new guinea",
+            "Paraguay",
+            "Peru",
+            "Philippines",
+            "Poland",
+            "Portugal",
+            "Patar",
+            "Romania",
+            "Russia",
+            "Rwanda",
+            "Saudi arabia",
+            "Senegal",
+            "Serbia",
+            "Seychelles",
+            "Sierra leone",
+            "Singapore",
+            "Slovakia",
+            "Slovenia",
+            "Solomon islands",
+            "Somalia",
+            "South africa",
+            "Spain",
+            "Sri lanka",
+            "Sudan",
+            "Suriname",
+            "Sweden",
+            "Switzerland",
+            "Syria",
+            "Tajikistan",
+            "Tanzania",
+            "Thailand",
+            "Timor-leste",
+            "Togo",
+            "Tonga",
+            "Tunisia",
+            "Turkey",
+            "Turkmenistan",
+            "Uganda",
+            "Ukraine",
+            "United arab emirates",
+            "United kingdom",
+            "United states",
+            "Uruguay",
+            "Uzbekistan",
+            "Vanuatu",
+            "Venezuela",
+            "Vietnam",
+            "Yemen",
+            "Zambia",
+            "Zimbabwe"
+          ],
+          "type": "string",
+          "title": "Nationality",
+          "x-order": 5,
+          "description": "Nationality must be one of the predefined country names (lowercase)"
+        },
+        "passport_no": {
+          "type": "string",
+          "title": "Passport Number",
+          "pattern": "^[A-Z0-9]+$",
+          "x-order": 6,
+          "maxLength": 20,
+          "minLength": 5,
+          "description": "Passport number (alphanumeric, uppercase)"
+        },
+        "cover_letter_id": {
+          "type": "string",
+          "title": "Cover Letter Id",
+          "x-order": 11,
+          "maxLength": 255,
+          "description": "Application form reference number, you need to fill out the application form online form first."
+        },
+        "expected_end_date": {
+          "type": "string",
+          "title": "Preferred End Date",
+          "format": "date",
+          "x-order": 13,
+          "description": "Latest preferred date. Note: If no slots are available in this range, we will automatically book the next available slot."
+        },
+        "phone_country_code": {
+          "type": "string",
+          "title": "Phone Country Code",
+          "pattern": "^[0-9]{1,4}$",
+          "x-order": 8,
+          "description": "Country code without +, e.g. 86"
+        },
+        "expected_start_date": {
+          "type": "string",
+          "title": "Preferred Start Date",
+          "format": "date",
+          "x-order": 12,
+          "description": "Earliest date you can attend the appointment."
+        },
+        "passport_expiry_date": {
+          "type": "string",
+          "title": "Passport Expiry Date",
+          "format": "date",
+          "x-order": 7,
+          "examples": [
+            "2031-08-15"
+          ],
+          "description": "Passport expiration date (YYYY-MM-DD)"
+        },
+        "social_media_account": {
+          "type": "string",
+          "title": "Social Media Account",
+          "x-order": 14,
+          "maxLength": 100,
+          "description": "Optional: Social media username or ID (e.g. WeChat ID, Telegram handle)"
+        }
+      },
+      "additionalProperties": false
+    },
+    "id": 15,
+    "created_at": "2026-05-18T15:42:14",
+    "updated_at": "2026-05-18T15:42:14"
+  }
+}

+ 117 - 0
seo_opt/BLUEPRINT.md

@@ -0,0 +1,117 @@
+# STRATA blog: compact SEO_OPT adaptation
+
+Status: approved local implementation of three destination guides plus seven-language visitor/user presentation, 2026-10-10; no push or deployment authority. Target: `text.skin`, Gogs `jerry/web-ui`, Next.js 14.1.0. This document is a workflow specification, not evidence that publication, approval, indexing, or growth has happened.
+
+## Scope and durable assets
+
+The approved locales are English, German, French, Spanish, Italian, Portuguese and Simplified Chinese. Keyword and service-scope research is complete for this first decision. The user approved three English appointment guides for Ireland residents: Netherlands first, Greece and Denmark. No-slots checks and document preparation remain sections within each guide. The user subsequently approved full translations of the same three guides and their blog/navigation UI into German, French, Spanish, Italian, Portuguese and Chinese: 21 articles and seven indexes. Extra topics remain future work. The old Italy drafts are preserved only in `docs/editorial/archive/italy-provisional-2026-10-08.json`, excluded from all routes and metadata. The report supporting this scope distinguishes Ireland Google Ads estimates, a Dublin SERP snapshot, missing data and population background; none proves traffic, conversion, or ranking outcomes.
+
+Use the article collection as the content inventory; `approved-inventory.json` is only the exact release allowlist for the approved IDs/locales/slugs, not a second task backlog. Keep this one blueprint, production content, code/tests, and normal Git/review receipts. Do not add a second backlog, daily report directories, raw response archives, per-article rule files, a scheduler, or an agent framework. Only the frontend display, same-page language routing, localized navigation and search markers necessary for visitor/user localization are included. Backend, booking automation, eligibility, account/authentication rules, order/payment/refund rules and credential handling are excluded; administrator pages retain their existing scope. No push, deployment, external publication, or Google submission is authorized by this plan.
+
+## Provenance: actual previous design, not a generic replacement
+
+Read-only sources checked against `zhangweijp/soulname-v2` at `c4f3f7c` on 2026-10-08:
+
+| Source | Adopt / adapt / do not reuse |
+| --- | --- |
+| [seo_opt/SKILL.md](https://github.com/zhangweijp/soulname-v2/blob/c4f3f7c/seo_opt/SKILL.md), blob `3bf67384309b58ebda09e590ba2e083221d970bb` | Adopt preflight, scoped permission checks, useful complete drafts, same-version review and separate outcomes. Adapt the entry checklist to this repository. Do not reuse SoulName's naming columns, quotas, dates or scheduling authority. |
+| [seo_opt/policy.json](https://github.com/zhangweijp/soulname-v2/blob/c4f3f7c/seo_opt/policy.json), blob `04a61c5cc55e0f7e10d36063311bc998d3558d4f` | Adopt explicit boundaries and no automatic publication. Do not copy its domain, project/property IDs, seven-country filters, budget authority, automation ID or runtime settings. |
+| [seo_opt/OPERATIONS.md](https://github.com/zhangweijp/soulname-v2/blob/c4f3f7c/seo_opt/OPERATIONS.md), blob `df75f85d0bfb0e031b2a4668ac680ecc0b84de4c` | Adopt evidence → diagnosis → bounded action → verification → measured learning, unknown-write reconciliation, minimal records and separate live/submitted/indexed facts. Adapt to a manual, local draft workflow with no runtime ledger. |
+| [seo_opt/CONTENT.md](https://github.com/zhangweijp/soulname-v2/blob/c4f3f7c/seo_opt/CONTENT.md), blob `db6817be494b05d240655c0266e1e391070b41df` | Adopt native-language intent, honest title, reader benefit, complete same-version reading and source attribution. Replace naming research with current consular primary sources and jurisdiction-specific boundaries. |
+
+The local reference checkout was `soulname-404-i18n-3c313c6/seo_opt/`; its dirty working tree was not treated as proof of current main. Both `seo/BLUEPRINT.md` and `seo_opt/BLUEPRINT.md` returned 404 at the checked GitHub ref. The four current documents above are the verified design reference; no historical blueprint content is invented. No SoulName `state.json`, active run, runtime or automation is copied or executed.
+
+Tool roles carry over as a design only: OpenSEO = search intelligence; DispatchSEO = editorial/queue state; Git = versioned implementation and authorized publication. Their connection to `text.skin` has not been established. Existing source reads and repository files suffice for the current draft. A future integration needs a verified target project, permissions and a successful scoped read; “connected” alone does not prove data access. No tool installation or paid research is implied.
+
+## Discovery gate: evidence before a content backlog
+
+The latest data-first direction supersedes the earlier proposal of three Italy topics multiplied into 18 pages. Start with keyword discovery following the user's requested 哥飞 approach, grounded in actual primary-source guidance researched separately; do not attribute an invented checklist to him. Confirm service origin/destination coverage first. Then gather native-language seed queries, related questions and actual SERP examples for the confirmed services. Record source/tool, geography, language, date, visible metrics and limitations. Distinguish measured search demand from plausible reader needs, keyword suggestions and official factual evidence.
+
+Compare demand, intent, competition and fit to the real product before choosing topics. Keep missing volume/difficulty/market coverage explicitly unknown; a connected tool or an official visa page does not prove keyword opportunity. Deduplicate intent, identify what a genuinely useful page adds, and present a small ranked recommendation with evidence and uncertainties for approval. Only after that decision should the existing article inventory become an approved content backlog and full drafts/localizations resume. Do not run new tools, buy data, or expand permissions merely because a workflow mentions them. The root task owns current discovery; this checkpoint creates no research executor or new ledger.
+
+## Preflight and working loop
+
+Before each change: identify the repository/branch and current diff, actual article version, owner of each file, existing same-intent articles and unfinished reviews, current environment/domain, and authorized action. Preserve others' work. Check unknown external outcomes before retrying; do not recreate a task to bypass an unresolved write. State a concrete completion condition. Independent authorized work can continue around a blocker, but additional topics remain outside the approved three-guide scope; the six requested translations require factual and structural review before local eligibility.
+
+| Step | What / why / how | Smallest evidence or output |
+| --- | --- | --- |
+| Observe | Confirm actual service scope, then inspect keyword/SERP evidence and existing inventory before committing topics; official sources verify facts, not search demand. Use scoped analytics only if actually available. | Article ID, locale, question, source URLs, read date and coverage/unknowns. |
+| Validate | Check source authority, jurisdiction, date and whether each claim follows from the source. Recheck expired or changed requirements. | Supported claims and unresolved claims; never convert an unread source, empty result or error into proof. |
+| Diagnose | Identify the specific content/technical gap. Distinguish eligibility, booking scarcity, missing documents, and site defects. | Reproduction or reader gap; no claimed traffic decline without comparable data. |
+| Decide | Prioritize blockers and already-started useful work. Deduplicate same intent; keep a topic within a useful guide unless separate intent warrants another page. | Continue, revise, defer or stop, with a short reason. |
+| Plan | Fix scope, files, exact article version, checks, review responsibility and rollback before editing. | Review description tied to the current diff; no parallel plan file. |
+| Execute | Write complete native-language prose and implement the approved local changes. Keep source-supported steps usable without a product CTA. | Current full article and related implementation diff. |
+| Verify | Read the entire current article, verify claims and title payoff, then run mechanical and rendered-page checks. Review a changed version again. | Editorial judgment with concrete passages plus actual command/exit-code and browser results; mark unrun checks. |
+| Measure | Only after an authorized release: verify actual live version, then separately observe search and business outcomes. | Same-scope evidence or blocked/inconclusive status, never invented zeroes. |
+| Learn | Fix the current defect first; add only a reusable preventative rule/test at its earliest cause. | One concise rationale in the normal review/Git history; replay is not proof of future effectiveness. |
+| Clean | Remove only owned temporary materials; retain production content, necessary citations, pending blockers and normal review receipts. | Compact completion note: delivered, verified, blocked, next decision. |
+
+## Content gate for the approved first cohort
+
+Each intent family shares a stable article ID across locales. The article collection is the sole inventory; `published` is a production renderer inclusion flag, not user approval or a real-world publication receipt. Reviewed records receive `published:true` solely for local release-candidate verification; the approved multilingual inventory is 21 records once all translations pass review. On 2026-10-10 the user explicitly authorized enabling indexing and committing/pushing the development branch. The tracked `.env.production` now sets `BLOG_INDEXING_ENABLED=true`; default development previews keep indexing off. This authorization does not establish deployment or Search Console submission. Local review mode deliberately exposes draft routes with noindex; noindex is not access control and the review build must not be publicly deployed. `reviewedAt` is a genuine review date, not a claim that all sources were updated that day. Do not bump it without rechecking the content.
+
+The approved guides must solve three distinct reader tasks:
+
+1. Netherlands: find the official VFS Dublin route, prepare the application, and understand availability checks. Prominently preserve NetherlandsWorldwide’s advice to book personally and avoid intermediaries; do not imply official approval of an automatic-booking service.
+2. Greece: select the correct Embassy-linked category, understand the verified calendar workflow and obtain appointment confirmation. Do not substitute a third-party search result for the Embassy’s linked route.
+3. Denmark: choose the right destination, tourist category and Ireland submission route, keeping application registration separate from appointment booking. Do not transplant business-visa or another country’s procedure.
+
+The official booking CTA is article-specific. Source current facts, explain no availability and preparation within each guide, and do not manufacture separate thin pages. Related-country links need a reader reason; an empty related list is acceptable.
+
+For every locale: formulate the actual reader question in that language, compare two honest title options during review, choose one whose promises the article delivers, and review the full native-language version. Translation presence is not proof of language quality. Unverified query volume remains unverified; do not manufacture keywords or call English-first copy native research. Read the opening, practical steps and conclusion as a first-time reader. A bibliography, word count, headings and a passing build cannot replace this review.
+
+Keep official source URLs beside the claims they support and in `sources`; re-open them before final editorial approval and before any later release. Distinguish current rules from interpretation and product statements. If a consequential source is unavailable or contradictory, narrow the claim or block it; do not silently infer an answer. Product facts supplied by the owner are not evidence that a consulate authorizes that service.
+
+STRATA's described product can book on a user's behalf. Do not rewrite it as notifications-only to sidestep the issue. Each destination’s actual official guidance must be represented accurately, including the Netherlands recommendation to book personally and avoid intermediaries. Do not generalize old Italy-only requirements across countries. Clearly identify STRATA as an independent third party, without embassy affiliation, guaranteed appointments, guaranteed visas, or implied permission/compliance. The user must resolve any product/official-rule conflict before promotional claims about that use are approved. Educational guides can still give complete official self-service guidance. No misleading workaround instructions.
+
+## Implementation map and ordered handoff
+
+| Owner / step | Existing implementation targets | Acceptance |
+| --- | --- | --- |
+| Discovery owner, then content author after approval | `src/content/blog/articles.json`, contract `src/lib/blog/types.ts` | The current allowlist is three Netherlands/Greece/Denmark guides in seven reviewed languages (21 records). Archived Italy examples never enter the active collection. Approved records need shared IDs where genuinely equivalent, unique locale/slug pairs, real sources, accurate review dates and valid related IDs. |
+| Blog implementation: load only intended records and render routes | `src/lib/blog/data.ts`, `src/components/blog/{BlogShell,BlogViews}.tsx`; `src/app/(blog-en)/blogs/`; `src/app/(blog-localized)/[locale]/blogs/`; blog components | `/blogs` and `/{de,fr,es,it,pt}/blogs`, with article detail routes. Unknown locale/slug must not render an article. With indexing enabled, drafts must be excluded from routes, navigation, alternatives and sitemap. With indexing disabled, draft routes are intentionally reviewable. |
+| Blog implementation: localized presentation | `src/lib/blog/translations.ts`, route layouts and components | Correct `html lang`, complete UI copy and article text in each locale; links preserve intended language. No missing translation keys, raw namespace keys or accidental app locale coupling. |
+| Blog implementation: metadata and crawl policy | `src/lib/blog/metadata.ts`, `src/app/sitemap.ts`, `src/app/robots.ts` | One canonical per page, reciprocal actual translations, consistent JSON-LD, safe default indexing gate, accurate sitemap. |
+| Reviewer: same-version review and technical verification | Current complete content + rendered build + normal test receipts | Editorial verdict and technical results separately recorded against the exact diff/commit or hashes. Later edits invalidate affected review. |
+| Release owner: future authorized delivery only | Normal Git/release process | Explicit current-version approval and publication authority, then verified deployment and live rendered URLs. Not part of this draft delivery. |
+
+The code owner owns implementation and test commands; this document does not claim they have passed. Do not start another content copy or parallel implementation. Resolve review corrections in the existing articles/code.
+
+## Mechanical gate recipe
+
+Run from the target checkout, capture actual results in the normal review, and rerun affected checks after corrections:
+
+- Inventory/schema checks: only the seven allowed locales; coverage exactly matches the approved inventory; stable unique slugs; nonempty bodies/descriptions; valid dates, HTTPS source URLs, and related IDs; language selector targets exist. Completeness checks are structural, not an editorial verdict.
+- `npm run lint`, `npx tsc --noEmit`, and `npm run build`, and `node scripts/check-blog.mjs` for content and SEO fixtures. A pre-existing failure is reported with scope; never label an unrun or failed stage passed.
+- Default development preview or explicitly disabled build with `BLOG_INDEXING_ENABLED` absent/false: blog editorial previews and newly localized public pages are `noindex`, sitemap empty, and robots permits crawling so crawlers can see `noindex`. The public homepage has its own `index, follow` metadata; the blog gate must not suppress it. Draft blog routes are intentionally exposed in this local review mode. Noindex is not confidentiality or access control; do not deploy this preview publicly.
+- Production indexing is authorized as of 2026-10-10 and explicitly configured in the tracked `.env.production`. A normal production build loads `BLOG_INDEXING_ENABLED=true`, exposes only published blog records and produces exactly 84 public sitemap URLs. An explicitly supplied `BLOG_INDEXING_ENABLED=false` still overrides this file for isolated preview builds. Private user/admin routes remain noindex and outside the sitemap. Preserve the actual production API configuration; the isolated `http://127.0.0.1:9` build must never be deployed. Pushing this branch does not deploy the website or submit a sitemap to Google.
+- Google Search/localization scope clarified after the 2026-10-09 homepage-only checkpoint: the user approved seven-language display, equivalent-page switching, navigation and search markers for visitor/user pages, with business rules preserved. English public/user URLs remain unprefixed; six other locales have actual corresponding routes. Eight public page types × seven languages plus the unchanged 28 blog URLs produce 84 sitemap entries in an isolated indexing-enabled build. The earlier 29-URL/single-homepage checkpoint is historical. Login, dashboard/settings, order and payment pages stay noindex in both modes; administrator translations are excluded. Page-owned metadata prevents canonical leakage. No Search Console verification token or submission has been established.
+- Use `node scripts/check-blog.mjs` in-memory published fixtures to test release mechanics without changing real rendering eligibility flags. Build both the production-enabled configuration and an explicitly disabled isolated preview to verify drafts are excluded from production routes, navigation, alternatives and sitemap. Run `BLOG_INDEXING_ENABLED=true node scripts/check-blog.mjs --release` for the approved complete current records; it checks the exact approved inventory. Current article `published:true` values establish rendering eligibility only; neither those flags nor a passing local gate authorize deployment. The release check and production build must pass, and the prospective canonical URLs and 84-URL sitemap must be inspected. Changing an environment variable without rebuilding does not update generated metadata. Indexing enablement was separately authorized on 2026-10-10; local tests and Git push do not confirm live publication.
+- Inspect rendered HTTP headers and HTML for every locale index and article. Canonical origin is exactly `https://text.skin`; no tunnel, localhost, copied SoulName domain or tracking query. HTML and HTTP `Link` alternatives must not contradict or duplicate one another. Inspect a query-bearing URL too. No pagination is introduced in this foundation; if added later, define its own canonical/translation mapping instead of assuming page-number equivalence.
+- `hreflang` advertises only actual matching article editions, with self and reciprocal links; `x-default` uses the actual English target. For the indexing-enabled test, every target is a canonical sitemap member and returns the matching locale/content. No nonexistent “translation” is generated by pathname substitution.
+- Check title, description, `html lang`, canonical, Open Graph URL, Article/Breadcrumb JSON-LD and visible source/review labels against the same article record. Unknown routes return real not-found behavior. Test direct loads and locale switching; inspect desktop and narrow-screen readability, focus/links, source navigation and repeated navigation without calling a screenshot-only review comprehensive.
+
+Regression lessons from SoulName are prevention targets, not a claim that this site already has those faults: automatic HTTP hreflang can conflict with per-page HTML alternatives; query-bearing archive pages cannot blindly inherit root canonicals or translation assumptions; drafts need explicit exclusion/noindex controls; route rendering can fail when required translation namespaces are omitted. Relevant prior code/reference paths include `src/proxy.ts`, `src/tests/i18n/public-metadata.test.ts`, `src/i18n/messages.ts` and `src/tests/i18n/messages.test.ts` in SoulName. Keep equivalent checks in this project's existing validation instead of transplanting its middleware, namespaces, tests or framework version.
+
+## Release and outcome gates remain separate
+
+Use the normal review/release record for each status and its evidence; do not add a runtime state file merely to represent these concepts:
+
+1. Editorial review: current complete locale text read, source claims and native phrasing checked. An author's self-review is not an independent review.
+2. User approval: explicit approval of the identified current version and requested action. A content review is not deployment authority.
+3. Technical verification: actual tests/build/render results for that version; failures and untested conditions remain visible.
+4. Published/live: after separate authorization, the intended version is confirmed on the real production URL. A local build, repository push or deployment success alone is insufficient.
+5. Submitted: only after authorization, an actual Search Console submission receipt. No submission exists in this phase.
+6. Indexed: actual URL Inspection indexing result and selected canonical agree with the intended page. HTTP 200, a sitemap, Live Test and `site:` search do not prove this. Pending, rejected and unknown stay separate.
+7. Search outcome: comparable final GSC windows with exact page, country, device and search type; calculate CTR from clicks/impressions. Ireland residence is the initial reader context, not automatic proof of a search country or language market. Record the real filter and timezone. No baseline means a new-page observation, not a fabricated zero-history improvement.
+8. Commercial outcome: actual attributable product results, if legitimately available, separate from clicks or rankings. No causal lift or visa/appointment success guarantee follows from SEO checks.
+
+For a future experiment, fix baseline and observation windows, minimum useful sample and guardrails before release. Do not shorten the window after seeing results. Empty, failed, not-yet-final, low-sample and unmeasured are different states. If no analytics integration exists, say measurement is blocked; the current local deliverable can still be reviewed. No automatic scheduling is established by this document.
+
+## Visitor/user localization boundary (2026-10-10)
+
+The latest user approval permits the frontend changes necessary for seven-language presentation, same-page language switching, same-language navigation and search markers. It followed an explicit scope discussion after the temporary copy-only restriction. Preserve the accepted copy and the green article-bottom service section. Netherlands/Greece/Denmark buttons target the read-only verified enabled catalogue IDs 35/34/36; an enabled service is not evidence of available appointments.
+
+Treat API-owned IDs, prices, currencies, country/city/type values, schemas, enum values, defaults and submitted data as immutable. Language must never set nationality or determine visa eligibility. In particular, the Greek schema's existing free-text nationality default `Chinese` remains unchanged; do not alter it to satisfy a mistaken QA assumption. Service/schema translations are display labels and descriptions. Locale prefixes may change login destinations, but not authentication conditions, API requests, sessions, orders or payment handling. Administrator source and shared administrator presentation remain outside the seven-language rollout.
+
+Verification uses actual HTML/headers/DOM and Chromium interactions. Public catalogue/schema snapshots are read-only evidence; account/order/ticket/invoice fixtures verify UI only. Every fixture API request is intercepted, payment links are reserved `.invalid` URLs, and no login, account creation, email, order, payment confirmation or refund is performed against a real service. `scripts/check-localization-scope.mjs` compares protected handlers/state/control values and administrative/API modules with the handoff baseline; `scripts/check-i18n.mjs` validates active copy, counterpart routes and immutable catalogue values. Browser, HTTP, build and lint receipts must identify their exact scope and failures. Preserve the default indexing configuration and project environment after QA. No production release or paid query is authorized.

+ 0 - 0
src/app/admin/accounts/page.tsx → src/app/(app)/admin/accounts/page.tsx


+ 0 - 0
src/app/admin/agent/page.tsx → src/app/(app)/admin/agent/page.tsx


+ 0 - 0
src/app/admin/configurations/page.tsx → src/app/(app)/admin/configurations/page.tsx


+ 0 - 0
src/app/admin/layout.tsx → src/app/(app)/admin/layout.tsx


+ 0 - 0
src/app/admin/node-configurations/page.tsx → src/app/(app)/admin/node-configurations/page.tsx


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


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


+ 0 - 0
src/app/admin/page.tsx → src/app/(app)/admin/page.tsx


+ 0 - 0
src/app/admin/payments/page.tsx → src/app/(app)/admin/payments/page.tsx


+ 0 - 0
src/app/admin/plugins/page.tsx → src/app/(app)/admin/plugins/page.tsx


+ 0 - 0
src/app/admin/products/page.tsx → src/app/(app)/admin/products/page.tsx


+ 0 - 0
src/app/admin/proxies/page.tsx → src/app/(app)/admin/proxies/page.tsx


+ 0 - 0
src/app/admin/settlement/page.tsx → src/app/(app)/admin/settlement/page.tsx


+ 0 - 0
src/app/admin/tasks/page.tsx → src/app/(app)/admin/tasks/page.tsx


+ 0 - 0
src/app/admin/tickets/page.tsx → src/app/(app)/admin/tickets/page.tsx


+ 0 - 0
src/app/admin/users/page.tsx → src/app/(app)/admin/users/page.tsx


+ 6 - 0
src/app/(app)/contact/page.tsx

@@ -0,0 +1,6 @@
+import View from '@/components/pages/ContactPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/contact'); }
+export default function Page() { return <View />; }

+ 6 - 0
src/app/(app)/cookie-policy/page.tsx

@@ -0,0 +1,6 @@
+import View from '@/components/pages/CookiePolicyPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/cookie-policy'); }
+export default function Page() { return <View />; }

+ 7 - 0
src/app/(app)/create-order/[id]/page.tsx

@@ -0,0 +1,7 @@
+import View from '@/components/pages/CreateOrderPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+type Props = { params: { id: string } };
+export function generateMetadata({ params }: Props) { return appMetadata(requestLocale(), `/create-order/${params.id}`); }
+export default function Page({ params }: Props) { return <View params={params} />; }

+ 6 - 0
src/app/(app)/dashboard/page.tsx

@@ -0,0 +1,6 @@
+import View from '@/components/pages/DashboardPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/dashboard'); }
+export default function Page() { return <View />; }

+ 6 - 0
src/app/(app)/dashboard/settings/page.tsx

@@ -0,0 +1,6 @@
+import View from '@/components/pages/SettingsPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/dashboard/settings'); }
+export default function Page() { return <View />; }

+ 16 - 6
src/app/layout.tsx → src/app/(app)/layout.tsx

@@ -1,18 +1,28 @@
-import './globals.css';
+import '../globals.css';
+import { visibleArticles } from '@/lib/blog/data';
 import Navbar from '@/components/Navbar';
 import Footer from '@/components/Footer';
 import { Toaster } from 'react-hot-toast'; 
 import { LanguageProvider } from '@/lib/i18n/LanguageContext';
 import RetroConfirmDialog from '@/components/common/RetroConfirmDialog';
+import { headers } from 'next/headers';
+import { requestLocale } from '@/lib/i18n/request';
+import { getMessages } from '@/lib/i18n/dictionaries';
+import { formattingLocale } from '@/lib/i18n/config';
+import { isAdminPath } from '@/lib/i18n/routes';
 
 export default function RootLayout({ children }: { children: React.ReactNode }) {
+  const locale = requestLocale();
+  const admin = isAdminPath(headers().get('x-strata-path') || '/');
+  const messages = admin ? undefined : getMessages(locale);
   return (
-    <html lang="zh-CN">
+    <html lang={formattingLocale(locale)}>
       <body className="bg-slate-50 min-h-screen flex flex-col font-sans">
-        <LanguageProvider>
-          <Navbar />
+        <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>}
+          <Navbar showBlog={visibleArticles('en').length > 0} />
           
-          <main className="flex-grow">
+          <main id="main-content" tabIndex={-1} className={admin ? 'flex-grow' : 'flex-grow min-w-0 [overflow-wrap:anywhere] hyphens-auto'}>
             {children}
           </main>
           
@@ -44,4 +54,4 @@ export default function RootLayout({ children }: { children: React.ReactNode })
       </body>
     </html>
   );
-}
+}

+ 6 - 0
src/app/(app)/login/page.tsx

@@ -0,0 +1,6 @@
+import View from '@/components/pages/LoginPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/login'); }
+export default function Page() { return <View />; }

+ 6 - 0
src/app/(app)/page.tsx

@@ -0,0 +1,6 @@
+import HomePage from '@/components/home/HomePage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/'); }
+export default function Home() { return <HomePage />; }

+ 7 - 0
src/app/(app)/payment/[id]/page.tsx

@@ -0,0 +1,7 @@
+import View from '@/components/pages/PaymentPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+type Props = { params: { id: string } };
+export function generateMetadata({ params }: Props) { return appMetadata(requestLocale(), `/payment/${params.id}`); }
+export default function Page({ params }: Props) { return <View params={params} />; }

+ 6 - 0
src/app/(app)/payment/confirm/page.tsx

@@ -0,0 +1,6 @@
+import View from '@/components/pages/PaymentConfirmPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/payment/confirm'); }
+export default function Page() { return <View />; }

+ 6 - 0
src/app/(app)/privacy/page.tsx

@@ -0,0 +1,6 @@
+import View from '@/components/pages/PrivacyPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/privacy'); }
+export default function Page() { return <View />; }

+ 6 - 0
src/app/(app)/refund-policy/page.tsx

@@ -0,0 +1,6 @@
+import View from '@/components/pages/RefundPolicyPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/refund-policy'); }
+export default function Page() { return <View />; }

+ 6 - 0
src/app/(app)/services/page.tsx

@@ -0,0 +1,6 @@
+import View from '@/components/pages/ServicesPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/services'); }
+export default function Page() { return <View />; }

+ 6 - 0
src/app/(app)/slots/page.tsx

@@ -0,0 +1,6 @@
+import View from '@/components/pages/SlotsPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/slots'); }
+export default function Page() { return <View />; }

+ 6 - 0
src/app/(app)/terms/page.tsx

@@ -0,0 +1,6 @@
+import View from '@/components/pages/TermsPage';
+import { appMetadata } from '@/lib/i18n/public-metadata';
+import { requestLocale } from '@/lib/i18n/request';
+
+export function generateMetadata() { return appMetadata(requestLocale(), '/terms'); }
+export default function Page() { return <View />; }

+ 16 - 0
src/app/(blog-en)/blogs/[slug]/page.tsx

@@ -0,0 +1,16 @@
+import { notFound } from 'next/navigation';
+import { BlogArticleView } from '@/components/blog/BlogViews';
+import { getArticle, visibleArticles } from '@/lib/blog/data';
+import { blogMetadata } from '@/lib/blog/metadata';
+export const dynamicParams = false;
+export function generateStaticParams() { return visibleArticles('en').map(a => ({ slug: a.slug })); }
+export function generateMetadata({ params }: { params: { slug: string } }) {
+  const article = getArticle('en', params.slug);
+  if (!article) notFound();
+  return blogMetadata('en', article);
+}
+export default function Page({ params }: { params: { slug: string } }) {
+  const article = getArticle('en', params.slug);
+  if (!article) notFound();
+  return <BlogArticleView article={article} />;
+}

+ 6 - 0
src/app/(blog-en)/blogs/layout.tsx

@@ -0,0 +1,6 @@
+import '../../globals.css';
+import '@/components/blog/blog.css';
+import { BlogShell } from '@/components/blog/BlogShell';
+export default function BlogLayout({ children }: { children: React.ReactNode }) {
+  return <html lang="en"><body className="blog-body"><BlogShell locale="en">{children}</BlogShell></body></html>;
+}

+ 9 - 0
src/app/(blog-en)/blogs/page.tsx

@@ -0,0 +1,9 @@
+import { notFound } from 'next/navigation';
+import { BlogIndex } from '@/components/blog/BlogViews';
+import { visibleArticles } from '@/lib/blog/data';
+import { blogMetadata } from '@/lib/blog/metadata';
+export const metadata = blogMetadata('en');
+export default function Page() {
+  if (!visibleArticles('en').length) notFound();
+  return <BlogIndex locale="en" />;
+}

+ 16 - 0
src/app/(blog-localized)/[locale]/blogs/[slug]/page.tsx

@@ -0,0 +1,16 @@
+import { notFound } from 'next/navigation';
+import { BlogArticleView } from '@/components/blog/BlogViews';
+import { getArticle, isLocale, visibleArticles } from '@/lib/blog/data';
+import { blogMetadata } from '@/lib/blog/metadata';
+export const dynamicParams = false;
+export function generateStaticParams({ params }: { params: { locale: string } }) {
+  return isLocale(params.locale) ? visibleArticles(params.locale).map(a => ({ slug: a.slug })) : [];
+}
+function resolve(params: { locale: string; slug: string }) {
+  if (!isLocale(params.locale) || params.locale === 'en') notFound();
+  const article = getArticle(params.locale, params.slug);
+  if (!article) notFound();
+  return article;
+}
+export function generateMetadata({ params }: { params: { locale: string; slug: string } }) { const article = resolve(params); return blogMetadata(article.locale, article); }
+export default function Page({ params }: { params: { locale: string; slug: string } }) { return <BlogArticleView article={resolve(params)} />; }

+ 12 - 0
src/app/(blog-localized)/[locale]/blogs/page.tsx

@@ -0,0 +1,12 @@
+import { notFound } from 'next/navigation';
+import { BlogIndex } from '@/components/blog/BlogViews';
+import { isLocale, visibleArticles } from '@/lib/blog/data';
+import { blogMetadata } from '@/lib/blog/metadata';
+export function generateMetadata({ params }: { params: { locale: string } }) {
+  if (!isLocale(params.locale) || params.locale === 'en') notFound();
+  return blogMetadata(params.locale);
+}
+export default function Page({ params }: { params: { locale: string } }) {
+  if (!isLocale(params.locale) || params.locale === 'en' || !visibleArticles(params.locale).length) notFound();
+  return <BlogIndex locale={params.locale} />;
+}

+ 11 - 0
src/app/(blog-localized)/[locale]/layout.tsx

@@ -0,0 +1,11 @@
+import '../../globals.css';
+import '@/components/blog/blog.css';
+import { notFound } from 'next/navigation';
+import { BlogShell } from '@/components/blog/BlogShell';
+import { visibleLocales, isLocale } from '@/lib/blog/data';
+export const dynamicParams = false;
+export function generateStaticParams() { return visibleLocales().filter(locale => locale !== 'en').map(locale => ({ locale })); }
+export default function BlogLayout({ children, params }: { children: React.ReactNode; params: { locale: string } }) {
+  if (!isLocale(params.locale) || params.locale === 'en') notFound();
+  return <html lang={params.locale}><body className="blog-body"><BlogShell locale={params.locale}>{children}</BlogShell></body></html>;
+}

+ 7 - 0
src/app/robots.ts

@@ -0,0 +1,7 @@
+import type { MetadataRoute } from 'next';
+import { absoluteUrl } from '@/lib/blog/data';
+export default function robots(): MetadataRoute.Robots {
+  // Private pages remain crawlable so their X-Robots-Tag noindex headers can be read.
+  // robots.txt is not access control; application authentication remains unchanged.
+  return { rules: { userAgent: '*', allow: '/', disallow: '/api/' }, sitemap: absoluteUrl('/sitemap.xml') };
+}

+ 14 - 0
src/app/sitemap.ts

@@ -0,0 +1,14 @@
+import type { MetadataRoute } from 'next';
+import { absoluteUrl, articlePath, availableLocales, blogPath, indexingEnabled, publishedArticles } from '@/lib/blog/data';
+import { appLocales } from '@/lib/i18n/config';
+import { localizedPath, publicAppPaths } from '@/lib/i18n/routes';
+export default function sitemap(): MetadataRoute.Sitemap {
+  // Keep the review sitemap empty. The release cohort contains all public app
+  // translations plus the reviewed blog inventory; never private user routes.
+  if (!indexingEnabled) return [];
+  return [
+    ...appLocales.flatMap(locale => publicAppPaths.map(path => ({ url: absoluteUrl(localizedPath(path, locale)) }))),
+    ...availableLocales().map(locale => ({ url: absoluteUrl(blogPath(locale)) })),
+    ...publishedArticles().map(article => ({ url: absoluteUrl(articlePath(article)), lastModified: article.reviewedAt })),
+  ];
+}

+ 8 - 8
src/components/AuthForm.tsx

@@ -1,7 +1,7 @@
 'use client';
 
 import { useState } from 'react';
-import { useRouter } from 'next/navigation';
+import { useRouter } from '@/lib/i18n/navigation';
 import ForgotPasswordModal from '@/components/ForgotPasswordModal';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
 import { Zap, KeyRound, ShieldAlert, ArrowRight, UserCheck } from 'lucide-react';
@@ -89,11 +89,11 @@ export default function AuthForm() {
         <div className="flex items-center gap-2">
           <span className="w-2.5 h-2.5 bg-amber-300 border border-black inline-block" />
           <h2 className="font-black text-black text-xs md:text-sm uppercase tracking-wider">
-            {isLoginMode ? '[ SYSTEM AUTH // 登录控制台 ]' : '[ QUICK REGISTER // 自动注册接入 ]'}
+            {isLoginMode ? t('auth.welcome_back') : t('auth.auto_register')}
           </h2>
         </div>
         <span className="px-1.5 py-0.2 border border-black text-[10px] font-black uppercase bg-white text-black">
-          {isLoginMode ? 'LOGIN' : 'GUEST'}
+          {isLoginMode ? t('auth.login_btn') : t('auth.auto_register')}
         </span>
       </div>
 
@@ -124,10 +124,10 @@ export default function AuthForm() {
         {isLoginMode ? (
           <>
             <div className="space-y-1">
-              <label className="block font-bold uppercase text-black">
+              <label htmlFor="authform-field-1" className="block font-bold uppercase text-black">
                 {t('auth.email_label')}
               </label>
-              <input
+              <input id="authform-field-1"
                 type="email"
                 required
                 className="w-full px-3 py-2 border-2 border-black bg-neutral-50 focus:bg-white text-xs font-mono text-black outline-none shadow-[2px_2px_0px_#000] placeholder:text-neutral-400"
@@ -139,7 +139,7 @@ export default function AuthForm() {
 
             <div className="space-y-1">
               <div className="flex justify-between items-center">
-                <label className="block font-bold uppercase text-black">
+                <label htmlFor="authform-field-2" className="block font-bold uppercase text-black">
                   {t('auth.password_label')}
                 </label>
                 <button 
@@ -150,7 +150,7 @@ export default function AuthForm() {
                   [ {t('auth.forgot_password')} ]
                 </button>
               </div>
-              <input
+              <input id="authform-field-2"
                 type="password"
                 required
                 className="w-full px-3 py-2 border-2 border-black bg-neutral-50 focus:bg-white text-xs font-mono text-black outline-none shadow-[2px_2px_0px_#000] placeholder:text-neutral-400"
@@ -191,7 +191,7 @@ export default function AuthForm() {
 
       {/* Footer Info */}
       <div className="px-6 py-3 bg-neutral-200 border-t-2 border-black text-center text-[10px] text-neutral-600 font-bold uppercase">
-        <span>SECURITY LEVEL: 256-BIT ENCRYPTION // INDUSTRIAL OPS</span>
+        <span>{t('settings.security_tip_title')}</span>
       </div>
 
       <ForgotPasswordModal 

+ 26 - 26
src/components/BindEmailModal.tsx

@@ -15,12 +15,12 @@ interface BindEmailModalProps {
 export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmailModalProps) {
   const { t } = useLanguage();
 
-  const [step, setStep] = useState<1 | 2>(1); 
+  const [step, setStep] = useState<1 | 2>(1);
   const [loading, setLoading] = useState(false);
-  
+
   const [email, setEmail] = useState('');
   const [code, setCode] = useState('');
-  
+
   const [countdown, setCountdown] = useState(0);
 
   // 消息弹窗状态
@@ -67,14 +67,14 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
     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');
-    
+
     setLoading(true);
     try {
       await authService.sendBindCode(email);
-      
+
       showMessage(`${t('bind_email.alert_code_sent') || '验证码已发送至'} ${email}`, 'success');
       setStep(2);
-      setCountdown(60); 
+      setCountdown(60);
     } catch (error: any) {
       console.error(error);
       const msg = error.response?.data?.message || t('common.unknown_error');
@@ -107,9 +107,9 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
         }
 
         window.dispatchEvent(new Event('storage'));
-        
+
         showMessage(t('bind_email.success') || '邮箱绑定成功!', 'success', () => {
-          onSuccess(); 
+          onSuccess();
           onClose();
         });
       } else {
@@ -130,15 +130,15 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
   return (
     <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-grayscale p-4 animate-in fade-in duration-200">
       <div className="bg-neutral-50 border-2 border-black shadow-[8px_8px_0px_#000] w-full max-w-md overflow-hidden font-mono">
-        
+
         {/* Header */}
         <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">
             <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>
           </div>
-          <button 
-            onClick={onClose} 
+          <button aria-label={t('common.close')}
+            onClick={onClose}
             className="w-6 h-6 bg-white hover:bg-amber-300 border border-black flex items-center justify-center font-bold text-xs transition"
           >
             ✕
@@ -158,9 +158,9 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
                 {t('bind_email.desc_step1') || '首次提交申请需绑定联系人邮箱,用于接收官方预约确认函、使馆补件通知及进度更新。'}
               </p>
               <div className="space-y-1">
-                <label className="block text-xs font-mono font-bold uppercase text-black">{t('bind_email.email_label') || '电子邮箱地址'}</label>
-                <input
-                  type="email" 
+                <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"
+                  type="email"
                   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"
                   placeholder={t('bind_email.email_placeholder') || 'yourname@domain.com'}
@@ -168,8 +168,8 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
                   onChange={(e) => setEmail(e.target.value)}
                 />
               </div>
-              <button 
-                type="submit" 
+              <button
+                type="submit"
                 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"
               >
@@ -181,12 +181,12 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
               <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>
               </p>
-              
+
               <div className="space-y-1">
-                <label 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') || '6位数字验证码'}</label>
                 <div className="flex gap-2.5">
-                  <input
-                    type="text" 
+                  <input id="bindemailmodal-field-2"
+                    type="text"
                     required
                     className="flex-1 border-2 border-black bg-neutral-50 p-3 text-sm font-mono text-center tracking-[0.25em] font-bold outline-none shadow-[2px_2px_0px_#000]"
                     placeholder="------"
@@ -197,7 +197,7 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
                   <button
                     type="button"
                     disabled={countdown > 0 || loading}
-                    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"
                   >
                     {countdown > 0 ? `${countdown}${t('bind_email.resend_suffix') || 's'}` : (t('bind_email.resend_btn') || '重新发送')}
@@ -206,15 +206,15 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
               </div>
 
               <div className="flex gap-2.5 pt-2">
-                <button 
+                <button
                   type="button"
-                  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"
                 >
                   <ArrowLeft size={14} /> [ {t('bind_email.change_email_btn') || '修改邮箱'} ]
                 </button>
-                <button 
-                  type="submit" 
+                <button
+                  type="submit"
                   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"
                 >
@@ -227,7 +227,7 @@ export default function BindEmailModal({ isOpen, onClose, onSuccess }: BindEmail
       </div>
 
       {/* 消息弹窗 */}
-      <MessageModal 
+      <MessageModal
         isOpen={msgModal.isOpen}
         title={msgModal.title}
         message={msgModal.message}

+ 34 - 24
src/components/CreateOrderForm.tsx

@@ -1,7 +1,8 @@
 'use client';
 
 import { useState, useEffect } from 'react';
-import { useRouter, useSearchParams } from 'next/navigation';
+import { useSearchParams } from 'next/navigation';
+import { useRouter } from '@/lib/i18n/navigation';
 import { 
   Loader2, 
   Info, 
@@ -17,22 +18,24 @@ import {
 } from 'lucide-react'; 
 import BindEmailModal from '@/components/BindEmailModal';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
+import { formattingLocale } from '@/lib/i18n/config';
 import ConfirmModal from '@/components/common/ConfirmModal';
 import MessageModal from '@/components/common/MessageModal';
 import { ProductDetail, SchemaProperty, JsonSchema } from '@/types';
 import { productService, authService, orderService } from '@/lib/services';
 import ProductTutorialBanner from '@/components/common/ProductTutorialBanner';
+import { displayProduct, countryLabel } from '@/lib/i18n/catalog';
 
 // ==========================================
 // 辅助函数与常量 (原有字段美化逻辑保持不变)
 // ==========================================
 
 const getFieldLabel = (key: string, prop: SchemaProperty, t: any): string => {
-  return prop.title || key;
+  return t(prop.title || key);
 };
 
 const getFieldPlaceholder = (key: string, prop: SchemaProperty, t: any): string => {
-  if (prop.description) return prop.description;
+  if (prop.description) return t(prop.description);
   return `${t('common.enter')} ${getFieldLabel(key, prop, t)}`;
 };
 
@@ -52,7 +55,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
   const slotCountry = searchParams?.get('slot_country') || '';
   const slotCity = searchParams?.get('slot_city') || '';
   const slotVisaType = searchParams?.get('slot_visa_type') || '';
-  const { t } = useLanguage();
+  const { t, lang } = useLanguage();
 
   const promoLabel = t('footer.refund_policy');
   const promoSubtext = t('services.guarantee_text');
@@ -99,7 +102,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
         // 1. 获取商品详情
         const prodRes = await productService.getDetail(parseInt(productId));
         const prodData = prodRes?.data || prodRes;
-        setProduct(prodData);
+        setProduct(displayProduct(prodData, t));
 
         // 2. 获取动态表单定义
         if (prodData?.schema_id) {
@@ -273,7 +276,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
              setSubmitting(false);
            }
         } else {
-           showMessage("Session refresh failed");
+           showMessage(t('会话刷新失败'));
            setSubmitting(false);
         }
       } else {
@@ -323,8 +326,8 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
   // --- Render Fields ---
   const renderField = (key: string, fieldSchema: SchemaProperty, required: boolean = false) => {
     const commonClasses = "w-full p-3 border-2 border-black text-xs sm:text-sm font-sans bg-neutral-50 focus:bg-white focus:shadow-[3px_3px_0px_#000] outline-none transition text-black";
-    const label = fieldSchema.title || key;
-    const placeholderText = fieldSchema.description || `${t('common.enter')} ${label}`;
+    const label = getFieldLabel(key, fieldSchema, t);
+    const placeholderText = getFieldPlaceholder(key, fieldSchema, t);
     const currentValue = formValues[key];
 
     // Boolean
@@ -346,6 +349,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
               id={`field-${key}`}
               type="checkbox"
               className="hidden"
+              aria-label={label}
               checked={isChecked}
               onChange={(e) => handleInputChange(key, e.target.checked)}
             />
@@ -362,6 +366,8 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
       return (
         <div className="relative font-mono">
           <select
+            id={`field-${key}`}
+            aria-describedby={fieldSchema.description ? `field-${key}-help` : undefined}
             key={key}
             required={required}
             className={`${commonClasses} appearance-none cursor-pointer pr-8 shadow-[2px_2px_0px_#000]`}
@@ -370,7 +376,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
           >
             <option value="" disabled>{t('common.select')} {label}</option>
             {fieldSchema.enum.map((option: string | number) => (
-              <option key={option} value={option}>{option}</option>
+              <option key={option} value={option}>{typeof option === 'string' ? key === 'nationality' ? countryLabel(option, lang) : t(option) : option}</option>
             ))}
           </select>
           <div className="absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-black font-bold">
@@ -386,6 +392,8 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
       return (
         <div className="relative w-full font-mono" key={key}>
           <input
+            id={`field-${key}`}
+            aria-describedby={fieldSchema.description ? `field-${key}-help` : undefined}
             type={realType}
             required={required}
             className={`${commonClasses} shadow-[2px_2px_0px_#000]`}
@@ -403,6 +411,8 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
 
     return (
       <input
+        id={`field-${key}`}
+        aria-describedby={fieldSchema.description ? `field-${key}-help` : undefined}
         key={key}
         type={inputType}
         required={required}
@@ -439,7 +449,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
     return (
       <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" />
-        <p className="text-xs font-bold uppercase tracking-wider">[ LOADING DOSSIER DATA... ]</p>
+        <p className="text-xs font-bold uppercase tracking-wider">[ {t('正在加载档案数据…')} ]</p>
       </div>
     );
   }
@@ -447,7 +457,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
   if (!product) {
     return (
       <div className="bg-rose-100 border-2 border-black p-8 text-center font-mono shadow-[6px_6px_0px_#000]">
-        <div className="font-black text-sm text-black uppercase">[ERROR: PRODUCT DOSSIER NOT FOUND]</div>
+        <div className="font-black text-sm text-black uppercase">[ {t('order.product_not_found')} ]</div>
         <p className="text-xs text-neutral-600 mt-2 font-sans">{t('order.product_not_found')}</p>
       </div>
     );
@@ -504,7 +514,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
                 <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">
                   <span className="text-sm">{product.price_currency === 'CNY' ? '¥' : product.price_currency}</span>
-                  <span className="text-3xl tracking-tight">{(product.price_amount / 100).toLocaleString()}</span>
+                  <span className="text-3xl tracking-tight">{(product.price_amount / 100).toLocaleString(formattingLocale(lang))}</span>
                   <span className="text-xs text-neutral-500 font-normal">{t('services.per_order')}</span>
                 </div>
               </div>
@@ -526,17 +536,17 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
                 <div className="flex flex-wrap gap-2">
                   {slotCountry && (
                     <span className="px-2 py-0.5 bg-white border border-black text-xs font-semibold">
-                      {t('order.slot_subscription_country') || 'Country'}: {slotCountry}
+                      {t('order.slot_subscription_country') || 'Country'}: {countryLabel(slotCountry, lang)}
                     </span>
                   )}
                   {slotCity && (
                     <span className="px-2 py-0.5 bg-white border border-black text-xs font-semibold">
-                      {t('order.slot_subscription_city') || 'City'}: {slotCity}
+                      {t('order.slot_subscription_city') || 'City'}: {t(slotCity)}
                     </span>
                   )}
                   {slotVisaType && (
                     <span className="px-2 py-0.5 bg-white border border-black text-xs font-semibold">
-                      {t('order.slot_subscription_visa') || 'Visa'}: {slotVisaType}
+                      {t('order.slot_subscription_visa') || 'Visa'}: {t(slotVisaType)}
                     </span>
                   )}
                 </div>
@@ -563,7 +573,7 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
             <FileText size={18} className="text-black" />
             <span>[ 01 // {t('order.fill_form_title') || "申请人申报资料填报清单"} ]</span>
           </h2>
-          <span className="text-xs text-neutral-500 font-bold">[ SECURE-FORM ]</span>
+          <span className="text-xs text-neutral-500 font-bold">[ {t('安全表单')} ]</span>
         </div>
 
         <form onSubmit={handleSubmit} className="space-y-6">
@@ -583,20 +593,20 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
             <div className="grid grid-cols-1 gap-5">
               {visibleKeys.map((key, idx) => (
                 <div key={key} className="space-y-1.5">
-                  <label className="block text-xs font-mono font-black uppercase text-black flex items-center">
+                  <label htmlFor={`field-${key}`} className="block text-xs font-mono font-black uppercase text-black flex items-center">
                     <span className="mr-1.5 text-neutral-500 font-normal">[{String(idx + 1).padStart(2, '0')}]</span>
-                    {properties[key].title || key}
+                    {getFieldLabel(key, properties[key], t)}
                     {requiredFields.includes(key) && (
-                      <span className="text-rose-600 font-bold ml-1" title="Required">*</span>
+                      <span className="text-rose-600 font-bold ml-1" title={t('必填')}>*</span>
                     )}
                   </label>
                   
                   {renderField(key, properties[key], requiredFields.includes(key))}
                   
                   {properties[key].description && (
-                    <div 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">NOTE:</span>
-                      <span className="leading-relaxed font-sans">{properties[key].description}</span>
+                    <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="leading-relaxed font-sans">{t(properties[key].description)}</span>
                     </div>
                   )}
                 </div>
@@ -614,13 +624,13 @@ export default function CreateOrderForm({ productId, productName }: CreateOrderF
               {submitting ? (
                 <>
                   <Loader2 className="animate-spin w-5 h-5"/>
-                  <span>[ PROCESSING ORDER... ]</span>
+                  <span>[ {t('正在处理订单…')} ]</span>
                 </>
               ) : (
                 <>
                   <span>{t('order.submit_and_pay') || '确认提交并前往支付'}</span>
                   <span className="border-l-2 border-black pl-2 font-mono">
-                    {(product.price_amount / 100).toLocaleString()} {product.price_currency === 'CNY' ? '¥' : product.price_currency}
+                    {(product.price_amount / 100).toLocaleString(formattingLocale(lang))} {product.price_currency === 'CNY' ? '¥' : product.price_currency}
                   </span>
                   <span>→</span>
                 </>

+ 8 - 11
src/components/Footer.tsx

@@ -1,7 +1,7 @@
 'use client';
 
-import Link from 'next/link';
-import { usePathname } from 'next/navigation';
+import Link from '@/components/common/LocalizedLink';
+import { usePathname } from '@/lib/i18n/navigation';
 import { Plane } from 'lucide-react';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
 
@@ -16,21 +16,19 @@ export default function Footer() {
   }
 
   return (
-    <footer className="bg-white border-t-2 border-black py-8 md:py-12 mt-auto font-mono select-none">
+    <footer className="bg-white border-t-2 border-black py-8 md:py-12 mt-auto font-mono select-none [overflow-wrap:anywhere] hyphens-auto">
       <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-8">
         
-        <div className="grid grid-cols-2 md:grid-cols-4 gap-8">
+        <div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-8">
           
           {/* Brand */}
-          <div className="col-span-2 space-y-3">
+          <div className="col-span-1 sm:col-span-2 space-y-3">
             <div className="flex items-center gap-2">
               <div className="w-7 h-7 bg-amber-300 border-2 border-black flex items-center justify-center text-black shadow-[1px_1px_0px_#000]">
                 <Plane className="-rotate-45" size={14} />
               </div>
               <span className="text-lg font-black text-black tracking-tight uppercase">STRATA</span>
-              <span className="text-[10px] bg-neutral-100 border border-black px-1.5 py-0.5 font-bold uppercase text-neutral-600">
-                [ VAS DIRECTORY ]
-              </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>
             <p className="text-xs text-neutral-600 max-w-sm font-sans leading-relaxed">
               {t('footer.description') || 'STRATA 全球签证自动化处理与名额监控系统,为您提供官方保障、极速预约与隐私加密服务。'}
@@ -89,9 +87,8 @@ export default function Footer() {
         {/* Bottom Bar */}
         <div className="border-t-2 border-dashed border-neutral-300 pt-6 flex flex-col md:flex-row justify-between items-center text-xs text-neutral-500 gap-3">
           <p className="text-center md:text-left">
-            &copy; {currentYear} STRATA INC. [ ALL RIGHTS RESERVED // 签证工单管理系统 ]
-          </p>
-          <div className="flex gap-4 text-xs font-bold">
+            &copy; {currentYear} STRATA INC. [ {t('footer.copyright_notice')} ]</p>
+          <div className="flex flex-wrap justify-center gap-4 text-xs font-bold">
             <Link href="/privacy" className="text-neutral-700 hover:text-black hover:underline">[ {t('footer.privacy')} ]</Link>
             <Link href="/cookie-policy" className="text-neutral-700 hover:text-black hover:underline">[ {t('footer.cookie')} ]</Link>
           </div>

+ 8 - 10
src/components/ForgotPasswordModal.tsx

@@ -118,11 +118,9 @@ export default function ForgotPasswordModal({ isOpen, onClose }: ForgotPasswordM
         <div className="px-5 py-3.5 border-b-2 border-black flex justify-between items-center bg-neutral-200 text-black select-none">
           <div className="flex items-center gap-2">
             <span className="w-2.5 h-2.5 bg-amber-300 border border-black inline-block" />
-            <h3 className="font-black text-black text-xs md:text-sm uppercase tracking-wider">
-              [ RESET PASSWORD // 重置认证密钥 ]
-            </h3>
+            <h3 className="font-black text-black text-xs md:text-sm uppercase tracking-wider">[ {t('forgot_password.title')} ]</h3>
           </div>
-          <button
+          <button aria-label={t('common.close')}
             onClick={onClose}
             className="w-6 h-6 bg-white hover:bg-amber-300 border border-black flex items-center justify-center font-bold text-xs transition"
           >
@@ -139,8 +137,8 @@ export default function ForgotPasswordModal({ isOpen, onClose }: ForgotPasswordM
               </div>
 
               <div className="space-y-1">
-                <label className="block font-bold uppercase text-black">{t('forgot_password.email_label')}</label>
-                <input
+                <label htmlFor="forgotpasswordmodal-field-1" className="block font-bold uppercase text-black">{t('forgot_password.email_label')}</label>
+                <input id="forgotpasswordmodal-field-1"
                   type="email"
                   required
                   className="w-full px-3 py-2 border-2 border-black bg-neutral-50 focus:bg-white text-xs font-mono text-black outline-none shadow-[2px_2px_0px_#000]"
@@ -168,9 +166,9 @@ export default function ForgotPasswordModal({ isOpen, onClose }: ForgotPasswordM
               </div>
 
               <div className="space-y-1">
-                <label className="block font-bold uppercase text-black">{t('forgot_password.code_label')}</label>
+                <label htmlFor="forgotpasswordmodal-field-2" className="block font-bold uppercase text-black">{t('forgot_password.code_label')}</label>
                 <div className="flex gap-2">
-                  <input
+                  <input id="forgotpasswordmodal-field-2"
                     type="text"
                     required
                     className="flex-1 border-2 border-black bg-neutral-50 focus:bg-white p-2 text-xs font-mono text-center tracking-[0.2em] font-bold text-black outline-none shadow-[2px_2px_0px_#000]"
@@ -192,7 +190,7 @@ export default function ForgotPasswordModal({ isOpen, onClose }: ForgotPasswordM
 
               <div className="space-y-1">
                 <div className="flex items-center justify-between">
-                  <label className="block font-bold uppercase text-black">{t('forgot_password.new_password_label')}</label>
+                  <label htmlFor="forgotpasswordmodal-field-3" className="block font-bold uppercase text-black">{t('forgot_password.new_password_label')}</label>
                   <button 
                     type="button"
                     onClick={() => setShowPassword(!showPassword)}
@@ -201,7 +199,7 @@ export default function ForgotPasswordModal({ isOpen, onClose }: ForgotPasswordM
                     {showPassword ? (t('common.hide') || 'HIDE') : (t('common.show') || 'SHOW')}
                   </button>
                 </div>
-                <input
+                <input id="forgotpasswordmodal-field-3"
                   type={showPassword ? "text" : "password"}
                   required
                   className="w-full px-3 py-2 border-2 border-black bg-neutral-50 focus:bg-white text-xs font-mono text-black outline-none shadow-[2px_2px_0px_#000]"

+ 51 - 23
src/components/Navbar.tsx

@@ -1,10 +1,11 @@
 'use client';
 
-import Link from 'next/link';
-import { useRouter, usePathname } from 'next/navigation';
-import { useEffect, useState } from 'react';
+import Link from '@/components/common/LocalizedLink';
+import { usePathname } from '@/lib/i18n/navigation';
+import { useEffect, useRef, useState, type ReactNode } from 'react';
 import { 
-  Plane, 
+  Plane,
+  BookOpen,
   ShieldCheck, 
   CalendarSearch, 
   Briefcase, 
@@ -17,15 +18,29 @@ import {
 import { isAdmin, logout } from '@/lib/auth';
 import LanguageSwitcher from '@/components/common/LanguageSwitcher';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
+import { localizedPath, splitLocalePath } from '@/lib/i18n/routes';
 
-export default function Navbar() {
-  const router = useRouter();
+export default function Navbar({ showBlog = false, blogHref = '/blogs', navigationLanguageOnly = false, labels, languageControl }: { showBlog?: boolean; blogHref?: string; navigationLanguageOnly?: boolean; labels?: Record<string, string>; languageControl?: ReactNode }) {
   const pathname = usePathname();
-  const { t } = useLanguage();
+  const { t: appTranslate, lang } = useLanguage();
+  const t = (key: string) => labels?.[key] ?? appTranslate(key);
   
   const [isLogged, setIsLogged] = useState(false);
   const [showAdmin, setShowAdmin] = useState(false);
   const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
+  const menuButton = useRef<HTMLButtonElement>(null);
+
+  useEffect(() => {
+    if (!isMobileMenuOpen) return;
+    const closeOnEscape = (event: KeyboardEvent) => {
+      if (event.key === 'Escape') {
+        setIsMobileMenuOpen(false);
+        menuButton.current?.focus();
+      }
+    };
+    window.addEventListener('keydown', closeOnEscape);
+    return () => window.removeEventListener('keydown', closeOnEscape);
+  }, [isMobileMenuOpen]);
 
   useEffect(() => {
     const checkStatus = () => {
@@ -53,6 +68,10 @@ export default function Navbar() {
     setIsMobileMenuOpen(false);
   };
 
+  const currentBlogHref = localizedPath(blogHref, lang);
+  const normalizedBlogHref = splitLocalePath(currentBlogHref).path;
+  const isBlogActive = pathname === normalizedBlogHref || pathname?.startsWith(`${normalizedBlogHref}/`);
+  const languageTitle = navigationLanguageOnly ? 'Switch navigation language (article language stays unchanged)' : undefined;
   const isServicesActive = pathname === '/services';
   const isSlotsActive = pathname === '/slots';
   const isDashboardActive = pathname === '/dashboard';
@@ -63,9 +82,10 @@ export default function Navbar() {
         <div className="flex justify-between items-center h-16 relative z-50 bg-white">
           
           {/* Logo 铭牌 */}
-          <div 
-            className="flex items-center gap-2 cursor-pointer group" 
-            onClick={() => router.push('/')}
+          <Link
+            href="/"
+            aria-label={labels?.home ?? `STRATA — ${t('首页')}`}
+            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">
               <Plane className="-rotate-45" size={16} />
@@ -74,14 +94,16 @@ export default function Navbar() {
               <span className="text-base font-black text-black tracking-tight uppercase">
                 STRATA
               </span>
-              <span className="text-[9px] font-bold text-neutral-500 tracking-widest uppercase">
-                [ VAS DIRECTORY ]
-              </span>
+              <span className="text-[9px] font-bold text-neutral-500 tracking-widest uppercase">[ {t('nav.directory_label')} ]</span>
             </div>
-          </div>
+          </Link>
 
           {/* Desktop Nav 菜单 */}
-          <div className="hidden md:flex items-center space-x-2">
+          <div className="hidden xl:flex items-center space-x-2">
+            {showBlog && <a href={currentBlogHref} aria-current={isBlogActive ? 'page' : undefined} className={`px-3 py-1.5 border-2 text-xs font-bold uppercase flex items-center gap-1.5 ${isBlogActive ? 'bg-black text-white border-black shadow-[2px_2px_0px_#000]' : 'border-transparent hover:border-black'}`}>
+              <BookOpen size={14} />
+              <span>{t('nav.blogs')}</span>
+            </a>}
             <Link 
               href="/services" 
               className={`px-3 py-1.5 border-2 text-xs font-bold uppercase transition flex items-center gap-1.5 ${
@@ -108,8 +130,8 @@ export default function Navbar() {
           </div>
 
           {/* Desktop Actions */}
-          <div className="hidden md:flex items-center gap-3">
-            <LanguageSwitcher />
+          <div className="hidden xl:flex items-center gap-3">
+            {languageControl ?? <LanguageSwitcher title={languageTitle} />}
 
             {isLogged ? (
               <div className="flex items-center gap-2.5">
@@ -154,12 +176,15 @@ export default function Navbar() {
           </div>
 
           {/* Mobile Menu Button */}
-          <div className="flex md:hidden items-center gap-2">
-            <LanguageSwitcher />
+          <div className="flex xl:hidden items-center gap-2">
+            {languageControl ?? <LanguageSwitcher title={languageTitle} />}
             <button
+              ref={menuButton}
               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"
-              aria-label="Toggle Menu"
+              aria-label={labels?.menu ?? t('打开或关闭导航菜单')}
+              aria-expanded={isMobileMenuOpen}
+              aria-controls="site-mobile-menu"
             >
               {isMobileMenuOpen ? <X size={20} /> : <Menu size={20} />}
             </button>
@@ -171,12 +196,15 @@ export default function Navbar() {
       {isMobileMenuOpen && (
         <>
           <div 
-            className="fixed inset-0 top-16 bg-black/60 z-40 md:hidden backdrop-grayscale"
+            className="fixed inset-0 top-16 bg-black/60 z-40 xl:hidden backdrop-grayscale"
             onClick={() => setIsMobileMenuOpen(false)}
           />
 
-          <div className="md:hidden bg-white border-b-2 border-black absolute w-full left-0 z-50 shadow-[0_8px_0px_#000] p-4 space-y-3 font-mono">
+          <div id="site-mobile-menu" className="xl:hidden bg-white border-b-2 border-black absolute w-full left-0 z-50 shadow-[0_8px_0px_#000] p-4 space-y-3 font-mono">
             <div className="space-y-1.5 border-b-2 border-dashed border-neutral-300 pb-3">
+              {showBlog && <a href={currentBlogHref} onClick={handleLinkClick} aria-current={isBlogActive ? 'page' : undefined} className={`flex items-center gap-2 border-2 border-black px-3 py-2 text-sm font-bold ${isBlogActive ? 'bg-amber-300 text-black' : ''}`}>
+                <BookOpen size={14} /> {t('nav.blogs')}
+              </a>}
               <MobileLink href="/services" icon={Briefcase} onClick={handleLinkClick} active={isServicesActive}>
                 {t('nav.services') || '服务工单库'}
               </MobileLink>
@@ -235,4 +263,4 @@ function MobileLink({ href, icon: Icon, children, onClick, active = false, class
       <span>{children}</span>
     </Link>
   );
-}
+}

+ 37 - 40
src/components/PaymentProcessor.tsx

@@ -1,14 +1,14 @@
 'use client';
 
 import { useEffect, useMemo, useState } from 'react';
-import { useRouter } from 'next/navigation';
-import { 
-  Loader2, 
-  ArrowLeft, 
-  Sparkles, 
-  ExternalLink, 
-  Clock, 
-  CheckCircle2, 
+import { useRouter } from '@/lib/i18n/navigation';
+import {
+  Loader2,
+  ArrowLeft,
+  Sparkles,
+  ExternalLink,
+  Clock,
+  CheckCircle2,
   AlertCircle,
   TrendingUp,
   TrendingDown,
@@ -33,9 +33,9 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
   const { t } = useLanguage();
 
   const [step, setStep] = useState<1 | 2>(1);
-  const [loading, setLoading] = useState<boolean>(false); 
-  const [confirming, setConfirming] = useState<boolean>(false); 
-  
+  const [loading, setLoading] = useState<boolean>(false);
+  const [confirming, setConfirming] = useState<boolean>(false);
+
   const [providers, setProviders] = useState<PaymentProvider[]>([]);
   const [paymentData, setPaymentData] = useState<PaymentResult | null>(null);
   const [qrCode, setQrCode] = useState<string>('');
@@ -121,11 +121,11 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
         order_id: String(orderId),
         provider: providerCode
       });
-      
+
       const data: PaymentResult = payRes?.data || payRes;
       if (!data?.id) throw new Error("Payment creation failed");
 
-      setPaymentData(data); 
+      setPaymentData(data);
 
       // 2. 根据渠道处理后续逻辑
       if (data.channel === 'online_link') {
@@ -134,7 +134,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
         } else {
           showMessage(t('payment.link_gen_failed'), 'error');
         }
-      } 
+      }
       else if (data.channel === 'qr_static') {
         const qrRes = await paymentService.getPaymentQrCode({
           qr_id: data.qr_id,
@@ -168,7 +168,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
   // 用户点击“我已完成支付”
   const handleUserConfirm = async () => {
     if (!paymentData) return;
-    
+
     setConfirming(true);
     try {
       const payload = {
@@ -206,16 +206,16 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
 
   return (
     <div className="bg-white border-2 border-black shadow-[8px_8px_0px_#000] p-6 md:p-8 max-w-2xl mx-auto min-h-[400px]">
-      
+
       {/* === Step 1: 选择支付方式 === */}
       {step === 1 && (
         <div className="space-y-6 text-left font-mono">
-          
+
           {/* 顶部工单账单编号卡 */}
           <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">
               <span className="uppercase text-neutral-600">[ {t('payment.order_created') || 'PAYMENT DESK // 官方收银台'} ]</span>
-              <span className="text-black">STATUS: PENDING</span>
+              <span className="text-black">{t('common.status')}: {t('status.pending')}</span>
             </div>
             <div className="text-xl sm:text-2xl font-black text-black flex items-baseline gap-2 pt-1">
               <span>{t('payment.order_id') || '工单编号'}:</span>
@@ -235,8 +235,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
           {/* 支付通道列表 */}
           <div className="space-y-3">
             <div className="text-xs font-black uppercase tracking-wider text-black">
-              [ {t('payment.select_method') || '请选择受理支付通道'} / SELECT GATEWAY ]:
-            </div>
+              [ {t('payment.select_method') || '请选择受理支付通道'}]:</div>
 
             {availableProviders.length === 0 ? (
               <div className="text-neutral-400 py-8 text-xs text-center border-2 border-dashed border-black">
@@ -252,9 +251,9 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
                     className="group relative flex flex-col items-center justify-center gap-3 border-2 border-black bg-white p-5 shadow-[4px_4px_0px_#000] hover:shadow-[6px_6px_0px_#000] hover:-translate-x-0.5 hover:-translate-y-0.5 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none text-left"
                   >
                     {p.icon ? (
-                      <img 
-                        src={p.icon} 
-                        alt={p.name} 
+                      <img
+                        src={p.icon}
+                        alt={p.name}
                         className="h-12 w-full object-contain mb-1"
                       />
                     ) : (
@@ -290,7 +289,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
           {loading && (
             <div className="border-2 border-black bg-amber-100 p-3 text-black text-xs font-bold flex items-center justify-center gap-2 shadow-[2px_2px_0px_#000]">
               <Loader2 className="animate-spin w-4 h-4"/>
-              <span>[ GENERATING PAYMENT INVOICE... ]</span>
+              <span>[ {t('payment.creating')} ]</span>
             </div>
           )}
         </div>
@@ -301,7 +300,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
         <div className="space-y-6 text-left font-mono">
           {/* 返回与倒计时栏 */}
           <div className="flex flex-wrap items-center justify-between gap-2 bg-neutral-100 border-2 border-black p-3.5 shadow-[3px_3px_0px_#000]">
-            <button 
+            <button
               onClick={handleBack}
               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"
             >
@@ -315,9 +314,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
             </div>
           </div>
 
-          <div className="text-base font-black text-black uppercase border-b-2 border-black pb-2">
-            [ INVOICE BREAKDOWN // 账单结算明细 ]
-          </div>
+          <div className="text-base font-black text-black uppercase border-b-2 border-black pb-2">[ {t('账单明细')} ]</div>
 
           <div className="grid gap-6 lg:grid-cols-[1.1fr_0.9fr]">
             {/* 左侧:账单核算清单 */}
@@ -326,7 +323,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
                 <span>{t('payment.original_amount') || '原始标准金额'}:</span>
                 <span className="font-mono text-black font-bold">{formatMoney(paymentData.base_amount, paymentData.base_currency)}</span>
               </div>
-              
+
               {paymentData.currency !== paymentData.base_currency && (
                 <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>
@@ -384,8 +381,8 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
               {paymentData.channel === 'online_link' && (
                 <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>
-                  <a 
-                    href={paymentData.payment_url} 
+                  <a
+                    href={paymentData.payment_url}
                     target="_blank"
                     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"
@@ -401,13 +398,13 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
                   <p className="text-xs text-neutral-600 font-sans">{t('payment.qr_pay_hint') || '请使用 App 扫描下方二维码完成支付'}</p>
                   <div className="inline-block border-2 border-black p-2 bg-white shadow-[2px_2px_0px_#000]">
                     {qrCode ? (
-                      <img 
-                        src={qrCode.startsWith('http') || qrCode.startsWith('data:') ? qrCode : `data:image/png;base64,${qrCode}`} 
-                        alt="Payment QR" 
-                        className="w-36 h-36 object-contain" 
+                      <img
+                        src={qrCode.startsWith('http') || qrCode.startsWith('data:') ? qrCode : `data:image/png;base64,${qrCode}`}
+                        alt={t('付款二维码')}
+                        className="w-36 h-36 object-contain"
                       />
                     ) : (
-                      <div className="w-36 h-36 flex items-center justify-center text-neutral-400 text-xs">[ LOADING QR ]</div>
+                      <div className="w-36 h-36 flex items-center justify-center text-neutral-400 text-xs">[ {t('common.loading')} ]</div>
                     )}
                   </div>
                 </div>
@@ -418,9 +415,9 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
                 {t('payment.confirm_hint_text') || '完成付款后请务必点击下方确认按钮,以便系统核销并开始处理'}
               </div>
 
-              <button 
-                onClick={handleUserConfirm} 
-                disabled={confirming} 
+              <button
+                onClick={handleUserConfirm}
+                disabled={confirming}
                 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} />}
@@ -432,7 +429,7 @@ export default function PaymentProcessor({ orderId }: PaymentProcessorProps) {
       )}
 
       {/* 消息弹窗 */}
-      <MessageModal 
+      <MessageModal
         isOpen={msgModal.isOpen}
         title={msgModal.title}
         message={msgModal.message}

+ 18 - 19
src/components/ServiceList.tsx

@@ -2,7 +2,7 @@
 'use client';
 
 import { useEffect, useState, useMemo } from 'react';
-import { useRouter } from 'next/navigation';
+import { useRouter } from '@/lib/i18n/navigation';
 import {
   Plane,
   BookOpen,
@@ -18,6 +18,8 @@ import ServiceDetailModal from '@/components/services/ServiceDetailModal';
 import ServicePoster from '@/components/services/ServicePoster';
 import ProductTutorialBanner from '@/components/common/ProductTutorialBanner';
 import { productService } from '@/lib/services';
+import { displayProduct, countryLabel } from '@/lib/i18n/catalog';
+import { formattingLocale } from '@/lib/i18n/config';
 
 export default function ServiceList() {
   const router = useRouter();
@@ -67,7 +69,7 @@ export default function ServiceList() {
 
   // 全量成熟产品按推荐分与ID排序展示 (不分页、纵向流)
   const sortedProducts = useMemo(() => {
-    const list = [...allProducts];
+    const list = allProducts.map(item => displayProduct(item, t));
     list.sort((a, b) => {
       const scoreA = typeof a.recommend_score === 'number' ? a.recommend_score : 0;
       const scoreB = typeof b.recommend_score === 'number' ? b.recommend_score : 0;
@@ -75,7 +77,7 @@ export default function ServiceList() {
       return b.id - a.id;
     });
     return list;
-  }, [allProducts]);
+  }, [allProducts, t]);
 
   const handleOrderClick = (id: number) => {
     router.push(`/create-order/${id}`);
@@ -172,8 +174,7 @@ export default function ServiceList() {
 
       {/* 错误提示 */}
       {error && (
-        <div className="border-2 border-black bg-rose-100 p-4 text-xs text-rose-950 font-mono font-bold shadow-[4px_4px_0px_#000]">
-          [ERROR] {error}
+        <div className="border-2 border-black bg-rose-100 p-4 text-xs text-rose-950 font-mono font-bold shadow-[4px_4px_0px_#000]">[ {t('common.error')} ]{error}
         </div>
       )}
 
@@ -205,7 +206,7 @@ export default function ServiceList() {
       {!loading && !error && sortedProducts.length > 0 && (
         <div className="space-y-6">
           {sortedProducts.map((item) => {
-            const formattedPrice = (item.price_amount / 100).toLocaleString();
+            const formattedPrice = (item.price_amount / 100).toLocaleString(formattingLocale(lang));
               const tutorial = item.extra_fields?.tutorial;
               const tutorialEnabled = Boolean(tutorial && tutorial.enabled);
               const tutorialDisplayType = tutorial?.display_type || 'modal';
@@ -215,7 +216,7 @@ export default function ServiceList() {
               const statusTag = cardConfig?.status_tag;
               const salesText = cardConfig?.sales_text;
               const statusText = cardConfig?.status_text;
-              const buyButtonText = cardConfig?.buy_button_text || (lang === 'zh' ? '立即购买' : 'Order Now');
+              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 descElement = renderDescription(item.description);
@@ -235,7 +236,7 @@ export default function ServiceList() {
                       <div className="flex items-center gap-2 text-xs font-mono font-bold tracking-wider">
                         <span className="w-2.5 h-2.5 bg-emerald-400 border border-black inline-block shadow-[1px_1px_0px_#000]" />
                         <span className="uppercase bg-neutral-100 border border-black px-2 py-0.5 text-black font-black text-[11px] shadow-[1px_1px_0px_#000]">
-                          {item.country} {item.provider ? `// ${item.provider}` : ''}
+                          {countryLabel(item.country, lang)} {item.provider ? `// ${item.provider}` : ''}
                         </span>
                       </div>
 
@@ -287,7 +288,7 @@ export default function ServiceList() {
                                   title={t('services.open_guide_tooltip') || '在新标签页中打开官方外部使用指南'}
                                 >
                                   <ExternalLink size={12} />
-                                  <span>[ {tutorial?.button_text || tutorial?.link_text || pillText || (lang === 'zh' ? '查阅使用指引 ↗' : 'View Guide ↗')} ]</span>
+                                    <span>[ {tutorial?.button_text || tutorial?.link_text || pillText || t('查阅使用指引 ↗')} ]</span>
                                 </button>
                               )}
 
@@ -308,8 +309,8 @@ export default function ServiceList() {
                                   {isTutorialExpanded ? <ChevronUp size={12} /> : <ChevronDown size={12} />}
                                   <span>
                                     [ {isTutorialExpanded
-                                      ? (lang === 'zh' ? '收起使用指引 ↑' : 'Collapse Guide ↑')
-                                      : (tutorial?.button_text || tutorial?.modal_title || pillText || (lang === 'zh' ? '展开使用指引 ↓' : 'View Guide ↓'))} ]
+                                      ? `${t('tutorial.collapse_guide')} ↑`
+                                      : (tutorial?.button_text || tutorial?.modal_title || pillText || `${t('tutorial.expand_guide')} ↓`)} ]
                                   </span>
                                 </button>
                               )}
@@ -322,7 +323,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"
                                 >
                                   <BookOpen size={12} />
-                                  <span>[ {tutorial?.button_text || tutorial?.modal_title || pillText || (lang === 'zh' ? '查看办理教程 →' : 'View Guide →')} ]</span>
+                                  <span>[ {tutorial?.button_text || tutorial?.modal_title || pillText || t('查看办理教程 →')} ]</span>
                                 </button>
                               )}
 
@@ -335,7 +336,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"
                                   >
                                     <BookOpen size={12} />
-                                    <span>[ {tutorial?.button_text || tutorial?.modal_title || pillText || (lang === 'zh' ? '查看办理教程 →' : 'View Guide →')} ]</span>
+                                    <span>[ {tutorial?.button_text || tutorial?.modal_title || pillText || t('查看办理教程 →')} ]</span>
                                   </button>
 
                                   {tutorial?.link_url?.trim() && (
@@ -347,7 +348,7 @@ export default function ServiceList() {
                                       title={t('services.open_docs_tooltip') || '在新标签页中打开官方文档'}
                                     >
                                       <ExternalLink size={12} />
-                                      <span>[ {tutorial?.link_text || (lang === 'zh' ? '官方文档 ↗' : 'Docs ↗')} ]</span>
+                                      <span>[ {tutorial?.link_text || t('官方文档 ↗')} ]</span>
                                     </a>
                                   )}
                                 </>
@@ -377,12 +378,12 @@ export default function ServiceList() {
                           )}
                           {item.city && (
                             <span className="text-neutral-500">
-                              {salesText ? '· ' : ''}{lang === 'zh' ? '适用领区' : 'Jurisdiction'}: {item.city}
+                              {salesText ? '· ' : ''}{t('services.city_prefix')}: {t(item.city)}
                             </span>
                           )}
                           {item.visa_type && (
                             <span className="text-neutral-500">
-                              · {lang === 'zh' ? '类型' : 'Type'}: {item.visa_type}
+                              · {t('product.visa_type')}: {t(item.visa_type)}
                             </span>
                           )}
                           {statusText && (
@@ -402,9 +403,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="font-mono text-left lg:text-right">
-                        <div className="text-[10px] font-bold uppercase tracking-wider text-neutral-500">
-                          TOTAL SERVICE FEE
-                        </div>
+                        <div className="text-[10px] font-bold uppercase tracking-wider text-neutral-500">{t('服务费总额')}</div>
                         <div className="flex items-baseline justify-end gap-1 mt-0.5">
                           <span className="text-lg font-bold text-black font-mono">
                             {item.price_currency === 'CNY' ? '¥' : item.price_currency}

+ 35 - 0
src/components/blog/BlogNavbar.tsx

@@ -0,0 +1,35 @@
+'use client';
+
+import { usePathname } from 'next/navigation';
+import Navbar from '@/components/Navbar';
+import { LanguageProvider } from '@/lib/i18n/LanguageContext';
+import type { BlogLocale } from '@/lib/blog/types';
+import { copy, navigationCopy } from '@/lib/blog/translations';
+import type { Messages } from '@/lib/i18n/dictionaries';
+
+type LocaleLink = { locale: BlogLocale; href: string };
+type Props = { locale: BlogLocale; indexes: LocaleLink[]; articles: (LocaleLink & { id: string })[]; messages?: Messages };
+
+export default function BlogNavbar({ locale, indexes, articles, messages }: Props) {
+  const pathname = usePathname();
+  const article = articles.find(a => a.href === pathname);
+  const options = article ? articles.filter(a => a.id === article.id) : indexes;
+  const currentHref = article?.href ?? indexes.find(a => a.locale === locale)?.href;
+  const languageControl = <select aria-label={copy[locale].language} value={currentHref}
+    className="w-24 sm:w-auto max-w-[8rem] min-w-0 bg-white text-black border-2 border-black px-2 py-1.5 text-xs font-bold shadow-[2px_2px_0px_#000]"
+    onChange={event => { window.location.assign(event.target.value); }}>
+    {options.map(option => <option key={option.locale} value={option.href} lang={option.locale}>{copy[option.locale].name}</option>)}
+  </select>;
+  return <LanguageProvider initialLang={locale} messages={messages} detectPreference={false} updateDocumentLanguage={false}>
+    <div className="sticky top-0 z-50" lang={locale} data-blog-navigation onKeyDown={event => {
+      if (event.key !== 'Escape') return;
+      const toggle = event.currentTarget.querySelector<HTMLButtonElement>('button[aria-controls="site-mobile-menu"]');
+      if (toggle?.getAttribute('aria-expanded') === 'true') {
+        toggle.click();
+        toggle.focus();
+      }
+    }}>
+      <Navbar showBlog blogHref={indexes.find(a => a.locale === locale)?.href} labels={navigationCopy[locale]} languageControl={languageControl} />
+    </div>
+  </LanguageProvider>;
+}

+ 33 - 0
src/components/blog/BlogShell.tsx

@@ -0,0 +1,33 @@
+import type { ReactNode } from 'react';
+import { Plane } from 'lucide-react';
+import type { BlogLocale } from '@/lib/blog/types';
+import { blogPath, indexingEnabled, visibleArticles, visibleLocales, articlePath } from '@/lib/blog/data';
+import { copy, editorialCopy } from '@/lib/blog/translations';
+import BlogNavbar from './BlogNavbar';
+import { navigationMessages } from '@/lib/i18n/dictionaries';
+import { localizedPath } from '@/lib/i18n/routes';
+
+function BlogBrand({ locale }: { locale: BlogLocale }) {
+  return <a className="blog-brand" href={localizedPath('/', locale)} aria-label="STRATA">
+    <span className="blog-brand-mark" aria-hidden="true"><Plane size={16} /></span>
+    <span className="blog-brand-name"><strong>STRATA</strong><small>[ {copy[locale].guides} ]</small></span>
+  </a>;
+}
+
+export function BlogShell({ locale, children }: { locale: BlogLocale; children: ReactNode }) {
+  const t = copy[locale];
+  return <>
+    <a className="blog-skip" href="#blog-main">{t.skip}</a>
+    <BlogNavbar locale={locale} messages={navigationMessages(locale)} indexes={visibleLocales().map(l => ({ locale: l, href: blogPath(l) }))} articles={visibleArticles().map(a => ({ id: a.id, locale: a.locale, href: articlePath(a) }))} />
+    {!indexingEnabled && <p className="blog-preview" role="status">{t.preview}</p>}
+    <main id="blog-main" className="blog-main" tabIndex={-1}>{children}</main>
+    <footer className="blog-footer"><div className="blog-footer-inner">
+      <div className="blog-footer-grid">
+        <div><BlogBrand locale={locale} /><p>{t.disclaimer}</p></div>
+        <nav aria-label={t.guides}><strong>[ {t.guides} ]</strong><a href={localizedPath('/', locale)}>{t.home}</a><a href={blogPath(locale)}>{t.guides}</a><a href={localizedPath('/services', locale)}>{t.services}</a></nav>
+        <nav aria-label={t.terms}><strong>[ {t.terms} ]</strong><a href={localizedPath('/terms', locale)}>{t.terms}</a><a href={localizedPath('/refund-policy', locale)}>{t.refunds}</a><a href="mailto:support@text.skin">{editorialCopy[locale].corrections}</a></nav>
+      </div>
+      <div className="blog-footer-bottom">STRATA · {t.independent}</div>
+    </div></footer>
+  </>;
+}

+ 75 - 0
src/components/blog/BlogViews.tsx

@@ -0,0 +1,75 @@
+import ReactMarkdown from 'react-markdown';
+import remarkGfm from 'remark-gfm';
+import type { BlogArticle, BlogLocale } from '@/lib/blog/types';
+import { articlePath, blogPath, visibleArticles } from '@/lib/blog/data';
+import { articleSchema } from '@/lib/blog/metadata';
+import { copy, editorialCopy } from '@/lib/blog/translations';
+import { guideServices, serviceCopy } from '@/lib/blog/services';
+import { localizedPath } from '@/lib/i18n/routes';
+
+export function BlogIndex({ locale }: { locale: BlogLocale }) {
+  const t = copy[locale];
+  const e = editorialCopy[locale];
+  const articles = visibleArticles(locale);
+  return <>
+    <section className="blog-hero"><p className="blog-eyebrow">{t.region}</p><h1>{t.title}</h1><p>{t.description}</p></section>
+    <div className="blog-grid">{articles.map((article, index) => <article key={article.id} className="blog-card">
+      <span className="blog-card-number">0{index + 1}</span><h2><a href={articlePath(article)}>{article.title}</a></h2><p>{article.description}</p><a className="blog-read" href={articlePath(article)}>{t.read} <span aria-hidden="true">↗</span></a>
+    </article>)}</div>
+    <section className="blog-routes">
+      <h2 id="blog-routes-title">{e.routesTitle}</h2><p>{e.routesNote}</p>
+      <p id="blog-table-help" className="blog-table-help">{e.scroll}</p>
+      <div className="blog-table-scroll" role="region" aria-labelledby="blog-routes-title" aria-describedby="blog-table-help" tabIndex={0}>
+        <table aria-labelledby="blog-routes-title"><thead><tr>{e.routeHeaders.map(label => <th key={label} scope="col">{label}</th>)}</tr></thead>
+          <tbody>{articles.filter(article => e.routes[article.id]).map(article => <tr key={article.id}>
+            <th scope="row"><a href={articlePath(article)}>{article.destinationLabel}</a></th>
+            <td><a href={article.officialBooking.url}>{e.routes[article.id].process}</a></td>
+            <td>{e.routes[article.id].location}</td>
+          </tr>)}</tbody>
+        </table>
+      </div>
+    </section>
+    <aside className="blog-notice"><strong>{t.independent}</strong><p>{t.disclaimer}</p></aside>
+  </>;
+}
+
+export function BlogArticleView({ article }: { article: BlogArticle }) {
+  const t = copy[article.locale];
+  const e = editorialCopy[article.locale];
+  const service = guideServices[article.id];
+  const conversion = serviceCopy[article.locale];
+  const markdownLink = ({ href, children }: { href?: string; children?: React.ReactNode }) => <a href={href ? localizedPath(href, article.locale) : undefined}>{children}</a>;
+  const related = visibleArticles(article.locale).filter(a => article.relatedIds.includes(a.id));
+  const firstSection = article.body.search(/^## /m);
+  const opening = firstSection < 0 ? article.body : article.body.slice(0, firstSection);
+  const body = firstSection < 0 ? '' : article.body.slice(firstSection);
+  const sections = body.split('\n').flatMap((line, index) => line.startsWith('## ') ? [{ title: line.slice(3), line: index + 1 }] : [])
+    .map((section, index) => ({ ...section, id: `section-${index + 1}` }));
+  // Only our typed, repository-owned data is serialized. Escape '<' to prevent script termination.
+  const schema = JSON.stringify(articleSchema(article)).replace(/</g, '\\u003c');
+  return <>
+    <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: schema }} />
+    <nav className="blog-breadcrumb" aria-label={t.guides}><a href={blogPath(article.locale)}>{t.guides}</a><span aria-hidden="true"> / </span><span>{article.title}</span></nav>
+    <article className="blog-article"><header className="blog-article-header"><p className="blog-eyebrow">{t.ireland} → {article.destinationLabel}</p><h1>{article.title}</h1><p className="blog-lede">{article.description}</p><p className="blog-reviewed"><span>{t.by} <a href="#blog-sources">STRATA</a></span><span>{t.reviewed}: <time dateTime={article.reviewedAt}>{new Intl.DateTimeFormat(article.locale, { dateStyle: 'long', timeZone: 'UTC' }).format(new Date(`${article.reviewedAt}T00:00:00Z`))}</time></span></p></header>
+      <div className="blog-prose">
+        <ReactMarkdown remarkPlugins={[remarkGfm]} skipHtml components={{ a: markdownLink }}>{opening}</ReactMarkdown>
+        {sections.length > 0 && <nav className="blog-toc" aria-label={t.contents}><strong>{t.contents}</strong><ol>{sections.map(section => <li key={section.id}><a href={`#${section.id}`}>{section.title}</a></li>)}</ol></nav>}
+        <ReactMarkdown remarkPlugins={[remarkGfm]} skipHtml components={{
+          a: markdownLink,
+          h2: ({ node, children }) => <h2 id={sections.find(section => section.line === node?.position?.start.line)?.id} tabIndex={-1}>{children}</h2>,
+          table: ({ children }) => <><p id="blog-table-help" className="blog-table-help">{e.scroll}</p><div className="blog-table-scroll" role="region" aria-label={e.preparation} aria-describedby="blog-table-help" tabIndex={0}><table><caption>{e.preparation}</caption>{children}</table></div></>,
+          th: ({ children }) => <th scope="col">{children}</th>,
+        }}>{body}</ReactMarkdown>
+      </div>
+      <section className="blog-sources"><h2 id="blog-sources" tabIndex={-1}>{t.sources}</h2><p>{t.sourceNote}</p><ul>{article.sources.map(source => <li key={source.url}><a href={source.url} rel="noopener noreferrer">{source.title}</a></li>)}</ul><p>{e.correctionNote}</p><a href={`mailto:support@text.skin?subject=${encodeURIComponent(`${e.corrections}: ${articlePath(article)}`)}`}>{e.corrections}</a></section>
+    </article>
+    {service && <section className="blog-conversion" aria-labelledby="blog-conversion-title" data-service-id={service.id}>
+      <h2 id="blog-conversion-title">{conversion.heading}</h2>
+      <p>{conversion.description}</p>
+      <a className="blog-service-button" href={localizedPath(`/create-order/${service.id}`, article.locale)}>{conversion.buttons[service.id]} <span aria-hidden="true">→</span></a>
+      <p className="blog-conversion-note">{conversion.note} <a href={localizedPath('/terms', article.locale)}>{t.terms}</a> · <a href={localizedPath('/refund-policy', article.locale)}>{t.refunds}</a></p>
+    </section>}
+    <aside className="blog-notice"><strong>{t.independent}</strong><p>{t.disclaimer}</p><a className="blog-button" href={article.officialBooking.url}>{article.officialBooking.label} ↗</a></aside>
+    {related.length > 0 && <section className="blog-related"><h2>{t.related}</h2><ul>{related.map(a => <li key={a.id}><a href={articlePath(a)}>{a.title} →</a></li>)}</ul></section>}
+  </>;
+}

+ 143 - 0
src/components/blog/blog.css

@@ -0,0 +1,143 @@
+/* Blog-scoped equivalents of the existing homepage's Tailwind design tokens. */
+.blog-body {
+  --blog-page: #f8fafc; /* slate-50 */
+  --blog-surface: #ffffff;
+  --blog-ink: #000000;
+  --blog-muted: #525252; /* neutral-600 */
+  --blog-accent: #fcd34d; /* amber-300 */
+  --blog-accent-hover: #fbbf24; /* amber-400 */
+  --blog-line: 2px solid var(--blog-ink);
+  --blog-shadow: 4px 4px 0 var(--blog-ink);
+  --blog-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
+  margin: 0;
+  min-height: 100vh;
+  display: flex;
+  flex-direction: column;
+  background: var(--blog-page);
+  color: var(--blog-ink);
+  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
+  line-height: 1.65;
+}
+.blog-main a, .blog-footer a { color: inherit; text-underline-offset: .2em; }
+.blog-main a:hover, .blog-footer a:hover { text-decoration: underline; }
+.blog-main a:focus-visible, .blog-footer a:focus-visible { outline: 3px solid var(--blog-ink); outline-offset: 4px; background: var(--blog-accent); color: var(--blog-ink); }
+.blog-brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; text-decoration: none !important; font-family: var(--blog-mono); }
+.blog-brand-mark { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--blog-accent); border: var(--blog-line); box-shadow: 2px 2px 0 var(--blog-ink); }
+.blog-brand-mark svg { transform: rotate(-45deg); }
+.blog-brand-name { display: flex; flex-direction: column; line-height: 1; }
+.blog-brand strong { font-size: 16px; font-weight: 900; letter-spacing: -.4px; }
+.blog-brand small { margin-top: 4px; font-size: 9px; font-weight: 700; letter-spacing: .9px; color: #737373; }
+.blog-main { scroll-margin-top: 88px; width: 100%; max-width: 1152px; flex-grow: 1; margin: auto; padding: 40px 32px 64px; }
+.blog-hero { margin-bottom: 24px; padding: 20px 24px; text-align: left; background: var(--blog-surface); border: var(--blog-line); box-shadow: var(--blog-shadow); }
+.blog-eyebrow { display: inline-block; margin: 0 0 24px; padding: 5px 12px; background: var(--blog-accent); border: var(--blog-line); box-shadow: 3px 3px 0 var(--blog-ink); font-family: var(--blog-mono); font-size: 12px; font-weight: 900; letter-spacing: .6px; }
+.blog-hero h1, .blog-article h1 { margin: 0 0 24px; font-size: clamp(30px, 4.2vw, 48px); font-weight: 900; letter-spacing: -1.2px; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; }
+.blog-hero .blog-eyebrow { margin-bottom: 8px; padding: 2px 8px; font-size: 10px; line-height: 1.5; }
+.blog-hero h1 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.6px; }
+.blog-hero > p:last-child { max-width: 880px; margin: 0; color: var(--blog-muted); font-size: 15px; line-height: 1.5; }
+.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; }
+.blog-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: var(--blog-surface); border: var(--blog-line); box-shadow: var(--blog-shadow); }
+.blog-card-number { align-self: flex-start; margin-bottom: 20px; padding: 3px 8px; background: var(--blog-accent); border: var(--blog-line); font-family: var(--blog-mono); font-size: 12px; font-weight: 900; }
+.blog-card h2 { margin: 0 0 16px; font-size: 21px; line-height: 1.3; font-weight: 900; letter-spacing: -.4px; }
+.blog-card h2 a { text-decoration: none; }
+.blog-card h2 a:hover { text-decoration: underline; }
+.blog-card p { margin: 0 0 24px; color: var(--blog-muted); font-size: 14px; }
+.blog-read, .blog-button, .blog-service-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; background: var(--blog-accent); color: var(--blog-ink); border: var(--blog-line); box-shadow: var(--blog-shadow); font-family: var(--blog-mono); font-size: 12px; line-height: 1.5; font-weight: 900; text-transform: uppercase; text-decoration: none; transition: background-color .15s, transform .15s, box-shadow .15s; }
+.blog-read { width: 100%; margin-top: auto; }
+.blog-read span { margin-left: auto; }
+.blog-read:hover, .blog-button:hover { background: var(--blog-accent-hover); text-decoration: none !important; }
+.blog-read:active, .blog-button:active, .blog-service-link:active { transform: translate(2px, 2px); box-shadow: none; }
+.blog-notice { margin: 40px 0; padding: 28px 32px; background: var(--blog-surface); border: var(--blog-line); box-shadow: var(--blog-shadow); font-size: 14px; }
+.blog-notice > strong { display: inline-block; padding-bottom: 3px; border-bottom: var(--blog-line); font-family: var(--blog-mono); font-size: 12px; font-weight: 900; text-transform: uppercase; }
+.blog-notice p { max-width: 870px; margin: 16px 0 24px; color: var(--blog-muted); }
+.blog-notice p:last-child { margin-bottom: 0; }
+.blog-notice p a { color: var(--blog-ink); text-decoration: underline; }
+.blog-service-link { background: var(--blog-surface); }
+.blog-service-link:hover { background: #fafafa; text-decoration: none !important; }
+.blog-footer { margin-top: auto; padding: 40px 32px; background: var(--blog-surface); border-top: var(--blog-line); font-family: var(--blog-mono); }
+.blog-footer-inner { max-width: 1216px; margin: auto; }
+.blog-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
+.blog-footer p { max-width: 440px; margin: 16px 0 0; font-family: ui-sans-serif, system-ui, sans-serif; color: var(--blog-muted); font-size: 12px; line-height: 1.6; }
+.blog-footer nav { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 12px; }
+.blog-footer nav strong { margin-bottom: 4px; padding-bottom: 4px; border-bottom: var(--blog-line); font-weight: 900; text-transform: uppercase; }
+.blog-footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 2px dashed #d4d4d4; color: #737373; font-size: 12px; }
+.blog-preview { margin: 4px 0 0; padding: 10px 24px; background: #fffbeb; border-bottom: 1px solid #d4d4d4; color: var(--blog-muted); text-align: center; font-family: var(--blog-mono); font-size: 12px; }
+.blog-breadcrumb { margin-bottom: 24px; color: var(--blog-muted); font-family: var(--blog-mono); font-size: 12px; overflow-wrap: anywhere; }
+.blog-breadcrumb a { color: var(--blog-ink); text-decoration: underline; }
+.blog-article { max-width: 864px; margin: auto; padding: 40px 48px; background: var(--blog-surface); border: var(--blog-line); box-shadow: 8px 8px 0 var(--blog-ink); }
+.blog-article h1 { margin-bottom: 16px; font-size: clamp(26px, 3.5vw, 36px); }
+.blog-article-header .blog-eyebrow { margin-bottom: 12px; }
+.blog-article-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: var(--blog-line); }
+.blog-lede { margin: 0; color: var(--blog-muted); font-size: 16px; }
+.blog-reviewed { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 12px 0 0; font-family: var(--blog-mono); font-size: 12px; }
+.blog-prose { font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
+.blog-prose h2, .blog-sources h2, .blog-related h2 { margin: 36px 0 16px; font-size: 25px; font-weight: 900; line-height: 1.3; letter-spacing: -.5px; }
+.blog-prose h3 { margin: 28px 0 12px; font-size: 20px; font-weight: 800; line-height: 1.4; }
+.blog-prose h2[id], #blog-sources { scroll-margin-top: 88px; }
+.blog-prose h2[id]:focus-visible, #blog-sources:focus-visible { outline: 3px solid var(--blog-ink); outline-offset: 4px; }
+.blog-toc { margin: 24px 0 32px; padding: 16px 20px; border: var(--blog-line); background: #fffbeb; font-size: 14px; }
+.blog-toc > strong { font-family: var(--blog-mono); }
+.blog-toc ol { margin: 12px 0 0; }
+.blog-toc li { margin: 4px 0; }
+.blog-toc a { display: inline-block; padding: 4px 0; }
+.blog-prose p { margin: 18px 0; }
+.blog-prose ul, .blog-prose ol, .blog-sources ul, .blog-related ul { margin: 18px 0; padding-left: 24px; list-style: disc; }
+.blog-prose ol { list-style: decimal; }
+.blog-prose li { margin: 10px 0; }
+.blog-prose a, .blog-sources a, .blog-related a { text-decoration: underline; text-decoration-thickness: 2px; }
+.blog-prose a:hover, .blog-sources a:hover, .blog-related a:hover { background: #fef3c7; }
+.blog-prose strong { font-weight: 800; }
+.blog-table-scroll { max-width: 100%; overflow-x: auto; margin: 12px 0 24px; }
+.blog-table-scroll:focus-visible { outline: 3px solid var(--blog-ink); outline-offset: 4px; }
+.blog-table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
+.blog-table-scroll caption { margin-bottom: 8px; text-align: left; font-weight: 800; }
+.blog-table-scroll td, .blog-table-scroll th { padding: 10px; border: var(--blog-line); text-align: left; vertical-align: top; }
+.blog-table-scroll th { background: #f5f5f5; }
+.blog-table-scroll thead th:first-child { width: 20%; }
+.blog-prose .blog-table-help, .blog-table-help { margin: 12px 0 8px; color: var(--blog-muted); font-size: 12px; line-height: 1.6; }
+.blog-routes { padding: 24px; background: var(--blog-surface); border: var(--blog-line); box-shadow: var(--blog-shadow); }
+.blog-routes h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.3; font-weight: 900; }
+.blog-routes > p { max-width: 880px; }
+.blog-routes a, .blog-reviewed a { text-decoration: underline; }
+.blog-sources { margin-top: 40px; padding-top: 8px; border-top: var(--blog-line); font-size: 14px; overflow-wrap: anywhere; }
+.blog-sources li { margin: 12px 0; }
+.blog-related { max-width: 864px; margin: 40px auto 0; }
+.blog-related li { margin: 16px 0; }
+.blog-conversion { max-width: 864px; margin: 40px auto; padding: 28px 32px; border: var(--blog-line); box-shadow: var(--blog-shadow); background: var(--blog-surface); overflow-wrap: anywhere; }
+.blog-conversion h2 { margin: 0 0 16px; font-size: 25px; line-height: 1.3; font-weight: 900; }
+.blog-conversion p { margin: 16px 0 24px; }
+.blog-main .blog-service-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; background: #15803d; color: #fff; border: var(--blog-line); box-shadow: var(--blog-shadow); font-weight: 800; line-height: 1.5; text-decoration: none; }
+.blog-main .blog-service-button:hover { background: #166534; text-decoration: none; }
+.blog-main .blog-service-button:focus-visible { background: #166534; color: #fff; outline: 3px solid var(--blog-ink); outline-offset: 4px; }
+.blog-service-button:active { transform: translate(2px, 2px); box-shadow: none; }
+.blog-conversion .blog-conversion-note { margin-bottom: 0; color: var(--blog-muted); font-size: 13px; line-height: 1.7; }
+.blog-conversion-note a { text-decoration: underline; }
+.blog-skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px; background: var(--blog-accent); border: var(--blog-line); font-family: var(--blog-mono); font-weight: 700; }
+.blog-skip:focus { top: 12px; }
+@media (max-width: 1023px) {
+  .blog-grid { grid-template-columns: 1fr; }
+  .blog-card { padding: 28px; }
+  .blog-card-number { margin-bottom: 16px; }
+  .blog-read { width: auto; align-self: flex-start; min-width: 180px; }
+}
+@media (max-width: 639px) {
+  .blog-main { scroll-margin-top: 88px; padding: 24px 20px 48px; }
+  .blog-breadcrumb { margin-bottom: 16px; }
+  .blog-breadcrumb span { display: none; }
+  .blog-hero { padding: 16px; }
+  .blog-article h1 { letter-spacing: -.7px; }
+  .blog-hero > p:last-child { font-size: 14px; }
+  .blog-card { padding: 22px; }
+  .blog-article { padding: 24px 16px; box-shadow: var(--blog-shadow); }
+  .blog-notice { padding: 24px 20px; }
+  .blog-conversion { padding: 24px 20px; }
+  .blog-main .blog-service-button { width: 100%; }
+  .blog-button, .blog-service-link { width: 100%; }
+  .blog-prose { font-size: 16px; }
+  .blog-lede { font-size: 16px; }
+  .blog-footer { padding: 32px 20px; }
+  .blog-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
+  .blog-footer-grid > div { grid-column: 1 / -1; }
+}
+@media (prefers-reduced-motion: reduce) {
+  .blog-read, .blog-button, .blog-service-link { transition: none; }
+}

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

@@ -18,15 +18,15 @@ export default function ConfirmModal({ isOpen, onCancel, onConfirm, message, tit
   return (
     <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-grayscale p-4">
       <div className="bg-neutral-50 border-2 border-black shadow-[8px_8px_0px_#000] w-full max-w-md flex flex-col font-mono animate-in zoom-in-95 duration-200">
-        
+
         {/* Header */}
         <div className="px-5 py-3 border-b-2 border-black flex justify-between items-center bg-neutral-200 text-black">
           <div className="flex items-center gap-2 text-xs font-bold uppercase tracking-wider">
             <span className="w-2.5 h-2.5 bg-amber-300 border border-black inline-block" />
             <span>[ {title} ]</span>
           </div>
-          <button 
-            onClick={onCancel} 
+          <button aria-label={t('common.close')}
+            onClick={onCancel}
             className="w-6 h-6 bg-white hover:bg-amber-300 border border-black flex items-center justify-center font-bold text-xs transition"
           >
             ✕
@@ -42,13 +42,13 @@ export default function ConfirmModal({ isOpen, onCancel, onConfirm, message, tit
 
         {/* Footer Buttons */}
         <div className="px-5 py-4 border-t-2 border-black bg-neutral-100 flex justify-end gap-3 font-mono">
-          <button 
+          <button
             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"
           >
             [ {t('common.cancel') || '取消'} ]
           </button>
-          <button 
+          <button
             onClick={() => {
               onConfirm();
               onCancel();

+ 20 - 11
src/components/common/LanguageSwitcher.tsx

@@ -1,19 +1,28 @@
 'use client';
 
 import { useLanguage } from '@/lib/i18n/LanguageContext';
+import { appLocales, localeNames } from '@/lib/i18n/config';
 import { Languages } from 'lucide-react';
 
-export default function LanguageSwitcher() {
-  const { lang, setLang } = useLanguage();
+export default function LanguageSwitcher({ title }: { title?: string }) {
+  const { lang, setLang, t, localizedUI } = useLanguage();
 
-  return (
-    <button
-      onClick={() => setLang(lang === 'zh' ? 'en' : 'zh')}
+  // The excluded admin UI retains its original Chinese/English toggle.
+  if (!localizedUI) {
+    const targetLabel = lang === 'zh' ? 'EN / 英文' : 'ZH / 中文';
+    const toggleTitle = title ?? 'Switch Language';
+    return <button onClick={() => setLang(lang === 'zh' ? 'en' : 'zh')}
       className="flex items-center gap-1.5 px-3 py-1.5 bg-white text-black border-2 border-black font-mono font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-amber-300 transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase select-none"
-      title="Switch Language"
-    >
-      <Languages size={14} className="text-black" />
-      <span>{lang === 'zh' ? 'EN / 英文' : 'ZH / 中文'}</span>
-    </button>
+      title={toggleTitle} aria-label={`${targetLabel}: ${toggleTitle}`}>
+      <Languages size={14} className="text-black" /><span>{targetLabel}</span>
+    </button>;
+  }
+
+  return (
+    <select value={lang} onChange={event => setLang(event.target.value as typeof lang)}
+      className="w-24 sm:w-auto max-w-[8rem] min-w-0 px-2 py-1.5 bg-white text-black border-2 border-black font-mono font-bold text-xs shadow-[2px_2px_0px_#000]"
+      title={title ?? t('common.language')} aria-label={t('common.language')}>
+      {appLocales.map(locale => <option key={locale} value={locale} lang={locale}>{localeNames[locale]}</option>)}
+    </select>
   );
-}
+}

+ 6 - 5
src/components/common/LocalTime.tsx

@@ -2,6 +2,7 @@
 
 import { useEffect, useState } from 'react';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
+import { formattingLocale } from '@/lib/i18n/config';
 
 interface LocalTimeProps {
   date: string | Date; // 接收 UTC 时间
@@ -10,7 +11,7 @@ interface LocalTimeProps {
 }
 
 export default function LocalTime({ date, className, options }: LocalTimeProps) {
-  const { lang } = useLanguage();
+  const { lang, t, localizedUI } = useLanguage();
   const [localTimeString, setLocalTimeString] = useState<string>('');
 
   useEffect(() => {
@@ -36,11 +37,11 @@ export default function LocalTime({ date, className, options }: LocalTimeProps)
 
     // 检查日期是否有效
     if (isNaN(dateObj.getTime())) {
-      setLocalTimeString('Invalid Date');
+      setLocalTimeString(localizedUI ? t('日期无效') : 'Invalid Date');
       return;
     }
 
-    const locale = lang === 'zh' ? 'zh-CN' : 'en-US';
+    const locale = localizedUI ? formattingLocale(lang) : lang === 'zh' ? 'zh-CN' : 'en-US';
     
     const defaultOptions: Intl.DateTimeFormatOptions = {
       year: 'numeric',
@@ -58,11 +59,11 @@ export default function LocalTime({ date, className, options }: LocalTimeProps)
     const formatter = new Intl.DateTimeFormat(locale, finalOptions);
 
     setLocalTimeString(formatter.format(dateObj));
-  }, [date, lang, options]);
+  }, [date, lang, options, t, localizedUI]);
 
   if (!localTimeString) {
     return <span className={`opacity-0 ${className}`}>--:--</span>;
   }
 
   return <span className={className}>{localTimeString}</span>;
-}
+}

+ 12 - 0
src/components/common/LocalizedLink.tsx

@@ -0,0 +1,12 @@
+'use client';
+
+import Link from 'next/link';
+import type { ComponentProps } from 'react';
+import { useLanguage } from '@/lib/i18n/LanguageContext';
+import { localizedPath } from '@/lib/i18n/routes';
+
+export default function LocalizedLink({ href, ...props }: ComponentProps<typeof Link>) {
+  const { lang } = useLanguage();
+  const target = typeof href === 'string' ? localizedPath(href, lang) : href.pathname ? { ...href, pathname: localizedPath(href.pathname, lang) } : href;
+  return <Link {...props} href={target} />;
+}

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

@@ -13,21 +13,21 @@ interface MessageModalProps {
 
 export default function MessageModal({ isOpen, onClose, message, title, type = 'error' }: MessageModalProps) {
   const { t } = useLanguage();
-  
+
   if (!isOpen) return null;
 
   return (
     <div className="fixed inset-0 z-[60] flex items-center justify-center bg-black/60 backdrop-grayscale p-4 animate-in fade-in duration-200">
       <div className="bg-neutral-50 border-2 border-black shadow-[8px_8px_0px_#000] w-full max-w-sm flex flex-col font-mono overflow-hidden">
-        
+
         {/* Header */}
         <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">
             <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>
           </div>
-          <button 
-            onClick={onClose} 
+          <button aria-label={t('common.close')}
+            onClick={onClose}
             className="w-6 h-6 bg-white hover:bg-amber-300 border border-black flex items-center justify-center font-bold text-xs transition"
           >
             ✕
@@ -43,7 +43,7 @@ export default function MessageModal({ isOpen, onClose, message, title, type = '
 
         {/* Footer */}
         <div className="px-4 py-3 border-t-2 border-black bg-neutral-100 flex justify-center font-mono">
-          <button 
+          <button
             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"
           >

+ 5 - 4
src/components/common/ProductTutorialBanner.tsx

@@ -83,7 +83,7 @@ export default function ProductTutorialBanner({
   onCloseModal,
   hideBanner = false,
 }: ProductTutorialBannerProps) {
-  const { t, lang } = useLanguage();
+  const { t, lang, localizedUI } = useLanguage();
   const [isModalOpen, setIsModalOpen] = useState(defaultOpenModal);
   const [isEmbeddedExpanded, setIsEmbeddedExpanded] = useState(true);
 
@@ -101,7 +101,7 @@ export default function ProductTutorialBanner({
   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 || (lang === 'zh' ? '📖 查看使用教程与账号准备说明' : t('tutorial.default_btn') || '📖 View Guide');
+  const buttonText = tutorial.button_text || (!localizedUI && lang === 'zh' ? '📖 查看使用教程与账号准备说明' : t('tutorial.default_btn'));
   const linkText = tutorial.link_text || t('tutorial.default_link') || '打开完整图文文档 ↗';
   const linkUrl = tutorial.link_url?.trim();
   const summary = tutorial.summary?.trim();
@@ -257,7 +257,7 @@ export default function ProductTutorialBanner({
               {steps.length > 0 && (
                 <div className="space-y-2">
                   <span className="text-[10px] font-bold text-neutral-500 uppercase block font-mono">
-                    [ {t('tutorial.prep_steps_title') || '准备与操作步骤'} // STEPS ({steps.length}) ]:
+                    [ {t('tutorial.prep_steps_title') || '准备与操作步骤'} // {localizedUI ? t('步骤') : 'STEPS'} ({steps.length}) ]:
                   </span>
                   <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2.5">
                     {steps.map((step, idx) => (
@@ -339,6 +339,7 @@ export default function ProductTutorialBanner({
               </div>
 
               <button
+                aria-label={t('common.close')}
                 type="button"
                 onClick={handleCloseModal}
                 className="w-7 h-7 bg-white hover:bg-neutral-100 border border-black flex items-center justify-center font-bold text-xs shadow-[1px_1px_0px_#000] active:translate-x-0.5 active:translate-y-0.5 transition cursor-pointer"
@@ -366,7 +367,7 @@ export default function ProductTutorialBanner({
               {steps.length > 0 && (
                 <div className="space-y-3">
                   <span className="font-black text-black uppercase text-xs block border-b-2 border-black pb-1">
-                    [ {t('tutorial.instructions_steps') || '操作指南与准备步骤'} // STEP-BY-STEP GUIDE ({steps.length}) ]
+                    [ {t('tutorial.instructions_steps') || '操作指南与准备步骤'} // {localizedUI ? t('步骤') : 'STEP-BY-STEP GUIDE'} ({steps.length}) ]
                   </span>
                   <div className="space-y-2.5">
                     {steps.map((step, idx) => (

+ 16 - 9
src/components/common/TimeAgo.tsx

@@ -1,6 +1,8 @@
 'use client';
 
 import { useState, useEffect } from 'react';
+import { useLanguage } from '@/lib/i18n/LanguageContext';
+import { formattingLocale } from '@/lib/i18n/config';
 
 interface TimeAgoProps {
   date: string | Date | null | undefined;
@@ -8,6 +10,7 @@ interface TimeAgoProps {
 }
 
 export default function TimeAgo({ date, className = '' }: TimeAgoProps) {
+  const { lang, localizedUI } = useLanguage();
   const [timeAgo, setTimeAgo] = useState<string>('-');
 
   useEffect(() => {
@@ -39,24 +42,28 @@ export default function TimeAgo({ date, className = '' }: TimeAgoProps) {
       const now = new Date().getTime();
       const diffInSeconds = Math.floor((now - past) / 1000);
 
+      const formatElapsed = (count: number, unit: Intl.RelativeTimeFormatUnit, original: string) => localizedUI
+        ? new Intl.RelativeTimeFormat(formattingLocale(lang), { numeric: 'auto' }).format(-count, unit)
+        : original;
+
       // 处理未来时间(可能是本地时间偏差或服务器时间超前)
       if (diffInSeconds < 0) {
-        setTimeAgo('just now');
+        setTimeAgo(formatElapsed(0, 'second', 'just now'));
         return;
       }
 
       if (diffInSeconds < 60) {
-        setTimeAgo(`${diffInSeconds}s ago`);
+        setTimeAgo(formatElapsed(diffInSeconds, 'second', `${diffInSeconds}s ago`));
       } else if (diffInSeconds < 3600) {
-        setTimeAgo(`${Math.floor(diffInSeconds / 60)}m ago`);
+        setTimeAgo(formatElapsed(Math.floor(diffInSeconds / 60), 'minute', `${Math.floor(diffInSeconds / 60)}m ago`));
       } else if (diffInSeconds < 86400) {
-        setTimeAgo(`${Math.floor(diffInSeconds / 3600)}h ago`);
+        setTimeAgo(formatElapsed(Math.floor(diffInSeconds / 3600), 'hour', `${Math.floor(diffInSeconds / 3600)}h ago`));
       } else if (diffInSeconds < 2592000) { // 30 days
-        setTimeAgo(`${Math.floor(diffInSeconds / 86400)}d ago`);
+        setTimeAgo(formatElapsed(Math.floor(diffInSeconds / 86400), 'day', `${Math.floor(diffInSeconds / 86400)}d ago`));
       } else if (diffInSeconds < 31536000) { // 365 days
-        setTimeAgo(`${Math.floor(diffInSeconds / 2592000)}mo ago`);
+        setTimeAgo(formatElapsed(Math.floor(diffInSeconds / 2592000), 'month', `${Math.floor(diffInSeconds / 2592000)}mo ago`));
       } else {
-        setTimeAgo(`${Math.floor(diffInSeconds / 31536000)}y ago`);
+        setTimeAgo(formatElapsed(Math.floor(diffInSeconds / 31536000), 'year', `${Math.floor(diffInSeconds / 31536000)}y ago`));
       }
     };
 
@@ -65,14 +72,14 @@ export default function TimeAgo({ date, className = '' }: TimeAgoProps) {
     // 每分钟更新一次文本
     const interval = setInterval(calculateTimeAgo, 60000);
     return () => clearInterval(interval);
-  }, [date]);
+  }, [date, lang, localizedUI]);
 
   if (!date) return <span className="text-gray-300">-</span>;
 
   // 使用 title 属性显示完整的本地时间,方便鼠标悬停查看
   // 注意:这里仅用于 title 属性的展示,不需要像 LocalTime 那样处理 SSR 水合问题
   return (
-    <span className={className} title={new Date(date).toLocaleString()}>
+    <span className={className} title={new Date(date).toLocaleString(localizedUI ? formattingLocale(lang) : undefined)}>
       {timeAgo}
     </span>
   );

+ 37 - 34
src/components/dashboard/ChangePasswordModal.tsx

@@ -1,5 +1,7 @@
 'use client';
 
+import { currentLocalePath } from '@/lib/i18n/routes';
+
 import { useState, useEffect } from 'react';
 import { X, Lock, Loader2, Save, Mail, KeyRound, Eye, EyeOff } from 'lucide-react';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
@@ -16,12 +18,12 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
 
   const [loading, setLoading] = useState(false);
   const [countdown, setCountdown] = useState(0);
-  
+
   const [email, setEmail] = useState('');
   const [code, setCode] = useState('');
   const [newPassword, setNewPassword] = useState('');
   const [confirmPassword, setConfirmPassword] = useState('');
-  
+
   const [showPassword, setShowPassword] = useState(false);
   const [showConfirmPassword, setShowConfirmPassword] = useState(false);
 
@@ -76,10 +78,10 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
 
   const handleSendCode = async () => {
     if (!email) return showMessage(t('settings.email_not_found') || '未检测到绑定邮箱', 'error');
-    
+
     try {
       await authService.sendResetCode(email);
-      
+
       showMessage(`${t('settings.code_sent') || '验证码已发送至'} ${email}`, 'success');
       setCountdown(60);
     } catch (error: any) {
@@ -97,22 +99,22 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
 
     setLoading(true);
     try {
-      await authService.resetPassword({ 
-        email, 
-        code, 
-        new_password: newPassword 
+      await authService.resetPassword({
+        email,
+        code,
+        new_password: newPassword
       });
 
       showMessage(t('settings.password_changed_success') || '密码重置成功!请重新登录。', 'success', () => {
         localStorage.removeItem('rsid');
         localStorage.removeItem('user_info');
-        window.location.href = '/login';
+        window.location.href = currentLocalePath('/login');
         onClose();
       });
-      
+
     } catch (error: any) {
       console.error(error);
-      const msg = error.response?.data?.message || error.message || '重置失败';
+      const msg = error.response?.data?.message || error.message || t('settings.change_failed');
       showMessage(`${t('settings.change_failed') || '密码修改失败'}: ${msg}`, 'error');
     } finally {
       setLoading(false);
@@ -124,33 +126,33 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
   return (
     <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-grayscale p-4">
       <div className="bg-neutral-50 border-2 border-black shadow-[8px_8px_0px_#000] w-full max-w-md overflow-hidden font-mono animate-in zoom-in-95 duration-200">
-        
+
         {/* Header */}
         <div className="px-5 py-3.5 border-b-2 border-black flex justify-between items-center bg-neutral-200 text-black select-none">
           <div className="flex items-center gap-2 text-xs font-bold uppercase tracking-wider">
             <span className="w-2.5 h-2.5 bg-amber-300 border border-black inline-block" />
-            <span>[ CHANGE PASSWORD // 重置凭证密码 ]</span>
+            <span>[ {t('settings.change_password')} ]</span>
           </div>
-          <button onClick={onClose} className="w-6 h-6 bg-white hover:bg-amber-300 border border-black flex items-center justify-center font-bold text-xs transition">
+          <button aria-label={t('common.close')} onClick={onClose} className="w-6 h-6 bg-white hover:bg-amber-300 border border-black flex items-center justify-center font-bold text-xs transition">
             ✕
           </button>
         </div>
 
         <form onSubmit={handleSubmit} className="p-6 bg-white space-y-4">
-          
+
           {/* 邮箱 & 验证码 */}
           <div className="space-y-2">
-            <label className="block text-xs font-bold uppercase text-black">[ 01 // 验证码接收邮箱 ]</label>
-            <input 
-              type="text" 
-              disabled 
+            <label htmlFor="changepasswordmodal-field-1" className="block text-xs font-bold uppercase text-black">[ 01 // {t('auth.email_label')} ]</label>
+            <input id="changepasswordmodal-field-1"
+              type="text"
+              disabled
               value={email}
               className="w-full border-2 border-black bg-neutral-100 p-2.5 text-xs font-mono text-neutral-600 cursor-not-allowed"
             />
-            
+
             <div className="flex gap-2 pt-1">
-              <input
-                type="text" 
+              <input aria-label={t('settings.code_placeholder') || '------'}
+                type="text"
                 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]"
                 placeholder={t('settings.code_placeholder') || '------'}
@@ -173,17 +175,18 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
 
           {/* 新密码 */}
           <div className="space-y-1">
-            <label className="block text-xs font-bold uppercase text-black">[ 02 // 输入新密码 ]</label>
+            <label htmlFor="changepasswordmodal-field-2" className="block text-xs font-bold uppercase text-black">[ 02 // {t('settings.new_password_label')} ]</label>
             <div className="relative">
-              <input
-                type={showPassword ? "text" : "password"} 
+              <input id="changepasswordmodal-field-2"
+                type={showPassword ? "text" : "password"}
                 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"
                 placeholder={t('settings.new_password_placeholder') || '设置新安全密码...'}
                 value={newPassword}
                 onChange={(e) => setNewPassword(e.target.value)}
               />
-              <button 
+              <button
+                aria-label={t(showPassword ? '隐藏密码' : '查看密码')}
                 type="button"
                 onClick={() => setShowPassword(!showPassword)}
                 className="absolute right-3 top-3 text-black"
@@ -195,9 +198,9 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
 
           {/* 确认密码 */}
           <div className="space-y-1">
-            <label className="block text-xs font-bold uppercase text-black">[ 03 // 再次确认新密码 ]</label>
-            <input
-              type={showPassword ? "text" : "password"} 
+            <label htmlFor="changepasswordmodal-field-3" className="block text-xs font-bold uppercase text-black">[ 03 // {t('确认新密码')} ]</label>
+            <input id="changepasswordmodal-field-3"
+              type={showPassword ? "text" : "password"}
               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"
               placeholder={t('settings.confirm_password_placeholder') || '再次输入新密码...'}
@@ -210,15 +213,15 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
           </div>
 
           <div className="pt-3 flex justify-end gap-2.5 border-t-2 border-dashed border-neutral-300">
-            <button 
+            <button
               type="button"
               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"
             >
               [ {t('common.cancel') || '取消'} ]
             </button>
-            <button 
-              type="submit" 
+            <button
+              type="submit"
               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"
             >
@@ -229,7 +232,7 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
       </div>
 
       {/* 消息弹窗 */}
-      <MessageModal 
+      <MessageModal
         isOpen={msgModal.isOpen}
         title={msgModal.title}
         message={msgModal.message}
@@ -238,4 +241,4 @@ export default function ChangePasswordModal({ isOpen, onClose }: ChangePasswordM
       />
     </div>
   );
-}
+}

+ 15 - 16
src/components/dashboard/OrderList.tsx

@@ -1,10 +1,12 @@
 'use client';
 
 import { useEffect, useState } from 'react';
-import { useRouter } from 'next/navigation';
+import { useRouter } from '@/lib/i18n/navigation';
 import { CreditCard, Loader2, AlertCircle, Package, Clock, Hash, Eye, Search, Sparkles, MessageSquare } from 'lucide-react';
 import Pagination from '@/components/common/Pagination';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
+import { formattingLocale } from '@/lib/i18n/config';
+import { countryLabel } from '@/lib/i18n/catalog';
 import LocalTime from '@/components/common/LocalTime';
 import { Order, UserTicket } from '@/types';
 import { orderService } from '@/lib/services';
@@ -18,7 +20,7 @@ interface OrderListProps {
 
 export default function OrderList({ onRequestTicket, onViewDetail, openTicketsMap, onViewTicket }: OrderListProps) {
   const router = useRouter();
-  const { t } = useLanguage();
+  const { t, lang } = useLanguage();
   
   const [loading, setLoading] = useState<boolean>(true);
   const [orders, setOrders] = useState<Order[]>([]);
@@ -103,9 +105,9 @@ export default function OrderList({ onRequestTicket, onViewDetail, openTicketsMa
     <div className="space-y-5 font-mono">
       
       {/* 搜索过滤栏 */}
-      <div className="flex gap-2">
+      <div className="flex flex-col sm:flex-row gap-2">
         <div className="relative flex-grow">
-          <input
+          <input aria-label={t('order.search_placeholder') || '输入工单号 / 服务名称检索...'}
             type="text"
             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"
@@ -127,7 +129,7 @@ export default function OrderList({ onRequestTicket, onViewDetail, openTicketsMa
       {loading && (
         <div className="py-16 text-center border-2 border-dashed border-black bg-neutral-50">
           <Loader2 className="w-8 h-8 animate-spin mx-auto text-black mb-2" />
-          <p className="text-xs font-bold uppercase">[ FETCHING ORDERS LEDGER... ]</p>
+          <p className="text-xs font-bold uppercase">[ {t('common.loading')} ]</p>
         </div>
       )}
 
@@ -184,24 +186,21 @@ export default function OrderList({ onRequestTicket, onViewDetail, openTicketsMa
                       onClick={() => onViewDetail(order)}
                       className="text-base font-black text-black hover:underline cursor-pointer transition font-sans"
                     >
-                      {order.product_title || order.product_name || 'VAS Visa Service'}
+                      {t(order.product_title || order.product_name || '') || t('order.unknown_service')}
                     </h3>
 
                     {order.user_inputs && (
                       <div className="flex flex-wrap gap-2 text-[11px] text-neutral-600 font-sans">
                         {order.user_inputs.slot_country && (
-                          <span className="bg-neutral-100 border border-black px-1.5 py-0.5 font-mono">
-                            CTR: {order.user_inputs.slot_country}
+                          <span className="bg-neutral-100 border border-black px-1.5 py-0.5 font-mono">{t('product.country')}:{countryLabel(String(order.user_inputs.slot_country), lang)}
                           </span>
                         )}
                         {order.user_inputs.slot_city && (
-                          <span className="bg-neutral-100 border border-black px-1.5 py-0.5 font-mono">
-                            CITY: {order.user_inputs.slot_city}
+                          <span className="bg-neutral-100 border border-black px-1.5 py-0.5 font-mono">{t('product.city')}:{t(String(order.user_inputs.slot_city))}
                           </span>
                         )}
                         {order.user_inputs.slot_visa_type && (
-                          <span className="bg-neutral-100 border border-black px-1.5 py-0.5 font-mono">
-                            VISA: {order.user_inputs.slot_visa_type}
+                          <span className="bg-neutral-100 border border-black px-1.5 py-0.5 font-mono">{t('product.visa_type')}:{t(String(order.user_inputs.slot_visa_type))}
                           </span>
                         )}
                       </div>
@@ -213,10 +212,10 @@ export default function OrderList({ onRequestTicket, onViewDetail, openTicketsMa
                     <span className="text-[10px] text-neutral-500 uppercase block font-bold">{t('order.settlement_fee') || 'SETTLEMENT FEE'}</span>
                     <div className="flex items-baseline gap-1 text-black font-black">
                       <span className="text-xs">{currency === 'CNY' ? '¥' : currency}</span>
-                      <span className="text-xl tracking-tight">{(final / 100).toLocaleString()}</span>
+                      <span className="text-xl tracking-tight">{(final / 100).toLocaleString(formattingLocale(lang))}</span>
                       {delta !== 0 && (
                         <span className="text-[10px] text-neutral-400 line-through font-normal ml-1">
-                          {(base / 100).toLocaleString()}
+                          {(base / 100).toLocaleString(formattingLocale(lang))}
                         </span>
                       )}
                     </div>
@@ -247,7 +246,7 @@ export default function OrderList({ onRequestTicket, onViewDetail, openTicketsMa
                     </button>
                   )}
 
-                  <div className="flex items-center gap-2">
+                  <div className="flex w-full flex-col items-stretch gap-2 sm:w-auto sm:flex-row sm:items-center">
                     {isPending && (
                       <button
                         onClick={() => router.push(`/payment/${order.id}`)}
@@ -286,4 +285,4 @@ export default function OrderList({ onRequestTicket, onViewDetail, openTicketsMa
       )}
     </div>
   );
-}
+}

+ 60 - 59
src/components/dashboard/ProfileSettings.tsx

@@ -14,15 +14,15 @@ export default function ProfileSettings() {
   const [loading, setLoading] = useState(false);
   const [isDataLoaded, setIsDataLoaded] = useState(false);
   const [user, setUser] = useState<any>(null);
-  
+
   const [isEditing, setIsEditing] = useState(false);
   const [isPasswordModalOpen, setIsPasswordModalOpen] = useState(false);
 
   const [nickname, setNickname] = useState('');
-  const [phone, setPhone] = useState(''); 
-  const [avatarPreview, setAvatarPreview] = useState(''); 
-  const [avatarFile, setAvatarFile] = useState<File | null>(null); 
-  
+  const [phone, setPhone] = useState('');
+  const [avatarPreview, setAvatarPreview] = useState('');
+  const [avatarFile, setAvatarFile] = useState<File | null>(null);
+
   const fileInputRef = useRef<HTMLInputElement>(null);
 
   const [msgModal, setMsgModal] = useState({
@@ -59,9 +59,9 @@ export default function ProfileSettings() {
   const handleFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {
     const file = e.target.files?.[0];
     if (!file) return;
-    
+
     if (file.size > 2 * 1024 * 1024) {
-      showMessage(t('profile.image_size_limit') || '图片大小不能超过 2MB', 'error'); 
+      showMessage(t('profile.image_size_limit') || '图片大小不能超过 2MB', 'error');
       return;
     }
 
@@ -75,7 +75,7 @@ export default function ProfileSettings() {
     const data = res?.data;
     if (typeof data === 'string') return data;
     if (data && data.url) return data.url;
-    
+
     throw new Error("Invalid response format");
   };
 
@@ -99,29 +99,29 @@ export default function ProfileSettings() {
       }
 
       const payload = {
-        phone: phone || user.phone || '', 
+        phone: phone || user.phone || '',
         nickname: nickname || '',
         avatar_url: finalAvatarUrl
       };
 
       await userService.setProfiles(payload);
 
-      const newUserInfo = { 
-        ...user, 
-        nickname: payload.nickname, 
-        phone: payload.phone, 
-        avatar_url: payload.avatar_url 
+      const newUserInfo = {
+        ...user,
+        nickname: payload.nickname,
+        phone: payload.phone,
+        avatar_url: payload.avatar_url
       };
-      
+
       localStorage.setItem('user_info', JSON.stringify(newUserInfo));
       window.dispatchEvent(new Event('storage'));
 
       showMessage(t('profile.update_success') || '个人资料更新成功!', 'success');
-      
+
       setUser(newUserInfo);
-      setAvatarFile(null); 
+      setAvatarFile(null);
       setIsEditing(false);
-      
+
     } catch (error: any) {
       console.error(error);
       const msg = error.response?.data?.message || error.message || t('common.unknown_error');
@@ -141,12 +141,12 @@ export default function ProfileSettings() {
     setIsEditing(false);
   };
 
-  if (!isDataLoaded) return <div className="p-12 text-center text-neutral-500 font-mono">[ LOADING ACCOUNT CONFIG... ]</div>;
-  if (!user) return <div className="p-8 text-center text-rose-600 font-mono">[ ERROR: FAILED TO FETCH USER DATA ]</div>;
+  if (!isDataLoaded) return <div className="p-12 text-center text-neutral-500 font-mono">[ {t('common.loading')} ]</div>;
+  if (!user) return <div className="p-8 text-center text-rose-600 font-mono">[ {t('profile.fetch_failed')} ]</div>;
 
   return (
     <div className="space-y-6 font-mono">
-      
+
       {/* 资料卡片 */}
       <div className="bg-white border-2 border-black shadow-[4px_4px_0px_#000]">
         <div className="px-5 py-3 border-b-2 border-black bg-neutral-100 flex justify-between items-center text-xs font-black uppercase text-black">
@@ -155,7 +155,7 @@ export default function ProfileSettings() {
             <span>[ {t('profile.identity_archive')} ]</span>
           </div>
           {!isEditing && (
-            <button 
+            <button
               onClick={() => setIsEditing(true)}
               className="px-3 py-1 bg-white hover:bg-amber-300 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"
             >
@@ -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="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 ? (
-                  <img src={user.avatar_url} alt="Avatar" className="w-full h-full object-cover" />
+                  <img src={user.avatar_url} alt={t('头像')} className="w-full h-full object-cover" />
                 ) : (
                   <User size={40} className="text-black" />
                 )}
@@ -179,17 +179,17 @@ export default function ProfileSettings() {
 
               <div className="flex-1 space-y-3 w-full text-center sm:text-left">
                 <div>
-                  <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">ACCOUNT ID: #{user.id}</p>
+                  <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>
                 </div>
 
                 <div className="grid grid-cols-1 sm:grid-cols-2 gap-3 pt-1">
                   <div className="p-3 bg-neutral-50 border-2 border-black shadow-[2px_2px_0px_#000]">
-                    <span className="text-[10px] font-bold text-neutral-500 uppercase block mb-0.5">EMAIL // {t('profile.bound_email_label')}</span>
+                    <span className="text-[10px] font-bold text-neutral-500 uppercase block mb-0.5">{t('auth.email_label')} //{t('profile.bound_email_label')}</span>
                     <p className="text-xs font-bold text-black truncate font-mono" title={user.email}>{user.email}</p>
                   </div>
                   <div className="p-3 bg-neutral-50 border-2 border-black shadow-[2px_2px_0px_#000]">
-                    <span className="text-[10px] font-bold text-neutral-500 uppercase block mb-0.5">PHONE // {t('profile.contact_phone_label')}</span>
+                    <span className="text-[10px] font-bold text-neutral-500 uppercase block mb-0.5">{t('profile.phone_label')} //{t('profile.contact_phone_label')}</span>
                     <p className="text-xs font-bold text-black font-mono">{user.phone || t('profile.not_set')}</p>
                   </div>
                 </div>
@@ -202,7 +202,7 @@ export default function ProfileSettings() {
                 <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">
                     {avatarPreview ? (
-                      <img src={avatarPreview} alt="Avatar Preview" className="w-full h-full object-cover" />
+                      <img src={avatarPreview} alt={t('头像')} className="w-full h-full object-cover" />
                     ) : (
                       <User size={40} className="text-black" />
                     )}
@@ -211,31 +211,32 @@ export default function ProfileSettings() {
                     </div>
                   </label>
                   <span className="text-[11px] font-bold text-neutral-700 underline cursor-pointer">[ {t('profile.change_avatar_btn')} ]</span>
-                  <input 
-                    id="avatar-upload" 
-                    type="file" 
-                    className="hidden" 
-                    accept="image/*" 
-                    onChange={handleFileChange} 
+                  <input
+                    id="avatar-upload"
+                    type="file"
+                    className="hidden"
+                    aria-label={t('profile.change_avatar')}
+                    accept="image/*"
+                    onChange={handleFileChange}
                     ref={fileInputRef}
                   />
                 </div>
 
                 <div className="flex-1 space-y-3 w-full">
                   <div>
-                    <label className="block text-xs font-bold uppercase text-black mb-1">[ {t('profile.email_readonly_label')} ]</label>
-                    <input 
-                      type="text" 
-                      disabled 
-                      value={user.email} 
+                    <label htmlFor="profilesettings-field-1" className="block text-xs font-bold uppercase text-black mb-1">[ {t('profile.email_readonly_label')} ]</label>
+                    <input id="profilesettings-field-1"
+                      type="text"
+                      disabled
+                      value={user.email}
                       className="w-full border-2 border-black bg-neutral-100 p-2.5 text-xs font-mono text-neutral-600 cursor-not-allowed"
                     />
                   </div>
-                  
+
                   <div>
-                    <label className="block text-xs font-bold uppercase text-black mb-1">[ {t('profile.nickname_label_form')} ]</label>
-                    <input 
-                      type="text" 
+                    <label htmlFor="profilesettings-field-2" className="block text-xs font-bold uppercase text-black mb-1">[ {t('profile.nickname_label_form')} ]</label>
+                    <input id="profilesettings-field-2"
+                      type="text"
                       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] text-black"
                       value={nickname}
                       onChange={(e) => setNickname(e.target.value)}
@@ -244,9 +245,9 @@ export default function ProfileSettings() {
                   </div>
 
                   <div>
-                    <label className="block text-xs font-bold uppercase text-black mb-1">[ {t('profile.phone_label_form')} ]</label>
-                    <input 
-                      type="text" 
+                    <label htmlFor="profilesettings-field-3" className="block text-xs font-bold uppercase text-black mb-1">[ {t('profile.phone_label_form')} ]</label>
+                    <input id="profilesettings-field-3"
+                      type="text"
                       className="w-full border-2 border-black bg-neutral-50 p-2.5 text-xs font-mono focus:bg-white outline-none shadow-[2px_2px_0px_#000] text-black"
                       value={phone}
                       onChange={(e) => setPhone(e.target.value)}
@@ -255,16 +256,16 @@ export default function ProfileSettings() {
                   </div>
 
                   <div className="pt-2 flex gap-3">
-                    <button 
-                      type="button" 
-                      onClick={handleCancel} 
+                    <button
+                      type="button"
+                      onClick={handleCancel}
                       className="px-4 py-2 border-2 border-black bg-neutral-100 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')} ]
                     </button>
-                    <button 
-                      type="submit" 
-                      disabled={loading} 
+                    <button
+                      type="submit"
+                      disabled={loading}
                       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 flex items-center gap-1.5 uppercase disabled:opacity-50"
                     >
                       {loading ? <Loader2 size={14} className="animate-spin" /> : <><Save size={13} /> <span>[ {t('profile.save_archive')} ]</span></>}
@@ -295,9 +296,9 @@ export default function ProfileSettings() {
                   <p className="text-[11px] text-neutral-600 font-sans mt-0.5">{t('profile.password_tip') || '建议定期更换强密码以保护账户工单与资产安全'}</p>
                 </div>
               </div>
-              <button 
+              <button
                 onClick={() => setIsPasswordModalOpen(true)}
-                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] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase whitespace-nowrap"
+                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] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase whitespace-normal sm:whitespace-nowrap max-w-full min-w-0"
               >
                 [ {t('profile.change_password_btn')} ]
               </button>
@@ -307,13 +308,13 @@ export default function ProfileSettings() {
       )}
 
       {/* 密码修改弹窗 */}
-      <ChangePasswordModal 
-        isOpen={isPasswordModalOpen} 
-        onClose={() => setIsPasswordModalOpen(false)} 
+      <ChangePasswordModal
+        isOpen={isPasswordModalOpen}
+        onClose={() => setIsPasswordModalOpen(false)}
       />
 
       {/* 消息弹窗 */}
-      <MessageModal 
+      <MessageModal
         isOpen={msgModal.isOpen}
         title={msgModal.title}
         message={msgModal.message}
@@ -322,4 +323,4 @@ export default function ProfileSettings() {
       />
     </div>
   );
-}
+}

+ 12 - 14
src/components/dashboard/TicketList.tsx

@@ -7,6 +7,7 @@ import { useLanguage } from '@/lib/i18n/LanguageContext';
 import LocalTime from '@/components/common/LocalTime';
 import { UserTicket, TicketData } from '@/types';
 import { ticketService } from '@/lib/services';
+import { translatedValue } from '@/lib/i18n/display';
 
 interface TicketListProps {
   onViewDetail: (ticket: UserTicket) => void;
@@ -62,20 +63,20 @@ export default function TicketList({ onViewDetail, refreshTrigger }: TicketListP
     if (s === 'open' || s === 'pending') {
       return (
         <span className="px-2.5 py-0.5 bg-amber-300 text-black border-2 border-black font-mono font-black text-[10px] uppercase shadow-[1px_1px_0px_#000]">
-          ⏳ {t('ticket.status.pending')} // {status}
+          ⏳ {t('ticket.status.pending')}
         </span>
       );
     }
     if (s === 'resolved' || s === 'closed') {
       return (
         <span className="px-2.5 py-0.5 bg-neutral-100 text-black border-2 border-black font-mono font-bold text-[10px] uppercase">
-          ✓ {t('ticket.status.resolved')} // {status}
+          ✓ {t('ticket.status.resolved')}
         </span>
       );
     }
     return (
       <span className="px-2 py-0.5 bg-neutral-100 text-neutral-600 border border-black font-mono text-[10px] uppercase">
-        {status}
+        {translatedValue(t, 'ticket.status.' + s, status)}
       </span>
     );
   };
@@ -84,9 +85,9 @@ export default function TicketList({ onViewDetail, refreshTrigger }: TicketListP
     <div className="space-y-5 font-mono">
       
       {/* 搜索过滤栏 */}
-      <div className="flex gap-2">
+      <div className="flex flex-col sm:flex-row gap-2">
         <div className="relative flex-grow">
-          <input
+          <input aria-label={t('ticket.search_placeholder') || '输入工单标题 / 问题描述检索...'}
             type="text"
             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"
@@ -108,7 +109,7 @@ export default function TicketList({ onViewDetail, refreshTrigger }: TicketListP
       {loading && (
         <div className="py-16 text-center border-2 border-dashed border-black bg-neutral-50">
           <Loader2 className="w-8 h-8 animate-spin mx-auto text-black mb-2" />
-          <p className="text-xs font-bold uppercase">[ FETCHING SUPPORT THREADS... ]</p>
+          <p className="text-xs font-bold uppercase">[ {t('common.loading')} ]</p>
         </div>
       )}
 
@@ -140,8 +141,7 @@ export default function TicketList({ onViewDetail, refreshTrigger }: TicketListP
                     <span className="text-neutral-500 font-mono">#{serial}</span>
                     {getStatusBadge(ticket.status)}
                     {ticket.order_id && (
-                      <span className="px-1.5 py-0.5 bg-neutral-100 border border-black text-[10px] text-neutral-600">
-                        REF: #ORD-{ticket.order_id}
+                      <span className="px-1.5 py-0.5 bg-neutral-100 border border-black text-[10px] text-neutral-600">{t('ticket.related_order')}: #ORD-{ticket.order_id}
                       </span>
                     )}
                   </div>
@@ -158,18 +158,16 @@ export default function TicketList({ onViewDetail, refreshTrigger }: TicketListP
                     onClick={() => onViewDetail(ticket as any)}
                     className="text-base font-black text-black hover:underline cursor-pointer transition font-sans"
                   >
-                    [{ticket.type.toUpperCase()}] {ticket.reason.slice(0, 40)}
+                    [{translatedValue(t, 'ticket.types.' + ticket.type, ticket.type)}] {ticket.reason.slice(0, 40)}
                   </h3>
                   <p className="text-xs text-neutral-600 font-sans line-clamp-2 leading-relaxed">
-                    {ticket.reason || t('ticket.no_reason') || '无补充描述信息'}
+                    {ticket.reason || t('ticket.no_reason') || t('ticket.no_reason')}
                   </p>
                 </div>
 
                 {/* 底部操作区 */}
                 <div className="pt-3 border-t-2 border-dashed border-neutral-300 flex items-center justify-between">
-                  <span className="text-[11px] text-neutral-500 font-mono">
-                    MESSAGES: ACTIVE THREAD
-                  </span>
+                  <span className="text-[11px] text-neutral-500 font-mono">{t('ticket.ticket_in_progress')}</span>
 
                   <button
                     onClick={() => onViewDetail(ticket as any)}
@@ -198,4 +196,4 @@ export default function TicketList({ onViewDetail, refreshTrigger }: TicketListP
       )}
     </div>
   );
-}
+}

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

@@ -20,7 +20,7 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
 
   const [loading, setLoading] = useState<boolean>(false);
   const [errorMsg, setErrorMsg] = useState<string>('');
-  
+
   const [form, setForm] = useState({
     order_id: '',
     type: 'refund',
@@ -79,12 +79,12 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
 
     try {
       await ticketService.create(form);
-      
+
       showMessage(t('ticket.create_success') || '工单创建成功!', 'success', () => {
-        if (onSuccess) onSuccess(); 
+        if (onSuccess) onSuccess();
         onClose();
       });
-      
+
     } catch (error: any) {
       console.error(error);
       const msg = error.response?.data?.message || t('ticket.submit_error_default') || '提交失败,请重试';
@@ -99,21 +99,21 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
   return (
     <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-grayscale p-4">
       <div className="bg-neutral-50 border-2 border-black shadow-[8px_8px_0px_#000] w-full max-w-lg flex flex-col font-mono animate-in zoom-in-95 duration-200">
-        
+
         {/* Header */}
         <div className="px-5 py-3.5 border-b-2 border-black flex justify-between items-center bg-neutral-200 text-black select-none">
           <div className="flex items-center gap-2 text-xs font-bold uppercase tracking-wider">
             <span className="w-2.5 h-2.5 bg-amber-300 border border-black inline-block" />
-            <span>[ CREATE TICKET // {t('ticket.create_new')} ]</span>
+            <span>[ {t('ticket.submit_modal_title')} //{t('ticket.create_new')} ]</span>
           </div>
-          <button 
-            onClick={onClose} 
+          <button aria-label={t('common.close')}
+            onClick={onClose}
             className="w-6 h-6 bg-white hover:bg-amber-300 border border-black flex items-center justify-center font-bold text-xs transition"
           >
             ✕
           </button>
         </div>
-        
+
         <div className="p-6 bg-white space-y-4">
           {errorMsg && (
             <div className="p-3 bg-rose-100 border-2 border-black text-xs font-bold text-black flex items-center shadow-[2px_2px_0px_#000]">
@@ -124,11 +124,11 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
 
           <form onSubmit={handleSubmit} className="space-y-4">
             <div className="space-y-1">
-              <label className="block text-xs font-bold uppercase text-black">
+              <label htmlFor="ticketmodal-field-1" className="block text-xs font-bold uppercase text-black">
                 [ 01 // {t('ticket.related_order_id')} ]: <span className="text-black">*</span>
               </label>
-              <input
-                type="text" 
+              <input id="ticketmodal-field-1"
+                type="text"
                 required
                 className={`w-full border-2 p-2.5 text-xs font-mono focus:bg-white outline-none shadow-[2px_2px_0px_#000] text-black ${
                   existingActiveTicket ? 'border-rose-600 bg-rose-50' : 'border-black bg-neutral-50'
@@ -146,10 +146,10 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
             </div>
 
             <div className="space-y-1">
-              <label className="block text-xs font-bold uppercase text-black">
+              <label htmlFor="ticketmodal-field-2" className="block text-xs font-bold uppercase text-black">
                 [ 02 // {t('ticket.inquiry_type')} ]: <span className="text-black">*</span>
               </label>
-              <select
+              <select id="ticketmodal-field-2"
                 className="w-full border-2 border-black bg-neutral-50 p-2.5 text-xs font-mono focus:bg-white outline-none shadow-[2px_2px_0px_#000] text-black cursor-pointer"
                 value={form.type}
                 onChange={e => setForm({ ...form, type: e.target.value })}
@@ -161,10 +161,10 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
             </div>
 
             <div className="space-y-1">
-              <label className="block text-xs font-bold uppercase text-black">
+              <label htmlFor="ticketmodal-field-3" className="block text-xs font-bold uppercase text-black">
                 [ 03 // {t('ticket.detail_desc')} ]: <span className="text-black">*</span>
               </label>
-              <textarea
+              <textarea id="ticketmodal-field-3"
                 required
                 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"
@@ -195,7 +195,7 @@ export default function TicketModal({ isOpen, onClose, onSuccess, defaultOrderId
       </div>
 
       {/* 消息弹窗 */}
-      <MessageModal 
+      <MessageModal
         isOpen={msgModal.isOpen}
         title={msgModal.title}
         message={msgModal.message}

+ 12 - 12
src/components/dashboard/UserOrderDetailModal.tsx

@@ -6,6 +6,7 @@ import { useLanguage } from '@/lib/i18n/LanguageContext';
 import LocalTime from '@/components/common/LocalTime';
 import { Order } from '@/types';
 import { paymentService, orderService } from '@/lib/services';
+import { applicationFieldLabel, translatedValue } from '@/lib/i18n/display';
 
 interface UserOrderDetailModalProps {
   isOpen: boolean;
@@ -96,9 +97,9 @@ export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrd
         <div className="px-5 py-3.5 border-b-2 border-black flex justify-between items-center bg-neutral-200 text-black select-none">
           <div className="flex items-center gap-2 text-xs font-bold uppercase tracking-wider">
             <span className="w-2.5 h-2.5 bg-amber-300 border border-black inline-block" />
-            <span>[ ORDER DOSSIER // #{serial} ]</span>
+            <span>[ {t('order.detail_title')} // #{serial} ]</span>
           </div>
-          <button 
+          <button aria-label={t('common.close')}
             onClick={onClose} 
             className="w-6 h-6 bg-white hover:bg-amber-300 border border-black flex items-center justify-center font-bold text-xs transition"
           >
@@ -113,10 +114,10 @@ export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrd
           <div className="bg-white border-2 border-black p-5 shadow-[4px_4px_0px_#000] flex flex-col sm:flex-row justify-between gap-4">
             <div className="space-y-2">
               <span className="px-2 py-0.5 bg-black text-white text-[10px] font-bold uppercase">
-                {order.status}
+                {translatedValue(t, 'status.' + order.status, translatedValue(t, 'order.status_' + order.status, order.status))}
               </span>
               <h4 className="text-base sm:text-lg font-black text-black font-sans">
-                {order.product_title || order.product_name || 'VAS Visa Service'}
+                {t(order.product_title || order.product_name || '') || t('order.unknown_service')}
               </h4>
               <div className="text-xs text-neutral-500 flex items-center gap-1">
                 <Clock size={12} />
@@ -125,7 +126,7 @@ export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrd
               </div>
             </div>
             <div className="text-left sm:text-right border-t sm:border-t-0 sm:border-l-2 border-dashed border-neutral-300 pt-2 sm:pt-0 sm:pl-4">
-              <span className="text-[10px] text-neutral-500 uppercase font-bold block">SETTLEMENT FEE</span>
+              <span className="text-[10px] text-neutral-500 uppercase font-bold block">{t('order.settlement_fee')}</span>
               <div className="text-2xl font-black text-black">
                 {formatMoney(order.base_amount || 0, order.base_currency || 'CNY')}
               </div>
@@ -139,7 +140,7 @@ export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrd
                 <FileText size={15} />
                 <span>[ {t('order.declaration_record')} ]</span>
               </div>
-              <span className="text-[10px] text-neutral-500">SPECIFIED</span>
+              <span className="text-[10px] text-neutral-500">{t('order.application_data')}</span>
             </div>
             <div className="p-5">
               {sortedUserInputs.length > 0 ? (
@@ -147,7 +148,7 @@ export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrd
                   {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">
-                        [{key.replace(/_/g, ' ')}]
+                        [{applicationFieldLabel(t, key)}]
                       </span>
                       <span className="block font-bold text-black font-sans break-words break-all">
                         {String(value)}
@@ -171,7 +172,7 @@ export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrd
                   <CreditCard size={15} />
                   <span>[ {t('order.payment_ledger')} ]</span>
                 </div>
-                <span className="text-[10px] text-neutral-500">LEDGER-TX</span>
+                <span className="text-[10px] text-neutral-500">{t('order.payment_history')}</span>
               </div>
               <div className="divide-y-2 divide-dashed divide-neutral-200">
                 {payments.map((pay) => (
@@ -186,8 +187,7 @@ export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrd
                     </div>
                     <div className="text-right">
                       <div className="font-bold text-sm text-black">{formatMoney(pay.amount, pay.currency)}</div>
-                      <div className="text-[10px] text-neutral-600 uppercase font-bold">
-                        STATUS: {pay.status}
+                      <div className="text-[10px] text-neutral-600 uppercase font-bold">{t('common.status')}: {translatedValue(t, 'status.' + pay.status, pay.status)}
                       </div>
                     </div>
                   </div>
@@ -203,12 +203,12 @@ export default function UserOrderDetailModal({ isOpen, onClose, order }: UserOrd
                 <Clock size={15} />
                 <span>[ {t('order.event_log')} ]</span>
               </div>
-              <span className="text-[10px] text-neutral-500">EVENT-LOG</span>
+              <span className="text-[10px] text-neutral-500">{t('order.event_history')}</span>
             </div>
             {loadingEvents ? (
               <div className="p-6 flex flex-col items-center justify-center text-neutral-500 space-y-2">
                 <Loader2 className="animate-spin w-5 h-5 text-black" />
-                <p className="text-xs">[ FETCHING EVENT LOGS... ]</p>
+                <p className="text-xs">[ {t('common.loading')} ]</p>
               </div>
             ) : events.length === 0 ? (
               <div className="p-6 text-center text-neutral-400 text-xs">

+ 25 - 27
src/components/dashboard/UserTicketDetailModal.tsx

@@ -3,6 +3,7 @@
 import { useState, useEffect, useRef } from 'react';
 import { X, Send, User, Headset, Paperclip, Loader2, Clock, Image as ImageIcon, ExternalLink } from 'lucide-react';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
+import { translatedValue } from '@/lib/i18n/display';
 import LocalTime from '@/components/common/LocalTime';
 import MessageModal from '@/components/common/MessageModal';
 import { UserTicket, TicketMessage } from '@/types';
@@ -27,7 +28,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
   const [attachedImages, setAttachedImages] = useState<string[]>([]);
   const [uploadingImage, setUploadingImage] = useState(false);
   const fileInputRef = useRef<HTMLInputElement>(null);
-  
+
   const messagesEndRef = useRef<HTMLDivElement>(null);
 
   const [msgModal, setMsgModal] = useState({
@@ -67,13 +68,13 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
     if (!ticket) return;
     if (!silent) setLoadingMsg(true);
     try {
-      const res = await ticketService.fetchMessages(ticket.id, { 
+      const res = await ticketService.fetchMessages(ticket.id, {
         page: 1,
-        size: 100 
+        size: 100
       });
-      
+
       const items = res?.data?.items || [];
-      const sorted = items.sort((a: TicketMessage, b: TicketMessage) => 
+      const sorted = items.sort((a: TicketMessage, b: TicketMessage) =>
         new Date(a.created_at).getTime() - new Date(b.created_at).getTime()
       );
       setMessages(sorted);
@@ -176,27 +177,25 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
   return (
     <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-grayscale p-4">
       <div className="bg-neutral-50 border-2 border-black shadow-[8px_8px_0px_#000] w-full max-w-2xl h-[85vh] flex flex-col font-mono animate-in zoom-in-95 duration-200">
-        
+
         {/* Header */}
         <div className="px-5 py-3.5 border-b-2 border-black flex justify-between items-center bg-neutral-200 text-black select-none shrink-0">
           <div className="min-w-0 flex-1 mr-4">
             <div className="flex items-center gap-2">
               <span className="w-2.5 h-2.5 bg-amber-300 border border-black inline-block" />
-              <h3 className="font-black text-black text-xs sm:text-sm uppercase tracking-wider truncate">
-                [ THREAD // #{serial} ]
+              <h3 className="font-black text-black text-xs sm:text-sm uppercase tracking-wider truncate">[ {t('ticket.title_prefix')} // #{serial} ]
               </h3>
               <span className="px-2 py-0.5 bg-black text-white text-[10px] font-bold uppercase">
-                {ticket.status}
+                {translatedValue(t, 'ticket.status.' + ticket.status, ticket.status)}
               </span>
             </div>
             {ticket.order_id && (
-              <p className="text-[11px] text-neutral-600 mt-0.5 truncate font-mono">
-                REF. ORDER: #VAS-ORD-{ticket.order_id}
+              <p className="text-[11px] text-neutral-600 mt-0.5 truncate font-mono">{t('ticket.related_order')}: #VAS-ORD-{ticket.order_id}
               </p>
             )}
           </div>
-          <button 
-            onClick={onClose} 
+          <button aria-label={t('common.close')}
+            onClick={onClose}
             className="w-6 h-6 bg-white hover:bg-amber-300 border border-black flex items-center justify-center font-bold text-xs transition shrink-0"
           >
             ✕
@@ -205,7 +204,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
 
         {/* Messages List */}
         <div className="flex-1 overflow-y-auto p-5 bg-neutral-100 space-y-4">
-          
+
           {/* 工单初始描述气泡 */}
           <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">
@@ -213,7 +212,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
               <LocalTime date={ticket.created_at} />
             </div>
             <div className="font-black text-black text-sm font-sans">
-              [{ticket.type.toUpperCase()}] {ticket.reason.slice(0, 50)}
+              [{translatedValue(t, 'ticket.types.' + ticket.type, ticket.type)}] {ticket.reason.slice(0, 50)}
             </div>
             <p className="text-xs text-neutral-800 font-sans leading-relaxed whitespace-pre-line">
               {ticket.reason || t('ticket.no_reason') || '无补充描述'}
@@ -234,8 +233,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
               if (isSystem) {
                 return (
                   <div key={msg.id} className="flex justify-center my-2">
-                    <span className="text-[10px] text-neutral-600 bg-neutral-200 border border-black px-3 py-1 font-mono">
-                      [ SYS: {msg.content} ]
+                    <span className="text-[10px] text-neutral-600 bg-neutral-200 border border-black px-3 py-1 font-mono">[ {t('ticket.system_message')}:{msg.content} ]
                     </span>
                   </div>
                 );
@@ -247,10 +245,10 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
                     <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' }} />
                     </div>
-                    
+
                     <div className={`p-3.5 text-xs font-sans border-2 border-black ${
-                      isMe 
-                        ? 'bg-amber-300 text-black shadow-[3px_3px_0px_#000] text-left' 
+                      isMe
+                        ? 'bg-amber-300 text-black shadow-[3px_3px_0px_#000] text-left'
                         : 'bg-white text-black shadow-[3px_3px_0px_#000] text-left'
                     }`}>
                       {msg.content && msg.content !== '[图片附件]' && msg.content !== '[Image Attachment]' && (
@@ -287,7 +285,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
               );
             })
           )}
-          
+
           <div ref={messagesEndRef} />
         </div>
 
@@ -299,7 +297,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
               {attachedImages.map((imgUrl, idx) => (
                 <div key={idx} className="relative group border border-black bg-white p-1">
                   <img src={imgUrl} alt="Preview" className="w-14 h-14 object-cover" />
-                  <button
+                  <button aria-label={t('common.close')}
                     type="button"
                     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"
@@ -338,7 +336,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
             </button>
 
             <div className="flex-1">
-              <textarea
+              <textarea aria-label={t('ticket.reply_placeholder') || '输入工单回复信息 (Enter 发送)...'}
                 value={replyContent}
                 onChange={(e) => setReplyContent(e.target.value)}
                 onKeyDown={(e) => {
@@ -353,8 +351,8 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
               />
             </div>
 
-            <button 
-              type="submit" 
+            <button
+              type="submit"
               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"
             >
@@ -366,7 +364,7 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
       </div>
 
       {/* 消息弹窗 */}
-      <MessageModal 
+      <MessageModal
         isOpen={msgModal.isOpen}
         title={msgModal.title}
         message={msgModal.message}
@@ -375,4 +373,4 @@ export default function UserTicketDetailModal({ isOpen, onClose, ticket }: UserT
       />
     </div>
   );
-}
+}

+ 12 - 12
src/app/page.tsx → src/components/home/HomePage.tsx

@@ -1,6 +1,6 @@
 'use client';
 
-import Link from "next/link";
+import Link from "@/components/common/LocalizedLink";
 import { ArrowRight, CalendarSearch } from "lucide-react";
 import { useLanguage } from '@/lib/i18n/LanguageContext';
 
@@ -9,28 +9,28 @@ export default function Home() {
 
   return (
     <div className="min-h-[calc(100vh-4rem-160px)] flex items-center justify-center py-12 px-4 sm:px-6 md:px-8">
-      <div className="w-full max-w-3xl bg-white border-2 border-black p-8 sm:p-14 md:p-16 shadow-[8px_8px_0px_#000] text-center space-y-10">
-        
+      <div className="w-full max-w-3xl bg-white border-2 border-black p-6 sm:p-14 md:p-16 shadow-[8px_8px_0px_#000] text-center space-y-10">
+
         {/* 大标题 */}
-        <h1 className="text-3xl sm:text-5xl md:text-6xl font-black tracking-tight text-black uppercase leading-tight select-none">
+        <h1 className="text-3xl sm:text-5xl md:text-6xl font-black tracking-tight text-black uppercase leading-tight break-words hyphens-auto select-none">
           {t('home.hero_title_prefix')}{' '}
-          <span className="bg-amber-300 px-3 py-1 border-2 border-black shadow-[3px_3px_0px_#000] inline-block mt-2 sm:mt-0">
+          <span className="bg-amber-300 px-3 py-1 border-2 border-black shadow-[3px_3px_0px_#000] inline-block max-w-full mt-2 sm:mt-0">
             {t('home.hero_title_highlight')}
           </span>
         </h1>
 
         {/* 下单与查询slot按钮组 */}
         <div className="flex flex-col sm:flex-row items-center justify-center gap-5 font-mono select-none">
-          <Link 
-            href="/services" 
-            className="w-full sm:w-auto min-w-[200px] 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"
+          <Link
+            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"
           >
             <span>[ {t('home.cta_order') || '下单'} ]</span>
             <ArrowRight size={18} className="group-hover:translate-x-1 transition-transform" />
           </Link>
-          <Link 
-            href="/slots" 
-            className="w-full sm:w-auto min-w-[200px] 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"
+          <Link
+            href="/slots"
+            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" />
             <span>[ {t('home.cta_check_slots') || '查询 Slot'} ]</span>
@@ -40,4 +40,4 @@ export default function Home() {
       </div>
     </div>
   );
-}
+}

+ 9 - 13
src/app/contact/page.tsx → src/components/pages/ContactPage.tsx

@@ -1,24 +1,22 @@
 'use client';
 
 import { useLanguage } from '@/lib/i18n/LanguageContext';
-import { Mail, Phone, MapPin, MessageSquare, Clock } from 'lucide-react';
+import { Mail, Phone, MapPin, Clock } from 'lucide-react';
 
 export default function ContactPage() {
   const { t } = useLanguage();
 
   return (
     <div className="min-h-screen bg-neutral-100 py-8 px-4 sm:px-6 md:py-12 md:px-8 space-y-6 max-w-4xl mx-auto font-mono">
-      
+
       {/* 顶部公报标头 */}
       <div className="bg-neutral-100 border-2 border-black p-6 sm:p-10 shadow-[6px_6px_0px_#000] text-black">
         <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">
             <span className="w-3 h-3 bg-amber-300 border border-black inline-block" />
-            <span className="tracking-widest uppercase">[ VAS-SUPPORT // CONTACT CHANNELS ]</span>
-          </div>
-          <div className="text-neutral-500">
-            DISPATCH NODE: ONLINE // 24/7
+            <span className="tracking-widest uppercase">[ VAS-SUPPORT // {t('联系渠道')} ]</span>
           </div>
+          <div className="text-neutral-500">{t('服务节点在线')} // 24/7</div>
         </div>
 
         <div className="space-y-2">
@@ -33,12 +31,12 @@ export default function ContactPage() {
 
       {/* 联系卡片网格 */}
       <div className="grid grid-cols-1 md:grid-cols-3 gap-4">
-        
+
         {/* Email */}
         <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="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
-              <span>[ 01 // EMAIL ]</span>
+              <span>[ 01 // {t('auth.email_label')} ]</span>
               <Mail size={16} className="text-black" />
             </div>
             <p className="text-[11px] text-neutral-500 font-sans">{t('contact.email_desc')}</p>
@@ -56,7 +54,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="space-y-2">
             <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
-              <span>[ 02 // WHATSAPP ]</span>
+              <span>[ 02 // WhatsApp ]</span>
               <Phone size={16} className="text-black" />
             </div>
             <p className="text-[11px] text-neutral-500 font-sans">{t('contact.whatsapp_desc')}</p>
@@ -76,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="space-y-2">
             <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
-              <span>[ 03 // LOCATION ]</span>
+              <span>[ 03 // {t('位置')} ]</span>
               <MapPin size={16} className="text-black" />
             </div>
             <p className="text-[11px] text-neutral-500 font-sans">{t('contact.location_desc')}</p>
@@ -84,9 +82,7 @@ export default function ContactPage() {
               {t('contact.address')}
             </p>
           </div>
-          <div className="py-2 bg-neutral-50 border border-black text-center text-[10px] text-neutral-500 font-bold uppercase">
-            STATUS: ACTIVE REGISTRY
-          </div>
+          <div className="py-2 bg-neutral-50 border border-black text-center text-[10px] text-neutral-500 font-bold uppercase">{t('状态:登记有效')}</div>
         </div>
 
       </div>

+ 7 - 10
src/app/cookie-policy/page.tsx → src/components/pages/CookiePolicyPage.tsx

@@ -1,24 +1,21 @@
 'use client';
 
 import { useLanguage } from '@/lib/i18n/LanguageContext';
-import { Cookie, CheckSquare } from 'lucide-react';
 
 export default function CookiePolicyPage() {
   const { t } = useLanguage();
 
   return (
     <div className="min-h-screen bg-neutral-100 py-8 px-4 sm:px-6 md:py-12 md:px-8 space-y-6 max-w-5xl mx-auto font-mono">
-      
+
       {/* 顶部公报标头 */}
       <div className="bg-neutral-100 border-2 border-black p-6 sm:p-10 shadow-[6px_6px_0px_#000] text-black">
         <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">
             <span className="w-3 h-3 bg-amber-300 border border-black inline-block" />
-            <span className="tracking-widest uppercase">[ VAS-LEGAL // COOKIE & STORAGE POLICY ]</span>
-          </div>
-          <div className="text-neutral-500">
-            SPECIFICATION: RFC-6265 // COMPLIANT
+            <span className="tracking-widest uppercase">[ {t('footer.cookie')} ]</span>
           </div>
+          <div className="text-neutral-500">{t('footer.cookie')}</div>
         </div>
 
         <div className="space-y-2">
@@ -33,7 +30,7 @@ export default function CookiePolicyPage() {
 
       {/* Cookie 条款卷宗卡片 */}
       <div className="bg-white border-2 border-black p-6 sm:p-10 shadow-[6px_6px_0px_#000] space-y-6 text-black">
-        
+
         {/* Section 1 */}
         <div className="p-5 border-2 border-black bg-neutral-50 shadow-[3px_3px_0px_#000] space-y-2">
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
@@ -41,7 +38,7 @@ export default function CookiePolicyPage() {
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 01</span>
               <span>{t('cookie_content.section1_title') || 'Cookie 与本地存储的作用'}</span>
             </span>
-            <span className="text-[10px] text-neutral-500">PURPOSE</span>
+            <span className="text-[10px] text-neutral-500">{t('cookie_content.section1_title')}</span>
           </div>
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
             {t('cookie_content.section1_desc') || '为了保障您的会话登录状态、多语言偏好设置以及提供稳定的使馆名额轮询加速服务,系统会在您的浏览器中存储必要的轻量凭证。'}
@@ -55,7 +52,7 @@ export default function CookiePolicyPage() {
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 02</span>
               <span>{t('cookie_content.section2_title') || '我们采用的技术存储类别'}</span>
             </span>
-            <span className="text-[10px] text-neutral-500">CATEGORIES</span>
+            <span className="text-[10px] text-neutral-500">{t('cookie_content.section2_title')}</span>
           </div>
           <ul className="space-y-2 text-xs text-neutral-700 font-sans pl-2 pt-1">
             <li className="flex items-start gap-2">
@@ -76,7 +73,7 @@ export default function CookiePolicyPage() {
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 03</span>
               <span>{t('cookie_content.section3_title') || '用户自主管理与清除偏好'}</span>
             </span>
-            <span className="text-[10px] text-neutral-500">MANAGEMENT</span>
+            <span className="text-[10px] text-neutral-500">{t('cookie_content.section3_title')}</span>
           </div>
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
             {t('cookie_content.section3_desc') || '您可以通过浏览器设置随时清空全部本地 Cookie 及缓存数据。请注意清除必要凭据后,您可能需要重新登录控制台。'}

+ 8 - 23
src/app/create-order/[id]/page.tsx → src/components/pages/CreateOrderPage.tsx

@@ -1,47 +1,32 @@
 'use client';
 
 import CreateOrderForm from '@/components/CreateOrderForm';
-import { useEffect, useState } from 'react';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
 import { ArrowLeft } from 'lucide-react';
 
-const PRODUCT_MAP: Record<string, string> = {
-  '1': '日本单次旅游签证', 
-  '2': '泰国电子签',
-  '3': '美国B1/B2咨询',
-};
-
 export default function CreateOrderPage({ params }: { params: { id: string } }) {
-  const { t, lang } = useLanguage();
-  const [productName, setProductName] = useState(t('common.loading'));
-
-  useEffect(() => {
-    const zhName = PRODUCT_MAP[params.id];
-    const name = zhName ? (lang === 'zh' ? zhName : `Service #${params.id}`) : `Product #${params.id}`;
-    setProductName(name);
-  }, [params.id, t, lang]); 
+  const { t } = useLanguage();
 
   return (
     <div className="min-h-screen bg-neutral-100 py-6 px-4 md:py-10 md:px-6">
       <div className="max-w-3xl mx-auto space-y-4">
-        
+
         {/* 复古实体返回按键 */}
         <div>
-          <button 
-            onClick={() => window.history.back()} 
+          <button
+            onClick={() => window.history.back()}
             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} />
             <span>[ ← {t('common.back') || '返回上一页'} ]</span>
           </button>
         </div>
-        
+
         {/* 表单主体 */}
-        <CreateOrderForm 
-          productId={params.id} 
-          productName={productName} 
+        <CreateOrderForm
+          productId={params.id}
         />
       </div>
     </div>
   );
-}
+}

+ 27 - 27
src/app/dashboard/page.tsx → src/components/pages/DashboardPage.tsx

@@ -1,7 +1,7 @@
 'use client';
 
 import { useState, useEffect } from 'react';
-import { useRouter } from 'next/navigation';
+import { useRouter } from '@/lib/i18n/navigation';
 import { Plus, FileText, LifeBuoy, Settings, Radio } from 'lucide-react';
 
 import Sidebar from '@/components/dashboard/Sidebar';
@@ -22,9 +22,9 @@ import MessageModal from '@/components/common/MessageModal';
 export default function DashboardPage() {
   const router = useRouter();
   const { t } = useLanguage();
-  
+
   const [activeTab, setActiveTab] = useState<string>('orders');
-  
+
   // --- 业务弹窗状态 ---
   const [isTicketModalOpen, setIsTicketModalOpen] = useState<boolean>(false);
   const [ticketDefaultOrderId, setTicketDefaultOrderId] = useState<string>('');
@@ -34,7 +34,7 @@ export default function DashboardPage() {
   const [selectedTicket, setSelectedTicket] = useState<UserTicket | null>(null);
   const [refreshTickets, setRefreshTickets] = useState<number>(0);
   const [openTicketsMap, setOpenTicketsMap] = useState<Record<string, UserTicket>>({});
-  
+
   // 强制绑定邮箱状态
   const [isForceBindEmailOpen, setIsForceBindEmailOpen] = useState(false);
   const [isCheckingAuth, setIsCheckingAuth] = useState(true);
@@ -157,7 +157,7 @@ export default function DashboardPage() {
       <div className="min-h-screen bg-neutral-100 flex items-center justify-center font-mono">
         <div className="bg-white border-2 border-black p-8 shadow-[6px_6px_0px_#000] text-center">
           <div className="w-8 h-8 border-4 border-black border-t-amber-300 rounded-full animate-spin mx-auto mb-3" />
-          <p className="text-xs font-black uppercase">[ INITIALIZING USER SESSION... ]</p>
+          <p className="text-xs font-black uppercase">[ {t('common.loading')} ]</p>
         </div>
       </div>
     );
@@ -165,17 +165,17 @@ export default function DashboardPage() {
 
   return (
     <div className="min-h-screen bg-neutral-100 py-6 px-4 sm:px-6 md:py-10 md:px-8 space-y-6 max-w-7xl mx-auto">
-      
+
       {/* 顶部控制台标头 */}
       <div className="bg-neutral-100 border-2 border-black p-6 sm:p-8 shadow-[6px_6px_0px_#000] text-black font-mono">
         <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">
             <span className="w-3 h-3 bg-amber-300 border border-black inline-block" />
-            <span className="tracking-widest uppercase">[ DASHBOARD // 用户个人工作台 ]</span>
+            <span className="tracking-widest uppercase">[ {t('dashboard.title')} ]</span>
           </div>
           <div className="text-neutral-500 flex items-center gap-1.5">
             <Radio size={14} className="text-black" />
-            <span>SESSION: ACTIVE // VERIFIED</span>
+            <span>{t('nav.dashboard')}</span>
           </div>
         </div>
 
@@ -192,7 +192,7 @@ export default function DashboardPage() {
           <div className="flex items-center gap-2.5">
             <button
               onClick={() => handleCreateTicket()}
-              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-nowrap"
+              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} />
               <span>[ {t('dashboard.new_ticket') || '提交客服工单'} ]</span>
@@ -231,7 +231,7 @@ export default function DashboardPage() {
 
       {/* 主体工作区布局 (左侧边栏 + 右侧主内容) */}
       <div className="grid grid-cols-1 md:grid-cols-4 gap-6">
-        
+
         {/* 左侧实体侧边栏 */}
         <div className="hidden md:block md:col-span-1">
           <Sidebar activeTab={activeTab} setActiveTab={setActiveTab} />
@@ -239,19 +239,19 @@ export default function DashboardPage() {
 
         {/* 右侧主面板 */}
         <div className="md:col-span-3 space-y-6">
-          
+
           {/* Tab 1: 申请订单列表 */}
           {activeTab === 'orders' && (
             <div className="bg-white border-2 border-black p-5 sm:p-6 shadow-[6px_6px_0px_#000] space-y-5">
-              <div className="flex items-center justify-between border-b-2 border-black pb-3 font-mono">
+              <div className="flex flex-wrap items-center justify-between gap-2 border-b-2 border-black pb-3 font-mono">
                 <div className="flex items-center gap-2">
                   <FileText size={18} className="text-black" />
                   <span className="text-sm font-black text-black uppercase">[ 01 // {t('order.history_title')} ]</span>
                 </div>
-                <span className="text-[11px] text-neutral-500 font-bold">[ VAS-ORDERS ]</span>
+                <span className="text-[11px] text-neutral-500 font-bold">[ {t('sidebar.orders')} ]</span>
               </div>
 
-              <OrderList 
+              <OrderList
                 openTicketsMap={openTicketsMap}
                 onViewTicket={(ticket) => {
                   setSelectedTicket(ticket);
@@ -266,15 +266,15 @@ export default function DashboardPage() {
           {/* Tab 2: 客服工单列表 */}
           {activeTab === 'tickets' && (
             <div className="bg-white border-2 border-black p-5 sm:p-6 shadow-[6px_6px_0px_#000] space-y-5">
-              <div className="flex items-center justify-between border-b-2 border-black pb-3 font-mono">
+              <div className="flex flex-wrap items-center justify-between gap-2 border-b-2 border-black pb-3 font-mono">
                 <div className="flex items-center gap-2">
                   <LifeBuoy size={18} className="text-black" />
                   <span className="text-sm font-black text-black uppercase">[ 02 // {t('ticket.my_tickets')} ]</span>
                 </div>
-                <span className="text-[11px] text-neutral-500 font-bold">[ SUPPORT-THREADS ]</span>
+                <span className="text-[11px] text-neutral-500 font-bold">[ {t('sidebar.tickets')} ]</span>
               </div>
 
-              <TicketList 
+              <TicketList
                 onViewDetail={handleViewTicket}
                 refreshTrigger={refreshTickets}
               />
@@ -284,12 +284,12 @@ export default function DashboardPage() {
           {/* Tab 3: 账户设置 */}
           {activeTab === 'settings' && (
             <div className="bg-white border-2 border-black p-5 sm:p-6 shadow-[6px_6px_0px_#000] space-y-5">
-              <div className="flex items-center justify-between border-b-2 border-black pb-3 font-mono">
+              <div className="flex flex-wrap items-center justify-between gap-2 border-b-2 border-black pb-3 font-mono">
                 <div className="flex items-center gap-2">
                   <Settings size={18} className="text-black" />
                   <span className="text-sm font-black text-black uppercase">[ 03 // {t('settings.title')} ]</span>
                 </div>
-                <span className="text-[11px] text-neutral-500 font-bold">[ SECURITY-CONFIG ]</span>
+                <span className="text-[11px] text-neutral-500 font-bold">[ {t('sidebar.settings')} ]</span>
               </div>
 
               <ProfileSettings />
@@ -300,7 +300,7 @@ export default function DashboardPage() {
       </div>
 
       {/* === 业务弹窗 === */}
-      <TicketModal 
+      <TicketModal
         isOpen={isTicketModalOpen}
         onClose={() => setIsTicketModalOpen(false)}
         onSuccess={handleTicketSuccess}
@@ -308,27 +308,27 @@ export default function DashboardPage() {
         openTicketsMap={openTicketsMap}
       />
 
-      <UserOrderDetailModal 
+      <UserOrderDetailModal
         isOpen={isOrderDetailOpen}
         onClose={() => setIsOrderDetailOpen(false)}
         order={selectedOrder}
       />
 
-      <UserTicketDetailModal 
+      <UserTicketDetailModal
         isOpen={isTicketDetailOpen}
         onClose={() => setIsTicketDetailOpen(false)}
         ticket={selectedTicket}
       />
 
       {/* 强制绑定邮箱弹窗 */}
-      <BindEmailModal 
+      <BindEmailModal
         isOpen={isForceBindEmailOpen}
-        onClose={() => {}} 
+        onClose={() => {}}
         onSuccess={handleForceBindSuccess}
       />
 
       {/* 通用交互弹窗 */}
-      <ConfirmModal 
+      <ConfirmModal
         isOpen={isLogoutConfirmOpen}
         title={t('nav.logout_confirm_title') || '退出登录'}
         message={t('nav.logout_confirm_desc') || '确定要退出当前账号吗?'}
@@ -341,7 +341,7 @@ export default function DashboardPage() {
         onCancel={() => setIsLogoutConfirmOpen(false)}
       />
 
-      <MessageModal 
+      <MessageModal
         isOpen={msgModal.isOpen}
         title={msgModal.title}
         message={msgModal.message}
@@ -350,4 +350,4 @@ export default function DashboardPage() {
       />
     </div>
   );
-}
+}

+ 0 - 0
src/app/login/page.tsx → src/components/pages/LoginPage.tsx


+ 2 - 2
src/app/payment/confirm/page.tsx → src/components/pages/PaymentConfirmPage.tsx

@@ -11,8 +11,8 @@ export default function PaymentConfirmPage() {
       </Suspense>
 
       <p className="mt-6 font-mono text-xs text-neutral-500">
-        [ VAS SYSTEM &copy; {new Date().getFullYear()} // LEDGER TERMINAL ]
+        STRATA &copy; {new Date().getFullYear()}
       </p>
     </div>
   );
-}
+}

+ 0 - 0
src/app/payment/[id]/page.tsx → src/components/pages/PaymentPage.tsx


+ 7 - 10
src/app/privacy/page.tsx → src/components/pages/PrivacyPage.tsx

@@ -1,24 +1,21 @@
 'use client';
 
 import { useLanguage } from '@/lib/i18n/LanguageContext';
-import { Shield, Lock, CheckCircle } from 'lucide-react';
 
 export default function PrivacyPage() {
   const { t } = useLanguage();
 
   return (
     <div className="min-h-screen bg-neutral-100 py-8 px-4 sm:px-6 md:py-12 md:px-8 space-y-6 max-w-5xl mx-auto font-mono">
-      
+
       {/* 顶部公报标头 */}
       <div className="bg-neutral-100 border-2 border-black p-6 sm:p-10 shadow-[6px_6px_0px_#000] text-black">
         <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">
             <span className="w-3 h-3 bg-amber-300 border border-black inline-block" />
-            <span className="tracking-widest uppercase">[ VAS-LEGAL // PRIVACY & DATA PROTECTION ]</span>
-          </div>
-          <div className="text-neutral-500">
-            COMPLIANCE: GDPR & ISO/IEC-27001
+            <span className="tracking-widest uppercase">[ {t('footer.privacy')} ]</span>
           </div>
+          <div className="text-neutral-500">{t('footer.privacy')}</div>
         </div>
 
         <div className="space-y-2">
@@ -33,7 +30,7 @@ export default function PrivacyPage() {
 
       {/* 隐私条款卷宗卡片 */}
       <div className="bg-white border-2 border-black p-6 sm:p-10 shadow-[6px_6px_0px_#000] space-y-6 text-black">
-        
+
         {/* Section 1 */}
         <div className="p-5 border-2 border-black bg-neutral-50 shadow-[3px_3px_0px_#000] space-y-2">
           <div className="flex items-center justify-between border-b-2 border-black pb-2 text-xs font-black">
@@ -41,7 +38,7 @@ export default function PrivacyPage() {
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 01</span>
               <span>{t('privacy_content.section1_title') || '我们收集的申报信息范围'}</span>
             </span>
-            <span className="text-[10px] text-neutral-500">DATA-COLLECTION</span>
+            <span className="text-[10px] text-neutral-500">{t('privacy_content.section1_title')}</span>
           </div>
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
             {t('privacy_content.section1_desc') || '仅在您提交签证订单或名额监控时,收集必要的申请人姓名、护照号、生日、联系邮箱及签证中心预约所需的特定表单参数。'}
@@ -55,7 +52,7 @@ export default function PrivacyPage() {
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 02</span>
               <span>{t('privacy_content.section2_title') || '信息使用目的与自动化调用'}</span>
             </span>
-            <span className="text-[10px] text-neutral-500">DATA-USAGE</span>
+            <span className="text-[10px] text-neutral-500">{t('privacy_content.section2_title')}</span>
           </div>
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
             {t('privacy_content.section2_desc') || '所收集信息仅用于向指定使馆官方系统发送自动化放号抢约指令及生成预约回执。平台绝不出售或向无关第三方披露您的个人敏感档案。'}
@@ -69,7 +66,7 @@ export default function PrivacyPage() {
               <span className="px-2 py-0.5 bg-black text-white text-[10px]">§ 03</span>
               <span>{t('privacy_content.section3_title') || '银行级加密存储与数据销毁'}</span>
             </span>
-            <span className="text-[10px] text-neutral-500">SECURITY-ENCRYPTION</span>
+            <span className="text-[10px] text-neutral-500">{t('privacy_content.section3_title')}</span>
           </div>
           <p className="text-xs text-neutral-700 font-sans leading-relaxed">
             {t('privacy_content.section3_desc') || '传输全程采用 TLS 1.3 强加密,静态数据在数据库中进行 AES-256 分段加密。服务履约完成后支持在控制台手动清除档案记录。'}

+ 30 - 32
src/app/refund-policy/page.tsx → src/components/pages/RefundPolicyPage.tsx

@@ -1,6 +1,6 @@
 'use client';
 
-import { ShieldCheck, HelpCircle, AlertTriangle, Mail, Info, CreditCard, Smartphone, Wallet, CheckCircle } from 'lucide-react';
+import { HelpCircle, AlertTriangle, Mail, Info, CreditCard, Smartphone, Wallet } from 'lucide-react';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
 
 const TelegramIcon = ({ className }: { className?: string }) => (
@@ -19,27 +19,25 @@ export default function RefundPolicyPage() {
   const { t } = useLanguage();
 
   const TELEGRAM_USERNAME = "STRATA Support";
-  const TELEGRAM_NUMBER = "+8617386033451"; 
-  const WHATSAPP_NUMBER = "8617386033451";  
+  const TELEGRAM_NUMBER = "+8617386033451";
+  const WHATSAPP_NUMBER = "8617386033451";
 
   return (
     <div className="min-h-screen bg-neutral-100 py-8 px-4 sm:px-6 md:py-12 md:px-8 space-y-6 max-w-5xl mx-auto font-mono">
-      
+
       {/* 顶部公报标头 */}
       <div className="bg-neutral-100 border-2 border-black p-6 sm:p-10 shadow-[6px_6px_0px_#000] text-black">
         <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">
             <span className="w-3 h-3 bg-amber-300 border border-black inline-block" />
-            <span className="tracking-widest uppercase">[ VAS-LEGAL // REFUND POLICY & GUARANTEE ]</span>
-          </div>
-          <div className="text-neutral-500">
-            GAZETTE REF: DOC-REFUND-2026
+            <span className="tracking-widest uppercase">[ {t('footer.refund_policy')} ]</span>
           </div>
+          <div className="text-neutral-500">{t('footer.refund_policy')}</div>
         </div>
 
         <div className="space-y-2">
           <h1 className="text-2xl sm:text-4xl font-black tracking-tight text-black uppercase">
-            {t('refund.title') || '退款政策与官方保障条款'}
+            {t('refund.title') || '退款政策与适用条件'}
           </h1>
           <p className="text-xs sm:text-sm text-neutral-600 font-mono">
             {t('refund.subtitle') || '透明规范的退款条款与退单手续费扣减细则。'}
@@ -49,7 +47,7 @@ export default function RefundPolicyPage() {
 
       {/* 主体卷宗内容区 */}
       <div className="bg-white border-2 border-black p-6 sm:p-10 shadow-[6px_6px_0px_#000] space-y-8 text-black">
-        
+
         {/* Section 1: 标准退款规则与网关手续费 */}
         <section className="space-y-4">
           <div className="flex items-center justify-between border-b-2 border-black pb-2">
@@ -57,13 +55,13 @@ export default function RefundPolicyPage() {
               <span className="px-2 py-0.5 bg-black text-white text-xs font-bold">§ 01</span>
               <span>{t('refund.standard_refund_title') || '标准退款政策与网关手续费扣减'}</span>
             </h2>
-            <span className="text-[10px] text-neutral-500 font-bold">[ TERMS-FEE ]</span>
+            <span className="text-[10px] text-neutral-500 font-bold">[ {t('refund.standard_refund_title')} ]</span>
           </div>
-          
+
           {/* 动态费用提示框 */}
           <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">
-              <Info size={15} /> 
+              <Info size={15} />
               <span>{t('refund.fee_notice_title') || '退单手续费须知'}</span>
             </div>
             <p className="text-neutral-700 text-xs font-sans leading-relaxed">
@@ -76,11 +74,11 @@ export default function RefundPolicyPage() {
                 <div>{t('refund.fee_table_method') || '支付通道 / 结算网关'}</div>
                 <div className="text-right">{t('refund.fee_table_deduction') || '网关扣除费率'}</div>
               </div>
-              
+
               {/* Stripe */}
               <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">
-                  <CreditCard size={14} className="text-black"/> 
+                  <CreditCard size={14} className="text-black"/>
                   <span>{t('refund.fee_stripe') || 'Stripe (信用卡 / 国际卡)'}</span>
                 </div>
                 <div className="text-right font-black text-black">
@@ -91,7 +89,7 @@ export default function RefundPolicyPage() {
               {/* WeChat / Alipay */}
               <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">
-                  <Smartphone size={14} className="text-black"/> 
+                  <Smartphone size={14} className="text-black"/>
                   <span>{t('refund.fee_wechat') || '微信支付 / 支付宝'}</span>
                 </div>
                 <div className="text-right font-black text-black">
@@ -102,7 +100,7 @@ export default function RefundPolicyPage() {
               {/* Others */}
               <div className="grid grid-cols-2 p-3 text-xs items-center">
                 <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>
                 </div>
                 <div className="text-right font-bold text-neutral-600">
@@ -136,12 +134,12 @@ export default function RefundPolicyPage() {
               <span className="px-2 py-0.5 bg-black text-white text-xs font-bold">§ 02</span>
               <span>{t('refund.no_refund_title') || '无法支持退款的特殊情况'}</span>
             </h2>
-            <span className="text-[10px] text-neutral-500 font-bold">[ EXCLUSIONS ]</span>
+            <span className="text-[10px] text-neutral-500 font-bold">[ {t('refund.no_refund_title')} ]</span>
           </div>
 
           <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">
-              <AlertTriangle size={15} className="text-rose-600"/> 
+              <AlertTriangle size={15} className="text-rose-600"/>
               <span>{t('refund.important_note') || '特别注意事项'}</span>
             </div>
             <p className="text-neutral-700 font-sans">{t('refund.important_note_desc') || '若服务已履约或因用户个人原因导致失误,恕不支持退单:'}</p>
@@ -174,22 +172,22 @@ export default function RefundPolicyPage() {
               <span className="px-2 py-0.5 bg-black text-white text-xs font-bold">§ 03</span>
               <span>{t('refund.process_title') || '退款申请 3 步处理流转'}</span>
             </h2>
-            <span className="text-[10px] text-neutral-500 font-bold">[ WORKFLOW ]</span>
+            <span className="text-[10px] text-neutral-500 font-bold">[ {t('refund.process_title')} ]</span>
           </div>
 
           <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="font-black text-black uppercase">[ STEP 01 ]</div>
+              <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>
             <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">[ STEP 02 ]</div>
+              <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>
             <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">[ STEP 03 ]</div>
+              <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>
@@ -199,23 +197,23 @@ export default function RefundPolicyPage() {
         {/* Section 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">
-            <HelpCircle size={16} /> 
-            <span>{t('refund.contact_title') || '官方专属顾问联络专线'}</span>
+            <HelpCircle size={16} />
+            <span>{t('refund.contact_title') || 'STRATA 服务支持'}</span>
           </h2>
-          
+
           <div className="grid grid-cols-1 md:grid-cols-3 gap-3">
-            <a 
-              href="mailto:support@text.skin" 
+            <a
+              href="mailto:support@text.skin"
               className="flex items-center gap-3 p-3 bg-white border-2 border-black shadow-[2px_2px_0px_#000] hover:bg-amber-300 transition active:translate-x-0.5 active:translate-y-0.5"
             >
               <Mail size={16} className="text-black" />
               <div className="min-w-0">
-                <div className="text-xs font-black text-black uppercase">Email Support</div>
+                <div className="text-xs font-black text-black uppercase">{t('contact.email_btn')}</div>
                 <div className="text-[11px] text-neutral-600 truncate">support@text.skin</div>
               </div>
             </a>
 
-            <a 
+            <a
               href={`https://t.me/${TELEGRAM_NUMBER}`}
               target="_blank"
               rel="noopener noreferrer"
@@ -228,7 +226,7 @@ export default function RefundPolicyPage() {
               </div>
             </a>
 
-            <a 
+            <a
               href={`https://wa.me/${WHATSAPP_NUMBER}`}
               target="_blank"
               rel="noopener noreferrer"
@@ -237,7 +235,7 @@ export default function RefundPolicyPage() {
               <WhatsAppIcon className="w-4 h-4 text-black" />
               <div className="min-w-0">
                 <div className="text-xs font-black text-black uppercase">WhatsApp</div>
-                <div className="text-[11px] text-neutral-600 truncate">Chat with us</div>
+                <div className="text-[11px] text-neutral-600 truncate">{t('contact.whatsapp_btn')}</div>
               </div>
             </a>
           </div>

+ 0 - 0
src/app/services/page.tsx → src/components/pages/ServicesPage.tsx


+ 13 - 15
src/app/dashboard/settings/page.tsx → src/components/pages/SettingsPage.tsx

@@ -2,8 +2,8 @@
 
 import ProfileSettings from '@/components/dashboard/ProfileSettings';
 import Sidebar from '@/components/dashboard/Sidebar';
-import { useRouter } from 'next/navigation';
-import { LogOut, Plus, ShieldCheck } from 'lucide-react';
+import { useRouter } from '@/lib/i18n/navigation';
+import { LogOut, Plus } from 'lucide-react';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
 
 export default function SettingsPage() {
@@ -26,17 +26,15 @@ export default function SettingsPage() {
 
   return (
     <div className="min-h-screen bg-neutral-100 py-6 px-4 sm:px-6 md:py-10 md:px-8 space-y-6 max-w-7xl mx-auto font-mono">
-      
+
       {/* 顶部控制台标头 */}
       <div className="bg-neutral-100 border-2 border-black p-6 sm:p-8 shadow-[6px_6px_0px_#000] text-black">
         <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">
             <span className="w-3 h-3 bg-amber-300 border border-black inline-block" />
-            <span className="tracking-widest uppercase">[ DASHBOARD // 账户设置 ]</span>
-          </div>
-          <div className="text-neutral-500">
-            SECURITY LEVEL: HIGH // VERIFIED
+            <span className="tracking-widest uppercase">[ {t('settings.title')} ]</span>
           </div>
+          <div className="text-neutral-500">{t('settings.security_tip_title')}</div>
         </div>
 
         <div className="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4">
@@ -49,14 +47,14 @@ export default function SettingsPage() {
             </p>
           </div>
           <div className="flex gap-2.5">
-            <button 
-              onClick={() => router.push('/services')} 
+            <button
+              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"
             >
               <Plus size={14} /> <span>[ {t('common.new_application') || '新建申请'} ]</span>
             </button>
-            <button 
-              onClick={handleLogout} 
+            <button
+              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"
             >
               <LogOut size={14} /> <span>[ {t('nav.logout') || '退出登录'} ]</span>
@@ -66,12 +64,12 @@ export default function SettingsPage() {
       </div>
 
       <div className="grid grid-cols-1 lg:grid-cols-4 gap-6">
-        
+
         {/* 左侧侧边栏 */}
         <div className="lg:col-span-1">
-          <Sidebar 
-            activeTab="settings" 
-            setActiveTab={handleTabChange} 
+          <Sidebar
+            activeTab="settings"
+            setActiveTab={handleTabChange}
           />
         </div>
 

+ 8 - 8
src/app/slots/page.tsx → src/components/pages/SlotsPage.tsx

@@ -1,7 +1,7 @@
 'use client';
 
 import { useState, useEffect, useMemo } from 'react';
-import { Info, Activity, Radio } from 'lucide-react';
+import { Radio } from 'lucide-react';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
 import SlotFilterBar, { LOCATIONS } from '@/components/slots/SlotFilterBar';
 import SlotGrid from '@/components/slots/SlotGrid';
@@ -12,7 +12,7 @@ export default function SlotDashboardPage() {
   const { t } = useLanguage();
   const [loading, setLoading] = useState(true);
   const [snapshots, setSnapshots] = useState<SlotSnapshot[]>([]);
-  
+
   const [selectedCountryCode, setSelectedCountryCode] = useState('IE');
   const [selectedCity, setSelectedCity] = useState('Dublin');
 
@@ -33,12 +33,12 @@ export default function SlotDashboardPage() {
   const fetchDashboard = async () => {
     setLoading(true);
     try {
-      const res = await statsService.getSlotsOverview(selectedCity); 
+      const res = await statsService.getSlotsOverview(selectedCity);
       const data = res?.data || [];
 
       // 过滤当前城市
       const filtered = data.filter((i: SlotSnapshot) => i.city === selectedCity);
-      
+
       // 排序: Available > Waitlist > None
       filtered.sort((a: SlotSnapshot, b: SlotSnapshot) => {
         const score = (s: string) => (s === 'Available' ? 3 : s === 'Waitlist' ? 2 : 1);
@@ -62,17 +62,17 @@ export default function SlotDashboardPage() {
 
   return (
     <div className="min-h-screen bg-neutral-100 py-6 px-4 sm:px-6 md:py-10 md:px-8 space-y-6 max-w-7xl mx-auto">
-      
+
       {/* 顶部雷达标头卡片 */}
       <div className="bg-neutral-100 border-2 border-black p-6 sm:p-8 shadow-[6px_6px_0px_#000] text-black">
         <div className="flex flex-wrap items-center justify-between gap-2 border-b-2 border-black pb-3 mb-4 font-mono text-xs font-bold select-none">
           <div className="flex items-center gap-2">
             <span className="w-3 h-3 bg-amber-300 border border-black inline-block animate-pulse" />
-            <span className="tracking-widest uppercase">[ SLOTS RADAR // 实时使馆名额监控雷达 ]</span>
+            <span className="tracking-widest uppercase">[ {t('slots.title')} ]</span>
           </div>
           <div className="text-neutral-500 font-mono flex items-center gap-1.5">
             <Radio size={14} className="text-black animate-spin" />
-            <span>RADAR POLLING: 24/7 ACTIVE</span>
+            <span>{t('slots.updated_at')}</span>
           </div>
         </div>
 
@@ -81,7 +81,7 @@ export default function SlotDashboardPage() {
             {t('slots.title') || '实时使馆名额雷达监控'}
           </h1>
           <p className="text-xs sm:text-sm text-neutral-600 font-mono leading-relaxed">
-            {t('slots.subtitle') || '查看各使馆及签证中心最新可预约名额状态(毫秒级云端轮询更新)。'}
+            {t('slots.subtitle') || '查看预约名额记录,并留意数据更新时间。'}
           </p>
         </div>
       </div>

+ 12 - 14
src/app/terms/page.tsx → src/components/pages/TermsPage.tsx

@@ -1,25 +1,23 @@
 'use client';
 
 import { useLanguage } from '@/lib/i18n/LanguageContext';
-import Link from 'next/link';
-import { FileText, ArrowRight } from 'lucide-react';
+import Link from '@/components/common/LocalizedLink';
+import { ArrowRight } from 'lucide-react';
 
 export default function TermsPage() {
   const { t } = useLanguage();
 
   return (
     <div className="min-h-screen bg-neutral-100 py-8 px-4 sm:px-6 md:py-12 md:px-8 space-y-6 max-w-5xl mx-auto font-mono">
-      
+
       {/* 顶部公报标头 */}
       <div className="bg-neutral-100 border-2 border-black p-6 sm:p-10 shadow-[6px_6px_0px_#000] text-black">
         <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">
             <span className="w-3 h-3 bg-amber-300 border border-black inline-block" />
-            <span className="tracking-widest uppercase">[ VAS-LEGAL // TERMS OF SERVICE ]</span>
-          </div>
-          <div className="text-neutral-500">
-            GAZETTE REF: DOC-TERMS-2026
+            <span className="tracking-widest uppercase">[ {t('footer.terms')} ]</span>
           </div>
+          <div className="text-neutral-500">{t('footer.terms')}</div>
         </div>
 
         <div className="space-y-2">
@@ -34,7 +32,7 @@ export default function TermsPage() {
 
       {/* 主体卷宗内容区 */}
       <div className="bg-white border-2 border-black p-6 sm:p-10 shadow-[6px_6px_0px_#000] space-y-6 text-black">
-        
+
         <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">
             {t('terms.description') || '欢迎访问 STRATA 全球签证自动化系统。在您使用本平台提供的名额监控、代办提交及相关增值服务前,请审慎阅读以下条款。'}
@@ -45,7 +43,7 @@ export default function TermsPage() {
           <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">
               <span>[ {t('terms.article_1_title')} ]</span>
-              <span className="text-[10px] text-neutral-500">ARTICLE 1</span>
+              <span className="text-[10px] text-neutral-500">{t('章节')} 1</span>
             </div>
             <p className="text-xs text-neutral-700 font-sans leading-relaxed pt-1">
               {t('terms.point_one') || '用户须保证所填报的个人身份证明、护照信息及使馆申报资料真实合法。平台仅依据用户授权执行自动化辅助递交。'}
@@ -55,7 +53,7 @@ export default function TermsPage() {
           <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">
               <span>[ {t('terms.article_2_title')} ]</span>
-              <span className="text-[10px] text-neutral-500">ARTICLE 2</span>
+              <span className="text-[10px] text-neutral-500">{t('章节')} 2</span>
             </div>
             <p className="text-xs text-neutral-700 font-sans leading-relaxed pt-1">
               {t('terms.point_two') || '名额开放周期与签证获批与否由各国使领馆及签证中心全权裁定,自动化系统提供高并发实时监控与锁位服务保障。'}
@@ -65,7 +63,7 @@ export default function TermsPage() {
           <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">
               <span>[ {t('terms.article_3_title')} ]</span>
-              <span className="text-[10px] text-neutral-500">ARTICLE 3</span>
+              <span className="text-[10px] text-neutral-500">{t('章节')} 3</span>
             </div>
             <p className="text-xs text-neutral-700 font-sans leading-relaxed pt-1">
               {t('terms.point_three') || '平台采用银行级对称加密保护用户申报数据,严禁利用本系统实施任何违反使领馆规则或破坏公共网络的行为。'}
@@ -77,11 +75,11 @@ export default function TermsPage() {
           <span className="text-neutral-500 font-sans">
             {t('terms.contact_prompt') || '如对服务条款有任何异议或咨询:'}
           </span>
-          <Link 
-            href="/contact" 
+          <Link
+            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"
           >
-            <span>[ {t('footer.contact') || '联系官方专员'} ]</span>
+            <span>[ {t('footer.contact') || '联系 STRATA 支持'} ]</span>
             <ArrowRight size={13} />
           </Link>
         </div>

Vissa filer visades inte eftersom för många filer har ändrats