@import url('../../vendor/fonts/jakarta-mono.css');

        /* ==================== 液态玻璃设计系统（iOS 系全站基底）==================== */
        :root {
            --void: #0b1220;
            --paper: #f4f7fc;
            --paper-dot: rgba(99, 102, 241, 0.04);
            --ink: #0f172a;
            --ink-light: #64748b;
            --signal: #6366f1;
            --ice: #38bdf8;
            --accent: #3b82f6;
            --accent-2: #818cf8;
            --accent-hot: #f472b6;
            --marker-yellow: #fde68a;
            --marker-blue: #7dd3fc;
            --marker-pink: #fda4af;
            --marker-green: #86efac;
            --line: rgba(15, 23, 42, 0.08);
            --line-strong: rgba(15, 23, 42, 0.14);
            --nav-bg: rgba(255, 255, 255, 0.58);
            --nav-ink: #0f172a;
            --nav-muted: #64748b;
            --nav-bar-radius: 22px;
            --nav-rail-bg: rgba(248, 250, 252, 0.72);
            --nav-rail-border: rgba(15, 23, 42, 0.07);
            --nav-control-h: 40px;
            --glass-blur: 24px;
            --glass-saturate: 1.65;
            --surface-glass: rgba(255, 255, 255, 0.62);
            --surface-glass-strong: rgba(255, 255, 255, 0.82);
            --surface-glass-muted: rgba(248, 250, 252, 0.75);
            --surface-glass-inner: rgba(255, 255, 255, 0.92);
            --stroke-glass: rgba(255, 255, 255, 0.72);
            --stroke-glass-soft: rgba(255, 255, 255, 0.45);
            --stroke-outline: rgba(99, 102, 241, 0.12);
            --border-width: 1px;
            --shadow-sketch:
                0 4px 24px rgba(15, 23, 42, 0.06),
                0 1px 2px rgba(15, 23, 42, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.85);
            --shadow-sketch-hover:
                0 18px 48px rgba(99, 102, 241, 0.14),
                0 8px 16px rgba(14, 165, 233, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
            --shadow-pressed: 0 2px 12px rgba(15, 23, 42, 0.08);
            --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
            --ease-spring: cubic-bezier(0.34, 1.35, 0.64, 1);
            --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
            --dur-fast: 0.2s;
            --dur-med: 0.55s;
            --dur-slow: 0.85s;
            --radius-sm: 10px;
            --radius-md: 16px;
            --radius-lg: 22px;
            --sketch-radius-1: var(--radius-lg);
            --sketch-radius-2: var(--radius-md);
            --sketch-radius-3: var(--radius-md);
            /* 悬浮顶栏占用高度：单行约 12+56+8，双行文案时仍留足呼吸区 */
            --nav-stack-clearance: max(104px, calc(12px + 56px + 36px));
            /* 全站滚动条：与靛青玻璃系一致 */
            --scrollbar-size: 9px;
            --scrollbar-track: rgba(241, 245, 249, 0.75);
            --scrollbar-thumb: linear-gradient(180deg, rgba(165, 180, 252, 0.95) 0%, rgba(99, 102, 241, 0.78) 48%, rgba(79, 70, 229, 0.88) 100%);
            --scrollbar-thumb-ff: rgba(99, 102, 241, 0.5);
            --scrollbar-thumb-ff-hover: rgba(79, 70, 229, 0.68);
            --scrollbar-thumb-hover: linear-gradient(180deg, rgba(199, 210, 254, 0.98) 0%, rgba(129, 140, 248, 0.9) 45%, rgba(99, 102, 241, 0.95) 100%);
            --scrollbar-thumb-active: rgba(67, 56, 202, 0.85);
            --scrollbar-thumb-border: rgba(255, 255, 255, 0.88);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', 'Segoe UI', sans-serif;
            -webkit-font-smoothing: antialiased;
            scrollbar-width: thin;
            scrollbar-color: var(--scrollbar-thumb-ff) var(--scrollbar-track);
        }

        body {
            color: var(--ink);
            line-height: 1.65;
            overflow-x: hidden;
            min-height: 100vh;
            background-color: var(--paper);
            background-image:
                radial-gradient(ellipse 100% 80% at 8% -12%, rgba(99, 102, 241, 0.2), transparent 52%),
                radial-gradient(ellipse 90% 70% at 92% 8%, rgba(56, 189, 248, 0.18), transparent 50%),
                radial-gradient(ellipse 70% 55% at 48% 102%, rgba(167, 139, 250, 0.14), transparent 48%),
                radial-gradient(ellipse 50% 40% at 70% 60%, rgba(244, 114, 182, 0.06), transparent 45%),
                linear-gradient(165deg, #f8fafc 0%, #eef2ff 38%, #f0f9ff 72%, #f8fafc 100%);
            background-attachment: fixed;
        }

        html {
            /* 悬浮顶栏：上内边距 + 单行/双行胶囊高度预留 */
            scroll-padding-top: max(104px, calc(12px + 72px + 28px));
        }
        @media (prefers-reduced-motion: no-preference) {
            html {
                scroll-behavior: smooth;
            }
        }
        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }
        }

        /* WebKit / Chromium / Safari：细轨道 + 靛青渐变滑块（与全站玻璃系一致） */
        *::-webkit-scrollbar {
            width: var(--scrollbar-size);
            height: var(--scrollbar-size);
        }
        *::-webkit-scrollbar-corner {
            background: transparent;
        }
        *::-webkit-scrollbar-track {
            background: var(--scrollbar-track);
            border-radius: 999px;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
        }
        *::-webkit-scrollbar-thumb {
            border-radius: 999px;
            border: 2px solid var(--scrollbar-thumb-border);
            background: var(--scrollbar-thumb);
            background-clip: padding-box;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
        }
        *::-webkit-scrollbar-thumb:hover {
            background: var(--scrollbar-thumb-hover);
            background-clip: padding-box;
        }
        *::-webkit-scrollbar-thumb:active {
            background: var(--scrollbar-thumb-active);
            border-color: rgba(255, 255, 255, 0.75);
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }
        
        /* 加粗线条，让图标看起来像马克笔画的 */
        .lucide { stroke-width: 2px; stroke: currentColor; }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }
        /* 顶栏内层容器：随文案 intrinsic 变宽，由外层 max-width 卡视口 */
        #site-nav .container {
            width: auto;
            max-width: 100%;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* 滚动显现 */
        .fade-in {
            opacity: 0;
            transform: translateY(40px) scale(0.97);
            transition:
                opacity var(--dur-med) var(--ease-smooth),
                transform 0.65s var(--ease-spring);
        }
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        @media (prefers-reduced-motion: reduce) {
            .fade-in {
                transition-duration: 0.01ms;
                transform: none;
            }
            .fade-in.visible {
                transform: none;
            }
        }

        @media (prefers-reduced-motion: no-preference) {
            .section-header.fade-in:not(.visible) h2::after {
                transform: scaleX(0);
                transform-origin: center;
            }
            .section-header.fade-in.visible h2::after {
                animation: novaLineGrow 0.75s var(--ease-smooth) 0.12s forwards;
            }
            @keyframes novaLineGrow {
                from { transform: scaleX(0); opacity: 0.4; }
                to { transform: scaleX(1); opacity: 1; }
            }
        }

        /* ==================== 顶栏宿主：水平居中，宽度随语言 intrinsic ==================== */
        #site-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 12px max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
            box-sizing: border-box;
            pointer-events: none;
        }

        #site-nav > nav.site-nav-bar {
            pointer-events: auto;
            position: relative;
            /* 不得在主轴上被压扁，否则中部链接区变极窄会竖排 + 与语言按钮重叠 */
            flex: 0 0 auto;
            width: max-content;
            max-width: min(100%, calc(100vw - 24px));
            min-width: min-content;
            min-height: 56px;
            height: auto;
            padding: 8px 14px 8px 16px;
            box-sizing: border-box;
            background:
                linear-gradient(165deg, rgba(230, 235, 255, 0.10) 0%, rgba(240, 243, 255, 0.58) 28%, rgba(255, 255, 255, 0.82) 52%, rgba(255, 255, 255, 0.52) 100%);
            background-color: var(--nav-bg);
            backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
            -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
            border: 1px solid rgba(255, 255, 255, 0.72);
            border-radius: var(--nav-bar-radius);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow:
                0 0 0 1px rgba(99, 102, 241, 0.06),
                0 10px 36px rgba(15, 23, 42, 0.07),
                0 2px 8px rgba(56, 189, 248, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
            transition: box-shadow 0.4s var(--ease-smooth), background 0.35s ease, border-color 0.35s ease;
        }
        #site-nav.is-scrolled > nav.site-nav-bar {
            background:
                linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.72) 100%);
            background-color: rgba(255, 255, 255, 0.82);
            border-color: rgba(255, 255, 255, 0.88);
            box-shadow:
                0 0 0 1px rgba(99, 102, 241, 0.1),
                0 16px 48px rgba(99, 102, 241, 0.12),
                0 4px 14px rgba(15, 23, 42, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 1);
        }
        #site-nav .container.nav-inner {
            width: max-content;
            max-width: 100%;
            min-width: min-content;
            margin: 0;
            padding: 0;
        }

        /* Flex：Logo + 链接区 + 右侧控件；总长随各语言文案伸缩 */
        .nav-inner {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: flex-start;
            gap: clamp(10px, 1.8vw, 20px);
            position: relative;
            width: max-content;
            max-width: 100%;
            min-width: min-content;
        }
        .nav-inner .logo {
            flex-shrink: 0;
            min-width: 0;
        }
        .nav-inner .nav-links-wrap {
            flex: 1 1 auto;
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .nav-inner .nav-links {
            flex: none;
            width: max-content;
            max-width: none;
            margin: 0;
            box-sizing: border-box;
            justify-content: flex-start;
            overflow: visible;
        }
        .nav-right {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
            z-index: 20;
        }
        @media (min-width: 769px) {
            .nav-links-wrap {
                margin: 0 4px;
                padding: 4px 5px;
                border-radius: 14px;
                background: var(--nav-rail-bg);
                border: 1px solid var(--nav-rail-border);
                box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
                backdrop-filter: blur(10px) saturate(1.35);
                -webkit-backdrop-filter: blur(10px) saturate(1.35);
            }
            .nav-right {
                margin-left: 6px;
                padding-left: 14px;
                border-left: 1px solid rgba(15, 23, 42, 0.08);
            }
        }

        .logo {
            font-size: 21px;
            font-weight: 800;
            color: var(--nav-ink);
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            letter-spacing: -0.02em;
        }
        .logo-word {
            line-height: 1.15;
        }
        @supports ((-webkit-background-clip: text) or (background-clip: text)) {
            .logo-word {
                background: linear-gradient(118deg, #1e1b4b 0%, #3730a3 32%, #0f172a 72%, #0c4a6e 100%);
                -webkit-background-clip: text;
                background-clip: text;
                color: transparent;
            }
        }
        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(145deg, rgba(99, 102, 241, 0.98) 0%, rgba(56, 189, 248, 0.92) 100%);
            border: 1px solid rgba(255, 255, 255, 0.55);
            border-radius: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            box-shadow:
                0 4px 16px rgba(99, 102, 241, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
            transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
        }
        .logo-icon .site-logo-mark {
            display: block;
            width: 24px;
            height: 24px;
            color: #fff;
        }
        a.logo:hover .logo-icon {
            transform: scale(1.05) translateY(-1px);
            box-shadow:
                0 8px 28px rgba(99, 102, 241, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        /* 桌面：单行横排；长文案由整条 nav 变宽承担，避免中部被压成竖条 */
        .nav-links {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            column-gap: clamp(10px, 1.6vw, 20px);
            align-items: center;
            justify-content: flex-start;
            pointer-events: none;
        }
        .nav-links > li {
            flex-shrink: 0;
        }
        .nav-links a.nav-item {
            pointer-events: auto;
        }
        .nav-item {
            font-weight: 600;
            color: var(--nav-muted);
            cursor: pointer;
            transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
            font-size: 13px;
            position: relative;
            padding: 8px 14px;
            border-radius: 10px;
            white-space: nowrap;
            letter-spacing: 0.02em;
        }
        .nav-item:hover {
            color: var(--nav-ink);
            background: rgba(255, 255, 255, 0.88);
            box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
        }
        .nav-item.active {
            color: #fff;
            background: linear-gradient(135deg, #2563eb 0%, #3b82f6 52%, #0ea5e9 100%);
            box-shadow:
                0 4px 14px rgba(37, 99, 235, 0.42),
                inset 0 1px 0 rgba(255, 255, 255, 0.28);
        }
        .nav-item.active::after,
        .nav-item:hover:not(.active)::after {
            display: none;
        }

        /* 语言切换 + 移动端汉堡 */
        .lang-dropdown { position: relative; z-index: 1001; }
        .lang-trigger {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: var(--nav-control-h);
            padding: 0 13px;
            font-size: 13px;
            font-weight: 600;
            color: var(--nav-ink);
            background: rgba(255, 255, 255, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.75);
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
        }
        .lang-trigger:hover {
            background: rgba(255, 255, 255, 0.75);
            border-color: rgba(99, 102, 241, 0.35);
            box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
        }
        .lang-trigger .lucide { stroke: var(--nav-ink); }
        .lang-trigger .lucide { width: 18px; height: 18px; flex-shrink: 0; }
        .lang-chevron { width: 16px !important; height: 16px !important; transition: transform 0.2s ease; }
        .lang-dropdown.open .lang-chevron { transform: rotate(180deg); }
        .lang-menu {
            position: absolute;
            top: calc(100% + 12px);
            right: 0;
            min-width: 200px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.82);
            backdrop-filter: blur(20px) saturate(1.5);
            -webkit-backdrop-filter: blur(20px) saturate(1.5);
            border: 1px solid rgba(255, 255, 255, 0.75);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sketch-hover);
            display: none;
            flex-direction: column;
            gap: 4px;
        }
        .lang-dropdown.open .lang-menu { display: flex; }
        .lang-menu a {
            display: block;
            padding: 10px 14px;
            font-size: 16px;
            font-weight: 700;
            color: var(--ink-light);
            border-radius: 8px;
            transition: var(--transition);
        }
        .lang-menu a:hover, .lang-menu a[aria-current="true"] {
            color: var(--ink);
            background: rgba(99, 102, 241, 0.12);
        }

        .btn-nav-login {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: var(--nav-control-h);
            padding: 0 18px;
            font-size: 13px;
            font-weight: 700;
            color: #fff;
            background: linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #2563eb 100%);
            border: 1px solid rgba(255, 255, 255, 0.38);
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition);
            box-shadow:
                0 4px 16px rgba(79, 70, 229, 0.38),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
            white-space: nowrap;
            letter-spacing: 0.02em;
        }
        .btn-nav-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 28px rgba(99, 102, 241, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
        }
        .btn-nav-login:active {
            transform: translateY(0);
        }
        /* 已登录时 JS 会设 hidden；须盖过上面的 display:inline-flex，否则按钮仍占位显示 */
        #nav-login-btn[hidden],
        .btn-nav-login[hidden] {
            display: none !important;
        }

        /* 未登录时顶栏隐藏「我」入口；否则 .nav-user-area 的 display:inline-flex 会盖掉 [hidden] */
        #nav-user-area[hidden],
        .nav-user-area[hidden] {
            display: none !important;
        }

        .nav-user-area {
            position: relative;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
        }
        /* 控制中心入口：与顶栏玻璃 / 靛蓝天蓝系一致，圆角方形容器 + 渐变字 */
        .nav-user-trigger {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: var(--nav-control-h);
            height: var(--nav-control-h);
            padding: 0;
            margin: 0;
            flex-shrink: 0;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.72);
            background: linear-gradient(
                155deg,
                rgba(255, 255, 255, 0.55) 0%,
                rgba(238, 242, 255, 0.42) 42%,
                rgba(224, 231, 255, 0.38) 100%
            );
            backdrop-filter: blur(14px) saturate(1.45);
            -webkit-backdrop-filter: blur(14px) saturate(1.45);
            box-shadow:
                0 1px 0 rgba(255, 255, 255, 0.95) inset,
                0 0 0 1px rgba(99, 102, 241, 0.12),
                0 6px 20px rgba(99, 102, 241, 0.14),
                0 2px 8px rgba(15, 23, 42, 0.05);
            transition: transform 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth), border-color 0.22s ease;
            cursor: pointer;
            font: inherit;
            text-decoration: none;
            -webkit-tap-highlight-color: transparent;
        }
        a.nav-user-trigger:visited {
            color: inherit;
        }
        .nav-user-trigger:hover {
            transform: translateY(-2px);
            border-color: rgba(99, 102, 241, 0.38);
            box-shadow:
                0 1px 0 rgba(255, 255, 255, 1) inset,
                0 0 0 1px rgba(99, 102, 241, 0.22),
                0 10px 28px rgba(99, 102, 241, 0.22),
                0 4px 14px rgba(14, 165, 233, 0.12);
        }
        .nav-user-trigger:active {
            transform: translateY(0);
        }
        .nav-user-trigger:focus-visible {
            outline: none;
            box-shadow:
                0 1px 0 rgba(255, 255, 255, 0.95) inset,
                0 0 0 3px rgba(99, 102, 241, 0.35),
                0 6px 20px rgba(99, 102, 241, 0.16);
        }
        .nav-user-area.nav-user-on-account .nav-user-trigger {
            border-color: rgba(56, 189, 248, 0.45);
            box-shadow:
                0 1px 0 rgba(255, 255, 255, 0.95) inset,
                0 0 0 1px rgba(56, 189, 248, 0.35),
                0 0 0 3px rgba(56, 189, 248, 0.18),
                0 8px 24px rgba(56, 189, 248, 0.15);
        }
        .nav-avatar-circle {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }
        .nav-avatar-letter {
            font-size: 17px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: -0.03em;
            color: #4f46e5;
        }
        @supports ((-webkit-background-clip: text) or (background-clip: text)) {
            .nav-avatar-letter {
                background: linear-gradient(135deg, #4f46e5 0%, #6366f1 38%, #2563eb 72%, #0ea5e9 100%);
                -webkit-background-clip: text;
                background-clip: text;
                color: transparent;
            }
        }

        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            padding: 8px;
            flex-shrink: 0;
            width: calc(var(--nav-control-h) + 8px);
            height: calc(var(--nav-control-h) + 8px);
            border-radius: 12px;
            border: 1px solid rgba(15, 23, 42, 0.08);
            background: rgba(255, 255, 255, 0.55);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
            transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .hamburger:hover {
            background: rgba(255, 255, 255, 0.88);
            border-color: rgba(99, 102, 241, 0.22);
        }
        .hamburger:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
        }
        .hamburger span {
            width: 22px;
            height: 2px;
            background: var(--nav-ink);
            border-radius: 999px;
            transition: transform 0.3s var(--ease-smooth), opacity 0.25s ease;
            transform-origin: center;
        }
        .hamburger.is-open span:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }
        .hamburger.is-open span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0.4);
        }
        .hamburger.is-open span:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }
        @media (prefers-reduced-motion: reduce) {
            .hamburger span {
                transition-duration: 0.01ms;
            }
        }

        /* ==================== 支付通道选择弹窗（结账 / 发票去支付）==================== */
        body.pay-method-modal-open {
            overflow: hidden;
        }

        .pay-method-modal {
            position: fixed;
            inset: 0;
            z-index: 2100;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
        }

        .pay-method-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.55);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            cursor: pointer;
        }

        .pay-method-modal-panel {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 420px;
            padding: 26px 22px 20px;
            background: rgba(255, 255, 255, 0.97);
            border-radius: var(--radius-lg);
            box-shadow: 0 28px 70px -16px rgba(15, 23, 42, 0.4);
        }

        .pay-method-modal-title {
            font-size: 1.12rem;
            font-weight: 800;
            margin: 0 0 8px;
            text-align: center;
            color: var(--ink);
        }

        .pay-method-modal-lead {
            font-size: 0.8rem;
            color: var(--ink-light);
            line-height: 1.5;
            margin: 0 0 18px;
            text-align: center;
        }

        .pay-method-modal-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 14px;
        }

        .pay-method-option {
            width: 100%;
            text-align: left;
            padding: 14px 16px;
            cursor: pointer;
            font: inherit;
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(248, 250, 252, 0.98);
            border: 1px solid var(--line);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sketch);
            transition: var(--transition);
        }

        .pay-method-option:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-sketch-hover);
            border-color: rgba(99, 102, 241, 0.25);
        }

        .pay-method-option-ico {
            flex-shrink: 0;
            width: 52px;
            height: 52px;
            min-width: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--ink);
            background: #fff;
            border-radius: 14px;
            border: 1px solid rgba(15, 23, 42, 0.06);
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
        }

        .pay-method-option-ico img,
        .pay-method-option-ico svg {
            display: block;
            max-width: 36px;
            max-height: 36px;
            width: auto;
            height: auto;
        }

        .pay-method-option-ico--stripe svg {
            max-width: 48px;
            max-height: 24px;
            width: auto;
            height: auto;
        }

        .pay-method-option-ico--usdt svg {
            max-width: 34px;
            max-height: 34px;
        }

        .pay-method-option-textcol {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px 10px;
        }

        .pay-method-option-main {
            font-size: 0.88rem;
            font-weight: 800;
            color: var(--ink);
        }

        .pay-method-option-sub {
            font-size: 0.72rem;
            font-weight: 500;
            color: var(--ink-light);
            margin-left: auto;
        }

        .pay-method-cancel {
            display: block;
            width: 100%;
            text-align: center;
            margin-top: 4px;
            padding: 8px;
            border: none;
            background: none;
            cursor: pointer;
            font: inherit;
            font-weight: 700;
        }

        /* ==================== 登录 / 注册弹窗 ==================== */
        body.auth-modal-open { overflow: hidden; }

        .auth-modal {
            position: fixed;
            inset: 0;
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.28s var(--ease-smooth), visibility 0.28s ease;
        }
        .auth-modal.open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        .auth-modal-backdrop {
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.22), transparent 55%),
                rgba(15, 23, 42, 0.58);
            backdrop-filter: blur(12px) saturate(1.2);
            -webkit-backdrop-filter: blur(12px) saturate(1.2);
            transition: opacity 0.35s ease;
        }
        .auth-modal-panel {
            position: relative;
            display: flex;
            flex-direction: column;
            width: 100%;
            max-width: min(640px, calc(100vw - 24px));
            max-height: min(86vh, 640px);
            overflow: hidden;
            background: #f1f5f9;
            backdrop-filter: blur(24px) saturate(1.45);
            -webkit-backdrop-filter: blur(24px) saturate(1.45);
            border: 1px solid rgba(255, 255, 255, 0.88);
            border-radius: 18px;
            box-shadow:
                0 20px 50px -18px rgba(30, 27, 75, 0.35),
                0 0 0 1px rgba(15, 23, 42, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
            padding: 0;
            transform: translateY(14px) scale(0.98);
            opacity: 0;
            transition: transform 0.38s var(--ease-spring), opacity 0.32s var(--ease-smooth);
        }
        .auth-modal-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            border-radius: 18px 18px 0 0;
            background: linear-gradient(90deg, #6366f1, #818cf8 45%, #38bdf8);
            opacity: 1;
            pointer-events: none;
            z-index: 4;
        }
        .auth-modal.open .auth-modal-panel {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        .auth-modal-layout {
            display: flex;
            flex: 1;
            flex-direction: row;
            align-items: stretch;
            min-height: 0;
            min-height: min(300px, 52vh);
        }
        .auth-modal-aside {
            position: relative;
            flex: 0 0 clamp(176px, 30%, 220px);
            padding: 20px 16px 22px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            color: #e2e8f0;
            background: linear-gradient(168deg, #1e1b4b 0%, #312e81 55%, #1e293b 100%);
            border-right: 1px solid rgba(255, 255, 255, 0.08);
            overflow: hidden;
        }
        .auth-modal-aside__glow {
            position: absolute;
            width: 120%;
            height: 50%;
            top: -12%;
            left: -40%;
            background: radial-gradient(ellipse at center, rgba(129, 140, 248, 0.35) 0%, transparent 58%);
            pointer-events: none;
        }
        .auth-modal-aside__glow::after {
            content: '';
            position: absolute;
            inset: auto -30% -40% 30%;
            height: 65%;
            background: radial-gradient(ellipse at 80% 90%, rgba(56, 189, 248, 0.2), transparent 50%);
            pointer-events: none;
        }
        .auth-modal-aside__inner {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        .auth-modal-aside-points {
            margin: 14px 0 0;
            padding: 0;
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .auth-modal-aside-points li {
            position: relative;
            padding-left: 14px;
            font-size: 11px;
            font-weight: 600;
            line-height: 1.4;
            color: rgba(203, 213, 225, 0.95);
            letter-spacing: 0.01em;
        }
        .auth-modal-aside-points li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.42em;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #a5b4fc;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
        }

        .auth-modal-main {
            flex: 1;
            min-width: 0;
            overflow-x: hidden;
            overflow-y: auto;
            padding: 48px 28px 28px 24px;
            background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 52%, #f8fafc 100%);
        }

        .auth-modal-aside .auth-modal-brand--compact {
            flex-direction: row;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
            padding-right: 0;
        }
        .auth-modal-aside .auth-modal-brand--compact .auth-modal-brand__mark {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
            color: #fff;
        }
        .auth-modal-aside .auth-modal-brand--compact .auth-modal-brand__mark .site-logo-mark {
            width: 22px;
            height: 22px;
        }
        .auth-modal-aside .auth-modal-brand--compact .auth-modal-brand__name {
            font-size: 1.05rem;
            font-weight: 800;
            background: none;
            -webkit-background-clip: unset;
            background-clip: unset;
            color: #fff;
            letter-spacing: -0.03em;
        }
        .auth-modal-aside .auth-modal-hero {
            padding: 0;
            margin: 0;
            border-bottom: none;
        }
        .auth-modal-aside .auth-modal-eyebrow {
            color: #a5b4fc;
            margin-bottom: 6px;
            font-size: 10px;
            letter-spacing: 0.12em;
        }
        .auth-modal-aside .auth-modal-title {
            color: #fff;
            margin-bottom: 8px;
            font-size: clamp(0.9rem, 2.2vw, 1.15rem);
            line-height: 1.25;
            overflow-wrap: break-word;
            word-break: break-word;
        }
        .auth-modal-aside .auth-modal-tagline--aside {
            margin: 0;
            font-size: 11px;
            font-weight: 600;
            line-height: 1.45;
            color: rgba(148, 163, 184, 0.98);
        }
        .auth-modal-close {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 5;
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 12px;
            background: linear-gradient(
                160deg,
                rgba(255, 255, 255, 0.38) 0%,
                rgba(248, 250, 252, 0.28) 55%,
                rgba(241, 245, 249, 0.22) 100%
            );
            backdrop-filter: blur(12px) saturate(1.25);
            -webkit-backdrop-filter: blur(12px) saturate(1.25);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.65),
                0 1px 3px rgba(15, 23, 42, 0.05);
            cursor: pointer;
            color: rgba(100, 116, 139, 0.48);
            transition:
                transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.2s ease,
                color 0.2s ease,
                background 0.2s ease;
        }
        .auth-modal-close:hover {
            color: rgba(51, 65, 85, 0.92);
            border-color: rgba(148, 163, 184, 0.4);
            background: linear-gradient(
                180deg,
                rgba(226, 232, 240, 0.72) 0%,
                rgba(241, 245, 249, 0.52) 55%,
                rgba(248, 250, 252, 0.42) 100%
            );
            /* 内凹：上深下浅 + 微下沉，比单纯 scale 更「按进槽里」 */
            box-shadow:
                inset 0 2px 5px rgba(15, 23, 42, 0.1),
                inset 0 10px 22px -8px rgba(15, 23, 42, 0.07),
                inset 0 -1px 1px rgba(255, 255, 255, 0.55),
                0 1px 0 rgba(255, 255, 255, 0.35);
            transform: translateY(1.5px) scale(0.97);
        }
        .auth-modal-close:active {
            color: #334155;
            border-color: rgba(148, 163, 184, 0.45);
            background: linear-gradient(
                180deg,
                rgba(203, 213, 225, 0.58) 0%,
                rgba(226, 232, 240, 0.48) 100%
            );
            box-shadow:
                inset 0 3px 8px rgba(15, 23, 42, 0.12),
                inset 0 12px 24px -10px rgba(15, 23, 42, 0.09),
                inset 0 -1px 1px rgba(255, 255, 255, 0.45);
            transform: translateY(2px) scale(0.955);
        }
        .auth-modal-close:focus-visible {
            outline: none;
            color: #334155;
            border-color: rgba(99, 102, 241, 0.35);
            box-shadow:
                inset 0 2px 5px rgba(15, 23, 42, 0.08),
                inset 0 8px 18px -6px rgba(15, 23, 42, 0.06),
                0 0 0 3px rgba(99, 102, 241, 0.26);
        }
        .auth-modal-close .lucide {
            width: 18px;
            height: 18px;
            opacity: 1;
            transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
        }
        .auth-modal-close:hover .lucide {
            transform: rotate(90deg) scale(1.04);
        }
        @media (prefers-reduced-motion: reduce) {
            .auth-modal-close,
            .auth-modal-close:hover,
            .auth-modal-close:active {
                transform: none;
            }
            .auth-modal-close:hover {
                box-shadow:
                    inset 0 2px 6px rgba(15, 23, 42, 0.11),
                    inset 0 10px 22px -8px rgba(15, 23, 42, 0.08),
                    inset 0 -1px 1px rgba(255, 255, 255, 0.55),
                    0 1px 0 rgba(255, 255, 255, 0.35);
            }
            .auth-modal-close:active {
                box-shadow:
                    inset 0 3px 9px rgba(15, 23, 42, 0.13),
                    inset 0 12px 24px -10px rgba(15, 23, 42, 0.1),
                    inset 0 -1px 1px rgba(255, 255, 255, 0.45);
            }
            .auth-modal-close:hover .lucide {
                transform: none;
            }
        }

        .auth-modal-brand {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .auth-modal-brand__mark {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .auth-modal-brand__mark .site-logo-mark {
            display: block;
        }

        .auth-modal-hero {
            position: relative;
        }
        .auth-modal-eyebrow {
            margin: 0 0 8px;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }
        .auth-modal-title {
            font-weight: 800;
            margin: 0 0 10px;
            letter-spacing: -0.03em;
            line-height: 1.2;
        }
        .auth-modal-tagline {
            margin: 0 0 6px;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.5;
            max-width: 36em;
        }
        .auth-modal-tagline--muted {
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 0;
            line-height: 1.45;
        }

        .auth-flow-stack {
            position: relative;
            margin-top: 0;
            max-width: 400px;
            margin-left: auto;
            margin-right: auto;
        }
        .auth-flow-step {
            display: none;
            animation: authStepIn 0.28s var(--ease-smooth) both;
        }
        .auth-flow-step.is-active {
            display: block;
        }
        @keyframes authStepIn {
            from {
                opacity: 0;
                transform: translateY(6px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @media (prefers-reduced-motion: reduce) {
            .auth-flow-step {
                animation: none;
            }
        }

        .auth-step-card {
            position: relative;
            padding: 14px 14px 16px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.65);
            border: 1px solid rgba(15, 23, 42, 0.06);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }
        .auth-step-card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            pointer-events: none;
            background: radial-gradient(ellipse 100% 80% at 0% 0%, rgba(99, 102, 241, 0.05), transparent 45%);
        }
        .auth-step-card > * {
            position: relative;
            z-index: 1;
        }

        .auth-step-card--ident {
            padding: 22px 22px 24px;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.94);
            border: 1px solid rgba(99, 102, 241, 0.14);
            box-shadow:
                0 10px 36px rgba(15, 23, 42, 0.07),
                0 1px 0 rgba(255, 255, 255, 0.98) inset;
        }
        .auth-step-card--ident::before {
            background: radial-gradient(ellipse 120% 90% at 10% 0%, rgba(99, 102, 241, 0.08), transparent 50%);
        }
        .auth-step-card--ident .auth-field--ident {
            margin-bottom: 16px;
        }
        .auth-step-card--ident .auth-input-wrap {
            border-radius: 12px;
            min-height: 48px;
        }
        .auth-step-card--ident .auth-submit {
            margin-top: 8px;
            padding: 12px 20px;
            border-radius: 12px;
            box-shadow: 0 8px 26px rgba(79, 70, 229, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }
        .auth-step-card--ident .auth-ident-alt {
            margin-top: 18px;
        }

        .auth-step-lead {
            margin: 0 0 12px;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.5;
            color: var(--ink-light);
        }
        .auth-reset-lead {
            font-size: 12px;
            margin-bottom: 14px;
        }
        .auth-field--ident {
            margin-bottom: 12px;
        }
        .auth-ident-format-hint {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 8px 0 0;
            padding: 8px 12px 8px 8px;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.45;
            min-height: 1.35em;
            color: #9a3412;
            background: #fff;
            border: 1px solid #fdba74;
            border-radius: 999px;
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05), 0 1px 4px rgba(234, 88, 12, 0.06);
        }
        .auth-ident-format-hint[hidden] {
            display: none !important;
        }
        .auth-ident-format-hint--warn::before {
            content: '!';
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 7px;
            font-size: 11px;
            font-weight: 900;
            font-family: system-ui, 'Plus Jakarta Sans', sans-serif;
            line-height: 1;
            color: #fff;
            background: linear-gradient(145deg, #fb923c, #ea580c);
            box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
        }
        .auth-field--ident .auth-input-wrap.auth-input-wrap--bad {
            border-color: rgba(251, 113, 133, 0.55);
            background: rgba(255, 241, 242, 0.45);
        }
        .auth-field--ident .auth-input-wrap.auth-input-wrap--ok {
            border-color: rgba(52, 211, 153, 0.55);
        }
        .auth-ident-fallback {
            margin-top: 12px;
            padding: 12px 12px 2px;
            border-radius: 12px;
            background: rgba(99, 102, 241, 0.06);
            border: 1px dashed rgba(99, 102, 241, 0.2);
        }
        .auth-ident-fallback[hidden] {
            display: none !important;
        }
        .auth-ident-fallback-label {
            margin: 0 0 8px;
            font-size: 12px;
            font-weight: 700;
            color: var(--ink);
        }
        .auth-ident-fallback-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        @media (min-width: 400px) {
            .auth-ident-fallback-actions {
                flex-direction: row;
            }
            .auth-ident-fallback-actions .auth-submit {
                flex: 1;
                margin-top: 0;
            }
        }
        .auth-submit--ghost {
            margin-top: 0;
            color: var(--ink);
            background: rgba(255, 255, 255, 0.88);
            border: 1px solid rgba(15, 23, 42, 0.1);
            border-radius: 11px;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
        }
        .auth-submit--ghost:hover {
            border-color: rgba(99, 102, 241, 0.32);
            background: #fff;
            box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
        }
        .auth-ident-alt {
            margin: 14px 0 0;
            text-align: center;
            font-size: 12px;
            font-weight: 600;
            color: var(--ink-light);
        }

        .login-mode-panel {
            margin-bottom: 0;
        }
        .login-mode-panel[hidden] {
            display: none !important;
        }
        .auth-login-code-hint {
            margin: -2px 0 10px;
            padding: 8px 10px;
            font-size: 11px;
            line-height: 1.45;
            color: var(--ink-light);
            font-weight: 500;
            background: rgba(56, 189, 248, 0.07);
            border-radius: 10px;
            border: 1px solid rgba(56, 189, 248, 0.14);
        }
        .auth-login-mode-toggle {
            text-align: center;
            margin: 10px 0 0;
            min-height: 1.4em;
            padding: 8px 6px;
            border-radius: 10px;
            background: rgba(15, 23, 42, 0.03);
        }
        .auth-login-mode-toggle .auth-link {
            font-size: 12px;
            text-decoration: none;
            color: var(--signal);
            font-weight: 700;
        }
        .auth-login-mode-toggle .auth-link:hover {
            color: #4338ca;
        }

        .auth-flow-back {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-bottom: 10px;
            padding: 6px 11px 6px 8px;
            font-size: 12px;
            font-weight: 700;
            font-family: inherit;
            color: var(--ink-light);
            background: rgba(255, 255, 255, 0.75);
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 999px;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
            transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
        }
        .auth-flow-back::before {
            content: '';
            display: inline-block;
            width: 7px;
            height: 7px;
            margin-right: 2px;
            border-left: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(45deg);
            opacity: 0.75;
        }
        .auth-flow-back:hover {
            color: var(--ink);
            border-color: rgba(99, 102, 241, 0.28);
            background: #fff;
            transform: translateX(-2px);
        }

        .auth-form .auth-field:first-of-type {
            margin-top: 0;
        }
        .auth-field { margin-bottom: 12px; }
        .auth-field label {
            display: block;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            margin-bottom: 5px;
            color: var(--ink-light);
        }
        .auth-input-wrap {
            position: relative;
            display: flex;
            align-items: center;
            border: 1px solid rgba(15, 23, 42, 0.09);
            border-radius: 11px;
            background: #fff;
            box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        }
        .auth-input-wrap:focus-within {
            border-color: rgba(99, 102, 241, 0.45);
            background: #fff;
            box-shadow:
                0 0 0 3px rgba(99, 102, 241, 0.1),
                inset 0 1px 1px rgba(15, 23, 42, 0.02);
        }
        .auth-input-wrap .field-icon {
            padding: 0 10px;
            display: flex;
            color: var(--ink-light);
            transition: color 0.2s ease;
        }
        .auth-input-wrap:focus-within .field-icon {
            color: var(--signal);
        }
        .auth-input-wrap .field-icon .lucide { width: 17px; height: 17px; }
        .auth-input-wrap input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 11px 10px 11px 0;
            font-size: 14px;
            font-weight: 600;
            color: var(--ink);
            outline: none;
            min-width: 0;
        }
        .auth-input-wrap input::placeholder { color: #94a3b8; font-weight: 500; }
        .auth-toggle-pw {
            padding: 6px 10px;
            border: none;
            background: transparent;
            cursor: pointer;
            color: var(--ink-light);
            display: flex;
            align-items: center;
            border-radius: 0 9px 9px 0;
            transition: color 0.2s ease, background 0.2s ease;
        }
        .auth-toggle-pw:hover {
            color: var(--signal);
            background: rgba(99, 102, 241, 0.06);
        }
        .auth-toggle-pw .lucide { width: 17px; height: 17px; }
        .auth-toggle-pw .icon-eye { display: none; }
        .auth-toggle-pw .icon-eye-off { display: block; }
        .auth-toggle-pw.is-revealed .icon-eye { display: block; }
        .auth-toggle-pw.is-revealed .icon-eye-off { display: none; }

        .auth-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }
        .auth-row--agree {
            margin-bottom: 10px;
            padding: 10px 10px;
            border-radius: 11px;
            background: rgba(15, 23, 42, 0.03);
            border: 1px solid rgba(15, 23, 42, 0.05);
        }
        .auth-check {
            display: inline-flex;
            align-items: flex-start;
            gap: 8px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.45;
            color: var(--ink-light);
        }
        .auth-check input {
            width: 16px;
            height: 16px;
            margin-top: 1px;
            flex-shrink: 0;
            accent-color: #4f46e5;
            cursor: pointer;
        }
        .auth-link {
            font-size: inherit;
            font-weight: 700;
            color: var(--signal);
            text-decoration: none;
            text-decoration-style: solid;
            text-underline-offset: 3px;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
            font-family: inherit;
        }
        .auth-link:hover {
            color: #4338ca;
            text-decoration: underline;
        }
        .auth-ident-alt .auth-link,
        .auth-switch .auth-link,
        .auth-login-mode-toggle .auth-link {
            font-size: 12px;
        }

        .auth-submit {
            width: 100%;
            padding: 11px 18px;
            font-size: 14px;
            font-weight: 800;
            letter-spacing: 0.02em;
            color: #fff;
            background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #4f46e5 100%);
            border: 1px solid rgba(255, 255, 255, 0.28);
            border-radius: 11px;
            cursor: pointer;
            box-shadow: 0 4px 16px rgba(79, 70, 229, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
            transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
            margin-top: 6px;
        }
        .auth-submit:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 22px rgba(79, 70, 229, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        }
        .auth-submit:active {
            transform: translateY(0);
        }
        .auth-submit:disabled {
            opacity: 0.55;
            cursor: not-allowed;
            transform: none;
        }

        /* 登录弹窗内联提示：与底栏 Toast 同款胶囊条（文案放入 .auth-msg__text，避免匿名 flex 子项被拉满宽） */
        .auth-msg {
            display: flex;
            align-items: center;
            align-self: center;
            gap: 10px;
            margin-top: 10px;
            margin-left: auto;
            margin-right: auto;
            width: max-content;
            max-width: 100%;
            box-sizing: border-box;
            padding: 10px 16px 10px 10px;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.45;
            word-break: break-word;
            color: #991b1b;
            background: #ffffff;
            border: 1px solid #fca5a5;
            border-radius: 999px;
            box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(220, 38, 38, 0.06);
        }
        .auth-msg .auth-msg__text {
            flex: 0 1 auto;
            min-width: 0;
        }
        .auth-msg::before {
            content: '!';
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 900;
            font-family: system-ui, 'Plus Jakarta Sans', sans-serif;
            line-height: 1;
            color: #fff;
            background: linear-gradient(145deg, #fb7185, #e11d48);
            box-shadow: 0 2px 10px rgba(220, 38, 38, 0.28);
        }
        .auth-msg:empty {
            display: none;
        }
        .auth-msg:empty::before {
            display: none;
        }
        .auth-msg.ok {
            color: #14532d;
            background: #ffffff;
            border: 1px solid #86efac;
            box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(22, 163, 74, 0.08);
        }
        .auth-msg.ok::before {
            content: '✓';
            font-size: 11px;
            font-weight: 900;
            background: linear-gradient(145deg, #4ade80, #16a34a);
            box-shadow: 0 2px 10px rgba(22, 163, 74, 0.28);
        }
        .auth-msg.auth-msg--neutral {
            color: #3730a3;
            background: #ffffff;
            border: 1px solid #c7d2fe;
            box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(79, 70, 229, 0.07);
        }
        .auth-msg.auth-msg--neutral::before {
            content: '';
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2px solid rgba(199, 210, 254, 0.95);
            border-top-color: #6366f1;
            background: transparent;
            box-shadow: none;
            animation: authMsgSpin 0.75s linear infinite;
        }
        @keyframes authMsgSpin {
            to { transform: rotate(360deg); }
        }
        @media (prefers-reduced-motion: reduce) {
            .auth-msg.auth-msg--neutral::before {
                animation: none;
                border-color: rgba(129, 140, 248, 0.55);
                border-top-color: rgba(129, 140, 248, 0.55);
            }
        }

        .auth-switch {
            text-align: center;
            margin-top: 10px;
            padding: 8px 8px;
            border-radius: 10px;
            background: rgba(15, 23, 42, 0.03);
        }

        .auth-code-row {
            display: flex;
            gap: 8px;
            align-items: stretch;
        }
        .auth-code-row .auth-code-input {
            flex: 1;
            min-width: 0;
        }
        .auth-code-row .auth-code-input .auth-input-wrap {
            border-radius: 11px;
        }
        .auth-code-row .auth-code-input input {
            padding-left: 12px;
            padding-right: 12px;
        }
        .auth-send-code {
            flex-shrink: 0;
            min-width: 92px;
            padding: 0 12px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.02em;
            color: var(--signal);
            border: 1px solid rgba(99, 102, 241, 0.26);
            border-radius: 11px;
            background: linear-gradient(180deg, #fff, #f1f5ff);
            cursor: pointer;
            box-shadow: 0 1px 6px rgba(99, 102, 241, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
            transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
        }
        .auth-send-code:hover:not(:disabled) {
            background: #fff;
            border-color: rgba(99, 102, 241, 0.45);
            transform: translateY(-1px);
        }
        .auth-send-code:disabled {
            opacity: 0.55;
            cursor: not-allowed;
            transform: none;
        }

        @media (max-width: 768px) {
            .auth-modal-layout {
                flex-direction: column;
                min-height: 0;
            }
            .auth-modal-aside {
                flex: 0 0 auto;
                padding: 14px 16px 12px;
                justify-content: flex-start;
                border-right: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }
            .auth-modal-aside__glow {
                height: 100%;
                top: -12%;
            }
            .auth-modal-aside .auth-modal-brand--compact {
                margin-bottom: 8px;
            }
            .auth-modal-aside-points {
                margin-top: 8px;
                flex-direction: row;
                flex-wrap: wrap;
                gap: 4px 12px;
            }
            .auth-modal-aside-points li {
                font-size: 11px;
                flex: 1 1 auto;
            }
            .auth-modal-main {
                padding: 46px 16px 16px;
                flex: 1;
                min-height: 0;
                max-height: min(52vh, 460px);
            }
        }

        @media (max-width: 480px) {
            .auth-modal { padding: 8px; }
            .auth-modal-panel {
                max-width: 100%;
                border-radius: 16px;
            }
            .auth-modal-panel::before {
                border-radius: 16px 16px 0 0;
            }
            .auth-modal-aside {
                padding: 12px 14px 10px;
            }
            .auth-modal-aside .auth-modal-title {
                font-size: 1.08rem;
            }
            .auth-modal-aside .auth-modal-tagline--aside {
                font-size: 10px;
            }
            .auth-modal-aside-points li {
                font-size: 10px;
            }
            .auth-modal-main {
                padding: 44px 12px 14px;
                max-height: min(56vh, 500px);
            }
            .auth-step-card { padding: 12px 12px 14px; border-radius: 12px; }
            .auth-step-card--ident { padding: 16px 14px 18px; border-radius: 14px; }
            .auth-send-code { min-width: 80px; padding: 0 8px; font-size: 10px; }
        }

        /* ==================== 页面路由控制 ==================== */
        /* 与全宽顶栏 72px 对齐；首页 #page-home 在 page-index 中单设 */
        .page-main { padding-top: max(100px, calc(12px + 72px + 20px)); min-height: 100vh; }
        .page-main.page-enter {
            animation: novaPageIn 0.85s var(--ease-smooth) both forwards;
        }
        @keyframes novaPageIn {
            0% {
                opacity: 0;
                clip-path: inset(0 0 12% 0);
                transform: translateY(18px);
            }
            100% {
                opacity: 1;
                clip-path: inset(0 0 0 0);
                transform: translateY(0);
            }
        }
        @media (prefers-reduced-motion: no-preference) {
            html.maclogin-enter-from-nav .page-main.page-enter {
                animation: novaPageFromNav 0.78s var(--ease-spring) both forwards !important;
            }
            @keyframes novaPageFromNav {
                0% {
                    opacity: 0;
                    transform: translateX(28px);
                    filter: blur(6px);
                }
                100% {
                    opacity: 1;
                    transform: none;
                    filter: none;
                }
            }
        }
        @media (prefers-reduced-motion: reduce) {
            .page-main.page-enter {
                animation: none;
                opacity: 1;
                filter: none;
                transform: none;
            }
        }

        /* ==================== 卡片与按钮（Nova）==================== */
        .sketch-box {
            background: var(--surface-glass);
            backdrop-filter: blur(18px) saturate(1.45);
            -webkit-backdrop-filter: blur(18px) saturate(1.45);
            border: 1px solid var(--stroke-glass);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sketch);
            transition:
                transform 0.4s var(--ease-spring),
                box-shadow 0.4s var(--ease-smooth),
                border-color 0.3s ease;
        }
        .sketch-box:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-sketch-hover);
            border-color: rgba(99, 102, 241, 0.28);
        }

        .btn-primary {
            background: linear-gradient(135deg, #6366f1 0%, #3b82f6 48%, #0ea5e9 100%);
            color: #fff;
            padding: 14px 28px;
            font-size: 17px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 999px;
            box-shadow:
                0 6px 24px rgba(99, 102, 241, 0.38),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
            transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
            font-weight: 700;
        }
        .btn-primary:active {
            transform: scale(0.98) !important;
            box-shadow: 0 3px 14px rgba(99, 102, 241, 0.3) !important;
        }
        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow:
                0 12px 36px rgba(99, 102, 241, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.55);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            color: var(--ink);
            padding: 14px 28px;
            font-size: 17px;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.75);
            border-radius: 999px;
            transition: var(--transition);
            font-weight: 600;
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
        }
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.85);
            border-color: rgba(99, 102, 241, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
        }

        /* 柔和高亮（与玻璃页面对比） */
        .hl-pink {
            padding: 0.12em 0.45em;
            border-radius: 10px;
            background: linear-gradient(120deg, rgba(251, 113, 133, 0.28), rgba(244, 114, 182, 0.2));
            border: 1px solid rgba(251, 113, 133, 0.25);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }
        .hl-blue {
            padding: 0.12em 0.45em;
            border-radius: 10px;
            background: linear-gradient(120deg, rgba(56, 189, 248, 0.3), rgba(129, 140, 248, 0.18));
            border: 1px solid rgba(56, 189, 248, 0.22);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
        }
        .hl-yellow {
            padding: 0.12em 0.45em;
            border-radius: 10px;
            background: linear-gradient(120deg, rgba(253, 230, 138, 0.55), rgba(251, 191, 36, 0.22));
            border: 1px solid rgba(251, 191, 36, 0.28);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
        }

        .section-header { text-align: center; margin-bottom: 56px; }
        .section-header h2 {
            font-size: clamp(28px, 4.5vw, 44px);
            font-weight: 800;
            margin-bottom: 14px;
            display: inline-block;
            position: relative;
            letter-spacing: -0.03em;
            line-height: 1.2;
        }
        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            width: 88px;
            height: 5px;
            margin-left: -44px;
            background: linear-gradient(90deg, #6366f1, #38bdf8, #a78bfa);
            border-radius: 999px;
            z-index: 0;
            box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
        }
        .section-header p { color: var(--ink-light); font-size: clamp(16px, 2vw, 19px); max-width: 36em; margin-left: auto; margin-right: auto; }
        .section-header p .phrase-keep { white-space: nowrap; }

        .btn-dash:hover { transform: translateY(-3px); box-shadow: var(--shadow-sketch-hover);}
        .btn-dash:active { transform: translateY(0); box-shadow: var(--shadow-pressed);}
        .btn-dash.primary {
            background: linear-gradient(135deg, #6366f1, #3b82f6);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.3);
            font-weight: 700;
            border-radius: 999px;
        }

        /* ==================== 页脚 · site-footer（渐变深底 + 网格动效 + 玻璃 Logo）==================== */
        footer.site-footer {
            position: relative;
            margin-top: 100px;
            padding: clamp(64px, 10vw, 96px) 0 40px;
            overflow: hidden;
            color: #e2e8f0;
            border-top: 1px solid rgba(129, 140, 248, 0.15);
            background:
                radial-gradient(ellipse 90% 60% at 50% -20%, rgba(99, 102, 241, 0.22), transparent 55%),
                radial-gradient(ellipse 70% 50% at 100% 80%, rgba(56, 189, 248, 0.12), transparent 50%),
                linear-gradient(168deg, #0f172a 0%, #1e1b4b 38%, #0c1222 100%);
            box-shadow: 0 -32px 100px -48px rgba(99, 102, 241, 0.35);
        }
        .site-footer__mesh {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
            background-size: 44px 44px;
            background-position: 0 0;
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, #000 35%, #000 100%);
            pointer-events: none;
            opacity: 0.7;
        }
        .site-footer__orbs {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
        }
        .site-footer__orbs span {
            position: absolute;
            border-radius: 50%;
            filter: blur(64px);
            opacity: 0.45;
        }
        .site-footer__orbs span:nth-child(1) {
            width: min(320px, 70vw);
            height: min(320px, 70vw);
            top: -15%;
            left: -8%;
            background: rgba(99, 102, 241, 0.4);
        }
        .site-footer__orbs span:nth-child(2) {
            width: min(260px, 55vw);
            height: min(260px, 55vw);
            bottom: -20%;
            right: -5%;
            background: rgba(56, 189, 248, 0.28);
        }
        .site-footer__orbs span:nth-child(3) {
            width: min(180px, 40vw);
            height: min(180px, 40vw);
            top: 40%;
            right: 25%;
            background: rgba(167, 139, 250, 0.2);
        }
        .site-footer__container {
            position: relative;
            z-index: 1;
        }

        .footer-grid.site-footer__grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: clamp(40px, 6vw, 64px);
            margin-bottom: clamp(44px, 7vw, 60px);
        }

        .footer-col h5 {
            font-size: 13px;
            margin: 0 0 18px;
            color: #cbd5e1;
            font-weight: 800;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            align-self: start;
            width: fit-content;
            max-width: 100%;
            min-height: 0;
            padding: 0 0 10px;
            box-sizing: border-box;
            position: relative;
            border-bottom: none;
            line-height: 1.35;
        }
        .footer-col h5::before {
            content: '';
            display: block;
            width: 100%;
            height: 2px;
            margin-bottom: 10px;
            border-radius: 999px;
            background: linear-gradient(90deg, #818cf8, #38bdf8, transparent);
            opacity: 0.9;
            box-shadow: 0 0 16px rgba(129, 140, 248, 0.35);
        }
        .footer-col h5::after {
            display: none;
        }
        .footer-col:not(.footer-col--brand) ul li {
            margin-bottom: 14px;
            font-size: 15px;
            font-weight: 600;
            color: #94a3b8;
        }
        .footer-col ul li a {
            transition: color 0.22s ease, transform 0.22s var(--ease-spring);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            color: inherit;
        }
        .footer-col ul li a:hover {
            color: #e0e7ff;
            transform: translateX(5px);
        }

        .footer-bottom.site-footer__bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 26px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 14px 24px;
            font-size: 14px;
        }
        .site-footer__copyright {
            color: #94a3b8;
            font-weight: 600;
        }
        .site-footer__byline {
            font-family: 'JetBrains Mono', ui-monospace, monospace;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #64748b;
        }

        a.footer-logo.site-footer__logo {
            font-size: 22px;
            font-weight: 800;
            color: #f8fafc;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 18px;
            letter-spacing: -0.03em;
            text-decoration: none;
            transition: opacity 0.2s ease, transform 0.25s var(--ease-spring);
        }
        a.footer-logo.site-footer__logo:hover {
            opacity: 0.92;
            transform: translateY(-2px);
        }
        .site-footer__logo-icon {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 14px;
            background: linear-gradient(145deg, rgba(99, 102, 241, 0.5), rgba(56, 189, 248, 0.35));
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        .site-footer__logo-icon .site-logo-mark {
            display: block;
            width: 22px;
            height: 22px;
            color: #fff;
        }
        .footer-tagline.site-footer__tagline {
            color: #94a3b8;
            font-size: 15px;
            font-weight: 600;
            line-height: 1.7;
            margin: 0 0 20px;
            max-width: 28em;
        }
        .site-footer__email {
            display: block;
            margin: 0 0 14px;
            font-size: 14px;
            font-weight: 600;
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.2s;
        }
        .site-footer__email:hover {
            color: #a5b4fc;
        }
        .site-footer__cta-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.04em;
            color: #e0e7ff;
            text-decoration: none;
            border-radius: 999px;
            border: 1px solid rgba(129, 140, 248, 0.45);
            background: rgba(99, 102, 241, 0.15);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
        }
        .site-footer__cta-chip .lucide {
            width: 16px;
            height: 16px;
            stroke-width: 2.25px;
            opacity: 0.9;
        }
        .site-footer__cta-chip:hover {
            background: rgba(99, 102, 241, 0.28);
            border-color: rgba(165, 180, 252, 0.65);
            transform: translateY(-2px);
            box-shadow: 0 10px 28px rgba(99, 102, 241, 0.25);
            color: #fff;
        }

        @media (prefers-reduced-motion: no-preference) {
            .site-footer__mesh {
                animation: siteFooterMesh 50s linear infinite;
            }
            @keyframes siteFooterMesh {
                to { background-position: 44px 44px; }
            }
            .site-footer__orbs span:nth-child(1) {
                animation: siteFooterOrbA 16s ease-in-out infinite;
            }
            .site-footer__orbs span:nth-child(2) {
                animation: siteFooterOrbB 18s ease-in-out infinite 1s;
            }
            .site-footer__orbs span:nth-child(3) {
                animation: siteFooterOrbC 12s ease-in-out infinite 0.5s;
            }
            @keyframes siteFooterOrbA {
                0%, 100% { transform: translate(0, 0); }
                50% { transform: translate(16px, 10px); }
            }
            @keyframes siteFooterOrbB {
                0%, 100% { transform: translate(0, 0); }
                50% { transform: translate(-14px, -12px); }
            }
            @keyframes siteFooterOrbC {
                0%, 100% { transform: scale(1); opacity: 0.35; }
                50% { transform: scale(1.12); opacity: 0.55; }
            }
        }
        @media (prefers-reduced-motion: reduce) {
            .site-footer__mesh,
            .site-footer__orbs span {
                animation: none !important;
            }
        }

        .footer-scribble-line {
            height: 0;
            margin: 22px 0 18px;
            border: none;
            border-top: 2.5px dashed var(--ink-light);
            opacity: 0.85;
            transform: rotate(-0.4deg);
        }
        .footer-doodles {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 14px 18px;
            margin-bottom: 0;
        }
        .footer-doodle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-sketch);
        }
        .footer-doodle i {
            width: 24px;
            height: 24px;
            stroke-width: 2.25px;
        }
        .footer-doodle--a {
            background: var(--marker-pink);
            transform: rotate(-6deg);
        }
        .footer-doodle--b {
            background: var(--marker-blue);
            transform: rotate(4deg);
        }
        .footer-doodle--c {
            background: var(--marker-yellow);
            transform: rotate(-3deg);
        }

        @media (prefers-reduced-motion: no-preference) {
            .footer-doodle--a {
                animation: footerDoodleFloat 5s ease-in-out infinite;
            }
            .footer-doodle--b {
                animation: footerDoodleFloat 5.5s ease-in-out infinite 0.6s;
            }
            .footer-doodle--c {
                animation: footerDoodleFloat 4.8s ease-in-out infinite 1.1s;
            }
            @keyframes footerDoodleFloat {
                0%, 100% { transform: translateY(0) rotate(var(--fd-tilt, -6deg)) scale(1); }
                50% { transform: translateY(-6px) rotate(calc(var(--fd-tilt, -6deg) + 3deg)) scale(1.04); }
            }
            .footer-doodle--a { --fd-tilt: -6deg; }
            .footer-doodle--b { --fd-tilt: 4deg; }
            .footer-doodle--c { --fd-tilt: -3deg; }
        }

        /* ==================== 响应式设计 ==================== */
        @media (max-width: 1100px) and (min-width: 769px) {
            .nav-links { column-gap: clamp(6px, 1vw, 12px); }
            .nav-item { font-size: 13px; padding: 8px 11px; }
        }

        @media (max-width: 900px) and (min-width: 769px) {
            .nav-item { font-size: 12px; padding: 7px 9px; }
            .nav-links { column-gap: 6px; }
            .nav-inner { gap: 10px; }
        }

        @media (max-width: 900px) {
            .bento-grid { grid-template-columns: 1fr 1fr;}
            .pricing-grid, .addon-grid, .blog-grid { grid-template-columns: 1fr; }
        }

        @media (max-width: 768px) {
            #site-nav {
                padding: 10px max(10px, env(safe-area-inset-left)) 0 max(10px, env(safe-area-inset-right));
            }
            #site-nav > nav.site-nav-bar {
                width: 100%;
                max-width: 100%;
                min-height: 52px;
                padding: 8px 12px 8px 14px;
                border-radius: 18px;
            }
            .nav-inner .nav-links-wrap {
                display: contents;
            }
            #site-nav .container {
                width: 100%;
                max-width: 100%;
                padding: 0;
            }
            #site-nav .container.nav-inner {
                width: 100%;
                max-width: 100%;
                padding: 0;
            }
            .nav-inner {
                display: flex;
                flex-wrap: nowrap;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                max-width: 100%;
                gap: 8px;
                row-gap: 8px;
            }
            .nav-inner .nav-links {
                flex: none;
                max-width: none;
                overflow: visible;
                justify-content: flex-start;
                pointer-events: auto;
            }
            .lang-trigger .lang-current-label { display: none; }
            .lang-trigger { padding: 8px 10px; }
            .hamburger { display: flex; }
            .nav-links {
                position: absolute;
                top: calc(100% + 10px);
                left: 0;
                right: 0;
                background: rgba(255, 255, 255, 0.92);
                backdrop-filter: blur(22px) saturate(1.5);
                -webkit-backdrop-filter: blur(22px) saturate(1.5);
                border: 1px solid rgba(255, 255, 255, 0.82);
                border-radius: 16px;
                flex-direction: column;
                flex-wrap: nowrap;
                padding: 12px;
                gap: 4px;
                display: none;
                box-shadow:
                    0 0 0 1px rgba(99, 102, 241, 0.06),
                    0 20px 50px rgba(15, 23, 42, 0.12);
            }
            .nav-links .nav-item {
                border-radius: 12px;
                padding: 12px 14px;
                font-size: 15px;
                white-space: normal;
            }
            .nav-links.mobile-active { display: flex; }
            
            .bento-grid { grid-template-columns: 1fr; }
            .dashboard-layout { grid-template-columns: 1fr; gap: 32px;}
            .sidebar { display: none; }
            .server-specs-grid { grid-template-columns: 1fr; }
            .footer-grid.site-footer__grid { grid-template-columns: 1fr; gap: 40px; }
            footer.site-footer .footer-col h5 {
                display: flex;
                min-height: 0;
                padding-bottom: 10px;
                width: fit-content;
                max-width: 100%;
            }
            footer.site-footer .footer-col h5::before {
                width: 48px;
            }
            .footer-bottom.site-footer__bottom { flex-direction: column; gap: 12px; text-align: center; justify-content: center; }
            .site-footer__byline { text-align: center; }
        }
        a.logo { text-decoration: none; color: inherit; }

        /* ==================== 站内跳转过渡（page-transitions.js）· 顶栏轨道 + 加载中胶囊 ==================== */

        html.maclogin-tx-out main.page-main,
        html.maclogin-tx-out #global-footer {
            transition:
                filter 0.38s var(--ease-smooth, cubic-bezier(0.22, 1, 0.36, 1)),
                opacity 0.38s ease,
                transform 0.45s var(--ease-smooth, cubic-bezier(0.22, 1, 0.36, 1));
            filter: blur(2.5px) saturate(0.96);
            opacity: 0.88;
            transform: scale(0.992);
        }

        #maclogin-transition {
            position: fixed;
            inset: 0;
            z-index: 100050;
            pointer-events: none;
            visibility: hidden;
        }
        #maclogin-transition.maclogin-transition--active {
            visibility: visible;
        }

        .maclogin-transition__rail-wrap {
            position: fixed;
            top: calc(var(--nav-stack-clearance, 104px) - 4px);
            left: max(20px, env(safe-area-inset-left));
            right: max(20px, env(safe-area-inset-right));
            height: 5px;
            z-index: 100051;
            pointer-events: none;
        }
        .maclogin-transition__rail {
            height: 100%;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.75);
            box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            overflow: hidden;
            transform: scaleX(0.06);
            opacity: 0;
            transform-origin: center;
        }
        .maclogin-transition__rail-fill {
            display: block;
            height: 100%;
            width: 38%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--signal), var(--ice), #fb7185, var(--signal));
            background-size: 200% 100%;
            transform: translateX(-130%);
        }

        .maclogin-transition__chip {
            position: fixed;
            top: calc(var(--nav-stack-clearance, 104px) + 14px);
            left: 50%;
            z-index: 100052;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 11px 20px 11px 14px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.82);
            backdrop-filter: blur(18px) saturate(1.5);
            -webkit-backdrop-filter: blur(18px) saturate(1.5);
            border: 1px solid rgba(255, 255, 255, 0.9);
            box-shadow:
                0 16px 48px -12px rgba(99, 102, 241, 0.28),
                0 6px 20px rgba(56, 189, 248, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
            opacity: 0;
            transform: translate(-50%, -12px) scale(0.94);
            pointer-events: none;
        }
        .maclogin-transition__glyph {
            width: 22px;
            height: 22px;
            flex-shrink: 0;
            border-radius: 8px;
            background: conic-gradient(from 210deg, #6366f1, #38bdf8, #a78bfa, #6366f1);
            box-shadow: 0 2px 12px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
            position: relative;
        }
        .maclogin-transition__glyph::after {
            content: '';
            position: absolute;
            inset: 3px;
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.25);
        }
        .maclogin-transition__label {
            font-size: 14px;
            font-weight: 800;
            letter-spacing: 0.06em;
            color: var(--ink);
            white-space: nowrap;
        }
        .maclogin-transition__dots {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding-left: 2px;
        }
        .maclogin-transition__dots span {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--signal), var(--ice));
            opacity: 0.35;
        }

        #maclogin-transition.maclogin-transition--active .maclogin-transition__rail {
            animation: macloginTxRailPop 0.5s cubic-bezier(0.34, 1.35, 0.64, 1) forwards;
        }
        #maclogin-transition.maclogin-transition--active .maclogin-transition__rail-fill {
            animation: macloginTxRailSweep 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
        }
        #maclogin-transition.maclogin-transition--active .maclogin-transition__chip {
            animation: macloginTxChipIn 0.48s cubic-bezier(0.34, 1.35, 0.64, 1) 0.05s forwards;
        }
        #maclogin-transition.maclogin-transition--active .maclogin-transition__dots span:nth-child(1) {
            animation: macloginTxDot 0.75s ease-in-out infinite;
        }
        #maclogin-transition.maclogin-transition--active .maclogin-transition__dots span:nth-child(2) {
            animation: macloginTxDot 0.75s ease-in-out infinite 0.12s;
        }
        #maclogin-transition.maclogin-transition--active .maclogin-transition__dots span:nth-child(3) {
            animation: macloginTxDot 0.75s ease-in-out infinite 0.24s;
        }
        #maclogin-transition.maclogin-transition--active .maclogin-transition__glyph {
            animation: macloginTxGlyphSpin 2.4s linear infinite;
        }

        @keyframes macloginTxRailPop {
            0% { transform: scaleX(0.06); opacity: 0; }
            100% { transform: scaleX(1); opacity: 1; }
        }
        @keyframes macloginTxRailSweep {
            0% { transform: translateX(-130%); }
            100% { transform: translateX(320%); }
        }
        @keyframes macloginTxChipIn {
            0% { opacity: 0; transform: translate(-50%, -12px) scale(0.94); }
            100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
        }
        @keyframes macloginTxDot {
            0%, 100% { opacity: 0.3; transform: translateY(0); }
            50% { opacity: 1; transform: translateY(-3px); }
        }
        @keyframes macloginTxGlyphSpin {
            to { transform: rotate(360deg); }
        }

        @media (prefers-reduced-motion: reduce) {
            html.maclogin-tx-out main.page-main,
            html.maclogin-tx-out #global-footer {
                filter: none !important;
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
            }
            #maclogin-transition.maclogin-transition--active .maclogin-transition__rail,
            #maclogin-transition.maclogin-transition--active .maclogin-transition__rail-fill,
            #maclogin-transition.maclogin-transition--active .maclogin-transition__chip,
            #maclogin-transition.maclogin-transition--active .maclogin-transition__dots span,
            #maclogin-transition.maclogin-transition--active .maclogin-transition__glyph {
                animation: none !important;
            }
            #maclogin-transition.maclogin-transition--active .maclogin-transition__rail {
                transform: scaleX(1);
                opacity: 1;
            }
            #maclogin-transition.maclogin-transition--active .maclogin-transition__rail-fill {
                transform: translateX(180%);
            }
            #maclogin-transition.maclogin-transition--active .maclogin-transition__chip {
                opacity: 1;
                transform: translate(-50%, 0) scale(1);
            }
            #maclogin-transition.maclogin-transition--active .maclogin-transition__glyph {
                transform: none;
            }
        }

        /* 全站底栏 Toast：与 .auth-msg 同款（左图标 + 胶囊条） */
        #maclogin-toast.maclogin-toast {
            position: fixed;
            bottom: max(24px, env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            z-index: 4000;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            width: max-content;
            max-width: min(560px, calc(100vw - 28px));
            padding: 10px 18px 10px 10px;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.45;
            text-align: left;
            word-break: break-word;
            color: #991b1b;
            background: #ffffff;
            border: 1px solid #fca5a5;
            border-radius: 999px;
            box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1), 0 2px 10px rgba(220, 38, 38, 0.07);
            box-sizing: border-box;
        }
        #maclogin-toast.maclogin-toast::before {
            content: '!';
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 900;
            font-family: system-ui, 'Plus Jakarta Sans', sans-serif;
            line-height: 1;
            color: #fff;
            background: linear-gradient(145deg, #fb7185, #e11d48);
            box-shadow: 0 2px 10px rgba(220, 38, 38, 0.28);
        }
        #maclogin-toast.maclogin-toast .maclogin-toast__text {
            flex: 0 1 auto;
            min-width: 0;
        }
        @media (prefers-reduced-motion: no-preference) {
            #maclogin-toast.maclogin-toast:not([hidden]) {
                animation: toastPopIn 0.55s var(--ease-spring) forwards;
            }
            @keyframes toastPopIn {
                from {
                    opacity: 0;
                    transform: translateX(-50%) translateY(24px) rotate(-2deg);
                }
                to {
                    opacity: 1;
                    transform: translateX(-50%) translateY(0) rotate(0deg);
                }
            }
        }
        #maclogin-toast.maclogin-toast[hidden] { display: none !important; }
        #maclogin-toast.maclogin-toast--error {
            color: #991b1b;
            background: #ffffff;
            border-color: #fca5a5;
        }
        #maclogin-toast.maclogin-toast--ok {
            color: #14532d;
            background: #ffffff;
            border: 1px solid #86efac;
            box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08), 0 2px 10px rgba(22, 163, 74, 0.08);
        }
        #maclogin-toast.maclogin-toast--ok::before {
            content: '✓';
            font-size: 11px;
            font-weight: 900;
            background: linear-gradient(145deg, #4ade80, #16a34a);
            box-shadow: 0 2px 10px rgba(22, 163, 74, 0.28);
        }
