        /* ============ 尺间 CHIJIAN Design System — Apple-inspired ============ */
        :root {
            /* Apple color palette — 页面浅灰底 + 白色卡片分层（材质层级 via 阴影，非边框） */
            --bg: #f5f5f7;
            --bg-alt: #f0f0f2;
            --surface: #ffffff;
            --surface-raised: #ffffff;
            --ink: #1d1d1f;
            --ink-soft: #6e6e73;
            --muted: #86868b;
            --faint: #aeaeb2;
            --line: #d2d2d7;
            --line-soft: #e5e5ea;
            --accent: #0071e3;
            --accent-hover: #0077ed;
            --accent-soft: rgba(0, 113, 227, 0.10);
            --accent-glow: rgba(0, 113, 227, 0.06);
            --btn-primary: #0071e3;
            --btn-primary-text: #ffffff;
            --btn-primary-hover: #0077ed;
            --success: #34c759;
            --success-soft: rgba(52, 199, 89, 0.10);
            --warning: #ff9500;
            --warning-soft: rgba(255, 149, 0, 0.10);
            --error: #ff3b30;
            --error-soft: rgba(255, 59, 48, 0.08);
            --dark-surface: #1d1d1f;
            /* 反色表面：深浅模式下都保持深色的元素（合同汇总卡/CTA/品牌面板） */
            --inverse: #1d1d1f;
            --inverse-text: #ffffff;
            --inverse-text-soft: rgba(255, 255, 255, 0.65);
            --inverse-soft-bg: rgba(255, 255, 255, 0.08);
            /* 悬浮/微背景：深浅模式自适应 */
            --hover-bg: rgba(0, 0, 0, 0.04);
            --hover-bg-strong: rgba(0, 0, 0, 0.06);
            --subtle-bg: rgba(0, 0, 0, 0.03);
            --subtle-bg-strong: rgba(0, 0, 0, 0.06);
            --tag-bg: rgba(0, 0, 0, 0.08);
            --sidebar-bg: rgba(245, 245, 247, 0.72);
            /* 永深容器上的文字色（永远深背景，如 Mac 窗口栏），不随主题反转 */
            --on-dark-text: rgba(255, 255, 255, 0.85);
            --on-dark-text-soft: rgba(255, 255, 255, 0.55);
            /* Apple radius */
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --radius-pill: 980px;
            /* Apple shadows — subtle and refined，大表面阴影更深 */
            --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 6px 20px rgba(0, 0, 0, 0.05);
            --shadow-raised: 0 2px 8px rgba(0, 0, 0, 0.05), 0 14px 40px rgba(0, 0, 0, 0.09);
            --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.08);
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
            /* Apple fonts — SF Pro for display, PingFang SC for Chinese */
            --font: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
            --font-mono: "SF Mono", "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace;
            /* Apple easing — smooth and refined */
            --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
            --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
            --ease-spring: cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
            --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
            --transition-fast: 200ms;
            --transition-normal: 300ms;
            --transition-slow: 500ms;
        }
        /* ============ 暗色模式（Apple 深色色板）============ */
        html[data-theme="dark"] {
            --bg: #1d1d1f;
            --bg-alt: #2c2c2e;
            --surface: #2c2c2e;
            --surface-raised: #3a3a3c;
            --ink: #f5f5f7;
            --ink-soft: #d1d1d6;
            --muted: #aeaeb2;
            --faint: #6e6e73;
            --line: #3a3a3c;
            --line-soft: #48484a;
            --accent: #409cff;
            --accent-hover: #5aa9ff;
            --accent-soft: rgba(64, 156, 255, 0.18);
            --accent-glow: rgba(64, 156, 255, 0.10);
            --btn-primary: #0a84ff;
            --btn-primary-text: #ffffff;
            --btn-primary-hover: #409cff;
            --success: #30d158;
            --success-soft: rgba(48, 209, 88, 0.16);
            --warning: #ff9f0a;
            --warning-soft: rgba(255, 159, 10, 0.16);
            --error: #ff453a;
            --error-soft: rgba(255, 69, 58, 0.16);
            --inverse: #f5f5f7;
            --sidebar-bg: rgba(44, 44, 46, 0.75);
            --inverse-text: #1d1d1f;
            --inverse-text-soft: rgba(0, 0, 0, 0.65);
                --inverse-soft-bg: rgba(0, 0, 0, 0.08);
            --hover-bg: rgba(255, 255, 255, 0.07);
            --hover-bg-strong: rgba(255, 255, 255, 0.10);
            --subtle-bg: rgba(255, 255, 255, 0.05);
            --subtle-bg-strong: rgba(255, 255, 255, 0.08);
            --tag-bg: rgba(255, 255, 255, 0.12);
            --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
            --shadow-raised: 0 2px 8px rgba(0, 0, 0, 0.35), 0 14px 40px rgba(0, 0, 0, 0.45);
        }
        /* 跟随系统（未手动选择时） */
        @media (prefers-color-scheme: dark) {
            html:not([data-theme="light"]):not([data-theme="dark"]) {
                --bg: #1d1d1f;
                --bg-alt: #2c2c2e;
                --surface: #2c2c2e;
                --surface-raised: #3a3a3c;
                --ink: #f5f5f7;
                --ink-soft: #d1d1d6;
                --muted: #aeaeb2;
                --faint: #6e6e73;
                --line: #3a3a3c;
                --line-soft: #48484a;
                --accent: #409cff;
                --accent-hover: #5aa9ff;
                --accent-soft: rgba(64, 156, 255, 0.18);
                --accent-glow: rgba(64, 156, 255, 0.10);
                --btn-primary: #0a84ff;
                --btn-primary-text: #ffffff;
                --btn-primary-hover: #409cff;
                --success: #30d158;
                --success-soft: rgba(48, 209, 88, 0.16);
                --warning: #ff9f0a;
                --warning-soft: rgba(255, 159, 10, 0.16);
                --error: #ff453a;
                --error-soft: rgba(255, 69, 58, 0.16);
                --inverse: #f5f5f7;
                --sidebar-bg: rgba(44, 44, 46, 0.75);
                --inverse-text: #1d1d1f;
                --inverse-text-soft: rgba(0, 0, 0, 0.65);
                --inverse-soft-bg: rgba(0, 0, 0, 0.08);
                --hover-bg: rgba(255, 255, 255, 0.07);
                --hover-bg-strong: rgba(255, 255, 255, 0.10);
                --subtle-bg: rgba(255, 255, 255, 0.05);
                --subtle-bg-strong: rgba(255, 255, 255, 0.08);
                --tag-bg: rgba(255, 255, 255, 0.12);
                --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
                --shadow-raised: 0 2px 8px rgba(0, 0, 0, 0.35), 0 14px 40px rgba(0, 0, 0, 0.45);
            }
        }
        /* 暗色下 landing 导航转深色毛玻璃 */
        html.theme-dark .lp-nav { background: rgba(44, 44, 46, 0.75); border-bottom-color: rgba(255, 255, 255, 0.08); }
        /* 主题切换平滑过渡 */
        html.theme-transition * { transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out), border-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out) !important; }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: var(--font);
            background-color: var(--bg);
            color: var(--ink);
            line-height: 1.47059;
            letter-spacing: -0.022em;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            width: 100%;
            min-width: 100vw;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        /* Utility */
        .hidden { display: none !important; }
        .text-center { text-align: center; }
        .relative { position: relative; }
        .overflow-hidden { overflow: hidden; }
        .cursor-pointer { cursor: pointer; }
        .flex { display: flex; }
        .flex-col { flex-direction: column; }
        .items-center { align-items: center; }
        .items-start { align-items: flex-start; }
        .justify-center { justify-content: center; }
        .justify-between { justify-content: space-between; }
        .justify-end { justify-content: flex-end; }
        .flex-1 { flex: 1; }
        .flex-shrink-0 { flex-shrink: 0; }
        .gap-2 { gap: 8px; }
        .gap-3 { gap: 12px; }
        .gap-4 { gap: 16px; }
        .gap-5 { gap: 20px; }
        .gap-6 { gap: 24px; }
        .gap-8 { gap: 32px; }
        .grid { display: grid; }
        .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
        .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
        .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
        .grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
        .col-span-2 { grid-column: span 2; }
        .col-span-3 { grid-column: span 3; }
        .number-font { font-variant-numeric: tabular-nums; font-family: var(--font); }

        /* ========== Typography — Apple scale ========== */
        .kicker {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0;
            text-transform: none;
            color: var(--muted);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .kicker::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: none;
        }
        .heading-xl { font-size: clamp(32px, 5vw, 48px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08349; color: var(--ink); }
        .heading-lg { font-size: clamp(24px, 3.5vw, 32px); font-weight: 600; letter-spacing: -0.003em; line-height: 1.125; color: var(--ink); }
        .heading-md { font-size: 21px; font-weight: 600; letter-spacing: 0.011em; line-height: 1.19048; }
        .heading-sm { font-size: 17px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.23536; }
        .body { font-size: 17px; line-height: 1.47059; letter-spacing: -0.022em; color: var(--ink-soft); font-weight: 400; }
        .body-sm { font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; color: var(--muted); font-weight: 400; }
        .body-xs { font-size: 12px; line-height: 1.33337; letter-spacing: -0.01em; color: var(--faint); font-weight: 400; }
        .mono { font-family: var(--font-mono); font-size: 14px; }
        .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

        /* ========== Buttons — Apple style ========== */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 36px;
            padding: 0 18px;
            border: none;
            border-radius: var(--radius-pill);
            font-family: inherit;
            font-size: 14px;
            font-weight: 400;
            cursor: pointer;
            text-decoration: none;
            transition: background var(--transition-fast) var(--ease-out), transform var(--transition-fast) var(--ease-expo), box-shadow var(--transition-fast) var(--ease-out);
            white-space: nowrap;
            line-height: 1;
            letter-spacing: -0.01em;
            will-change: transform;
        }
        .btn:hover { transform: translateY(-1px); }
        .btn:active { transform: translateY(0) scale(0.96); transition-duration: 80ms; }
        .btn-primary {
            color: var(--btn-primary-text);
            background: var(--btn-primary);
        }
        .btn-primary:hover { background: #0077ed; }
        .btn-outline {
            color: var(--accent);
            background: transparent;
            border: 1px solid var(--accent);
        }
        .btn-outline:hover {
            background: rgba(0, 113, 227, 0.04);
        }
        .btn-ghost {
            color: var(--accent);
            background: transparent;
        }
        .btn-ghost:hover { background: rgba(0, 113, 227, 0.06); }
        .btn-sm { min-height: 28px; padding: 0 12px; font-size: 12px; }
        .btn-lg { min-height: 44px; padding: 0 24px; font-size: 17px; }
        .btn-block { width: 100%; }
        .btn-accent {
            color: #fff;
            background: var(--accent);
        }
        .btn-accent:hover { background: #0077ed; }

        /* ========== Cards — Apple style ========== */
        .card {
            background: var(--surface);
            border: none;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-card);
            padding: 24px;
            transition: transform var(--transition-normal) var(--ease-out), box-shadow var(--transition-normal) var(--ease-out);
        }
        .card-hover:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-raised);
        }
        .card-raised {
            background: var(--surface-raised);
            box-shadow: var(--shadow-raised);
        }
        .card-flat {
            background: var(--bg-alt);
            border: none;
            box-shadow: none;
            border-radius: var(--radius-md);
        }

        /* ========== Form — Apple style ========== */
        .form-input {
            width: 100%;
            min-height: 40px;
            padding: 0 12px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--surface);
            font-family: inherit;
            font-size: 14px;
            color: var(--ink);
            outline: none;
            letter-spacing: -0.016em;
            transition: border-color var(--transition-fast) var(--ease-out), box-shadow var(--transition-fast) var(--ease-out);
        }
        .form-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
            background: var(--surface);
        }
        .form-input::placeholder { color: var(--faint); font-size: 14px; }
        .form-label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-soft);
            margin-bottom: 6px;
            letter-spacing: -0.01em;
        }
        textarea.form-input {
            padding: 10px 12px;
            min-height: 80px;
            resize: vertical;
            line-height: 1.47059;
        }
        select.form-input {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2386868b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 10px center;
            background-repeat: no-repeat;
            background-size: 1.2em 1.2em;
            padding-right: 36px;
            appearance: none;
            cursor: pointer;
        }

        /* ========== Badges & Tags ========== */
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 10px;
            border-radius: var(--radius-pill);
            font-size: 12px;
            font-weight: 500;
            line-height: 1.33337;
            white-space: nowrap;
            letter-spacing: -0.01em;
        }
        .badge-primary { background: var(--accent-soft); color: var(--accent); }
        .badge-success { background: var(--success-soft); color: var(--success); }
        .badge-warning { background: var(--warning-soft); color: var(--warning); }
        .badge-muted { background: var(--hover-bg); color: var(--muted); }
        .badge-invert { background: var(--inverse); color: var(--inverse-text); }

        /* ========== Status Dots ========== */
        .dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .dot-accent { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
        .dot-success { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
        .dot-muted { background: var(--faint); }

        /* ========== Tables ========== */
        table { width: 100%; border-collapse: collapse; }
        th { font-size: 12px; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
        td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; letter-spacing: -0.016em; }
        tr:last-child td { border-bottom: none; }
        tbody tr { transition: background var(--transition-fast) var(--ease-out); }
        tbody tr:nth-child(even) { background: var(--subtle-bg); }
        tr:hover td { background: rgba(0, 113, 227, 0.035); }

        /* ========== Progress ========== */
        .progress-bar {
            height: 4px;
            border-radius: 999px;
            background: var(--hover-bg-strong);
            overflow: hidden;
        }
        .progress-bar-fill {
            height: 100%;
            border-radius: 999px;
            transition: width .6s var(--ease-out);
        }
        .progress-bar-fill.accent { background: var(--accent); }
        .progress-bar-fill.success { background: var(--success); }
        .progress-bar-fill.ink { background: var(--inverse); }

        /* ========== Avatar ========== */
        .avatar {
            width: 36px; height: 36px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-weight: 600; font-size: 15px;
            flex-shrink: 0;
        }
        .avatar-accent { background: var(--accent-soft); color: var(--accent); }
        .avatar-ink { background: var(--hover-bg-strong); color: var(--ink); }

        /* ========== Divider ========== */
        .divider {
            height: 1px;
            background: var(--line);
            margin: 0;
            border: none;
        }
        .divider-soft { background: var(--line-soft); }

        /* ========== Dropdown ========== */
        .select-wrapper {
            position: relative;
        }
        .select-wrapper::after {
            content: '';
            position: absolute;
            right: 14px; top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            width: 0; height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 5px solid var(--muted);
        }

        /* ========== Sidebar — Apple style ========== */
        .sidebar {
            width: 232px;
            min-height: 100vh;
            position: fixed;
            left: 0; top: 0;
            background: var(--sidebar-bg);
            backdrop-filter: blur(24px) saturate(1.8);
            -webkit-backdrop-filter: blur(24px) saturate(1.8);
            border-right: 1px solid var(--line-soft);
            display: flex;
            flex-direction: column;
            z-index: 20;
            transition: transform var(--transition-normal) var(--ease-out);
        }
        .sidebar-logo {
            padding: 20px;
            border-bottom: 1px solid var(--line-soft);
        }
        .sidebar-logo-mark {
            width: 32px; height: 32px;
            border-radius: 7px;
            background: var(--inverse);
            color: var(--inverse-text);
            display: flex; align-items: center; justify-content: center;
            font-size: 16px; font-weight: 600;
        }
        .sidebar-nav { padding: 8px 8px; flex: 1; overflow-y: auto; }
        .sidebar-item {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 14px;
            border-radius: 8px;
            color: var(--ink-soft);
            font-size: 15.5px;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--transition-fast) var(--ease-out);
            margin-bottom: 2px;
            letter-spacing: -0.01em;
            position: relative;
        }
        .sidebar-item:hover { background: var(--hover-bg); color: var(--ink); }
        .sidebar-item.active {
            background: var(--hover-bg-strong);
            color: var(--ink);
            font-weight: 600;
        }
        .sidebar-item.active::before {
            content: '';
            position: absolute;
            left: 0; top: 50%;
            width: 3px; height: 18px;
            margin-top: -9px;
            border-radius: 2px;
            background: var(--accent);
            transform-origin: center;
            animation: navIndicator 0.35s var(--ease-expo) both;
        }
        .sidebar-item i { width: 16px; text-align: center; font-size: 14px; }
        .sidebar-footer {
            padding: 12px 14px;
            border-top: 1px solid var(--line-soft);
        }
        .sidebar-user {
            display: flex; align-items: center; gap: 10px;
            padding: 8px 10px;
            border-radius: 8px;
            transition: background var(--transition-fast);
        }
        .sidebar-user:hover { background: var(--hover-bg); }

        /* ========== Main Content ========== */
        .main-content {
            margin-left: 232px;
            width: calc(100% - 232px);
            min-height: 100vh;
        }
        .topbar {
            height: 52px;
            background: var(--surface);
            backdrop-filter: blur(24px) saturate(1.8);
            -webkit-backdrop-filter: blur(24px) saturate(1.8);
            border-bottom: 1px solid var(--line-soft);
            padding: 0 24px;
            display: flex; align-items: center; justify-content: space-between;
            position: sticky; top: 0; z-index: 10;
        }
        .page-content { padding: 28px; width: 100%; }
        .page-content > .page-enter-active { animation: pageEnter 0.55s var(--ease-expo) both; }
        .page-container { max-width: 1280px; width: 100%; }

        /* ========== Landing Page ========== */
        .landing-hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: clamp(40px, 8vw, 100px) 24px;
            position: relative;
            z-index: 1;
            background: var(--bg);
        }
        .landing-logo-mark {
            width: 64px; height: 64px;
            border-radius: 16px;
            background: var(--inverse);
            color: var(--inverse-text);
            display: flex; align-items: center; justify-content: center;
            font-size: 28px;
            margin-bottom: 32px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            animation: fadeInUp 0.6s var(--ease-spring) both;
        }
        .landing-feature-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            max-width: 920px;
            width: 100%;
            margin-top: 80px;
        }
        .landing-feature-item {
            background: var(--surface);
            border: none;
            border-radius: var(--radius-lg);
            padding: 28px 20px;
            text-align: center;
            box-shadow: var(--shadow-sm);
            transition: transform var(--transition-normal) var(--ease-out), box-shadow var(--transition-normal) var(--ease-out);
        }
        .landing-feature-item:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-card);
        }
        .landing-feature-item i {
            font-size: 28px;
            color: var(--accent);
            margin-bottom: 14px;
            display: block;
        }
        .landing-feature-item h4 {
            font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.022em;
        }
        .landing-feature-item p {
            font-size: 14px; color: var(--muted); line-height: 1.42859; letter-spacing: -0.016em;
        }
        .landing-footer {
            position: absolute;
            bottom: 24px;
            color: var(--faint);
            font-size: 13px;
        }

        /* ========== Auth Pages ========== */
        .auth-page {
            min-height: 100vh;
            display: flex;
        }
        .auth-brand-panel {
            width: 44%;
            background: var(--inverse);
            display: flex; align-items: center; justify-content: center;
            position: relative;
            overflow: hidden;
        }
        .auth-brand-panel::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(600px 400px at 30% 40%, rgba(0, 113, 227, 0.28) 0%, transparent 55%),
                radial-gradient(500px 380px at 75% 75%, rgba(52, 199, 89, 0.12) 0%, transparent 55%);
        }
        .auth-form-panel {
            flex: 1;
            display: flex; align-items: center; justify-content: center;
            padding: 40px;
        }
        .auth-form-card {
            width: 100%;
            max-width: 400px;
            background: var(--surface);
            padding: 36px;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-raised);
            animation: fadeInScale 0.4s var(--ease-spring) both;
        }

        /* ========== Modal ========== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.30);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            z-index: 100;
            display: flex; align-items: center; justify-content: center;
            padding: 24px;
            animation: fadeIn 0.2s var(--ease-out);
        }
        .modal-content {
            background: var(--surface);
            border: none;
            border-radius: var(--radius-xl);
            box-shadow: 0 24px 72px rgba(0, 0, 0, 0.16);
            max-width: 520px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 28px;
            animation: modalPop 0.4s var(--ease-back) both;
        }

        /* ========== Toast ========== */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 200;
        }
        .toast-message {
            background: var(--inverse);
            color: var(--inverse-text);
            padding: 10px 18px;
            border-radius: var(--radius-pill);
            font-size: 14px;
            font-weight: 500;
            display: flex; align-items: center; gap: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
            animation: fadeInUp 0.3s var(--ease-spring);
        }
        .toast-message i { color: var(--success); }

        /* ========== Tabs ========== */
        .tabs {
            display: flex;
            gap: 0;
            border-bottom: 1px solid var(--line-soft);
            margin-bottom: 24px;
        }
        .tab-item {
            padding: 10px 16px;
            font-size: 14px;
            font-weight: 400;
            color: var(--muted);
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all var(--transition-fast) var(--ease-out);
            background: none;
            border-top: none;
            border-left: none;
            border-right: none;
            font-family: inherit;
            letter-spacing: -0.01em;
        }
        .tab-item:hover { color: var(--ink); }
        .tab-item.active {
            color: var(--accent);
            font-weight: 500;
            border-bottom-color: var(--accent);
        }

        /* ========== Pricing cards (Settings page) ========== */
        .pricing-tier {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            padding: 28px 24px;
            text-align: center;
            transition: all var(--transition-normal);
        }
        .pricing-tier:hover {
            box-shadow: var(--shadow-raised);
            border-color: rgba(0, 0, 0, 0.20);
        }
        .pricing-tier.featured {
            border: 2px solid var(--accent);
            box-shadow: 0 0 0 6px var(--accent-soft);
            background: var(--surface-raised);
        }

        /* ========== Step indicator ========== */
        .step-track {
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            padding: 8px 0;
        }
        .step-track::before {
            content: '';
            position: absolute;
            top: 23px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--line-soft);
            z-index: 0;
        }
        .step-dot {
            width: 36px; height: 36px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 13px;
            font-weight: 600;
            z-index: 1;
            transition: all var(--transition-normal) var(--ease-out);
        }
        .step-dot.done { background: var(--inverse); color: var(--inverse-text); }
        .step-dot.current { background: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); }
        .step-dot.pending { background: var(--tag-bg); color: var(--muted); }

        /* ========== Stats card ========== */
        .stat-card {
            background: var(--surface);
            border: none;
            border-radius: var(--radius-lg);
            padding: 20px 24px;
            box-shadow: var(--shadow-card);
            transition: transform var(--transition-normal) var(--ease-expo), box-shadow var(--transition-normal) var(--ease-out);
        }
        .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-raised);
        }
        .stat-card:hover .stat-value { color: var(--accent); }
        .stat-value { font-size: 32px; font-weight: 600; letter-spacing: -0.003em; line-height: 1; }
        .stat-label { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 6px; letter-spacing: -0.01em; }

        /* ========== Page heading ========== */
        .page-heading { margin-bottom: 28px; }
        .page-heading h1 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 600; letter-spacing: -0.003em; margin-bottom: 6px; }
        .page-heading p { font-size: 14px; color: var(--muted); }

        /* ========== Note panel ========== */
        .note-panel {
            padding: 14px 16px;
            border-left: 3px solid var(--accent);
            border-radius: 0 10px 10px 0;
            background: rgba(0, 113, 227, 0.04);
            color: var(--muted);
            font-size: 12px;
            line-height: 1.65;
        }

        /* ========== CAD Upload & Analysis ========== */
        .cad-upload-zone {
            border: 2px dashed rgba(0, 0, 0, 0.12);
            border-radius: var(--radius-xl);
            padding: 48px 28px;
            text-align: center;
            background: var(--bg-alt);
            cursor: pointer;
            transition: all var(--transition-normal) var(--ease-out);
            position: relative;
        }
        .cad-upload-zone:hover {
            border-color: var(--accent);
            background: var(--accent-glow);
        }
        .cad-upload-zone.drag-over {
            border-color: var(--accent);
            background: var(--accent-soft);
            box-shadow: 0 0 0 8px rgba(0, 113, 227, 0.04);
            transform: scale(1.01);
        }
        .cad-upload-icon {
            width: 64px; height: 64px;
            margin: 0 auto 16px;
            border-radius: 18px;
            background: var(--accent-soft);
            display: flex; align-items: center; justify-content: center;
            font-size: 28px; color: var(--accent);
        }
        .cad-upload-hint { font-size: 12px; color: var(--faint); margin-top: 8px; }
        .cad-upload-formats { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }

        .cad-progress-wrap {
            margin-top: 20px;
            display: none;
        }
        .cad-progress-wrap.active { display: block; }
        .cad-progress-info {
            display: flex; justify-content: space-between;
            font-size: 12px; color: var(--muted); margin-bottom: 6px;
        }
        .cad-progress-bar {
            height: 8px;
            border-radius: 999px;
            background: var(--tag-bg);
            overflow: hidden;
        }
        .cad-progress-fill {
            height: 100%;
            border-radius: 999px;
            background: var(--accent);
            transition: width 0.3s var(--ease-out);
        }

        .cad-result-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
        }
        .cad-result-card {
            background: var(--surface);
            border: none;
            border-radius: var(--radius-md);
            padding: 18px;
            display: flex; align-items: center; gap: 14px;
            box-shadow: var(--shadow-sm);
            transition: all var(--transition-fast) var(--ease-out);
        }
        .cad-result-card:hover {
            box-shadow: var(--shadow-raised);
            transform: translateY(-1px);
        }
        .cad-result-icon {
            width: 44px; height: 44px;
            border-radius: var(--radius-sm);
            display: flex; align-items: center; justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        .cad-result-icon.wall { background: var(--tag-bg); color: var(--ink); }
        .cad-result-icon.space { background: var(--accent-soft); color: var(--accent); }
        .cad-result-icon.door { background: var(--success-soft); color: var(--success); }
        .cad-result-icon.window { background: rgba(100, 140, 220, 0.12); color: #4A7BD4; }

        .cad-space-table-wrap { overflow-x: auto; }
        .cad-space-table { width: 100%; border-collapse: collapse; }
        .cad-space-table th {
            font-size: 12px; font-weight: 600; letter-spacing: -0.01em;
            color: var(--muted);
            text-align: left; padding: 10px 14px;
            border-bottom: 1px solid var(--line-soft);
        }
        .cad-space-table td {
            padding: 12px 14px; border-bottom: 1px solid var(--line-soft);
            font-size: 14px; letter-spacing: -0.016em;
        }

        .cad-step-indicator {
            display: flex; align-items: center; gap: 0;
            margin-bottom: 28px;
        }
        .cad-step {
            display: flex; align-items: center; gap: 8px;
            font-size: 12px; font-weight: 500;
            color: var(--faint);
            letter-spacing: -0.01em;
        }
        .cad-step.active { color: var(--accent); }
        .cad-step.done { color: var(--success); }
        .cad-step-num {
            width: 24px; height: 24px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 11px; font-weight: 600;
            background: var(--hover-bg-strong);
        }
        .cad-step.active .cad-step-num { background: var(--accent); color: #fff; }
        .cad-step.done .cad-step-num { background: var(--success); color: #fff; }
        .cad-step-line {
            width: 36px; height: 2px;
            border-radius: 2px;
            background: var(--tag-bg);
            margin: 0 6px;
        }
        .cad-step.done ~ .cad-step-line { background: var(--success); }

        @media (max-width: 768px) {
            .cad-result-grid { grid-template-columns: 1fr; }
        }

        /* ========== Animations — Apple style ========== */
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes pageEnter { from { opacity: 0; transform: translateY(10px) scale(0.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
        @keyframes modalPop { 0% { opacity: 0; transform: scale(0.96) translateY(8px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
        @keyframes navIndicator { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
        @keyframes fadeInScale { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
        @keyframes fadeInRight { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
        @keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
        @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
        @keyframes stepGlow { from { box-shadow: 0 0 0 0 var(--accent-soft); } to { box-shadow: 0 0 0 10px transparent; } }
        .animate-fade-in { animation: fadeIn 0.4s var(--ease-out) both; }
        .animate-fade-in-up { animation: fadeInUp 0.5s var(--ease-out) both; }
        .animate-fade-in-right { animation: fadeInRight 0.4s var(--ease-out) both; }
        .animate-fade-in-scale { animation: fadeInScale 0.4s var(--ease-spring) both; }
        .animate-stagger > * { opacity: 0; animation: fadeInUp 0.5s var(--ease-out) forwards; }
        .animate-stagger > *:nth-child(1) { animation-delay: 0.06s; }
        .animate-stagger > *:nth-child(2) { animation-delay: 0.12s; }
        .animate-stagger > *:nth-child(3) { animation-delay: 0.18s; }
        .animate-stagger > *:nth-child(4) { animation-delay: 0.24s; }
        .animate-stagger > *:nth-child(5) { animation-delay: 0.30s; }
        .animate-stagger > *:nth-child(6) { animation-delay: 0.36s; }
        .animate-stagger > *:nth-child(7) { animation-delay: 0.42s; }
        .animate-stagger > *:nth-child(8) { animation-delay: 0.48s; }
        .btn-ripple { position: relative; overflow: hidden; }
        .btn-ripple::after {
            content: ''; position: absolute; top: 50%; left: 50%;
            width: 0; height: 0; border-radius: 50%;
            background: rgba(255,255,255,0.25);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s, opacity 0.6s;
        }
        .btn-ripple:active::after { width: 300px; height: 300px; opacity: 0; }

        /* ========== Inline Edit ========== */
        .inline-editable {
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid transparent;
            transition: all var(--transition-fast);
            min-width: 40px;
            display: inline-block;
        }
        .inline-editable:hover {
            background: rgba(0, 113, 227, 0.06);
            border-color: rgba(0, 113, 227, 0.2);
        }
        .inline-editable:focus, .inline-editable.editing {
            outline: none;
            background: #fff;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-glow);
        }
        .inline-edit-input {
            border: 1px solid var(--accent);
            border-radius: 4px;
            padding: 2px 6px;
            font-family: var(--font);
            font-size: inherit;
            color: var(--ink);
            background: #fff;
            outline: none;
            width: 80px;
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

        /* ========== Dashboard CAD / 图纸报价 section ========== */
        .db-quick-actions {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }
        .db-quick-card {
            background: var(--surface);
            border: none;
            border-radius: var(--radius-xl);
            padding: 32px 24px;
            cursor: pointer;
            box-shadow: var(--shadow-card);
            transition: transform var(--transition-normal) var(--ease-expo), box-shadow var(--transition-normal) var(--ease-out);
            text-align: center;
            will-change: transform;
            position: relative;
            overflow: hidden;
        }
        .db-quick-card::after {
            content: '';
            position: absolute;
            top: 0; left: -80%;
            width: 60%; height: 100%;
            background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
            transform: skewX(-20deg);
            transition: left 0.6s var(--ease-expo);
            pointer-events: none;
        }
        .db-quick-card:hover {
            box-shadow: var(--shadow-raised);
            transform: translateY(-4px);
        }
        .db-quick-card:hover::after { left: 130%; }
        .db-quick-icon {
            width: 56px; height: 56px;
            margin: 0 auto 16px;
            border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 24px;
            transition: transform var(--transition-normal) var(--ease-back);
        }
        .db-quick-card:hover .db-quick-icon { transform: scale(1.12) rotate(-3deg); }
        .db-quick-icon.cad-pulse { background: var(--hover-bg-strong); color: var(--ink); }
        .db-quick-icon.img-pulse { background: var(--accent-soft); color: var(--accent); }
        .db-quick-icon.space-pulse { background: var(--success-soft); color: var(--success); }

        /* ========== Dashboard step flow ========== */
        .db-step-flow {
            display: flex; align-items: center; gap: 0;
            margin-bottom: 28px; padding: 0 4px;
            flex-wrap: wrap;
        }
        .db-step-node {
            display: flex; align-items: center; gap: 8px;
            font-size: 12px; font-weight: 500; color: var(--faint);
            white-space: nowrap; transition: all 0.3s var(--ease-out);
            letter-spacing: -0.01em;
        }
        .db-step-node.active { color: var(--accent); font-weight: 600; }
        .db-step-node.done { color: var(--success); }
        .db-step-dot {
            width: 28px; height: 28px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 12px; font-weight: 600;
            background: var(--hover-bg-strong);
            transition: all 0.3s var(--ease-out);
            flex-shrink: 0;
        }
        .db-step-node.active .db-step-dot { background: var(--accent); color: #fff; animation: stepGlow 0.8s var(--ease-out); }
        .db-step-node.done .db-step-dot { background: var(--success); color: #fff; }
        .db-step-bridge {
            width: 32px; height: 2px;
            border-radius: 2px;
            background: var(--tag-bg);
            margin: 0 6px; flex-shrink: 0;
            transition: background 0.3s var(--ease-out);
        }
        .db-step-node.done + .db-step-bridge { background: var(--success); }

        /* ========== Section slide transitions ========== */
        .db-section {
            transition: all 0.35s var(--ease-out);
            animation: fadeInScale 0.4s var(--ease-spring) both;
        }

        /* ========== Draft pricing (image-based) ========== */
        .draft-upload-grid {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        .draft-preview-card {
            background: var(--surface);
            border: none;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-card);
        }
        .draft-preview-img {
            width: 100%; height: 240px;
            display: flex; align-items: center; justify-content: center;
            background: var(--bg-alt);
            position: relative;
            overflow: hidden;
        }
        .draft-preview-img i { font-size: 72px; color: rgba(0, 0, 0, 0.06); }
        .draft-preview-label {
            position: absolute; bottom: 0; left: 0; right: 0;
            padding: 8px 16px;
            background: rgba(0, 0, 0, 0.72);
            color: #fff;
            font-size: 12px; font-weight: 500;
            text-align: center;
            letter-spacing: -0.01em;
        }
        .draft-room-badge {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 5px 12px;
            border-radius: var(--radius-pill);
            font-size: 12px; font-weight: 500;
            letter-spacing: -0.01em;
            cursor: pointer;
            transition: all var(--transition-fast) var(--ease-out);
            border: 1px solid var(--line-soft);
            background: var(--surface);
        }
        .draft-room-badge:hover { border-color: var(--accent); background: var(--accent-glow); }
        .draft-room-badge.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

        /* ========== Toast animation enhancement ========== */
        .toast-enter { animation: fadeInUp 0.35s var(--ease-out); }
        .toast-leave { animation: fadeIn 0.25s var(--ease-out) reverse forwards; }

        @media (max-width: 768px) {
            .db-quick-actions { grid-template-columns: 1fr; }
            .draft-upload-grid { grid-template-columns: 1fr; }
            .db-step-flow { gap: 4px; }
        }
        .delay-100 { animation-delay: 0.1s; }
        .delay-200 { animation-delay: 0.2s; }
        .delay-300 { animation-delay: 0.3s; }
        .delay-400 { animation-delay: 0.4s; }

        /* ========== Responsive ========== */
        @media (max-width: 1024px) {
            .sidebar { transform: translateX(-100%); }
            .sidebar.open { transform: translateX(0); }
            .main-content { margin-left: 0; width: 100%; }
            .auth-brand-panel { display: none; }
            .auth-form-panel { width: 100%; }
            .landing-feature-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 640px) {
            .landing-feature-grid { grid-template-columns: 1fr; max-width: 360px; }
            .grid-cols-3, .grid-cols-4, .grid-cols-5 { grid-template-columns: 1fr; }
            .grid-cols-2 { grid-template-columns: 1fr; }
            .page-content { padding: 16px; }
            .topbar { padding: 0 16px; }
            .card { padding: 18px; }
            .modal-content { padding: 20px; border-radius: var(--radius-lg); }
        }

        /* ========== Scrollbar ========== */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.20); }

        /* ========== Focus ring ========== */
        :focus-visible {
            outline: 2px solid rgba(0, 113, 227, 0.28);
            outline-offset: 2px;
        }

        /* ========== Link ========== */
        a { color: var(--accent); text-decoration: none; font-weight: 400; transition: color var(--transition-fast); }
        a:hover { color: #0077ed; }

        /* ========== Material page grid ========== */
        .material-card {
            background: var(--surface);
            border: none;
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: var(--shadow-card);
            transition: all var(--transition-normal) var(--ease-out);
        }
        .material-card:hover {
            box-shadow: var(--shadow-raised);
            transform: translateY(-1px);
        }

        /* ========== Inline tag ========== */
        .tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            letter-spacing: -0.01em;
        }
        .tag-green { background: var(--success-soft); color: var(--success); }
        .tag-orange { background: var(--warning-soft); color: var(--warning); }

        /* ========== Empty state ========== */
        .empty-state {
            text-align: center;
            padding: 48px 24px;
        }
        .empty-state i { font-size: 40px; color: var(--line-soft); margin-bottom: 16px; }
        .empty-state p { color: var(--muted); font-size: 14px; letter-spacing: -0.016em; }

        /* ========== File upload zone (通用) ========== */
        .file-upload-zone {
            border: 2px dashed rgba(0, 0, 0, 0.12);
            border-radius: var(--radius-xl);
            padding: 36px 28px;
            text-align: center;
            background: var(--bg-alt);
            cursor: pointer;
            transition: all var(--transition-normal) var(--ease-out);
        }
        .file-upload-zone:hover {
            border-color: var(--accent);
            background: var(--accent-glow);
        }
        .file-upload-zone.drag-over {
            border-color: var(--accent);
            background: var(--accent-soft);
            box-shadow: 0 0 0 8px rgba(0, 113, 227, 0.04);
        }
        .file-upload-icon {
            width: 56px; height: 56px;
            margin: 0 auto 12px;
            border-radius: 14px;
            background: var(--accent-soft);
            display: flex; align-items: center; justify-content: center;
            font-size: 24px; color: var(--accent);
        }
        .file-list-item {
            display: flex; align-items: center; gap: 12px;
            padding: 12px 16px;
            border: 1px solid var(--line-soft);
            border-radius: var(--radius-md);
            transition: all var(--transition-fast);
        }
        .file-list-item:hover { border-color: var(--line); background: var(--subtle-bg); }
        .file-list-icon {
            width: 40px; height: 40px;
            border-radius: var(--radius-sm);
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; flex-shrink: 0;
        }
        .file-list-icon.img { background: rgba(0, 113, 227, 0.08); color: var(--accent); }
        .file-list-icon.pdf { background: rgba(220, 50, 50, 0.08); color: #dc3232; }
        .file-list-icon.doc { background: rgba(74, 123, 212, 0.08); color: #4A7BD4; }
        .file-list-icon.other { background: var(--subtle-bg-strong); color: var(--muted); }

        /* ========== Questionnaire Wizard ========== */
        .wizard-steps {
            display: flex; align-items: center; gap: 0;
            margin-bottom: 28px;
            padding: 0 8px;
        }
        .wizard-step {
            display: flex; align-items: center; gap: 8px;
            font-size: 12px; font-weight: 500;
            color: var(--faint);
            white-space: nowrap;
            letter-spacing: -0.01em;
        }
        .wizard-step.active { color: var(--accent); font-weight: 600; }
        .wizard-step.done { color: var(--success); }
        .wizard-step-num {
            width: 28px; height: 28px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 12px; font-weight: 600;
            background: var(--hover-bg-strong); flex-shrink: 0;
        }
        .wizard-step.active .wizard-step-num { background: var(--accent); color: #fff; }
        .wizard-step.done .wizard-step-num { background: var(--success); color: #fff; }
        .wizard-step-line {
            width: 32px; height: 2px;
            border-radius: 2px;
            background: var(--hover-bg-strong);
            margin: 0 8px; flex-shrink: 0;
        }
        .wizard-step.done + .wizard-step-line { background: var(--success); }
        .question-group {
            background: var(--bg-alt);
            border: none;
            border-radius: var(--radius-lg);
            padding: 24px;
            margin-bottom: 16px;
        }
        .question-group h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; letter-spacing: -0.01em; }
        .radio-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 8px;
        }
        .radio-option {
            display: flex; align-items: center; gap: 8px;
            padding: 12px 16px;
            border: 1px solid var(--line);
            border-radius: var(--radius-md);
            cursor: pointer;
            font-size: 14px; font-weight: 400;
            letter-spacing: -0.016em;
            transition: all var(--transition-fast) var(--ease-out);
            background: var(--surface);
        }
        .radio-option:hover { border-color: var(--accent); background: var(--accent-glow); }
        .radio-option.selected {
            border-color: var(--accent);
            background: var(--accent-soft);
            color: var(--accent);
            font-weight: 500;
            box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08);
        }
        .radio-option i { font-size: 15px; width: 18px; text-align: center; }

        /* ========== Case match card ========== */
        .case-match-card {
            background: var(--surface);
            border: none;
            border-radius: var(--radius-lg);
            padding: 20px;
            box-shadow: var(--shadow-card);
            transition: all var(--transition-normal) var(--ease-out);
            cursor: pointer;
        }
        .case-match-card:hover {
            box-shadow: var(--shadow-raised);
            transform: translateY(-2px);
        }
        .case-match-preview {
            width: 100%; height: 140px;
            border-radius: var(--radius-md);
            background: var(--hover-bg);
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 14px;
            font-size: 36px;
            color: var(--faint);
            overflow: hidden;
        }
        .case-match-score {
            position: absolute; top: 12px; right: 12px;
        }
        .similarity-bar {
            height: 4px; border-radius: 999px;
            background: var(--tag-bg);
            overflow: hidden;
            margin-top: 8px;
        }
        .similarity-fill {
            height: 100%; border-radius: 999px;
            background: var(--success);
            transition: width 0.6s var(--ease-out);
        }

        /* ========== Signature pad ========== */
        .sig-pad-wrap {
            border: 1px solid var(--line-soft);
            border-radius: var(--radius-lg);
            overflow: hidden;
            background: var(--surface);
        }
        .sig-pad-canvas {
            width: 100%; height: 180px;
            display: block;
            cursor: crosshair;
        }
        .sig-pad-actions {
            display: flex; gap: 8px;
            padding: 10px 14px;
            border-top: 1px solid var(--line-soft);
        }
        .sig-preview {
            border: 1px solid var(--line-soft);
            border-radius: var(--radius-md);
            padding: 8px;
            display: inline-block;
            background: var(--surface);
        }
        .sig-preview img { height: 44px; display: block; }

        /* ========== Archive / 项目档案 ========== */
        .archive-section {
            border: none;
            border-radius: var(--radius-lg);
            overflow: hidden;
            background: var(--surface);
            box-shadow: var(--shadow-card);
        }
        .archive-section-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--line-soft);
            display: flex; align-items: center; justify-content: space-between;
            background: var(--bg-alt);
        }
        .archive-section-body { padding: 20px; }
        .archive-doc-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 12px;
        }
        .archive-doc-item {
            border: 1px solid var(--line-soft);
            border-radius: var(--radius-md);
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all var(--transition-fast) var(--ease-out);
            background: var(--surface);
        }
        .archive-doc-item:hover {
            border-color: var(--accent);
            box-shadow: var(--shadow-sm);
            transform: translateY(-1px);
        }
        .archive-doc-item i { font-size: 32px; margin-bottom: 8px; display: block; color: var(--accent); }
        .archive-doc-item p { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
        .archive-doc-item span { font-size: 12px; color: var(--muted); letter-spacing: -0.01em; }

        /* ========== After-sales timeline ========== */
        .timeline {
            position: relative;
            padding-left: 24px;
        }
        .timeline::before {
            content: '';
            position: absolute; left: 9px; top: 4px; bottom: 4px;
            width: 2px;
            background: var(--line);
        }
        .timeline-item {
            position: relative;
            padding-bottom: 20px;
        }
        .timeline-item:last-child { padding-bottom: 0; }
        .timeline-dot {
            position: absolute; left: -19px; top: 4px;
            width: 10px; height: 10px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 0 4px var(--accent-soft);
        }
        .timeline-dot.muted { background: var(--faint); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04); }

        /* ========== Warranty countdown ========== */
        .warranty-badge {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 5px 12px;
            border-radius: var(--radius-pill);
            font-size: 12px; font-weight: 500;
            letter-spacing: -0.01em;
        }
        .warranty-badge.active { background: var(--success-soft); color: var(--success); }
        .warranty-badge.expiring { background: var(--warning-soft); color: var(--warning); }
        .warranty-badge.expired { background: rgba(220, 50, 50, 0.08); color: #dc3232; }

        /* ========== Follow-up reminder ========== */
        .reminder-card {
            border-left: 3px solid var(--accent);
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            padding: 14px 18px;
            background: var(--accent-glow);
            display: flex; align-items: center; gap: 14px;
        }
        .reminder-card.overdue {
            border-left-color: #dc3232;
            background: rgba(220, 50, 50, 0.04);
        }
        .reminder-dot {
            width: 10px; height: 10px;
            border-radius: 50%;
            animation: pulse-dot 2s infinite;
        }
        .reminder-dot.accent { background: var(--accent); }
        .reminder-dot.red { background: #dc3232; }

        /* ========== Wide modal ========== */
        .modal-content-wide {
            max-width: 720px;
            width: 100%;
        }

        /* ========== Price preview table ========== */
        .price-preview-table {
            max-height: 400px;
            overflow-y: auto;
            border: 1px solid var(--line-soft);
            border-radius: var(--radius-md);
        }
        .price-preview-table table th {
            position: sticky; top: 0;
            background: var(--subtle-bg);
            z-index: 1;
        }

        /* ========== Analytics Dashboard ========== */
        .analytics-bar-chart {
            display: flex; align-items: flex-end;
            gap: 4px; height: 200px;
            padding: 0 4px;
        }
        .analytics-bar {
            flex: 1; min-width: 18px;
            border-radius: 4px 4px 0 0;
            transition: height 0.5s var(--ease-out);
            position: relative; cursor: pointer;
        }
        .analytics-bar:hover { opacity: 0.8; }
        .analytics-bar-label {
            position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
            font-size: 10px; color: var(--muted); white-space: nowrap;
        }
        .analytics-bar-value {
            position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
            font-size: 10px; font-weight: 600; color: var(--ink); white-space: nowrap;
        }
        .analytics-metric-grid {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
        }
        .analytics-metric {
            background: var(--surface); border-radius: var(--radius-lg);
            padding: 20px; box-shadow: var(--shadow-card);
            transition: transform var(--transition-fast), box-shadow var(--transition-fast);
        }
        .analytics-metric:hover { transform: translateY(-1px); box-shadow: var(--shadow-raised); }
        .analytics-funnel {
            display: flex; align-items: center; gap: 8px;
            flex-wrap: wrap; padding: 8px 0;
        }
        .funnel-step {
            background: var(--accent-soft); border-radius: var(--radius-md);
            padding: 14px 20px; text-align: center;
            flex: 1; min-width: 80px; position: relative;
        }
        .funnel-step::after {
            content: '→'; position: absolute;
            right: -14px; top: 50%; transform: translateY(-50%);
            color: var(--muted); font-size: 16px; font-weight: 600;
        }
        .funnel-step:last-child::after { display: none; }
        .analytics-table-wrap { max-height: 400px; overflow-y: auto; }

        /* ============ 反馈悬浮按钮 ============ */
        .feedback-fab {
            position: fixed; bottom: 28px; right: 28px; z-index: 9000;
            width: 52px; height: 52px; border-radius: 50%;
            background: var(--accent); color: #fff; border: none; cursor: pointer;
            box-shadow: 0 4px 16px rgba(0,113,227,0.35), 0 2px 6px rgba(0,0,0,0.1);
            display: flex; align-items: center; justify-content: center;
            font-size: 20px; transition: transform 0.2s cubic-bezier(0.25,0.1,0.25,1), box-shadow 0.2s;
        }
        .feedback-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,113,227,0.45); }
        .feedback-fab:active { transform: scale(0.95); }
        .feedback-fab-badge {
            position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px;
            border-radius: 9px; background: #ff3b30; color: #fff; font-size: 10px;
            display: flex; align-items: center; justify-content: center; font-weight: 700;
            border: 2px solid var(--bg);
        }

        /* ============ 反馈管理页 ============ */
        .feedback-card {
            background: var(--surface); border-radius: var(--radius-lg); padding: 20px 24px;
            border: 1px solid var(--line-soft); transition: border-color 0.2s; margin-bottom: 12px;
        }
        .feedback-card:hover { border-color: var(--line); }
        .feedback-type-badge {
            display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
            border-radius: var(--radius-pill); font-size: 11px; font-weight: 600;
        }
        .feedback-type-badge.feature { background: var(--accent-soft); color: var(--accent); }
        .feedback-type-badge.bug { background: var(--error-soft); color: var(--error); }
        .feedback-type-badge.improvement { background: var(--success-soft); color: var(--success); }
        .feedback-type-badge.other { background: rgba(0,0,0,0.06); color: var(--muted); }
        .feedback-priority-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
        .feedback-priority-dot.urgent { background: #ff3b30; }
        .feedback-priority-dot.high { background: #ff9500; }
        .feedback-priority-dot.medium { background: #ffd60a; }
        .feedback-priority-dot.low { background: #86868b; }
        .feedback-status-badge {
            display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill);
            font-size: 11px; font-weight: 600;
        }
        .feedback-status-badge.open { background: var(--accent-soft); color: var(--accent); }
        .feedback-status-badge.in_progress { background: var(--warning-soft); color: var(--warning); }
        .feedback-status-badge.resolved { background: var(--success-soft); color: var(--success); }
        .feedback-status-badge.closed { background: rgba(0,0,0,0.06); color: var(--muted); }

        /* ============ 配置向导 ============ */
        .setup-wizard {
            min-height: 100vh; display: flex; align-items: center; justify-content: center;
            background: var(--bg-alt); padding: 24px;
        }
        .setup-card {
            background: var(--surface); border-radius: var(--radius-xl); padding: 40px;
            max-width: 560px; width: 100%; box-shadow: var(--shadow-raised);
        }
        .setup-step-indicator {
            display: flex; align-items: center; gap: 8px; margin-bottom: 32px;
        }
        .setup-step-dot {
            width: 28px; height: 28px; border-radius: 50%; display: flex;
            align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
            background: rgba(0,0,0,0.08); color: var(--muted); transition: all 0.3s;
        }
        .setup-step-dot.active { background: var(--accent); color: #fff; }
        .setup-step-dot.done { background: var(--success); color: #fff; }
        .setup-step-line { flex: 1; height: 2px; background: rgba(0,0,0,0.08); border-radius: 1px; }
        .setup-step-line.done { background: var(--success); }

        /* ============ 加载动画 ============ */
        .app-loader {
            min-height: 100vh; display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: 20px;
            background: var(--bg-alt); position: relative; overflow: hidden;
        }
        .app-loader::before {
            content: '';
            position: absolute;
            width: 600px; height: 600px;
            background: radial-gradient(circle, rgba(0,113,227,0.04) 0%, transparent 70%);
            border-radius: 50%;
            animation: breatheGlow 3s ease-in-out infinite;
        }
        .app-loader-spinner {
            width: 48px; height: 48px; border: 3px solid rgba(0,113,227,0.1);
            border-top-color: var(--accent); border-right-color: rgba(0,113,227,0.3);
            border-radius: 50%; position: relative; z-index: 1;
            animation: spin 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
        }
        .app-loader-spinner::after {
            content: '';
            position: absolute; inset: -6px; border-radius: 50%;
            border: 2px solid transparent; border-top-color: rgba(0,113,227,0.15);
            animation: spin 1.2s linear infinite;
        }
        .app-loader-text {
            position: relative; z-index: 1;
            animation: fadeInUp 0.6s var(--ease-spring) 0.2s both;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ========== 高级动画系统 ========== */
        
        /* 卡片悬浮光效 */
        @keyframes floatGlow {
            0%, 100% { box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06); }
            50% { box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.09); }
        }
        /* 渐变背景流动 */
        @keyframes gradientFlow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        /* 弹性入场 */
        @keyframes bounceIn {
            0% { opacity: 0; transform: scale(0.3); }
            50% { opacity: 1; transform: scale(1.05); }
            70% { transform: scale(0.95); }
            100% { opacity: 1; transform: scale(1); }
        }
        /* 滑动擦入 */
        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-40px); }
            to { opacity: 1; transform: translateX(0); }
        }
        /* 数字跳动 */
        @keyframes countUp {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        /* 呼吸光晕 */
        @keyframes breatheGlow {
            0%, 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.25); }
            50% { box-shadow: 0 0 0 12px rgba(0, 113, 227, 0); }
        }
        /* 骨架屏加载 */
        @keyframes skeletonLoad {
            0% { background-position: -200px 0; }
            100% { background-position: calc(200px + 100%) 0; }
        }
        /* 浮动上下 */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }
        /* 卡片入场交错 */
        @keyframes cardSlideUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        /* 波纹扩散 */
        @keyframes ripple {
            0% { transform: scale(0); opacity: 0.6; }
            100% { transform: scale(4); opacity: 0; }
        }
        /* 描边发光 */
        @keyframes borderGlow {
            0%, 100% { border-color: rgba(0, 113, 227, 0.15); }
            50% { border-color: rgba(0, 113, 227, 0.4); }
        }
        /* 背景条纹移动 */
        @keyframes stripeMove {
            0% { background-position: 0 0; }
            100% { background-position: 40px 0; }
        }
        /* 旋转入场 */
        @keyframes rotateIn {
            from { opacity: 0; transform: rotate(-5deg) scale(0.95); }
            to { opacity: 1; transform: rotate(0) scale(1); }
        }
        /* 光点闪烁 */
        @keyframes sparkle {
            0%, 100% { opacity: 0; transform: scale(0); }
            50% { opacity: 1; transform: scale(1); }
        }

        /* 页面切换动画 */
        .page-enter-active {
            animation: fadeInScale 0.3s var(--ease-spring) both;
        }
        
        /* 卡片高级悬浮效果 */
        .card-elevate {
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .card-elevate:hover {
            transform: translateY(-4px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.1);
        }

        /* 交错卡片动画 */
        .stagger-cards > * {
            opacity: 0;
            animation: cardSlideUp 0.5s var(--ease-spring) forwards;
        }
        .stagger-cards > *:nth-child(1) { animation-delay: 0.05s; }
        .stagger-cards > *:nth-child(2) { animation-delay: 0.1s; }
        .stagger-cards > *:nth-child(3) { animation-delay: 0.15s; }
        .stagger-cards > *:nth-child(4) { animation-delay: 0.2s; }
        .stagger-cards > *:nth-child(5) { animation-delay: 0.25s; }
        .stagger-cards > *:nth-child(6) { animation-delay: 0.3s; }
        .stagger-cards > *:nth-child(7) { animation-delay: 0.35s; }
        .stagger-cards > *:nth-child(8) { animation-delay: 0.4s; }
        .stagger-cards > *:nth-child(9) { animation-delay: 0.45s; }
        .stagger-cards > *:nth-child(10) { animation-delay: 0.5s; }

        /* 骨架屏加载器 */
        .skeleton {
            background: linear-gradient(90deg, var(--bg-alt) 25%, #e8e8ed 50%, var(--bg-alt) 75%);
            background-size: 200px 100%;
            animation: skeletonLoad 1.5s ease-in-out infinite;
            border-radius: var(--radius-sm);
        }

        /* 玻璃态卡片 */
        .glass-card {
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.3);
            box-shadow: 0 8px 32px rgba(0,0,0,0.04);
        }

        /* 进度条动态条纹 */
        .progress-striped {
            background-image: linear-gradient(45deg, 
                rgba(255,255,255,0.15) 25%, 
                transparent 25%, transparent 50%, 
                rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, 
                transparent 75%, transparent);
            background-size: 20px 20px;
            animation: stripeMove 0.8s linear infinite;
        }

        /* 悬停上浮 */
        .hover-lift {
            transition: transform 0.35s var(--ease-expo), box-shadow 0.35s var(--ease-out);
        }
        .hover-lift:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-raised);
        }

        /* 悬停缩放 */
        .hover-scale {
            transition: transform 0.3s var(--ease-back);
        }
        .hover-scale:hover {
            transform: scale(1.04);
        }

        /* 背景微粒效果 */
        .bg-particles {
            position: relative;
            overflow: hidden;
        }
        .bg-particles::before {
            content: '';
            position: absolute;
            inset: -50%;
            width: 200%;
            height: 200%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(0,113,227,0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0,113,227,0.03) 0%, transparent 50%);
            animation: gradientFlow 8s ease infinite;
            pointer-events: none;
        }

        /* ========== Landing V3 — Design Engineer 原则落地 ========== */
        .lp-nav {
            position: fixed; top: 0; left: 0; right: 0; z-index: 50;
            display: flex; align-items: center; justify-content: space-between;
            padding: 0 32px; height: 56px;
            background: rgba(255,255,255,0.72);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid rgba(0,0,0,0.06);
        }
        html.theme-dark .lp-nav { background: rgba(28,28,30,0.72); border-bottom-color: rgba(255,255,255,0.08); }
        .lp-nav-links { display: flex; align-items: center; gap: 24px; }
        .lp-nav-links a { font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color 150ms var(--ease-out); }
        @media (hover:hover) and (pointer:fine) { .lp-nav-links a:hover { color: var(--ink); } }

        /* ========== Landing V4 — CogSpace-inspired（轻量网格 + 橙色 kicker + 清晰排版） ========== */
        .lp4 {
            --kicker-color: #d97706;
            --line-color: rgba(15, 23, 42, 0.07);
            background-color: #faf9f6;
            color: var(--ink);
            position: relative;
            min-height: 100vh;
            font-family: var(--font);
        }
        html.theme-dark .lp4 {
            --line-color: rgba(255, 255, 255, 0.08);
            background-color: var(--bg);
            color: var(--ink);
        }
        .lp4 a { text-decoration: none; }
        .lp4-grid {
            position: absolute; inset: 0; pointer-events: none;
            background-image:
                linear-gradient(to right, var(--line-color) 1px, transparent 1px),
                linear-gradient(to bottom, var(--line-color) 1px, transparent 1px);
            background-size: 64px 64px;
            mask-image: radial-gradient(ellipse 1200px 800px at 30% 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 90%);
            -webkit-mask-image: radial-gradient(ellipse 1200px 800px at 30% 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 90%);
        }
        .lp4-kicker {
            display: inline-block;
            font-size: 11px; font-weight: 600;
            letter-spacing: 0.18em;
            color: var(--kicker-color);
            text-transform: uppercase;
            margin-bottom: 22px;
        }
        .lp4-display {
            font-size: clamp(2.6rem, 5.6vw, 5rem);
            font-weight: 700;
            letter-spacing: -0.025em;
            line-height: 1.05;
            margin: 0;
            color: inherit;
            word-break: keep-all;
            overflow-wrap: break-word;
            hyphens: none;
        }
        .lp4-sub {
            font-size: 16px;
            color: var(--ink-soft);
            line-height: 1.7;
            margin: 0;
            max-width: 560px;
        }
        .lp4-anno {
            font-size: 13px;
            color: var(--ink-soft);
            line-height: 1.6;
            padding-left: 16px;
            border-left: 2px solid var(--kicker-color);
            max-width: 240px;
        }
        .lp4-anno .anno-kicker { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
        .lp4-section {
            padding: 96px 64px;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }
        .lp4-section.tight { padding: 64px 64px; }
        .lp4-hero { padding-top: 160px; padding-bottom: 64px; }
        .lp4-hero-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 48px;
            align-items: start;
        }
        .lp4-hero-left { display: flex; flex-direction: column; min-width: 0; }
        .lp4-hero-left .lp4-display { max-width: 900px; }
        .lp4-hero-cta {
            display: inline-flex; align-items: center; gap: 8px;
            margin-top: 28px;
            padding: 12px 22px;
            border-radius: 999px;
            background: var(--ink);
            color: var(--surface);
            font-size: 14px; font-weight: 600;
            text-decoration: none;
            transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
            box-shadow: 0 6px 20px rgba(15,23,42,0.18);
            width: max-content;
        }
        @media (hover:hover) and (pointer:fine) {
            .lp4-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(15,23,42,0.24); }
            .lp4-hero-cta:active { transform: scale(0.97); }
        }
        .lp4-hero-anno { padding-top: 60px; justify-self: end; }
        .lp4-row {
            display: grid;
            grid-template-columns: 220px 1fr;
            gap: 32px;
            padding: 28px 0;
            border-top: 1px solid var(--line-color);
            align-items: start;
        }
        .lp4-row:last-child { border-bottom: 1px solid var(--line-color); }
        .lp4-row-label {
            font-size: 14px;
            font-weight: 600;
            color: var(--ink);
            padding-top: 2px;
        }
        .lp4-row-desc {
            font-size: 14px;
            color: var(--ink-soft);
            line-height: 1.75;
            max-width: 760px;
        }
        .lp4-grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
        }
        .lp4-card {
            padding: 28px;
            border-radius: 14px;
            background: rgba(255,255,255,0.7);
            border: 1px solid var(--line-color);
            transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
        }
        html.theme-dark .lp4-card {
            background: var(--surface);
            border-color: var(--line);
        }
        @media (hover:hover) and (pointer:fine) {
            .lp4-card:hover { border-color: var(--kicker-color); transform: translateY(-2px); }
        }
        .lp4-card-title {
            font-size: 15px;
            font-weight: 600;
            margin: 0 0 10px;
            display: flex; align-items: center; gap: 10px;
        }
        .lp4-card-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kicker-color); flex-shrink: 0; }
        .lp4-card-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin: 0; }
        .lp4-lang {
            font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
            min-height: 28px; padding: 0 12px; border-radius: 999px;
            border: 1px solid var(--line); background: var(--surface);
            color: var(--ink); cursor: pointer; transition: all 150ms var(--ease-out);
        }
        .lp4-lang:hover { border-color: var(--kicker-color); color: var(--kicker-color); }
        /* 装饰元素 */
        .lp4-deco { position: absolute; pointer-events: none; opacity: 0.7; }
        .lp4-deco-square { width: 18px; height: 18px; background: var(--kicker-color); transform: rotate(15deg); border-radius: 3px; }
        .lp4-deco-square.alt { background: #3b82f6; transform: rotate(-8deg); }
        .lp4-deco-line { position: absolute; height: 1px; background: var(--kicker-color); opacity: 0.4; }
        /* 登录/注册页 — 与平台视觉统一 */
        .auth4 {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background: #faf9f6;
            color: var(--ink);
            position: relative;
            overflow: hidden;
        }
        html.theme-dark .auth4 { background: var(--bg); }
        html.theme-dark .auth4::before {
            background-image:
                linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
        }
        .auth4::before {
            content: '';
            position: absolute; inset: 0; pointer-events: none;
            background-image:
                linear-gradient(to right, rgba(15,23,42,0.05) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(15,23,42,0.05) 1px, transparent 1px);
            background-size: 64px 64px;
            mask-image: radial-gradient(ellipse 900px 700px at 50% 30%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0) 90%);
            -webkit-mask-image: radial-gradient(ellipse 900px 700px at 50% 30%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0) 90%);
            z-index: 0;
        }
        .auth4-deco {
            position: absolute; pointer-events: none; opacity: 0.7; z-index: 0;
        }
        .auth4-deco-square {
            width: 16px; height: 16px; background: #d97706;
            transform: rotate(15deg); border-radius: 3px;
        }
        .auth4-deco-square.alt { background: #3b82f6; transform: rotate(-8deg); }
        .auth4 > * { position: relative; z-index: 1; }
        .auth4-header {
            padding: 12px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--surface);
            border-bottom: 1px solid var(--line);
            /* 修复：fixed 顶部紧贴视窗 0px，避开任何父容器 / 装饰元素导致的偏移 */
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 100;
            margin: 0;
        }
        /* header 固定后，main 区域需要让出 header 高度（避免内容被 fixed header 遮挡） */
        .auth4-main { padding-top: 72px !important; padding-bottom: 40px; padding-left: 24px; padding-right: 24px; }
        .auth4-header .logo { display: flex; align-items: center; gap: 10px; font-weight: 680; font-size: 15px; color: var(--ink); text-decoration: none; }
        .auth4-header .logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--inverse); color: var(--inverse-text); display: flex; align-items: center; justify-content: center; font-size: 14px; }
        .auth4-header .link { font-size: 14px; color: var(--muted); text-decoration: none; font-weight: 500; }
        .auth4-header .link:hover { color: var(--ink); }
        .auth4-main {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            /* padding-top 72px 由上方覆写：fixed header 让位 */
        }
        .auth4-card {
            width: 100%;
            max-width: 400px;
            padding: 32px;
            box-sizing: border-box;
        }
        .auth4-card .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
        .auth4-card .logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--inverse); color: var(--inverse-text); display: flex; align-items: center; justify-content: center; font-size: 14px; }
        .auth4-card .logo-text { font-weight: 680; font-size: 15px; color: var(--ink); }
        .auth4-card .welcome { font-size: 11px; color: var(--kicker-color); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
        .auth4-card .heading { font-size: 26px; font-weight: 700; margin: 0 0 24px; letter-spacing: -0.02em; color: var(--ink); }
        .auth4-card .note { font-size: 12px; color: var(--muted); margin-top: 20px; line-height: 1.6; }
        .auth4-card .note a { color: var(--ink); text-decoration: none; font-weight: 500; }
        .auth4-card .footer-link { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
        .auth4-card .footer-link a { color: var(--ink); font-weight: 600; text-decoration: none; }
        .auth4-card .forgot-link { font-size: 12px; color: var(--muted); text-decoration: none; float: right; }
        .auth4-card .forgot-link:hover { color: var(--ink); }
        .lp4-footer {
            padding: 48px 64px;
            border-top: 1px solid var(--line-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12px; color: var(--ink-soft);
            max-width: 1280px;
            margin: 0 auto;
        }
        @media (max-width: 768px) {
            .lp4-section { padding: 64px 24px; }
            .lp4-hero-grid { grid-template-columns: 1fr; gap: 24px; }
            .lp4-hero-anno { padding-top: 16px; justify-self: start; }
            .lp4-row { grid-template-columns: 1fr; gap: 12px; }
            .lp4-grid-2 { grid-template-columns: 1fr; }
            .auth4-header { padding: 12px 16px; }
            .auth4-card { padding: 24px; }
        }
        /* 兼容旧版样式（保留以防其他引用） */

        .lp-hero { padding: 150px 24px 72px; text-align: center; position: relative; overflow: hidden; background: radial-gradient(1100px 560px at 50% -8%, rgba(0,113,227,0.09), transparent 62%), var(--bg); }
        .lp-title { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); margin: 0; }
        .lp-sub { font-size: 17px; color: var(--muted); max-width: 540px; margin: 20px auto 0; line-height: 1.6; }
        .lp-cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 36px; }
        .lp-mock { width: 100%; max-width: 840px; margin: 56px auto 0; border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,0.14); overflow: hidden; transform-origin: center; }
        .lp-mock-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #1d1d1f; }
        .lp-mock-dot { width: 10px; height: 10px; border-radius: 50%; }
        .lp-mock-body { background: var(--surface); padding: 20px 24px; }
        .lp-mock-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
        .lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 920px; margin: 0 auto; }
        .lp-stat { text-align: center; padding: 12px; }
        .lp-stat-num { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
        .lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto; }
        .lp-feature { padding: 26px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); transition: transform 200ms var(--ease-expo), box-shadow 200ms var(--ease-out); will-change: transform; }
        @media (hover:hover) and (pointer:fine) {
            .lp-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); }
            .lp-feature:hover .lp-feature-icon { transform: scale(1.06); }
        }
        .lp-feature-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content:center; font-size: 19px; margin-bottom: 14px; transition: transform 200ms var(--ease-expo); }
        .lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto; }
        .lp-cta { max-width: 1040px; margin: 0 auto; border-radius: 20px; background: var(--inverse); color: var(--inverse-text); text-align: center; padding: 64px 24px; position: relative; overflow: hidden; }
        .lp-cta::before { content: ''; position: absolute; inset: -60%; background: radial-gradient(500px 260px at 30% 20%, rgba(0,113,227,0.35), transparent 60%); pointer-events: none; }
        .lp-footer { text-align: center; padding: 40px 24px 56px; color: var(--faint); font-size: 12px; }
        .lp-enter { opacity: 0; transform: translateY(12px) scale(0.985); animation: lpEnter 0.55s var(--ease-expo) forwards; }
        @keyframes lpEnter { to { opacity: 1; transform: translateY(0) scale(1); } }
        @media (max-width: 768px) {
            .lp-nav-links { display: none; }
            .lp-features { grid-template-columns: 1fr; }
            .lp-stats { grid-template-columns: repeat(2, 1fr); }
            .lp-split { grid-template-columns: 1fr; gap: 32px; }
        }
        @media (prefers-reduced-motion: reduce) {
            .lp-enter { animation: fadeIn 0.3s ease both; transform: none; }
            .lp-mock { animation: none; }
        }

        /* ========== Global Loader Overlay ========== */
        .global-loader-overlay {
            position: fixed; inset: 0; z-index: 9998;
            background: rgba(0,0,0,0.2); backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            display: flex; flex-direction: column; align-items: center; justify-content: center;
        }
        .global-loader-overlay.hidden { display: none; }

        /* ========== Skeleton Screen ========== */
        .skeleton-card, .skeleton-page .skeleton-card {
            background: var(--surface); border-radius: var(--radius-md);
            padding: 20px; box-shadow: var(--shadow-card);
        }
        .skeleton-line {
            height: 14px; border-radius: 6px; background: var(--subtle-bg-strong);
            margin-bottom: 10px; animation: skeletonPulse 1.5s ease-in-out infinite;
        }
        .skeleton-line:last-child { margin-bottom: 0; }
        .skeleton-line.w-60 { width: 60%; }
        .skeleton-line.w-40 { width: 40%; }
        .skeleton-line.w-80 { width: 80%; }
        .skeleton-table { overflow: hidden; }
        .skeleton-row { display: flex; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
        .skeleton-cell { flex: 1; height: 14px; border-radius: 6px; background: var(--subtle-bg-strong); animation: skeletonPulse 1.5s ease-in-out infinite; }
        @keyframes skeletonPulse {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 0.8; }
        }

        /* ========== Offline Banner ========== */
        #offline-banner {
            position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
            background: var(--warning); color: #fff; text-align: center;
            padding: 8px; font-size: 13px; font-weight: 500;
            display: flex; align-items: center; justify-content: center; gap: 6px;
        }
        #offline-banner i { font-size: 14px; }

        /* ========== Notification Badge & Panel ========== */
        .ntf-badge {
            position: absolute; top: 2px; right: 2px;
            min-width: 16px; height: 16px;
            border-radius: 8px;
            background: var(--error);
            color: #fff;
            font-size: 10px; font-weight: 600;
            display: flex; align-items: center; justify-content: center;
            line-height: 1;
            padding: 0 4px;
        }
        .ntf-badge.hidden { display: none; }
        .ntf-panel {
            position: fixed; right: 0; top: 0; bottom: 0;
            width: 380px; max-width: 100vw;
            background: var(--surface);
            box-shadow: -8px 0 30px rgba(0,0,0,0.12);
            z-index: 50;
            display: flex; flex-direction: column;
            transform: translateX(100%);
            transition: transform 0.3s var(--ease-expo);
        }
        .ntf-panel.open { transform: translateX(0); }
        .ntf-panel-header {
            padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
            display: flex; align-items: center; justify-content: space-between;
        }
        .ntf-panel-body { flex: 1; overflow-y: auto; padding: 8px 0; }
        .ntf-item {
            padding: 12px 20px; border-bottom: 1px solid var(--line-soft);
            cursor: pointer; transition: background 0.15s;
        }
        .ntf-item:hover { background: var(--hover-bg); }
        .ntf-item.unread { background: var(--accent-soft); }
        .ntf-item-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
        .ntf-item-content { font-size: 13px; color: var(--muted); line-height: 1.4; }
        .ntf-item-time { font-size: 11px; color: var(--faint); margin-top: 6px; }
        .ntf-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
        .ntf-overlay {
            position: fixed; inset: 0; z-index: 45;
            background: rgba(0,0,0,0.2);
        }

        /* ========== Mobile Responsive (continued) ========== */
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                box-shadow: var(--shadow-raised);
                transition: transform var(--transition-normal) var(--ease-out);
            }
            .sidebar.open { transform: translateX(0); }
            .main-content { margin-left: 0; width: 100%; }
            .topbar { padding: 0 12px; }
            .page-content { padding: 16px; }
            .grid-cols-3, .grid-cols-4, .grid-cols-5 { grid-template-columns: 1fr; }
            .grid-cols-2 { grid-template-columns: 1fr; }
            .card { padding: 16px; }
            /* 移动端菜单按钮 */
            .mobile-menu-btn {
                display: flex; align-items: center; justify-content: center;
                width: 36px; height: 36px; border-radius: 8px;
                border: none; background: transparent; cursor: pointer;
                font-size: 18px; color: var(--ink);
            }
        }
        @media (min-width: 769px) {
            .mobile-menu-btn { display: none; }
            .mobile-overlay { display: none !important; }
        }
        .mobile-overlay {
            position: fixed; inset: 0; z-index: 15;
            background: rgba(0,0,0,0.3); backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
        }

        /* ============ PREMIUM UI UPGRADE — 高级风格 ============ */

        /* === Premium Sidebar === */
        .sidebar {
            background: var(--sidebar-bg);
            backdrop-filter: blur(30px) saturate(2);
            -webkit-backdrop-filter: blur(30px) saturate(2);
            border-right: 1px solid var(--line-soft);
        }
        .sidebar::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; height: 200px;
            background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
            pointer-events: none;
            opacity: 0.6;
        }
        .sidebar-logo {
            position: relative;
            overflow: hidden;
        }
        .sidebar-logo::after {
            content: '';
            position: absolute;
            bottom: 0; left: 20px; right: 20px;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--line), transparent);
        }
        .sidebar-logo-mark {
            background: linear-gradient(135deg, var(--accent) 0%, #5856d6 100%);
            box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
            transition: transform 0.3s var(--ease-spring);
        }
        .sidebar-logo:hover .sidebar-logo-mark {
            transform: scale(1.08) rotate(-3deg);
        }
        .sidebar-item {
            position: relative;
            overflow: hidden;
            transition: all 0.25s var(--ease-expo);
        }
        .sidebar-item::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 100%);
            opacity: 0;
            transition: opacity 0.25s var(--ease-out);
            pointer-events: none;
        }
        .sidebar-item:hover::after { opacity: 0.5; }
        .sidebar-item:hover {
            transform: translateX(3px);
        }
        .sidebar-item.active {
            background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 100%);
        }
        .sidebar-item.active::before {
            background: linear-gradient(180deg, var(--accent) 0%, #5856d6 100%);
            box-shadow: 0 0 8px var(--accent);
            animation: navIndicatorGlow 0.4s var(--ease-spring) both;
        }
        @keyframes navIndicatorGlow {
            0% { transform: scaleY(0); opacity: 0; }
            60% { transform: scaleY(1.2); opacity: 1; }
            100% { transform: scaleY(1); opacity: 1; }
        }
        .sidebar-item i {
            transition: transform 0.25s var(--ease-spring);
        }
        .sidebar-item:hover i {
            transform: scale(1.15);
        }
        .sidebar-item.active i {
            color: var(--accent);
        }

        /* === Premium Topbar === */
        .topbar {
            background: var(--sidebar-bg);
            backdrop-filter: blur(30px) saturate(2);
            -webkit-backdrop-filter: blur(30px) saturate(2);
            border-bottom: 1px solid var(--line-soft);
            transition: box-shadow 0.3s var(--ease-out);
        }
        .topbar.scrolled {
            box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
        }

        /* === Premium Stat Cards === */
        .stat-card {
            position: relative;
            overflow: hidden;
            transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out);
        }
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; height: 3px;
            background: linear-gradient(90deg, var(--accent) 0%, #5856d6 100%);
            opacity: 0;
            transition: opacity 0.3s var(--ease-out);
        }
        .stat-card:hover {
            transform: translateY(-4px) scale(1.01);
            box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 20px 50px rgba(0,0,0,0.10);
        }
        .stat-card:hover::before { opacity: 1; }
        .stat-card::after {
            content: '';
            position: absolute;
            bottom: -50%; right: -30%;
            width: 120px; height: 120px;
            background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .stat-card:hover::after { opacity: 1; }

        /* === Premium Card === */
        .card {
            transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out);
        }
        .card-elevate {
            position: relative;
            overflow: hidden;
        }
        .card-elevate:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 16px 48px rgba(0,0,0,0.08);
        }

        /* === Premium Buttons === */
        .btn-primary {
            background: linear-gradient(135deg, var(--accent) 0%, #5856d6 100%);
            box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
            transition: all 0.25s var(--ease-spring);
            position: relative;
            overflow: hidden;
        }
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s var(--ease-out);
        }
        .btn-primary:hover {
            box-shadow: 0 4px 16px rgba(0, 113, 227, 0.35);
            transform: translateY(-1px);
        }
        .btn-primary:hover::before { left: 100%; }
        .btn-primary:active { transform: translateY(0); }

        /* === Page Transitions === */
        .page-enter-active {
            animation: pageEnterPremium 0.5s var(--ease-expo) both;
        }
        @keyframes pageEnterPremium {
            0% { opacity: 0; transform: translateY(12px) scale(0.99); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* === Stagger Card Animation === */
        .stagger-cards > * {
            animation: staggerIn 0.5s var(--ease-spring) both;
        }
        .stagger-cards > *:nth-child(1) { animation-delay: 0.05s; }
        .stagger-cards > *:nth-child(2) { animation-delay: 0.1s; }
        .stagger-cards > *:nth-child(3) { animation-delay: 0.15s; }
        .stagger-cards > *:nth-child(4) { animation-delay: 0.2s; }
        .stagger-cards > *:nth-child(5) { animation-delay: 0.25s; }
        .stagger-cards > *:nth-child(6) { animation-delay: 0.3s; }
        @keyframes staggerIn {
            0% { opacity: 0; transform: translateY(20px) scale(0.96); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* === Shimmer Loading === */
        .shimmer {
            background: linear-gradient(
                90deg,
                var(--subtle-bg) 0%,
                var(--subtle-bg-strong) 50%,
                var(--subtle-bg) 100%
            );
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite linear;
            border-radius: var(--radius-md);
        }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* === Premium Table === */
        table {
            border-collapse: separate;
            border-spacing: 0;
        }
        thead th {
            background: var(--subtle-bg);
            font-weight: 600;
            font-size: 13px;
            color: var(--ink-soft);
            letter-spacing: 0.02em;
            text-transform: uppercase;
            position: sticky;
            top: 0;
            z-index: 1;
            transition: background 0.2s;
        }
        thead th:hover {
            background: var(--hover-bg);
        }
        tbody tr {
            transition: all 0.2s var(--ease-out);
        }
        tbody tr:hover {
            background: var(--subtle-bg);
            transform: scale(1.001);
        }

        /* === Premium Welcome Card === */
        .bg-particles {
            position: relative;
            overflow: hidden;
        }
        .bg-particles::before {
            content: '';
            position: absolute;
            top: -50%; right: -20%;
            width: 300px; height: 300px;
            background: radial-gradient(circle, rgba(0,113,227,0.15) 0%, transparent 70%);
            animation: floatGlow 8s ease-in-out infinite;
        }
        .bg-particles::after {
            content: '';
            position: absolute;
            bottom: -30%; left: -10%;
            width: 200px; height: 200px;
            background: radial-gradient(circle, rgba(88,86,214,0.12) 0%, transparent 70%);
            animation: floatGlow 6s ease-in-out infinite reverse;
        }
        @keyframes floatGlow {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(20px, -20px) scale(1.1); }
        }

        /* === Command Palette === */
        .cmd-palette {
            position: fixed;
            top: 15%; left: 50%;
            transform: translateX(-50%);
            width: 560px; max-width: 90vw;
            background: var(--surface);
            border-radius: var(--radius-xl);
            box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 1px var(--line-soft);
            z-index: 100;
            overflow: hidden;
            animation: cmdSlideIn 0.25s var(--ease-spring) both;
        }
        @keyframes cmdSlideIn {
            0% { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.97); }
            100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
        }
        .cmd-overlay {
            position: fixed; inset: 0; z-index: 99;
            background: rgba(0,0,0,0.25);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            animation: fadeIn 0.2s ease both;
        }
        .cmd-input {
            width: 100%;
            padding: 16px 20px;
            border: none;
            background: transparent;
            font-size: 16px;
            color: var(--ink);
            outline: none;
            border-bottom: 1px solid var(--line-soft);
        }
        .cmd-results { max-height: 360px; overflow-y: auto; }
        .cmd-item {
            padding: 12px 20px;
            display: flex; align-items: center; gap: 12px;
            cursor: pointer;
            transition: background 0.15s;
        }
        .cmd-item:hover, .cmd-item.selected {
            background: var(--accent-soft);
        }
        .cmd-item-icon {
            width: 32px; height: 32px;
            border-radius: 8px;
            background: var(--subtle-bg);
            display: flex; align-items: center; justify-content: center;
            font-size: 14px; color: var(--accent);
        }
        .cmd-item-title { font-size: 14px; font-weight: 550; color: var(--ink); }
        .cmd-item-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
        .cmd-kbd {
            display: inline-flex; align-items: center; gap: 4px;
            font-size: 11px; color: var(--muted);
            padding: 2px 6px;
            border-radius: 4px;
            background: var(--subtle-bg);
            font-family: var(--font-mono);
        }

        /* === Table Sort/Filter === */
        .th-sortable {
            cursor: pointer;
            user-select: none;
        }
        .th-sortable:hover { color: var(--accent); }
        .th-sort-icon {
            font-size: 11px;
            margin-left: 4px;
            opacity: 0.4;
            transition: opacity 0.2s;
        }
        .th-sortable.sorted .th-sort-icon { opacity: 1; color: var(--accent); }
        .table-filter-bar {
            display: flex; align-items: center; gap: 8px;
            padding: 12px 0;
            flex-wrap: wrap;
        }
        .filter-chip {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 4px 12px;
            border-radius: var(--radius-pill);
            background: var(--subtle-bg);
            font-size: 13px;
            color: var(--ink-soft);
            cursor: pointer;
            transition: all 0.2s;
        }
        .filter-chip:hover { background: var(--hover-bg); }
        .filter-chip.active {
            background: var(--accent);
            color: #fff;
        }

        /* === Mini Chart Bars === */
        .mini-bars {
            display: flex; align-items: flex-end; gap: 2px;
            height: 24px;
        }
        .mini-bar {
            flex: 1;
            border-radius: 2px 2px 0 0;
            background: var(--accent);
            opacity: 0.3;
            transition: opacity 0.3s, height 0.3s var(--ease-spring);
        }
        .mini-bar:hover { opacity: 1; }

        /* === Glass Effect === */
        .glass {
            background: var(--sidebar-bg);
            backdrop-filter: blur(20px) saturate(1.8);
            -webkit-backdrop-filter: blur(20px) saturate(1.8);
        }

        /* === Gradient Text === */
        .gradient-text {
            background: linear-gradient(135deg, var(--accent) 0%, #5856d6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* === Floating Action Button Premium === */
        .feedback-fab {
            box-shadow: 0 4px 14px rgba(0,0,0,0.15);
            transition: all 0.3s var(--ease-spring);
        }
        .feedback-fab:hover {
            transform: scale(1.1) rotate(10deg);
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        }

        /* === Scrollbar Premium === */
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb {
            background: var(--faint);
            border-radius: 3px;
            transition: background 0.2s;
        }
        ::-webkit-scrollbar-thumb:hover { background: var(--muted); }

        /* === Badge Pulse === */
        .ntf-badge:not(.hidden) {
            animation: badgePulse 2s ease-in-out infinite;
        }
        @keyframes badgePulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0.4); }
            50% { box-shadow: 0 0 0 6px rgba(255,59,48,0); }
        }

        /* === Toast Premium === */
        .toast-container {
            border-radius: var(--radius-lg);
            box-shadow: 0 8px 32px rgba(0,0,0,0.12);
            backdrop-filter: blur(20px) saturate(1.8);
            -webkit-backdrop-filter: blur(20px) saturate(1.8);
            animation: toastSlideIn 0.35s var(--ease-spring) both;
        }
        @keyframes toastSlideIn {
            0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* ============================================================
           动效系统 v2 —— 组件级细节动画
           规格说明见 docs/ui-animation-spec.md；全部使用现有 CSS 变量
           ============================================================ */

        /* 1. 输入框聚焦光晕：聚焦瞬间外圈光环扩散后收拢成常驻光圈 */
        .form-input:focus {
            border-color: var(--accent);
            animation: input-focus-ring 0.5s var(--ease-out);
        }
        @keyframes input-focus-ring {
            0% { box-shadow: 0 0 0 0 var(--accent-soft); }
            60% { box-shadow: 0 0 0 6px var(--accent-soft); }
            100% { box-shadow: 0 0 0 3px var(--accent-glow); }
        }

        /* 2. 按钮加载态：文字后跟内联旋转圈，禁用点击 */
        .btn.is-loading { pointer-events: none; opacity: 0.82; }
        .btn.is-loading::after {
            content: '';
            width: 14px; height: 14px;
            margin-left: 8px;
            display: inline-block; vertical-align: -2px;
            border: 2px solid currentColor;
            border-top-color: transparent;
            border-radius: 50%;
            animation: btn-spin 0.7s linear infinite;
        }
        @keyframes btn-spin { to { transform: rotate(360deg); } }

        /* 3. Toast 生命周期进度条：随 2.5s 存活时间从左到右走完 */
        #toast { position: relative; overflow: hidden; }
        .toast-progress {
            position: absolute; left: 0; bottom: 0;
            width: 100%; height: 3px;
            background: var(--accent);
            transform-origin: left;
            border-radius: var(--radius-pill);
            opacity: 0.9;
        }
        .toast-progress-anim { animation: toast-progress 2.5s linear forwards; }
        @keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

        /* 4. 阶段进度条：当前节点呼吸光环（每 2s 扩散一圈） */
        .step-track .step-dot.current { position: relative; }
        .step-track .step-dot.current::after {
            content: '';
            position: absolute; inset: -3px;
            border-radius: 50%;
            border: 2px solid var(--accent);
            animation: step-pulse 2s var(--ease-out) infinite;
            pointer-events: none;
        }
        @keyframes step-pulse {
            0% { transform: scale(0.9); opacity: 0.9; }
            70%, 100% { transform: scale(1.7); opacity: 0; }
        }

        /* 5. 看板拖拽反馈：拖起卡片微倾斜+浮起阴影，目标泳道高亮 */
        .kanban-card { transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), opacity 0.18s var(--ease-out); }
        .kanban-card.kanban-dragging { transform: rotate(2.5deg) scale(1.04); box-shadow: var(--shadow-raised); opacity: 0.85; }
        .kanban-col.drop-target { background: var(--accent-soft) !important; outline: 2px dashed var(--accent); outline-offset: -2px; }

        /* 6. 登录失败震动：水平抖动 0.45s，提示出错但不打断 */
        .auth4-main.shake { animation: shake 0.45s var(--ease-out); }
        @keyframes shake {
            10%, 90% { transform: translateX(-2px); }
            20%, 80% { transform: translateX(4px); }
            30%, 50%, 70% { transform: translateX(-6px); }
            40%, 60% { transform: translateX(6px); }
        }

        /* 7. 登录成功过渡：卡片轻缩淡出后跳转，衔接顺畅 */
        .auth4-main.auth4-success {
            transform: scale(0.97);
            opacity: 0;
            transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
        }

        /* 8. 无障碍：系统开启"减少动态效果"时全部动画降级为瞬时 */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

