        html,
        body {
            height: 100%;
        }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #ffffff;
            color: #1f2937;
            overflow: hidden;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }
        .app-shell {
            height: 100vh;
            height: 100dvh;
            max-height: 100dvh;
        }
        #app-main {
            min-height: 0;
            overscroll-behavior: contain;
        }
        .font-serif {
            font-family: 'Playfair Display', Georgia, serif;
        }
        .safe-bottom {
            padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        }
        .aurora-bg {
            position: fixed;
            top: -10%;
            left: -10%;
            width: 120%;
            height: 120%;
            background:
                radial-gradient(circle at 10% 20%, rgba(219, 234, 254, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 90% 10%, rgba(253, 244, 245, 0.5) 0%, transparent 45%),
                radial-gradient(circle at 50% 85%, rgba(243, 232, 255, 0.35) 0%, transparent 50%);
            z-index: -1;
            filter: blur(50px);
            pointer-events: none;
            animation: softDrift 25s ease-in-out infinite alternate;
        }
        @keyframes softDrift {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(2%, 4%) scale(1.02); }
        }
        .view-pane {
            display: none;
            opacity: 0;
            transform: translateY(12px);
            transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .view-pane.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        ::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.08);
            border-radius: 99px;
        }
        .gemini-spark-bg {
            background: linear-gradient(135deg, #a855f7, #ec4899, #3b82f6);
        }
        .wedding-spark-bg {
            background: linear-gradient(135deg, #fda4af, #f43f5e);
        }
        .tag-pill {
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .tag-pill.active {
            background-color: #faf5ff !important;
            border-color: #c084fc !important;
            color: #9333ea !important;
            font-weight: 600;
        }
        .shimmer-btn {
            background: linear-gradient(110deg, #18181b 45%, #27272a 55%, #18181b 65%);
            background-size: 200% 100%;
            animation: shimmerEffect 3s infinite linear;
        }
        @keyframes shimmerEffect {
            to { background-position: -200% 0; }
        }
        .aura-pulse-circle {
            box-shadow: 0 0 25px rgba(168, 85, 247, 0.15);
            animation: auraPulse 4s infinite alternate;
        }
        @keyframes auraPulse {
            0% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.1); }
            100% { box-shadow: 0 0 35px rgba(236, 72, 153, 0.25); }
        }
        @keyframes fadeSlideUp {
            from { opacity: 0; transform: translateY(12px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* ── PC 响应式（宽屏变侧边栏布局）────────────────────────── */
        @media (min-width: 768px) {
            body { overflow: auto; }

            .app-shell {
                max-width: 100% !important;
                height: 100vh;
                display: flex !important;
                flex-direction: row !important;
                padding-bottom: 0 !important;
                overflow: hidden;
            }

            /* 侧边导航栏 */
            #app-nav {
                order: -1;
                position: relative !important;
                bottom: auto !important;
                left: auto !important;
                right: auto !important;
                inset: auto !important;
                width: 80px !important;
                height: 100vh;
                flex-direction: column !important;
                justify-content: flex-start !important;
                align-items: center !important;
                padding: 28px 0 16px !important;
                gap: 4px;
                border-right: 1px solid rgba(0,0,0,0.06);
                border-top: none !important;
                flex-shrink: 0;
                overflow-y: auto;
                display: flex !important;
            }

            #app-nav button {
                width: 100%;
                padding: 10px 0;
                border-radius: 0;
            }

            /* header + main 占剩余宽度 */
            #app-content-area {
                flex: 1;
                min-width: 0;
                display: flex;
                flex-direction: column;
                height: 100vh;
                overflow: hidden;
            }

            #app-header {
                position: sticky;
                top: 0;
            }

            #app-main {
                flex: 1;
                overflow-y: auto;
            }

            /* 内容区加宽，关键表格双列 */
            .view-pane {
                max-width: 900px;
                margin: 0 auto;
            }

            /* 单身档案表单双列 */
            #view-persona .grid-cols-2,
            #view-persona .grid-cols-3 {
                gap: 16px;
            }
        }
