        :root {
            --bg-primary: #0a0f0d;
            --bg-card: rgba(20, 35, 25, 0.85);
            --accent: #02ff8e;
            --accent-dark: #00cc6a;
            --text-primary: rgba(255, 255, 255, 0.9);
            --text-secondary: rgba(255, 255, 255, 0.6);
            --text-muted: rgba(255, 255, 255, 0.4);
            --border: rgba(2, 255, 142, 0.15);
            --border-focus: rgba(2, 255, 142, 0.35);
            --error: #ff6b6b;
            --error-bg: rgba(255, 82, 82, 0.12);
            --success: #02ff8e;
            --success-bg: rgba(2, 255, 142, 0.12);
            --shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
            
            --space-xs: clamp(0.25rem, 0.8vw, 0.5rem);
            --space-sm: clamp(0.5rem, 1.5vw, 0.75rem);
            --space-md: clamp(0.75rem, 2vw, 1rem);
            --space-lg: clamp(1rem, 3vw, 1.5rem);
            --space-xl: clamp(1.5rem, 4vw, 2rem);
            
            --font-xs: clamp(0.7rem, 2vw, 0.8rem);
            --font-sm: clamp(0.8rem, 2.2vw, 0.9rem);
            --font-base: clamp(0.9rem, 2.5vw, 1rem);
            --font-lg: clamp(1.1rem, 3vw, 1.25rem);
            
            --radius: 6px;
            --input-height: clamp(44px, 8vw, 52px);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* 钉钉进步体字体 */
        @font-face {
            font-family: 'DingTalk JinBuTi';
            src: url('/fonts/DingTalk JinBuTi.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
            font-family: 'DingTalk JinBuTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            -webkit-font-smoothing: antialiased;
        }

        /* 背景层 */
        .bg-layer {
            position: fixed;
            inset: 0;
            z-index: 0;
            background: var(--bg-primary) center/cover;
            opacity: 0;
            transition: opacity 0.8s ease;
        }
        .bg-layer.loaded {
            opacity: 1;
        }
        .bg-layer::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(10, 20, 15, 0.75);
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
        }

        .page {
            position: relative;
            z-index: 1;
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: var(--space-lg);
            overflow-y: auto;
        }

        .card {
            width: 100%;
            max-width: 420px;
            background: var(--bg-card);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: var(--space-xl);
            box-shadow: var(--shadow);
            animation: cardIn 0.5s ease-out;
        }

        @keyframes cardIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .logo {
            text-align: center;
            margin-bottom: var(--space-lg);
        }
        .logo img {
            height: clamp(36px, 10vw, 52px);
            width: auto;
            display: inline-block;
        }

        /* 消息提示 */
        .msg {
            padding: var(--space-sm) var(--space-md);
            border-radius: var(--radius);
            margin-bottom: var(--space-md);
            font-size: var(--font-sm);
            text-align: center;
            display: none;
            animation: shake 0.4s ease-in-out;
        }
        .msg.error {
            display: block;
            background: var(--error-bg);
            color: var(--error);
            border: 1px solid rgba(255, 82, 82, 0.2);
        }
        .msg.success {
            display: block;
            background: var(--success-bg);
            color: var(--success);
            border: 1px solid rgba(2, 255, 142, 0.2);
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-4px); }
            75% { transform: translateX(4px); }
        }

        /* 表单 */
        .form-group {
            margin-bottom: var(--space-md);
        }
        .input-wrap.floating {
            border: 1px solid var(--border);
            background: rgba(0, 0, 0, 0.35);
            border-radius: var(--radius);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .input-wrap.floating:focus-within {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(2, 255, 142, 0.12);
        }
        .input-wrap.floating input {
            background: transparent;
            border: none;
        }
        .input-wrap.floating input:focus {
            outline: none;
            box-shadow: none;
            border-color: transparent;
        }
        .input-wrap.floating label {
            position: absolute;
            left: calc(var(--space-md) * 2 + 1.2rem);
            top: 50%;
            transform: translateY(-50%);
            font-size: var(--font-base);
            color: var(--text-secondary);
            pointer-events: none;
            padding: 0 4px;
            background: transparent;
            transition: top 0.18s ease, transform 0.18s ease, font-size 0.18s ease, color 0.18s ease, background 0.18s ease;
        }
        .input-wrap.floating input:focus ~ label,
        .input-wrap.floating input:not(:placeholder-shown) ~ label {
            top: 0;
            transform: translateY(-50%);
            font-size: var(--font-xs);
            color: var(--accent);
            background: var(--bg-card);
        }

        .input-wrap {
            position: relative;
        }
        .input-wrap i {
            position: absolute;
            left: var(--space-md);
            top: 50%;
            transform: translateY(-50%);
            color: rgba(2, 255, 142, 0.55);
            font-size: var(--font-base);
            pointer-events: none;
            transition: color 0.2s;
        }
        .input-wrap:focus-within i {
            color: var(--accent);
        }

        input {
            width: 100%;
            height: var(--input-height);
            padding: 0 var(--space-md) 0 calc(var(--space-md) * 2 + 1.2rem);
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            color: #fff;
            font-size: var(--font-base);
            transition: border-color 0.2s, box-shadow 0.2s;
            -webkit-appearance: none;
            appearance: none;
        }
        input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(2, 255, 142, 0.12);
        }
        input::placeholder {
            color: rgba(255, 255, 255, 0.3);
        }

        /* 按钮 */
        .btn {
            width: 100%;
            height: var(--input-height);
            border: none;
            border-radius: var(--radius);
            font-size: var(--font-base);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-sm);
            -webkit-tap-highlight-color: transparent;
        }
        .btn-primary {
            background: linear-gradient(135deg, var(--accent), var(--accent-dark));
            color: #001a0d;
            margin-top: var(--space-xs);
        }
        .btn-primary:hover:not(:disabled) {
            box-shadow: 0 4px 24px rgba(2, 255, 142, 0.35);
            transform: translateY(-1px);
        }
        .btn-primary:active:not(:disabled) {
            transform: translateY(0);
            box-shadow: 0 2px 12px rgba(2, 255, 142, 0.25);
        }
        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            filter: grayscale(0.3);
        }

        /* 链接 */
        .link-row {
            text-align: center;
            margin-top: var(--space-lg);
            color: var(--text-secondary);
            font-size: var(--font-sm);
        }
        .link-row a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 500;
            transition: opacity 0.2s;
        }
        .link-row a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

        /* 找回密码弹窗 */
        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 50;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.65);
            padding: var(--space-lg);
        }
        .modal-overlay .card { max-width: 360px; }
        .modal-overlay h3 {
            color: var(--text-primary);
            font-size: var(--font-lg);
            margin-bottom: var(--space-sm);
        }
        .modal-overlay p.tip {
            font-size: var(--font-sm);
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: var(--space-md);
        }
        .btn-ghost {
            width: 100%;
            height: var(--input-height);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: transparent;
            color: var(--text-secondary);
            font-size: var(--font-base);
            cursor: pointer;
            margin-top: var(--space-xs);
            transition: all 0.2s ease;
        }
        .btn-ghost:hover { color: var(--text-primary); border-color: var(--border-focus); }

        .legal-notice {
            text-align: center;
            margin-top: var(--space-md);
            font-size: var(--font-xs);
            color: var(--text-muted);
            line-height: 1.6;
        }
        .legal-notice a {
            color: rgba(2, 255, 142, 0.7);
            text-decoration: none;
            transition: color 0.2s;
        }
        .legal-notice a:hover {
            color: var(--accent);
            text-decoration: underline;
        }

        @media (max-width: 480px) {
            .page {
                padding: var(--space-sm);
                align-items: flex-start;
                padding-top: 10vh;
            }
            .card {
                padding: var(--space-lg);
            }
        }

        @media (max-height: 500px) and (orientation: landscape) {
            .page {
                align-items: flex-start;
                padding-top: var(--space-md);
            }
        }

        /* 滚动条美化 */
        ::-webkit-scrollbar {
            width: 6px;
        }
        ::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.03);
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(2, 255, 142, 0.2);
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(2, 255, 142, 0.4);
        }
        * {
            scrollbar-width: thin;
            scrollbar-color: rgba(2, 255, 142, 0.2) rgba(255,255,255,0.03);
        }
        /* ===== 图标微动效 ===== */
        i.fas, i.far, i.fab {
            transition: color 0.15s ease, transform 0.15s ease;
        }
        i.fas:not(.fa-spin):hover,
        i.far:not(.fa-spin):hover,
        i.fab:not(.fa-spin):hover {
            transform: scale(1.08);
        }
