Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(login): Apple 入口 ADR 官方圆钮(全端) + 暗色 slogan 透明底 + 错误提示垂直居中 (#322)
Praise67cd70de17af
diff --git a/apps/desktop/src/renderer/assets/login/icons/apple-dark.svg b/apps/desktop/src/renderer/assets/login/icons/apple-dark.svgindex 671001e367..2e58cde0ec 100644--- a/apps/desktop/src/renderer/assets/login/icons/apple-dark.svg+++ b/apps/desktop/src/renderer/assets/login/icons/apple-dark.svg@@ -1,9 +1,7 @@-<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">-<g id="其他登录方式入口">-<g id="Property 1=Apple">-<g id="ic:baseline-apple">-<path id="Vector" d="M33.0984 39.56C31.1384 41.46 28.9984 41.16 26.9384 40.26C24.7584 39.34 22.7584 39.3 20.4584 40.26C17.5784 41.5 16.0584 41.14 14.3384 39.56C4.57837 29.5 6.01838 14.18 17.0984 13.62C19.7984 13.76 21.6784 15.1 23.2584 15.22C25.6184 14.74 27.8784 13.36 30.3984 13.54C33.4184 13.78 35.6984 14.98 37.1984 17.14C30.9584 20.88 32.4384 29.1 38.1584 31.4C37.0184 34.4 35.5384 37.38 33.0784 39.58L33.0984 39.56ZM23.0584 13.5C22.7584 9.04 26.3784 5.36 30.5384 5C31.1184 10.16 25.8584 14 23.0584 13.5Z" fill="#2A2828"/>-</g>-</g>-</g>+<!-- artwork 来自 Apple Design Resources「Sign in with Apple - Logo Only」Black 变体+ (Logo - SIWA - Logo-only - Black.svg):path d 原样未改动,仅去除方形底 rect 并按+ logo 光学中心裁切 viewBox(占位缩放,非改绘,logo 高约为圆钮 46%,对齐设计标准图)。+ 暗色模式:白圆底 + 黑标(ADR White button 配色)。 -->+<svg width="48" height="48" viewBox="15.7 13.2 24.6 24.6" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z" fill="#000000" fill-rule="nonzero"/></svg>diff --git a/apps/desktop/src/renderer/assets/login/icons/apple.svg b/apps/desktop/src/renderer/assets/login/icons/apple.svgindex 1f6c0309b4..1eab4faab1 100644--- a/apps/desktop/src/renderer/assets/login/icons/apple.svg+++ b/apps/desktop/src/renderer/assets/login/icons/apple.svg@@ -1,9 +1,7 @@-<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">-<g id="其他登录方式入口">-<g id="Property 1=Apple">-<g id="ic:baseline-apple">-<path id="Vector" d="M33.0984 39.56C31.1384 41.46 28.9984 41.16 26.9384 40.26C24.7584 39.34 22.7584 39.3 20.4584 40.26C17.5784 41.5 16.0584 41.14 14.3384 39.56C4.57837 29.5 6.01838 14.18 17.0984 13.62C19.7984 13.76 21.6784 15.1 23.2584 15.22C25.6184 14.74 27.8784 13.36 30.3984 13.54C33.4184 13.78 35.6984 14.98 37.1984 17.14C30.9584 20.88 32.4384 29.1 38.1584 31.4C37.0184 34.4 35.5384 37.38 33.0784 39.58L33.0984 39.56ZM23.0584 13.5C22.7584 9.04 26.3784 5.36 30.5384 5C31.1184 10.16 25.8584 14 23.0584 13.5Z" fill="white"/>-</g>-</g>-</g>+<!-- artwork 来自 Apple Design Resources「Sign in with Apple - Logo Only」White 变体+ (Logo - SIWA - Logo-only - White.svg):path d 原样未改动,仅去除方形底 rect 并按+ logo 光学中心裁切 viewBox(占位缩放,非改绘,logo 高约为圆钮 46%,对齐设计标准图)。+ 亮色模式:黑圆底 + 白标(ADR Black button 配色)。 -->+<svg width="48" height="48" viewBox="15.7 13.2 24.6 24.6" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z" fill="#FFFFFF" fill-rule="nonzero"/></svg>diff --git a/apps/desktop/src/renderer/assets/login/slogan-dark.png b/apps/desktop/src/renderer/assets/login/slogan-dark.pngindex d29db19357..b5d3c9ec31 100644Binary files a/apps/desktop/src/renderer/assets/login/slogan-dark.png and b/apps/desktop/src/renderer/assets/login/slogan-dark.png differdiff --git a/apps/desktop/src/renderer/assets/login/[email protected] b/apps/desktop/src/renderer/assets/login/[email protected]index fa0f07b385..99bc2326df 100644Binary files a/apps/desktop/src/renderer/assets/login/[email protected] and b/apps/desktop/src/renderer/assets/login/[email protected] differdiff --git a/apps/desktop/src/renderer/components/login/LoginControls.tsx b/apps/desktop/src/renderer/components/login/LoginControls.tsxindex fd6437e3f4..fbf64a4951 100644--- a/apps/desktop/src/renderer/components/login/LoginControls.tsx+++ b/apps/desktop/src/renderer/components/login/LoginControls.tsx@@ -413,6 +413,7 @@ export function LoginSocialButton({children,testId,isLoading,+ variant = 'default',}: {label: string;onClick: () => void;@@ -425,7 +426,14 @@ export function LoginSocialButton({* 与本组件对称的移动端 LoginSkinButton `accessibilityState={{ busy }}` 语义一致。*/isLoading?: boolean;+ /**+ * apple = Apple 登录专属样式(App Store Guideline 4,用户标准图 2026-07-24):+ * 亮色黑圆(ADR Black button)/ 暗色白圆(ADR White button),无描边;+ * 其余圆钮维持 primaryButton 反相底 + 1px 描边。+ */+ variant?: 'default' | 'apple';}) {+ const isApple = variant === 'apple';return (<buttondata-testid={testId}@@ -446,8 +454,8 @@ export function LoginSocialButton({width: SOCIAL.size,height: SOCIAL.size,borderRadius: SOCIAL.radius,- background: LOGIN_COLORS.primaryButtonBg,- border: `1px solid ${LOGIN_COLORS.primaryButtonBorder}`,+ background: isApple ? LOGIN_COLORS.appleCircleBg : LOGIN_COLORS.primaryButtonBg,+ border: isApple ? 'none' : `1px solid ${LOGIN_COLORS.primaryButtonBorder}`,}}><spandiff --git a/apps/desktop/src/renderer/components/login/LoginPage.tsx b/apps/desktop/src/renderer/components/login/LoginPage.tsxindex dd0a3cbd29..ad9346bab6 100644--- a/apps/desktop/src/renderer/components/login/LoginPage.tsx+++ b/apps/desktop/src/renderer/components/login/LoginPage.tsx@@ -14,10 +14,7 @@ import { isValidEmail } from '@cindy/auth-client';import { cn } from '@/lib/utils';import { WindowControls } from '@/components/title-bar/WindowControls';import { useLogin } from '@/hooks/useLogin';-import {- endLoginFirstLaunchLightGate,- loginFirstLaunchLightActive,-} from '@/hooks/useTheme';+import { endLoginFirstLaunchLightGate, loginFirstLaunchLightActive } from '@/hooks/useTheme';import { LOGIN_HANDOFF_TIMINGS, useLoginHandoff } from '@/contexts/LoginHandoffContext';import { useIsDarkMode } from '@/components/markdown/useIsDarkMode';@@ -330,6 +327,8 @@ export function LoginPage() {testId={`login-social-${provider}`}label={t('login.socialButton', { provider: t(`login.social.${provider}`) })}isLoading={isLoading}+ // Apple 圆钮走 ADR 官方配色(亮黑圆白标/暗白圆黑标,无描边;Guideline 4)+ variant={provider === 'apple' ? 'apple' : 'default'}onClick={() => {// SC-SOC-7: in-flight(isLoading)期间 no-op 防重复发起;行为层 guard,// 零视觉变化(圆钮已无 disabled 态 per §10 拍板,不回填 disabled 视觉)。@@ -799,29 +798,28 @@ export function LoginPage() {? `opacity ${LOGIN_HANDOFF_TIMINGS.panelMs}ms ${LOGIN_HANDOFF_TIMINGS.panelEasing}, transform ${LOGIN_HANDOFF_TIMINGS.panelMs}ms ${LOGIN_HANDOFF_TIMINGS.panelEasing}`: undefined,};- const localModeFooter =- showLocalModeFooter ? (- <>- <button- data-testid="login-local-mode"- type="button"- disabled={localModePending || isLoading}- onClick={() => void openLocalMode()}- aria-describedby="login-local-mode-description"- className="select-none rounded-full border border-[var(--border-default)] bg-[var(--surface-elevated)] px-6 py-2.5 text-13 font-medium text-[var(--text-primary)] transition-colors hover:bg-[var(--surface-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring-soft)] disabled:cursor-not-allowed disabled:opacity-60"- style={{ minHeight: 40 }}- >- {localModePending ? t('login.localModeOpening') : t('login.localModeEntry')}- </button>- <span- id="login-local-mode-description"- className="mt-2 line-clamp-2 max-w-full text-12 text-[var(--text-secondary)]"- style={{ lineHeight: `${LOGIN_LOCAL_MODE.descriptionLineHeight}px` }}- >- {t('login.localModeDescription')}- </span>- </>- ) : null;+ const localModeFooter = showLocalModeFooter ? (+ <>+ <button+ data-testid="login-local-mode"+ type="button"+ disabled={localModePending || isLoading}+ onClick={() => void openLocalMode()}+ aria-describedby="login-local-mode-description"+ className="select-none rounded-full border border-[var(--border-default)] bg-[var(--surface-elevated)] px-6 py-2.5 text-13 font-medium text-[var(--text-primary)] transition-colors hover:bg-[var(--surface-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring-soft)] disabled:cursor-not-allowed disabled:opacity-60"+ style={{ minHeight: 40 }}+ >+ {localModePending ? t('login.localModeOpening') : t('login.localModeEntry')}+ </button>+ <span+ id="login-local-mode-description"+ className="mt-2 line-clamp-2 max-w-full text-12 text-[var(--text-secondary)]"+ style={{ lineHeight: `${LOGIN_LOCAL_MODE.descriptionLineHeight}px` }}+ >+ {t('login.localModeDescription')}+ </span>+ </>+ ) : null;return (// 根级 z-[9990] 建立 LoginPage 自己的 stacking context:整体压过品牌 overlaydiff --git a/apps/desktop/src/renderer/components/login/loginDesignTokens.ts b/apps/desktop/src/renderer/components/login/loginDesignTokens.tsindex 4949880593..cd550b3fa9 100644--- a/apps/desktop/src/renderer/components/login/loginDesignTokens.ts+++ b/apps/desktop/src/renderer/components/login/loginDesignTokens.ts@@ -69,7 +69,8 @@ export const CONTROL = {export const SPINNER = { size: 24, x: 487, y: 27 } as const; // 247:1546 @loadexport const SOCIAL = { y: 480, size: 80, gap: 70, radius: 50, iconSize: 48 } as const; // §4.5export const BACK = { x: 20, y: 20, size: 60, radius: 40 } as const; // §4.6-export const ERROR_TEXT = { y: 380, width: 680, height: 50, fontSize: 20 } as const; // §4.8 误差文本 (0,380)+// 错误提示:占满主按钮底(380)→面板底(440)整段,文案垂直居中(2026-07-24 拍板;原 h50 偏上)+export const ERROR_TEXT = { y: 380, width: 680, height: 60, fontSize: 20 } as const;export const METHOD_ROW = {x: 70,width: 540,@@ -149,4 +150,9 @@ export const LOGIN_COLORS = {splashProgressTrack: 'var(--login-splash-progress-track)',splashProgressFill: 'var(--login-splash-progress-fill)',linkHover: 'var(--login-link-hover)',+ /**+ * Apple 登录圆钮底(App Store Guideline 4:亮 = ADR Black button 黑圆白标 /+ * 暗 = ADR White button 白圆黑标,无描边;用户标准图 2026-07-24)+ */+ appleCircleBg: 'var(--login-apple-circle-bg)',} as const;diff --git a/apps/desktop/src/renderer/themes/colors.ts b/apps/desktop/src/renderer/themes/colors.tsindex 48f5404a8d..8604b01f0f 100644--- a/apps/desktop/src/renderer/themes/colors.ts+++ b/apps/desktop/src/renderer/themes/colors.ts@@ -661,6 +661,11 @@ registerColor('login-loading-ring-track', {dark: 'rgba(212, 212, 212, 0.18)',}, 'Login — loading 环轨(亮色深半透 / 暗色浅半透 推导,待 Figma)');+registerColor('login-apple-circle-bg', {+ light: '#000000',+ dark: '#FFFFFF',+}, 'Login — Apple 圆钮底(ADR Black/White 官方按钮底色;亮黑圆白标/暗白圆黑标,无描边)');+registerColor('lightbox-cta-bg', {light: 'var(--accent-cta-bg-pure)',dark: 'var(--accent-cta-bg-pure)',diff --git a/apps/mobile/app/(auth)/login.tsx b/apps/mobile/app/(auth)/login.tsxindex 6eccc0c93e..bc41c4e907 100644--- a/apps/mobile/app/(auth)/login.tsx+++ b/apps/mobile/app/(auth)/login.tsx@@ -2,11 +2,6 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';import { useTranslation } from 'react-i18next';import { Animated, Easing, Platform, StyleSheet, View } from 'react-native';import { useSafeAreaInsets } from 'react-native-safe-area-context';-import {- AppleAuthenticationButton,- AppleAuthenticationButtonStyle,- AppleAuthenticationButtonType,-} from 'expo-apple-authentication';import type { AccountDeletionStatus, SocialProvider, VerificationKind } from '@cindy/auth-client';import { useAuth } from '@/auth/AuthContext';@@ -58,6 +53,7 @@ import {LoginSocialRow,LoginTextLinkSlot,LoginTitleBlock,+ AppleLogoGlyph,} from '@/components/LoginSkinControls';import {MobileLoginHandoffStage,@@ -120,8 +116,6 @@ export default function LoginScreen() {const [resendDeadline, setResendDeadline] = useState<number | null>(null);const [accountDeletionStatus, setAccountDeletionStatus] =useState<AccountDeletionStatus | null>(null);- const { mode } = useTheme();- // 官方 Apple 按钮走 makeStyles 的 appleButton(合规按钮不可皮肤化,复用主干样式)。const styles = useThemedStyles(makeStyles);const configIssues = getMobileConfigIssues();const disabled = auth.isBusy || !auth.initialized || configIssues.length > 0;@@ -272,7 +266,10 @@ export default function LoginScreen() {// App Store 合规:Apple 必须用官方 Sign in with Apple 按钮(不可皮肤化),// 从统一社交圆钮行中拆出、单独全宽渲染;其余(Google/微信/SSO)保留皮肤圆钮。const nonAppleProviders = socialProviders.filter(- (provider) => provider !== 'apple',+ // type guard 收窄为 Google/微信(SSO 由行内末位单独渲染),与 LoginSocialGlyph+ // 收窄后的 provider 类型对齐;Apple 走圆钮行第一颗(AppleLogoGlyph,variant='apple')。+ (provider): provider is Exclude<SocialProvider, 'apple'> =>+ provider !== 'apple',);if (ssoOrgMode) {const submitSsoOrg = () => {@@ -411,38 +408,42 @@ export default function LoginScreen() {/>{identifierErrorNode}</LoginPanel>- {/* App Store 合规:Apple 官方 Sign in with Apple 按钮全宽单列,不可皮肤化- (mobileAuthServerLogin 守护测试 + Apple 审核硬要求;socialProviders 已按 iOS- 过滤,仅 iOS 且可用时渲染)。视觉不完全跟随统一圆钮皮肤是 Apple 硬性规范所致。 */}- {socialProviders.includes('apple') ? (- <AppleAuthenticationButton- accessibilityState={{ disabled }}- buttonStyle={- mode === 'dark'- ? AppleAuthenticationButtonStyle.WHITE- : AppleAuthenticationButtonStyle.BLACK- }- buttonType={AppleAuthenticationButtonType.SIGN_IN}- cornerRadius={24}- onPress={() => {- if (disabled) return;- void auth.dispatchLoginAction({- type: 'native-social',- provider: 'apple',- });- }}- pointerEvents={disabled ? 'none' : 'auto'}- style={styles.appleButton}- testID="login.appleButton"- />- ) : null}- {/* 第三方圆钮行:Apple 之外的原生方式驱动;企业 SSO = 行内最后一颗(329:243) */}- <LoginSocialRow count={nonAppleProviders.length + 1}>+ {/* App Store 合规(Guideline 4):Apple 入口为圆钮行第一颗(iOS only,沿用+ socialProviders.includes('apple') 即 isNativeSocialProviderSupported 判定,+ Android 自动无此钮)。圆钮底色用 ADR 官方 Black/White 配色(appleCircleBg)、+ logo 用官方 Logo-only artwork(AppleLogoGlyph,path 逐字节原样未改)、无描边。+ HIG 允许 logo-only 自定义按钮(圆形),artwork 来自 Apple Design Resources。 */}+ <LoginSocialRow+ count={+ (socialProviders.includes('apple') ? 1 : 0) ++ nonAppleProviders.length ++ 1+ }+ >+ {socialProviders.includes('apple') ? (+ <LoginSocialButton+ key="apple"+ label={loginText('apple')}+ busy={auth.isBusy}+ variant="apple"+ onPress={() => {+ // SC-SOC-7: in-flight 期间 no-op(行为层 guard,无 disabled 视觉回填)。+ if (disabled) return;+ void auth.dispatchLoginAction({+ type: 'native-social',+ provider: 'apple',+ });+ }}+ testID="login.appleButton"+ >+ <AppleLogoGlyph />+ </LoginSocialButton>+ ) : null}{nonAppleProviders.map((provider) => (<LoginSocialButtonkey={provider}label={socialLabel(provider)}- busy={disabled}+ busy={auth.isBusy}onPress={() => {// SC-SOC-7: in-flight(disabled)期间 no-op 防重复发起;行为层 guard,// 零视觉变化(圆钮已无 disabled 态 per §10 拍板,不回填 disabled 视觉)。@@ -461,7 +462,7 @@ export default function LoginScreen() {{/* 企业 SSO 入口:输入组织标识 发起单点登录(国内版隐藏邮箱后企业用户的登录路径) */}<LoginSocialButtonlabel={loginText('ssoEntry')}- busy={disabled}+ busy={auth.isBusy}onPress={() => {// SC-SOC-7: in-flight 期间 no-op(行为层 guard,无 disabled 视觉回填)。if (disabled) return;@@ -1367,7 +1368,6 @@ const makeStyles = (colors: ThemeColors) =>letterSpacing: spacing.sm,textAlign: 'center',},- appleButton: { height: 48, width: '100%' },fullButton: { minHeight: 48, minWidth: 0 },helper: {color: colors.textSecondary,diff --git a/apps/mobile/assets/login/[email protected] b/apps/mobile/assets/login/[email protected]index 7ac9813be0..b5d3c9ec31 100644Binary files a/apps/mobile/assets/login/[email protected] and b/apps/mobile/assets/login/[email protected] differdiff --git a/apps/mobile/assets/login/[email protected] b/apps/mobile/assets/login/[email protected]index ea7de9ed2c..846199b57b 100644Binary files a/apps/mobile/assets/login/[email protected] and b/apps/mobile/assets/login/[email protected] differdiff --git a/apps/mobile/src/__tests__/mobileAuthServerLogin.test.ts b/apps/mobile/src/__tests__/mobileAuthServerLogin.test.tsindex ed75d4d31e..b42b335398 100644--- a/apps/mobile/src/__tests__/mobileAuthServerLogin.test.ts+++ b/apps/mobile/src/__tests__/mobileAuthServerLogin.test.ts@@ -19,13 +19,19 @@ describe('mobile auth-server login', () => {expect(loginSource).toMatch(/type:\s*'native-social',\s*provider/);expect(loginSource).toContain('testID: `login.${provider}Button`');- expect(loginSource).toContain('<AppleAuthenticationButton');- expect(loginSource).toContain(- 'buttonType={AppleAuthenticationButtonType.SIGN_IN}',- );- expect(loginSource).toContain('AppleAuthenticationButtonStyle.WHITE');- expect(loginSource).toContain('AppleAuthenticationButtonStyle.BLACK');- expect(loginSource).toContain('style={styles.appleButton}');+ // App Store Guideline 4:Apple 入口为圆钮行第一颗(variant='apple',ADR 官方配色圆钮),+ // 不再用全宽官方 AppleAuthenticationButton;testID login.appleButton 锚点保留。+ expect(loginSource).not.toContain('<AppleAuthenticationButton');+ expect(loginSource).not.toContain('expo-apple-authentication');+ expect(loginSource).toContain('variant="apple"');+ expect(loginSource).toContain('testID="login.appleButton"');+ expect(loginSource).toContain('<AppleLogoGlyph');+ expect(loginSource).toMatch(+ /type:\s*'native-social',\s*provider:\s*'apple',?\s*\n/,+ );+ // 行 count 计入 apple(iOS 1 + nonAppleProviders + SSO 1)+ expect(loginSource).toContain("socialProviders.includes('apple') ? 1 : 0");+ expect(loginSource).toContain('nonAppleProviders.length');expect(loginSource).not.toContain('react-native-webview');expect(authSource).toContain('client.exchangeNativeSocial(action.provider, credential)',@@ -57,6 +63,31 @@ describe('mobile auth-server login', () => {expect(nativeSource).toMatch(/\|\|\s*!WECHAT_UNIVERSAL_LINK/);});+ it('AppleLogoGlyph path d 与桌面 ADR 官方资产逐字节一致(防手抄/跨端漂移)', () => {+ const controlsSource = readFileSync(+ resolve(process.cwd(), 'src/components/LoginSkinControls.tsx'),+ 'utf8',+ );+ // AppleLogoGlyph 的 path d 以官方起点 M28.2226562,20.3846154 标识(唯一,区别于其它 icon)+ const glyphD = (controlsSource.match(/d="([^"]+)"/g) ?? [])+ .map((s) => s.slice(3, -1))+ .find((d) => d.startsWith('M28.2226562,20.3846154'));+ expect(glyphD).toBeDefined();+ expect(glyphD?.length).toBe(1228);+ // 桌面 apple.svg 从 ADR「Logo-only」源逐字节导入(见其文件头注释);双端共用同一+ // 官方 path,以仓库内桌面资产为对比锚,防止任一端被手抄改动后静默漂移。+ const desktopAdrSvg = readFileSync(+ resolve(+ process.cwd(),+ '../desktop/src/renderer/assets/login/icons/apple.svg',+ ),+ 'utf8',+ );+ const adrD = (desktopAdrSvg.match(/ d="([^"]+)"/) ?? [])[1];+ expect(adrD).toBeTruthy();+ expect(glyphD).toBe(adrD);+ });+it('releases timed-out WeChat requests in both native coordinators', () => {const moduleSource = readFileSync(resolve(process.cwd(), 'modules/xdt-wechat-login/src/index.ts'),diff --git a/apps/mobile/src/auth/__tests__/loginSkinStates.test.ts b/apps/mobile/src/auth/__tests__/loginSkinStates.test.tsindex 8b2dd67c52..6b9f3e4bc5 100644--- a/apps/mobile/src/auth/__tests__/loginSkinStates.test.ts+++ b/apps/mobile/src/auth/__tests__/loginSkinStates.test.ts@@ -60,9 +60,9 @@ describe('loginSkin 全登录态(harness 真链 + 渲染层接线)', () => {expect(loginSource).toContain('testID="login.identifierInput"');expect(loginSource).toContain('testID="login.continueButton"');expect(loginSource).toContain('testID="login.ssoEntryButton"');- expect(loginSource).toContain(- '<LoginSocialRow count={nonAppleProviders.length + 1}>',- );+ // Apple 圆钮(iOS)计入行 count:apple 1 + nonAppleProviders + SSO 1+ expect(loginSource).toContain("socialProviders.includes('apple') ? 1 : 0");+ expect(loginSource).toContain('nonAppleProviders.length');expect(loginSource).toContain("void auth.dispatchLoginAction({ type: 'discover', email: value })",);diff --git a/apps/mobile/src/auth/loginSkinLayout.ts b/apps/mobile/src/auth/loginSkinLayout.tsindex f8ca2e8b00..3d32c5a396 100644--- a/apps/mobile/src/auth/loginSkinLayout.ts+++ b/apps/mobile/src/auth/loginSkinLayout.ts@@ -357,8 +357,8 @@ export const LOGIN_SPINNER = { size: 24, x: 487, y: 27 } as const;export const LOGIN_SOCIAL = { y: 480, size: 80, gap: 70, icon: 48 } as const;/** 返回按钮(figma §4.6:@(20,20) 60×60 r40)。 */export const LOGIN_BACK = { x: 20, y: 20, size: 60, radius: 40, icon: 24 } as const;-/** 错误文本(figma §4.8:680×50 @(0,380) 20 Regular 居中)。 */-export const LOGIN_ERROR_TEXT = { y: 380, width: 680, height: 50, font: 20 } as const;+/** 错误提示:占满主按钮底(380)→面板底(440)整段,文案在段内垂直居中(2026-07-24 拍板)。 */+export const LOGIN_ERROR_TEXT = { y: 380, width: 680, height: 60, font: 20 } as const;/*** 方式行(figma §4.9 + demo method-row:540×100 r60;标题 24 Bold/副行 20 左对齐 x=67;* 左 icon 24 box @(27,37)/person 18×20 @(30,39);右 share 18 @(490,40);diff --git a/apps/mobile/src/auth/nativeSocial.ts b/apps/mobile/src/auth/nativeSocial.tsindex 8408e139cf..c6115fce6b 100644--- a/apps/mobile/src/auth/nativeSocial.ts+++ b/apps/mobile/src/auth/nativeSocial.ts@@ -20,6 +20,10 @@ export type NativeSocialCredential =authorizationCode?: string;rawNonce: string;user?: { name?: string };+ // Apple 首次授权返回的明文 email(后续登录为 null,服务端应从 identityToken+ // JWT payload 自行解 email)。补传以消除客户端侧丢 email 的缺陷,对齐 App Store+ // Guideline 4.2(不得在 Apple 登录后再向用户索要 email)。+ email?: string | null;}| { code: string };@@ -85,6 +89,9 @@ async function acquireAppleCredential(): Promise<NativeSocialCredential> {: {}),rawNonce,...(name ? { user: { name } } : {}),+ // EMAIL scope 请求到的明文 email(仅首次授权有值,后续为 null);服务端据此+ // 或 identityToken JWT 解析建立账号 email,避免登录后再向用户索要(Apple 审核硬要求)。+ ...(credential.email ? { email: credential.email } : {}),};}diff --git a/apps/mobile/src/components/LoginSkinControls.tsx b/apps/mobile/src/components/LoginSkinControls.tsxindex 580f2c79fc..d69cbfd026 100644--- a/apps/mobile/src/components/LoginSkinControls.tsx+++ b/apps/mobile/src/components/LoginSkinControls.tsx@@ -427,6 +427,7 @@ export function LoginSocialButton({children,testID,busy,+ variant = 'default',}: {label: string;onPress: () => void;@@ -439,9 +440,14 @@ export function LoginSocialButton({* 与本组件对称的桌面 LoginSocialButton `aria-disabled` 语义一致。*/busy?: boolean;+ /** 'apple' = ADR 官方配色圆钮(纯黑/白底 appleCircleBg、无描边 borderWidth 0);+ * 'default' = 常规皮肤圆钮(primaryButtonBg 底 + primaryButtonBorder 描边)。+ * apple 变体 pressed 叠层与 default 同款(StateOverlay 黑 50%)。 */+ variant?: 'default' | 'apple';}) {const { colors } = useTheme();const styles = useThemedStyles(makeStyles);+ const isApple = variant === 'apple';return (<PressableaccessibilityLabel={label}@@ -452,9 +458,12 @@ export function LoginSocialButton({onPress={onPress}style={[styles.socialButton,- {- borderColor: colors.login.primaryButtonBorder,- },+ isApple+ ? {+ backgroundColor: colors.login.appleCircleBg,+ borderWidth: 0,+ }+ : { borderColor: colors.login.primaryButtonBorder },]}testID={testID}>@@ -534,15 +543,18 @@ export function LoginErrorText({testID?: string;}) {const styles = useThemedStyles(makeStyles);+ // 外层定高容器承载垂直居中(iOS Text 不支持 textAlignVertical,统一用 View 布局)return (- <Text- accessibilityRole="alert"- numberOfLines={2}- style={styles.errorText}- testID={testID}- >- {children}- </Text>+ <View pointerEvents="none" style={styles.errorText}>+ <Text+ accessibilityRole="alert"+ numberOfLines={2}+ style={styles.errorTextLabel}+ testID={testID}+ >+ {children}+ </Text>+ </View>);}@@ -759,22 +771,11 @@ export function LoginTextLinkSlot({}/* ── 图标(矢量源 = figma 现导 SVG path 内联,登记见 asset-manifest.md;- Google/WeChat fill 为厂商固定品牌色,跨模式不变;Apple/SSO 为单色图标,+ Google/WeChat fill 为厂商固定品牌色,跨模式不变;SSO 为单色图标,随圆钮底反相(亮色深圆上白/浅图标,暗色白圆上 #2A2828 深图标——figma- white apple 489:676 / white SSO 489:710 核验)——与桌面 assets/login/icons 同源) ── */--/** Apple(247:1692,ic:baseline-apple;亮白 / 暗 #2A2828 反相)。 */-function AppleIcon() {- const { mode } = useTheme();- return (- <Svg width="100%" height="100%" viewBox="0 0 48 48" fill="none" aria-hidden>- <Path- d="M33.0984 39.56C31.1384 41.46 28.9984 41.16 26.9384 40.26C24.7584 39.34 22.7584 39.3 20.4584 40.26C17.5784 41.5 16.0584 41.14 14.3384 39.56C4.57837 29.5 6.01838 14.18 17.0984 13.62C19.7984 13.76 21.6784 15.1 23.2584 15.22C25.6184 14.74 27.8784 13.36 30.3984 13.54C33.4184 13.78 35.6984 14.98 37.1984 17.14C30.9584 20.88 32.4384 29.1 38.1584 31.4C37.0184 34.4 35.5384 37.38 33.0784 39.58L33.0984 39.56ZM23.0584 13.5C22.7584 9.04 26.3784 5.36 30.5384 5C31.1184 10.16 25.8584 14 23.0584 13.5Z"- fill={mode === 'dark' ? '#2A2828' : '#FFFFFF'}- />- </Svg>- );-}+ white SSO 489:710 核验)——与桌面 assets/login/icons 同源)。Apple logo 不在+ 本图标集:由 AppleLogoGlyph 承载(ADR 官方 Logo-only path 逐字节原样,+ App Store Guideline 4;见该组件注释)。 ── *//** Google(247:1714,material-icon-theme:google 四色品牌 mark)。 */function GoogleIcon() {@@ -838,13 +839,32 @@ function SsoIcon() {);}-/** 第三方圆钮图标分发(figma §4.5 icon 48;providers.social 驱动显隐,无返回不渲染)。 */+/** Apple logo(ADR 官方「SIWA Logo-only」变体,path d 逐字节原样未改动,与桌面端+ * apps/desktop/src/renderer/assets/login/icons/apple.svg 同源同值,由单测逐字节对比+ * 防漂移;黑白两版 path 相同仅 fill 不同,这里 fill 随圆钮底反相 = colors.login.appleLogoInk)。+ * HIG 允许 logo-only 自定义按钮(圆形),artwork 来自 Apple Design Resources 未改动,+ * 对齐 App Store Guideline 4(用户标准图 2026-07-24);viewBox 15.7 13.2 24.6 24.6+ * 按 logo 光学中心裁切,logo≈圆钮 46% 高,与桌面端同口径。供后续苹果审核回复引用。 */+export function AppleLogoGlyph() {+ const { colors } = useTheme();+ return (+ <Svg width="100%" height="100%" viewBox="15.7 13.2 24.6 24.6" fill="none" aria-hidden>+ <Path+ d="M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z"+ fill={colors.login.appleLogoInk}+ />+ </Svg>+ );+}++/** 第三方圆钮图标分发(figma §4.5 icon 48;providers.social 驱动显隐,无返回不渲染)。+ * Apple 走 AppleLogoGlyph(圆钮行第一颗,LoginSocialButton variant='apple'),+ * 此处只列 Google/微信/SSO。 */export function LoginSocialGlyph({provider,}: {- provider: 'apple' | 'google' | 'wechat' | 'sso';+ provider: 'google' | 'wechat' | 'sso';}) {- if (provider === 'apple') return <AppleIcon />;if (provider === 'google') return <GoogleIcon />;if (provider === 'wechat') return <WeChatIcon />;return <SsoIcon />;@@ -1060,17 +1080,23 @@ const makeStyles = (colors: ThemeColors) =>width: LOGIN_BACK.size,zIndex: 2,},+ // 错误提示定位:主按钮底(380)与面板底(440)之间的整段区间,文案垂直居中+ // (用户拍板 2026-07-24;旧实现 top 380 顶对齐视觉上紧贴按钮)。errorText: {- color: colors.login.loginError,- fontSize: LOGIN_ERROR_TEXT.font,- fontWeight: fontWeight.regular,+ alignItems: 'center',+ height: LOGIN_ERROR_TEXT.height,+ justifyContent: 'center',left: 0,position: 'absolute',- textAlign: 'center',- textAlignVertical: 'center',top: LOGIN_ERROR_TEXT.y,width: LOGIN_ERROR_TEXT.width,},+ errorTextLabel: {+ color: colors.login.loginError,+ fontSize: LOGIN_ERROR_TEXT.font,+ fontWeight: fontWeight.regular,+ textAlign: 'center',+ },methodRow: {backgroundColor: colors.login.actionControlBg,borderColor: colors.login.controlBorder,diff --git a/apps/mobile/src/theme/tokens.ts b/apps/mobile/src/theme/tokens.tsindex 275c68d3fb..10284d16a1 100644--- a/apps/mobile/src/theme/tokens.ts+++ b/apps/mobile/src/theme/tokens.ts@@ -204,6 +204,10 @@ export interface LoginSkinColors {invertedButtonBorder: string;/** 大 loading 环轨(亮 rgba(42,40,40,.18) / 暗 rgba(212,212,212,.18) 推导,待 Figma) */loadingRingTrack: string;+ /** Apple 圆钮底色(亮 #000000 / 暗 #FFFFFF;ADR Black/White 官方按钮配色,Guideline 4,用户标准图 2026-07-24) */+ appleCircleBg: string;+ /** Apple logo 标色(亮 #FFFFFF / 暗 #000000;与圆钮底反相,ADR 官方 Logo-only) */+ appleLogoInk: string;}/** 登录皮肤双态色板(与桌面 --login-* dark 值同源,DESIGN.md §16.1) */@@ -239,6 +243,8 @@ export const loginPalettes: Record<ThemeMode, LoginSkinColors> = {overlayControlPressed: 'rgba(0, 0, 0, 0.08)',invertedButtonBorder: '#FFFFFF',loadingRingTrack: 'rgba(42, 40, 40, 0.18)',+ appleCircleBg: '#000000',+ appleLogoInk: '#FFFFFF',},dark: {bgBase: '#1F1F1E',@@ -271,6 +277,8 @@ export const loginPalettes: Record<ThemeMode, LoginSkinColors> = {overlayControlPressed: 'rgba(0, 0, 0, 0.08)',invertedButtonBorder: '#FFFFFF',loadingRingTrack: 'rgba(212, 212, 212, 0.18)',+ appleCircleBg: '#FFFFFF',+ appleLogoInk: '#000000',},};diff --git a/docs/design-previews/login-visual-fixes-hifi/assets/hero.png b/docs/design-previews/login-visual-fixes-hifi/assets/hero.pngnew file mode 100644index 0000000000..706ccde110Binary files /dev/null and b/docs/design-previews/login-visual-fixes-hifi/assets/hero.png differdiff --git a/docs/design-previews/login-visual-fixes-hifi/assets/slogan-dark.png b/docs/design-previews/login-visual-fixes-hifi/assets/slogan-dark.pngnew file mode 100644index 0000000000..b5d3c9ec31Binary files /dev/null and b/docs/design-previews/login-visual-fixes-hifi/assets/slogan-dark.png differdiff --git a/docs/design-previews/login-visual-fixes-hifi/assets/slogan.png b/docs/design-previews/login-visual-fixes-hifi/assets/slogan.pngnew file mode 100644index 0000000000..1c6af374aaBinary files /dev/null and b/docs/design-previews/login-visual-fixes-hifi/assets/slogan.png differdiff --git a/docs/design-previews/login-visual-fixes-hifi/assets/sso-dark.svg b/docs/design-previews/login-visual-fixes-hifi/assets/sso-dark.svgnew file mode 100644index 0000000000..a091c7a08d--- /dev/null+++ b/docs/design-previews/login-visual-fixes-hifi/assets/sso-dark.svg@@ -0,0 +1,13 @@+<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">+<g id="其他登录方式入口">+<g id="Property 1=SSO">+<g id="SSO登录 1">+<g id="SSO">+<path id="Vector" d="M37.8674 37.1222C35.8843 37.1222 34.3663 36.5591 33.3135 35.4329C32.2608 34.3066 31.7344 32.7152 31.7344 30.6585V17.1434C31.7344 15.0868 32.2608 13.4953 33.3135 12.3691C34.3663 11.2428 35.8843 10.6797 37.8674 10.6797C39.8506 10.6797 41.3685 11.2428 42.4213 12.3691C43.4741 13.4953 44.0005 15.0868 44.0005 17.1434V30.6585C44.0005 32.7152 43.4741 34.3066 42.4213 35.4329C41.3685 36.5591 39.8506 37.1222 37.8674 37.1222ZM37.8674 33.4497C39.263 33.4497 39.9607 32.605 39.9607 30.9156V16.8863C39.9607 15.197 39.263 14.3523 37.8674 14.3523C36.4719 14.3523 35.7741 15.197 35.7741 16.8863V30.9156C35.7741 32.605 36.4719 33.4497 37.8674 33.4497Z" fill="#2A2828"/>+<path id="Vector_2" d="M23.6135 37.1222C21.6548 37.1222 20.1736 36.5714 19.1698 35.4696C18.166 34.3433 17.6641 32.7396 17.6641 30.6585V29.1895H21.4834V30.9523C21.4834 32.6172 22.1812 33.4497 23.5768 33.4497C24.2623 33.4497 24.7764 33.2538 25.1192 32.8621C25.4864 32.4458 25.6701 31.7848 25.6701 30.8789C25.6701 29.8016 25.4252 28.8589 24.9356 28.051C24.4459 27.2185 23.54 26.2269 22.2179 25.0762C20.5531 23.6072 19.3901 22.285 18.7291 21.1098C18.068 19.9101 17.7375 18.5635 17.7375 17.07C17.7375 15.0378 18.2517 13.4708 19.28 12.3691C20.3082 11.2428 21.8017 10.6797 23.7604 10.6797C25.6945 10.6797 27.1513 11.2428 28.1306 12.3691C29.1344 13.4708 29.6363 15.0623 29.6363 17.1434V18.2085H25.817V16.8863C25.817 16.0049 25.6456 15.3683 25.3028 14.9766C24.9601 14.5604 24.4581 14.3523 23.7971 14.3523C22.4505 14.3523 21.7772 15.1725 21.7772 16.8129C21.7772 17.7433 22.0221 18.6125 22.5117 19.4204C23.0259 20.2284 23.944 21.2077 25.2661 22.3585C26.9554 23.8275 28.1184 25.1619 28.7549 26.3616C29.3915 27.5613 29.7098 28.9691 29.7098 30.5851C29.7098 32.6907 29.1834 34.3066 28.1306 35.4329C27.1023 36.5591 25.5966 37.1222 23.6135 37.1222Z" fill="#2A2828"/>+<path id="Vector_3" d="M9.94942 37.1222C7.99076 37.1222 6.50953 36.5714 5.50572 35.4696C4.50191 34.3433 4 32.7396 4 30.6585V29.1895H7.81938V30.9523C7.81938 32.6172 8.51715 33.4497 9.91269 33.4497C10.5982 33.4497 11.1124 33.2538 11.4551 32.8621C11.8224 32.4458 12.006 31.7848 12.006 30.8789C12.006 29.8016 11.7612 28.8589 11.2715 28.051C10.7818 27.2185 9.87597 26.2269 8.55387 25.0762C6.88902 23.6072 5.72606 22.285 5.06502 21.1098C4.40397 19.9101 4.07345 18.5635 4.07345 17.07C4.07345 15.0378 4.5876 13.4708 5.61589 12.3691C6.64418 11.2428 8.13766 10.6797 10.0963 10.6797C12.0305 10.6797 13.4872 11.2428 14.4666 12.3691C15.4704 13.4708 15.9723 15.0623 15.9723 17.1434V18.2085H12.1529V16.8863C12.1529 16.0049 11.9815 15.3683 11.6388 14.9766C11.296 14.5604 10.7941 14.3523 10.133 14.3523C8.78646 14.3523 8.11318 15.1725 8.11318 16.8129C8.11318 17.7433 8.35801 18.6125 8.84767 19.4204C9.36182 20.2284 10.2799 21.2077 11.602 22.3585C13.2914 23.8275 14.4543 25.1619 15.0909 26.3616C15.7274 27.5613 16.0457 28.9691 16.0457 30.5851C16.0457 32.6907 15.5193 34.3066 14.4666 35.4329C13.4383 36.5591 11.9326 37.1222 9.94942 37.1222Z" fill="#2A2828"/>+</g>+</g>+</g>+</g>+</svg>diff --git a/docs/design-previews/login-visual-fixes-hifi/assets/sso.svg b/docs/design-previews/login-visual-fixes-hifi/assets/sso.svgnew file mode 100644index 0000000000..90306f02ec--- /dev/null+++ b/docs/design-previews/login-visual-fixes-hifi/assets/sso.svg@@ -0,0 +1,13 @@+<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">+<g id="其他登录方式入口">+<g id="Property 1=SSO">+<g id="SSO登录 1">+<g id="SSO">+<path id="Vector" d="M37.8674 37.1222C35.8843 37.1222 34.3663 36.5591 33.3135 35.4329C32.2608 34.3066 31.7344 32.7152 31.7344 30.6585V17.1434C31.7344 15.0868 32.2608 13.4953 33.3135 12.3691C34.3663 11.2428 35.8843 10.6797 37.8674 10.6797C39.8506 10.6797 41.3685 11.2428 42.4213 12.3691C43.4741 13.4953 44.0005 15.0868 44.0005 17.1434V30.6585C44.0005 32.7152 43.4741 34.3066 42.4213 35.4329C41.3685 36.5591 39.8506 37.1222 37.8674 37.1222ZM37.8674 33.4497C39.263 33.4497 39.9607 32.605 39.9607 30.9156V16.8863C39.9607 15.197 39.263 14.3523 37.8674 14.3523C36.4719 14.3523 35.7741 15.197 35.7741 16.8863V30.9156C35.7741 32.605 36.4719 33.4497 37.8674 33.4497Z" fill="#EEEEEE"/>+<path id="Vector_2" d="M23.6135 37.1222C21.6548 37.1222 20.1736 36.5714 19.1698 35.4696C18.166 34.3433 17.6641 32.7396 17.6641 30.6585V29.1895H21.4834V30.9523C21.4834 32.6172 22.1812 33.4497 23.5768 33.4497C24.2623 33.4497 24.7764 33.2538 25.1192 32.8621C25.4864 32.4458 25.6701 31.7848 25.6701 30.8789C25.6701 29.8016 25.4252 28.8589 24.9356 28.051C24.4459 27.2185 23.54 26.2269 22.2179 25.0762C20.5531 23.6072 19.3901 22.285 18.7291 21.1098C18.068 19.9101 17.7375 18.5635 17.7375 17.07C17.7375 15.0378 18.2517 13.4708 19.28 12.3691C20.3082 11.2428 21.8017 10.6797 23.7604 10.6797C25.6945 10.6797 27.1513 11.2428 28.1306 12.3691C29.1344 13.4708 29.6363 15.0623 29.6363 17.1434V18.2085H25.817V16.8863C25.817 16.0049 25.6456 15.3683 25.3028 14.9766C24.9601 14.5604 24.4581 14.3523 23.7971 14.3523C22.4505 14.3523 21.7772 15.1725 21.7772 16.8129C21.7772 17.7433 22.0221 18.6125 22.5117 19.4204C23.0259 20.2284 23.944 21.2077 25.2661 22.3585C26.9554 23.8275 28.1184 25.1619 28.7549 26.3616C29.3915 27.5613 29.7098 28.9691 29.7098 30.5851C29.7098 32.6907 29.1834 34.3066 28.1306 35.4329C27.1023 36.5591 25.5966 37.1222 23.6135 37.1222Z" fill="#EEEEEE"/>+<path id="Vector_3" d="M9.94942 37.1222C7.99076 37.1222 6.50953 36.5714 5.50572 35.4696C4.50191 34.3433 4 32.7396 4 30.6585V29.1895H7.81938V30.9523C7.81938 32.6172 8.51715 33.4497 9.91269 33.4497C10.5982 33.4497 11.1124 33.2538 11.4551 32.8621C11.8224 32.4458 12.006 31.7848 12.006 30.8789C12.006 29.8016 11.7612 28.8589 11.2715 28.051C10.7818 27.2185 9.87597 26.2269 8.55387 25.0762C6.88902 23.6072 5.72606 22.285 5.06502 21.1098C4.40397 19.9101 4.07345 18.5635 4.07345 17.07C4.07345 15.0378 4.5876 13.4708 5.61589 12.3691C6.64418 11.2428 8.13766 10.6797 10.0963 10.6797C12.0305 10.6797 13.4872 11.2428 14.4666 12.3691C15.4704 13.4708 15.9723 15.0623 15.9723 17.1434V18.2085H12.1529V16.8863C12.1529 16.0049 11.9815 15.3683 11.6388 14.9766C11.296 14.5604 10.7941 14.3523 10.133 14.3523C8.78646 14.3523 8.11318 15.1725 8.11318 16.8129C8.11318 17.7433 8.35801 18.6125 8.84767 19.4204C9.36182 20.2284 10.2799 21.2077 11.602 22.3585C13.2914 23.8275 14.4543 25.1619 15.0909 26.3616C15.7274 27.5613 16.0457 28.9691 16.0457 30.5851C16.0457 32.6907 15.5193 34.3066 14.4666 35.4329C13.4383 36.5591 11.9326 37.1222 9.94942 37.1222Z" fill="#EEEEEE"/>+</g>+</g>+</g>+</g>+</svg>diff --git a/docs/design-previews/login-visual-fixes-hifi/assets/wordmark-dark.png b/docs/design-previews/login-visual-fixes-hifi/assets/wordmark-dark.pngnew file mode 100644index 0000000000..431b0b8093Binary files /dev/null and b/docs/design-previews/login-visual-fixes-hifi/assets/wordmark-dark.png differdiff --git a/docs/design-previews/login-visual-fixes-hifi/assets/wordmark.png b/docs/design-previews/login-visual-fixes-hifi/assets/wordmark.pngnew file mode 100644index 0000000000..485c75f35cBinary files /dev/null and b/docs/design-previews/login-visual-fixes-hifi/assets/wordmark.png differdiff --git a/docs/design-previews/login-visual-fixes-hifi/index.html b/docs/design-previews/login-visual-fixes-hifi/index.htmlnew file mode 100644index 0000000000..fb7f5ddec7--- /dev/null+++ b/docs/design-previews/login-visual-fixes-hifi/index.html@@ -0,0 +1,345 @@+<!DOCTYPE html>+<html lang="zh-CN">+<head>+<meta charset="UTF-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Cindy 登录视觉三项修复 · hifi 预览(fix/apple-signin-review)</title>+<style>+ * { margin:0; padding:0; box-sizing:border-box; }+ body { background:#111; color:#ddd; font-family:-apple-system,'PingFang SC','HarmonyOS Sans SC',sans-serif; min-height:100vh; }+ header { padding:20px 28px 6px; }+ header h1 { font-size:17px; font-weight:700; color:#eee; }+ header p { font-size:12px; color:#888; margin-top:6px; line-height:1.7; max-width:780px; }+ .tabs { display:flex; gap:8px; padding:14px 28px; flex-wrap:wrap; }+ .tab { padding:7px 22px; border-radius:9999px; border:1px solid #3a3a3a; background:#1c1c1c; color:#aaa; font-size:13px; cursor:pointer; }+ .tab.active { background:#eee; color:#111; border-color:#eee; font-weight:700; }+ .sec { display:flex; gap:40px; justify-content:center; padding:12px 20px 40px; flex-wrap:wrap; }+ .hidden { display:none !important; }+ .caption { text-align:center; font-size:12px; color:#888; margin-top:10px; max-width:420px; line-height:1.8; }+ .err { color:#D91F37; font-weight:400; display:flex; align-items:center; justify-content:center; position:absolute; left:0; width:100%; }+ .frame { position:relative; overflow:hidden; }+ .frame.light { background:#EDEDED; } /* login.bgBase light */+ .frame.dark { background:#1F1F1E; } /* login.bgBase dark */+ .circle { border-radius:50%; display:grid; place-items:center; }+ /* Apple 圆钮(本 PR):亮=纯黑圆白标 / 暗=纯白圆黑标,无描边(ADR Black/White 官方配色) */+ .light .apple { background:#000000; }+ .dark .apple { background:#FFFFFF; }+ .light .apple svg path { fill:#FFFFFF; }+ .dark .apple svg path { fill:#000000; }+ /* SSO 圆钮:维持既有样式(反相底 + 1px 描边),对照参考 */+ .light .sso { background:#2A2828; border:1px solid #434343; }+ .dark .sso { background:#EEEEEE; border:1px solid #FFFFFF; }++ /* ── iPhone 375×812(750×1624 长屏档 LOGIN_STAGE_LONG,0.5 缩放) ── */+ .phone { width:375px; height:812px; border-radius:44px; box-shadow:0 0 0 10px #2a2a2a, 0 24px 60px rgba(0,0,0,.55); }+ .phone .statusbar { position:absolute; top:0; left:0; right:0; height:44px; display:flex; align-items:center; justify-content:space-between; padding:0 28px; font-size:14px; font-weight:600; z-index:3; }+ .light .statusbar { color:#111; } .dark .statusbar { color:#eee; }+ .phone .hero { position:absolute; left:0; top:58px; width:375px; height:451px; object-fit:cover; } /* cindy 0,116,750,902 */+ .phone .slogan { position:absolute; left:193.5px; top:343px; width:160.5px; height:46px; } /* 387,686,321,92 */+ .phone .wordmark { position:absolute; left:87.5px; top:407px; width:200.5px; height:68.5px; } /* 175,814,401,137 */+ .phone .panel { position:absolute; left:17.5px; top:486.5px; width:340px; height:220px; border-radius:18px; }+ .light .panel { background:#FBFBFB; box-shadow:inset 0 0 0 1px #D4D4D4; }+ .dark .panel { background:#312F2F; box-shadow:inset 0 0 0 1px #434343; }+ .panel .title { position:absolute; top:15.5px; width:100%; text-align:center; font-weight:700; }+ .light .panel .title { color:#252222; } .dark .panel .title { color:#D4D4D4; }+ .panel .subtitle { position:absolute; width:100%; text-align:center; color:#6F6F6F; }+ .panel .input { position:absolute; border-radius:9999px; display:flex; align-items:center; }+ .light .panel .input { background:#EEEEEE; border:1px solid #D4D4D4; }+ .dark .panel .input { background:#2C2A2A; border:1px solid #434343; }+ .light .panel .input.empty { color:#D4D4D4; } .dark .panel .input.empty { color:#6F6F6F; }+ .light .panel .input.filled { color:#2A2828; } .dark .panel .input.filled { color:#D4D4D4; }+ .panel .cta { position:absolute; border-radius:9999px; display:flex; align-items:center; justify-content:center; font-weight:700; }+ .light .panel .cta { background:#2A2828; border:1px solid #434343; color:#D4D4D4; }+ .dark .panel .cta { background:#EEEEEE; border:1px solid #FFFFFF; color:#2A2828; }+ .phone .title { font-size:16px; line-height:19px; } .phone .subtitle { top:37.5px; font-size:10px; }+ .phone .input { left:35px; top:79px; width:270px; height:40px; padding-left:15.5px; font-size:12px; }+ .phone .cta { left:35px; top:150px; width:270px; height:40px; font-size:12px; }+ .phone .err { top:190px; height:30px; font-size:10px; } /* 错误带 380..440 → 190..220,垂直居中 */+ .phone .social { position:absolute; left:130px; top:726.5px; display:flex; gap:35px; z-index:2; }+ .phone .circle { width:40px; height:40px; }+ .phone .apple svg { width:24px; height:24px; } .phone .sso img { width:24px; height:24px; }+ .phone .home { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); width:134px; height:5px; border-radius:3px; }+ .light .home { background:#111; } .dark .home { background:#eee; }++ /* ── iPad 竖屏 834×1194pt(0.5 缩放显示 417×597)──+ 几何按 resolveLoginStage 实算:scale=834/750=1.112,dh=1073.9<1334 → 功能区优先档:+ 视觉区 = 短屏档几何 ×v(v=(dh-600)/734=0.6456,锚 (375,0)),loginY=dh-600=473.9。+ 以下数值 = 设计px × 1.112 × 0.5。 */+ .pad { width:417px; height:597px; border-radius:24px; box-shadow:0 0 0 8px #2a2a2a, 0 20px 50px rgba(0,0,0,.5); }+ .pad .hero { position:absolute; left:100.8px; top:38.4px; width:215px; height:258.4px; object-fit:contain; }+ .pad .slogan { position:absolute; left:239.9px; top:172.4px; width:91.2px; height:26.1px; }+ .pad .wordmark { position:absolute; left:145.3px; top:213.4px; width:126.7px; height:43.3px; }+ .pad .panel { position:absolute; left:19.5px; top:263.5px; width:378.1px; height:244.7px; border-radius:20px; }+ .pad .title { top:17.2px; font-size:17.8px; } .pad .subtitle { top:41.7px; font-size:11.1px; }+ .pad .input { left:38.9px; top:87.8px; width:300.2px; height:44.5px; padding-left:17.2px; font-size:13.3px; }+ .pad .cta { left:38.9px; top:166.8px; width:300.2px; height:44.5px; font-size:13.3px; }+ .pad .err { top:211.3px; height:33.4px; font-size:11.1px; }+ .pad .social { position:absolute; left:144.6px; top:530.4px; display:flex; gap:38.9px; z-index:2; } /* 组y263.5+组内266.9;圆钮行组内水平居中 */+ .pad .circle { width:44.5px; height:44.5px; }+ .pad .apple svg { width:26.7px; height:26.7px; } .pad .sso img { width:26.7px; height:26.7px; }++ /* ── 桌面 1819×2098(0.36 缩放显示 655×755;LOGIN_GROUP@570,1229) ── */+ .desk { width:655px; height:755px; border-radius:10px; box-shadow:0 0 0 1px #333, 0 20px 50px rgba(0,0,0,.5); }+ .desk .hero { position:absolute; left:159.5px; top:99px; width:336.2px; height:336.2px; object-fit:contain; }+ .desk .slogan { position:absolute; left:429.8px; top:311.8px; width:163.2px; height:46.5px; }+ .desk .wordmark { position:absolute; left:251.3px; top:376.6px; width:152.3px; height:52.2px; }+ .desk .panel { position:absolute; left:205.2px; top:442.4px; width:244.8px; height:158.4px; border-radius:13px; }+ .desk .title { top:11.2px; font-size:11.5px; } .desk .subtitle { top:27px; font-size:7.2px; }+ .desk .input { left:25.2px; top:56.9px; width:194.4px; height:28.8px; padding-left:11.2px; font-size:8.6px; }+ .desk .cta { left:25.2px; top:108px; width:194.4px; height:28.8px; font-size:8.6px; }+ .desk .err { top:136.8px; height:21.6px; font-size:7.2px; }+ .desk .social { position:absolute; left:286.2px; top:615.2px; display:flex; gap:25.2px; z-index:2; } /* 组y442.4+组内172.8;圆钮行组内水平居中 */+ .desk .circle { width:28.8px; height:28.8px; }+ .desk .apple svg { width:17.3px; height:17.3px; } .desk .sso img { width:17.3px; height:17.3px; }++ /* ── 修复对照 ── */+ .diffgrid { display:flex; flex-direction:column; gap:36px; align-items:center; padding:12px 20px 40px; }+ .diffrow { display:flex; gap:28px; align-items:flex-start; flex-wrap:wrap; justify-content:center; }+ .diffcard { width:320px; }+ .diffcard h3 { font-size:13px; color:#ccc; margin-bottom:10px; text-align:center; }+ .diffcard h3 .bad { color:#e05a6d; } .diffcard h3 .good { color:#5ccb8a; }+ .mini { position:relative; width:320px; height:230px; border-radius:14px; overflow:hidden; }+ .rowtitle { font-size:14px; font-weight:700; color:#eee; text-align:center; width:100%; }+ .guide { position:absolute; left:0; width:100%; border-top:1px dashed rgba(217,31,55,.55); z-index:5; }+ .guidelabel { position:absolute; right:6px; font-size:9px; color:rgba(217,31,55,.8); z-index:5; }+</style>+</head>+<body>+<header>+ <h1>Cindy · 登录视觉三项修复(先行单独 PR:fix/apple-signin-review)</h1>+ <p>本 PR 三项改动:① <b>Apple 登录入口全端圆钮化 + ADR 官方标准</b>——亮色 = 纯黑圆 + 白色官方标 / 暗色 = 纯白圆 + 黑色官方标,无描边,logo 为 Apple Design Resources「Logo Only」path 逐字节原样(单测护住),官方全宽按钮撤下;② <b>暗色 slogan 透明底</b>——原资产烙死 #1F1F1E 实底叠在立绘上,现替换为透明版(桌面 2 份 + 手机 2 份);③ <b>错误提示垂直居中</b>——由紧贴主按钮改为「主按钮底→登录面板底」整段垂直居中(双端)。协议同意行 / 游客入口属另一 PR,不在本页。</p>+</header>+<div class="tabs">+ <button class="tab active" onclick="show('phone',this)">手机(iPhone/安卓)</button>+ <button class="tab" onclick="show('pad',this)">iPad 竖屏</button>+ <button class="tab" onclick="show('desk',this)">桌面 mac/win</button>+ <button class="tab" onclick="show('diff',this)">修复对照(前后)</button>+</div>++<div class="sec" id="sec-phone">+ <div>+ <div class="frame phone light">+ <div class="statusbar"><span>9:41</span><span>▮▮▮ ⚟ ▭</span></div>+ <img class="hero" src="assets/hero.png" alt="">+ <img class="slogan" src="assets/slogan.png" alt="">+ <img class="wordmark" src="assets/wordmark.png" alt="">+ <div class="panel">+ <div class="title">欢迎使用 CINDY</div>+ <div class="subtitle">选择一种方式安全登录</div>+ <div class="input filled">138</div>+ <div class="cta">继续</div>+ <div class="err">请输入正确的手机号</div>+ </div>+ <div class="social">+ <div class="circle apple"></div>+ <div class="circle sso"><img src="assets/sso.svg" alt="SSO"></div>+ </div>+ <div class="home"></div>+ </div>+ <div class="caption">亮色 · iPhone(750×1624 长屏档,0.5 缩放)· Apple = 黑圆白标无描边;错误提示居中于「继续」按钮底与面板底之间(修复③)</div>+ </div>+ <div>+ <div class="frame phone dark">+ <div class="statusbar"><span>9:41</span><span>▮▮▮ ⚟ ▭</span></div>+ <img class="hero" src="assets/hero.png" alt="">+ <img class="slogan" src="assets/slogan-dark.png" alt="">+ <img class="wordmark" src="assets/wordmark-dark.png" alt="">+ <div class="panel">+ <div class="title">欢迎使用 CINDY</div>+ <div class="subtitle">选择一种方式安全登录</div>+ <div class="input empty">请输入手机号</div>+ <div class="cta">继续</div>+ </div>+ <div class="social">+ <div class="circle apple"></div>+ <div class="circle sso"><img src="assets/sso-dark.svg" alt="SSO"></div>+ </div>+ <div class="home"></div>+ </div>+ <div class="caption">暗色 · iPhone · Apple = 白圆黑标无描边;slogan 已为透明底,不再压出色块(修复②)。安卓同构图,仅无 Apple 圆钮(iOS-only 判定不变)</div>+ </div>+</div>++<div class="sec hidden" id="sec-pad">+ <div>+ <div class="frame pad light">+ <img class="hero" src="assets/hero.png" alt="">+ <img class="slogan" src="assets/slogan.png" alt="">+ <img class="wordmark" src="assets/wordmark.png" alt="">+ <div class="panel">+ <div class="title">欢迎使用 CINDY</div>+ <div class="subtitle">选择一种方式安全登录</div>+ <div class="input filled">138</div>+ <div class="cta">继续</div>+ <div class="err">请输入正确的手机号</div>+ </div>+ <div class="social">+ <div class="circle apple"></div>+ <div class="circle sso"><img src="assets/sso.svg" alt="SSO"></div>+ </div>+ </div>+ <div class="caption">亮色 · iPad 竖屏 834×1194(0.5 缩放显示)· 几何按 resolveLoginStage 实算(功能区优先档 v=0.646)。与手机共用同一组件与常量,三项修复自动生效</div>+ </div>+ <div>+ <div class="frame pad dark">+ <img class="hero" src="assets/hero.png" alt="">+ <img class="slogan" src="assets/slogan-dark.png" alt="">+ <img class="wordmark" src="assets/wordmark-dark.png" alt="">+ <div class="panel">+ <div class="title">欢迎使用 CINDY</div>+ <div class="subtitle">选择一种方式安全登录</div>+ <div class="input empty">请输入手机号</div>+ <div class="cta">继续</div>+ </div>+ <div class="social">+ <div class="circle apple"></div>+ <div class="circle sso"><img src="assets/sso-dark.svg" alt="SSO"></div>+ </div>+ </div>+ <div class="caption">暗色 · iPad 竖屏 · slogan 透明底 + 白圆黑标。横屏与安卓 pad 走同一 resolveLoginStage 连续插值,无独立代码路径;安卓无 Apple 圆钮</div>+ </div>+</div>++<div class="sec hidden" id="sec-desk">+ <div>+ <div class="frame desk light">+ <img class="hero" src="assets/hero.png" alt="">+ <img class="slogan" src="assets/slogan.png" alt="">+ <img class="wordmark" src="assets/wordmark.png" alt="">+ <div class="panel">+ <div class="title">欢迎使用 CINDY</div>+ <div class="subtitle">选择一种方式安全登录</div>+ <div class="input filled">138</div>+ <div class="cta">继续</div>+ <div class="err">请输入正确的手机号</div>+ </div>+ <div class="social">+ <div class="circle apple"></div>+ <div class="circle sso"><img src="assets/sso.svg" alt="SSO"></div>+ </div>+ </div>+ <div class="caption">亮色 · 桌面 1819×2098 画布(0.36 缩放显示)· 桌面 Apple 圆钮 = login-apple-circle-bg token(#000000/#FFFFFF 双态),LoginSocialButton variant='apple' 去描边</div>+ </div>+ <div>+ <div class="frame desk dark">+ <img class="hero" src="assets/hero.png" alt="">+ <img class="slogan" src="assets/slogan-dark.png" alt="">+ <img class="wordmark" src="assets/wordmark-dark.png" alt="">+ <div class="panel">+ <div class="title">欢迎使用 CINDY</div>+ <div class="subtitle">选择一种方式安全登录</div>+ <div class="input empty">请输入手机号</div>+ <div class="cta">继续</div>+ </div>+ <div class="social">+ <div class="circle apple"></div>+ <div class="circle sso"><img src="assets/sso-dark.svg" alt="SSO"></div>+ </div>+ </div>+ <div class="caption">暗色 · 桌面 · 白圆黑标无描边;桌面暗色 slogan 资产(1x/@2x)同步替换为透明底</div>+ </div>+</div>++<div class="diffgrid hidden" id="sec-diff">+ <div class="rowtitle">① Apple 入口(暗色,对照真机截图)</div>+ <div class="diffrow">+ <div class="diffcard">+ <h3><span class="bad">修复前</span>:官方全宽按钮悬浮遮挡标题,非圆形入口</h3>+ <div class="mini frame dark">+ <div class="panel" style="left:20px; top:16px; width:280px; height:198px; border-radius:16px;">+ <div class="title" style="top:14px; font-size:14px;">欢迎使用 CINDY</div>+ <div class="subtitle" style="top:34px; font-size:9px;">选择一种方式安全登录</div>+ <div class="input empty" style="left:28px; top:66px; width:224px; height:34px; padding-left:13px; font-size:10px;">请输入手机号</div>+ <div class="cta" style="left:28px; top:126px; width:224px; height:34px; font-size:10px;">继续</div>+ </div>+ <div style="position:absolute; left:34px; top:20px; width:252px; height:36px; background:#FFFFFF; border-radius:8px; display:flex; align-items:center; justify-content:center; gap:6px; font-size:11px; font-weight:600; color:#000; z-index:4; box-shadow:0 4px 14px rgba(0,0,0,.4);"><svg viewBox="15.7 13.2 24.6 24.6" style="width:14px;height:14px;"><path d="" data-apple fill="#000"/></svg>通过 Apple 登录</div>+ </div>+ </div>+ <div class="diffcard">+ <h3><span class="good">修复后</span>:ADR 圆钮回归社交行,白圆黑标无描边</h3>+ <div class="mini frame dark">+ <div class="panel" style="left:20px; top:16px; width:280px; height:160px; border-radius:16px;">+ <div class="title" style="top:14px; font-size:14px;">欢迎使用 CINDY</div>+ <div class="subtitle" style="top:34px; font-size:9px;">选择一种方式安全登录</div>+ <div class="input empty" style="left:28px; top:66px; width:224px; height:34px; padding-left:13px; font-size:10px;">请输入手机号</div>+ <div class="cta" style="left:28px; top:112px; width:224px; height:34px; font-size:10px;">继续</div>+ </div>+ <div style="position:absolute; left:118px; top:186px; display:flex; gap:26px;">+ <div class="circle apple" style="width:36px; height:36px;"></div>+ <div class="circle sso" style="width:36px; height:36px;"><img src="assets/sso-dark.svg" style="width:21px;height:21px;" alt=""></div>+ </div>+ </div>+ </div>+ </div>++ <div class="rowtitle">② 暗色 slogan 透明底</div>+ <div class="diffrow">+ <div class="diffcard">+ <h3><span class="bad">修复前</span>:资产烙死 #1F1F1E 实底,叠在立绘上成色块</h3>+ <div class="mini frame dark">+ <img src="assets/hero.png" style="position:absolute; left:35px; top:-20px; width:250px;" alt="">+ <img src="assets/slogan-dark.png" style="position:absolute; left:96px; top:150px; width:128px; background:#1F1F1E; padding:8px 10px;" alt="">+ </div>+ </div>+ <div class="diffcard">+ <h3><span class="good">修复后</span>:透明底,文字直接落在立绘上</h3>+ <div class="mini frame dark">+ <img src="assets/hero.png" style="position:absolute; left:35px; top:-20px; width:250px;" alt="">+ <img src="assets/slogan-dark.png" style="position:absolute; left:96px; top:150px; width:128px; padding:8px 10px;" alt="">+ </div>+ </div>+ </div>++ <div class="rowtitle">③ 错误提示位置(亮色,面板底部特写)</div>+ <div class="diffrow">+ <div class="diffcard">+ <h3><span class="bad">修复前</span>:顶对齐,紧贴「继续」按钮</h3>+ <div class="mini frame light">+ <div class="panel" style="left:20px; top:-96px; width:280px; height:262px; border-radius:16px;">+ <div class="input filled" style="left:28px; top:60px; width:224px; height:44px; padding-left:14px; font-size:12px;">138</div>+ <div class="cta" style="left:28px; top:130px; width:224px; height:44px; font-size:12px;">继续</div>+ <div class="err" style="top:176px; height:12px; font-size:11px;">请输入正确的手机号</div>+ </div>+ <div class="guide" style="top:78px;"></div><div class="guidelabel" style="top:66px;">按钮底 y380</div>+ <div class="guide" style="top:166px;"></div><div class="guidelabel" style="top:154px;">面板底 y440</div>+ </div>+ </div>+ <div class="diffcard">+ <h3><span class="good">修复后</span>:按钮底(380)→面板底(440)整段垂直居中</h3>+ <div class="mini frame light">+ <div class="panel" style="left:20px; top:-96px; width:280px; height:262px; border-radius:16px;">+ <div class="input filled" style="left:28px; top:60px; width:224px; height:44px; padding-left:14px; font-size:12px;">138</div>+ <div class="cta" style="left:28px; top:130px; width:224px; height:44px; font-size:12px;">继续</div>+ <div class="err" style="top:174px; height:88px; font-size:11px;">请输入正确的手机号</div>+ </div>+ <div class="guide" style="top:78px;"></div><div class="guidelabel" style="top:66px;">按钮底 y380</div>+ <div class="guide" style="top:166px;"></div><div class="guidelabel" style="top:154px;">面板底 y440</div>+ </div>+ </div>+ </div>+</div>++<div class="note" style="margin:0 28px 40px; max-width:800px; font-size:12px; color:#9a9a9a; line-height:2; border:1px solid #2e2e2e; border-radius:10px; padding:14px 18px;">+ <b style="color:#ddd;">审核要点</b><br>+ 1. Apple 圆钮(全端):亮 <code style="color:#c9d1d9;background:#20242b;padding:1px 6px;border-radius:4px;">#000000</code> 圆底 + 白官方标 / 暗 <code style="color:#c9d1d9;background:#20242b;padding:1px 6px;border-radius:4px;">#FFFFFF</code> 圆底 + 黑官方标,<b style="color:#ddd;">无描边</b>;logo path 来自 ADR 官方素材逐字节原样(手机端单测与桌面 apple.svg 互为对比锚),viewBox 光学裁切,logo≈圆钮 46% 高。SSO 圆钮维持反相底 + 1px 描边,对照「只去 Apple 描边」拍板。Android 无 Apple 入口(iOS-only 判定不变)。<br>+ 2. 暗色 slogan:桌面 slogan-dark 1x/@2x + 手机 @2x/@3x 共 4 份资产全部替换为透明底;亮色资产原本即透明,不动。<br>+ 3. 错误提示:双端 ERROR_TEXT 带高 50→60,占满「主按钮底 380 → 面板底 440」并垂直居中;手机端 LoginErrorText 重构为定高 View + 内层 Text(iOS 不支持 textAlignVertical)。<br>+ 4. 面板 / 输入框 / 主按钮 / 立绘为现网既有样式,非本 PR 改动,仅作语境;协议同意行、游客入口在另一 PR。+</div>++<script>+const APPLE_D = "M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z";+document.querySelectorAll('.circle.apple').forEach(el => {+ el.innerHTML = '<svg viewBox="15.7 13.2 24.6 24.6" xmlns="http://www.w3.org/2000/svg" style="width:60%;height:60%;"><path d="' + APPLE_D + '" fill-rule="nonzero"/></svg>';+});+document.querySelectorAll('[data-apple]').forEach(el => el.setAttribute('d', APPLE_D));+function show(key, el){+ document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));+ el.classList.add('active');+ ['phone','pad','desk','diff'].forEach(k => {+ document.getElementById('sec-' + k).classList.toggle('hidden', k !== key);+ });+}+</script>+</body>+</html>diff --git a/packages/auth-client/src/client.ts b/packages/auth-client/src/client.tsindex 9754625c24..a7381ad967 100644--- a/packages/auth-client/src/client.ts+++ b/packages/auth-client/src/client.ts@@ -184,6 +184,8 @@ export class CindyAuthClient {authorizationCode?: string;rawNonce: string;user?: { name?: string };+ // Apple 首次授权的明文 email(客户端补传,消除 Guideline 4.2 索要 email)。+ email?: string | null;}| { code: string },): Promise<LoginOutcome> {diff --git a/scripts/hardcoded-color-exemptions.json b/scripts/hardcoded-color-exemptions.jsonindex c2851ac76a..a4f71470f7 100644--- a/scripts/hardcoded-color-exemptions.json+++ b/scripts/hardcoded-color-exemptions.json@@ -154,6 +154,16 @@"reason": "hsl(var(--sidebar-muted)) 合法 token 消费(规则16 HSL wrap);红胶囊反白重构 2026-07-19 改行形态后入账","owner": "lead"},+ {+ "glob": "docs/design-previews/**",+ "reason": "hifi 设计预览页(随 PR 供 reviewer 对照的静态示意物,非产品代码;色值为按设计常量手写的展示样式)",+ "owner": "apple-signin-review"+ },+ {+ "glob": "apps/desktop/src/renderer/assets/login/icons/apple.svg",+ "reason": "亮色黑圆上的白色 Apple 官方 logo 资产固有色(ADR SIWA Logo-only 逐字节导入,Guideline 4)",+ "owner": "apple-signin-review"+ },{"glob": "apps/desktop/src/renderer/assets/login/icons/apple-dark.svg","reason": "暗色白圆上的深色 Apple 图标资产固有色(figma 489:676 white apple);#229 等为 SVG 中文 id 的 HTML 实体误报",