//
//  SplashView.swift
//  suixinkan
//
//  Created by Codex on 2026/6/29.
//

import SwiftUI

/// 启动页视图，在冷启动恢复登录态期间展示，与 Launch Screen 保持相同品牌布局。
struct SplashView: View {
    var body: some View {
        ZStack {
            Color.white
                .ignoresSafeArea()

            VStack(spacing: 0) {
                Spacer()

                Image("SplashLogo")
                    .resizable()
                    .scaledToFit()
                    .frame(width: 180, height: 180)
                    .accessibilityIdentifier("splash.logo")

                Text("随心瞰")
                    .font(SplashTypography.titleFont)
                    .foregroundStyle(AppDesign.primary)
                    .accessibilityIdentifier("splash.title")

                Spacer()

                Text("商家版")
                    .font(SplashTypography.subtitleFont)
                    .foregroundStyle(AppDesign.primary)
                    .padding(.bottom, 32)
                    .accessibilityIdentifier("splash.subtitle")
            }
        }
        .accessibilityIdentifier("splash.root")
    }
}

#Preview {
    SplashView()
}
