
        .header {
            background: var(--gradient-water);
            color: #ffffff;
            padding: 16px 32px;
            padding-top: calc(16px + env(safe-area-inset-top, 0px));
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 10;
            overflow: hidden;
            border-bottom: 3px solid transparent;
            border-image: var(--gradient-gold) 1;
        }

        .reminder-bar {
            background: linear-gradient(90deg, #fff9e6, #fff3cd, #fff9e6);
            color: #7a5c00;
            padding: 12px 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            font-size: 14px;
            font-weight: 500;
            border-bottom: 1px solid #ffc107;
            position: relative;
            box-shadow: 0 2px 8px rgba(255, 179, 0, 0.2);
            animation: slideDown 0.3s ease;
        }

        .reminder-bar.reminder-danger {
            background: linear-gradient(90deg, #f8d7da, #fab1a0);
            color: #721c24;
            border-bottom-color: #dc3545;
        }

        .reminder-bar.reminder-success {
            background: linear-gradient(90deg, #d4edda, #a3e4a1);
            color: #155724;
            border-bottom-color: #28a745;
        }

        @keyframes slideDown {
            from { transform: translateY(-100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        @keyframes vibrate {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-2px); }
            40% { transform: translateX(2px); }
            60% { transform: translateX(-2px); }
            80% { transform: translateX(2px); }
        }

        #admin-reminder-text, #worker-reminder-text {
            text-align: center;
        }

        .reminder-close {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: inherit;
            opacity: 0.7;
            padding: 0 8px;
            line-height: 1;
            transition: opacity 0.2s;
        }

        .reminder-close:hover {
            opacity: 1;
        }

        .reminder-action-btn {
            background: #856404;
            color: white;
            border: none;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            margin-left: 10px;
            transition: all 0.2s;
        }

        .reminder-action-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .reminder-danger .reminder-action-btn {
            background: #721c24;
        }

        .reminder-success .reminder-action-btn {
            background: #155724;
        }

        .desktop-notification {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 12px 48px rgba(15, 76, 92, 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
            padding: 20px 24px;
            min-width: 320px;
            max-width: 400px;
            z-index: 100000;
            animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            border-left: 4px solid var(--gold-primary);
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .desktop-notification.hide {
            animation: slideOutRight 0.3s ease forwards;
        }

        @keyframes slideInRight {
            from { transform: translateX(120%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        .attendance-alert-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.45);
            z-index: 200000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.2s ease;
            padding: 20px;
        }
        @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
        @keyframes popIn {
            from { transform: scale(0.85); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        .attendance-alert-box {
            background: #fff;
            border-radius: 20px;
            max-width: 420px;
            width: 100%;
            box-shadow: 0 24px 64px rgba(0,0,0,0.25);
            animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
            overflow: hidden;
        }
        .attendance-alert-header {
            background: linear-gradient(135deg, #e67e22, #f5b041);
            padding: 22px 24px 18px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .attendance-alert-icon {
            width: 48px;
            height: 48px;
            background: rgba(255,255,255,0.2);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            flex-shrink: 0;
        }
        .attendance-alert-title {
            font-size: 18px;
            font-weight: 700;
            margin: 0;
        }
        .attendance-alert-subtitle {
            font-size: 13px;
            opacity: 0.9;
            margin-top: 3px;
        }
        .attendance-alert-body {
            padding: 20px 24px;
            max-height: 50vh;
            overflow-y: auto;
        }
        .attendance-alert-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-radius: 12px;
            margin-bottom: 8px;
        }
        .attendance-alert-item:last-child { margin-bottom: 0; }
        .attendance-alert-item.missing-in {
            background: #fff3e0;
            border-left: 4px solid #e67e22;
        }
        .attendance-alert-item.missing-out {
            background: #fef0f0;
            border-left: 4px solid #e74c3c;
        }
        .attendance-alert-item-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }
        .missing-in .attendance-alert-item-icon { background: #ffe0b2; color: #e67e22; }
        .missing-out .attendance-alert-item-icon { background: #ffcdd2; color: #e74c3c; }
        .attendance-alert-item-info { flex:1; min-width:0; }
        .attendance-alert-item-site {
            font-weight: 700;
            font-size: 15px;
            color: #2c3e50;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .attendance-alert-item-desc {
            font-size: 13px;
            color: #7f8c8d;
        }
        .attendance-alert-footer {
            padding: 16px 24px 20px;
            display: flex;
            gap: 10px;
        }
        .attendance-alert-btn {
            flex: 1;
            padding: 12px;
            border-radius: 12px;
            border: none;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .attendance-alert-btn.primary {
            background: linear-gradient(135deg, #0f4c5c, #2a93a8);
            color: #fff;
            box-shadow: 0 4px 12px rgba(15,76,92,0.3);
        }
        .attendance-alert-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,76,92,0.4); }
        .attendance-alert-btn.primary:active { transform: translateY(0) scale(0.98); }
        .attendance-alert-btn.secondary {
            background: #f0f4f7;
            color: #546e7a;
        }
        .attendance-alert-btn.secondary:hover { background: #e4eaef; }

        @keyframes slideOutRight {
            to { transform: translateX(120%); opacity: 0; }
        }

        .desktop-notification-icon {
            font-size: 32px;
            flex-shrink: 0;
            animation: vibrate 0.3s ease-in-out infinite;
        }

        .desktop-notification-content {
            flex: 1;
        }

        .desktop-notification-title {
            font-weight: 700;
            font-size: 15px;
            color: var(--water-dark);
            margin-bottom: 6px;
        }

        .desktop-notification-message {
            font-size: 13px;
            color: var(--ink-mid);
            line-height: 1.5;
        }

        .desktop-notification-close {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: var(--ink-light);
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .desktop-notification-close:hover {
            background: var(--glass-water);
            color: var(--water-dark);
        }

        .desktop-notification-action {
            margin-top: 12px;
            background: var(--gradient-water);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .desktop-notification-action:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 16px rgba(26, 107, 124, 0.4);
        }

        .header::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image:
                radial-gradient(circle at 12% 50%, rgba(201, 162, 39, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 88% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 100%, rgba(91, 192, 212, 0.15) 0%, transparent 60%);
            pointer-events: none;
        }

        .header::after {
            content: "";
            position: absolute;
            bottom: -3px;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(90deg,
                transparent 0%,
                var(--gold-dark) 15%,
                var(--gold-primary) 50%,
                var(--gold-dark) 85%,
                transparent 100%);
            box-shadow: 0 0 20px var(--shadow-gold);
            z-index: 1;
        }

        .header h1 {
            font-family: var(--font-display);
            font-size: 20px;
            font-weight: 700;
            letter-spacing: 2px;
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
        }

        .header h1::before {
            content: "";
            display: inline-block;
            width: 36px;
            height: 36px;
            background: url('/logo.png') no-repeat center / contain;
            border-radius: 10px;
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25)) brightness(1.1);
            animation: sealPulse 3s ease-in-out infinite;
        }

        @keyframes sealPulse {
            0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25)) brightness(1.1); }
            50% { transform: scale(1.05); filter: drop-shadow(0 6px 16px rgba(201, 162, 39, 0.4)) brightness(1.15); }
        }

        .header #current-time,
        .header #worker-current-time {
            position: relative;
            z-index: 1;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 18px;
            border-radius: 30px;
            border: 1px solid rgba(201, 162, 39, 0.4);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            letter-spacing: 1px;
            box-shadow:
                0 4px 16px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 0 20px rgba(201, 162, 39, 0.1);
            color: var(--gold-light);
        }

        .header-user {
            display: flex;
            align-items: center;
            gap: 14px;
            position: relative;
            z-index: 1;
        }

        .role-badge {
            padding: 6px 16px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1px;
            white-space: nowrap;
            text-transform: uppercase;
            position: relative;
            overflow: hidden;
        }

        .role-badge::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: badgeShine 3s ease-in-out infinite;
        }

        @keyframes badgeShine {
            0%, 100% { transform: translateX(-100%); }
            50% { transform: translateX(100%); }
        }

        .role-admin {
            background: var(--gradient-gold);
            color: #2a1f00;
            box-shadow: var(--shadow-gold-md), inset 0 1px 0 rgba(255, 255, 255, 0.35);
            border: 1px solid rgba(255, 255, 255, 0.25);
        }

        .role-worker {
            background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.35);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(10px);
        }

        .user-name {
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .btn-change-pwd {
            background: rgba(201, 162, 39, 0.15);
            color: #fff;
            border: 1px solid rgba(201, 162, 39, 0.4);
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-base);
            font-family: inherit;
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }

        .btn-change-pwd:hover {
            background: rgba(201, 162, 39, 0.35);
            border-color: var(--gold-primary);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(201, 162, 39, 0.2);
        }

        .btn-logout {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-base);
            font-family: inherit;
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }

        .btn-logout::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.3), transparent);
            transition: left 0.6s var(--ease-water);
        }

        .btn-logout:hover::before { left: 100%; }

        .btn-logout:hover {
            background: rgba(201, 162, 39, 0.25);
            border-color: var(--gold-primary);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(201, 162, 39, 0.2);
        }

        #login-page,
        #server-config-page {
            position: fixed;
            inset: 0;
            background: var(--gradient-water-deep);
            display: flex;
            /* flex-start + 卡片 margin:auto：空间够时居中，键盘遮挡/矮屏时可滚动，
               避免 align-items:center 导致溢出内容被裁切且无法滚动 */
            align-items: flex-start;
            justify-content: center;
            z-index: 3000;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 12px;
        }

        #login-page::before,
        #server-config-page::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image:
                radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(91, 192, 212, 0.12) 0%, transparent 55%),
                radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
            pointer-events: none;
        }

        #admin-app {
            position: relative;
            z-index: 1;
            min-height: 100vh;
            background: var(--paper-cool);
        }
        #worker-app {
            position: relative;
            z-index: 1;
            min-height: 100vh;
            background: var(--paper-cool);
        }

        .login-wave {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 280px;
            overflow: hidden;
            pointer-events: none;
        }

        .login-wave::before,
        .login-wave::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: -25%;
            width: 150%;
            height: 100%;
            border-radius: 48% 52% 0 0;
            background: linear-gradient(180deg, rgba(42, 147, 168, 0.12), rgba(201, 162, 39, 0.06));
            animation: waterWave 10s ease-in-out infinite;
        }

        .login-wave::after {
            height: 65%;
            background: linear-gradient(180deg, rgba(91, 192, 212, 0.15), rgba(201, 162, 39, 0.08));
            animation: waterWave 7s ease-in-out infinite reverse;
            animation-delay: -3s;
        }

        @keyframes waterWave {
            0%, 100% { transform: translateX(0) translateY(0); border-radius: 48% 52% 0 0; }
            25% { transform: translateX(-3%) translateY(-12px); border-radius: 52% 48% 0 0; }
            50% { transform: translateX(0) translateY(-6px); border-radius: 45% 55% 0 0; }
            75% { transform: translateX(3%) translateY(-15px); border-radius: 55% 45% 0 0; }
        }

        .login-ripple {
            position: absolute;
            border-radius: 50%;
            border: 1px solid rgba(201, 162, 39, 0.2);
            animation: goldRipple 8s ease-out infinite;
            pointer-events: none;
        }

        @keyframes goldRipple {
            0% { width: 0; height: 0; opacity: 0.8; border-width: 2px; }
            100% { width: 800px; height: 800px; opacity: 0; border-width: 0; }
        }

        .login-card {
            position: relative;
            background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(250,247,240,0.98) 100%);
            backdrop-filter: blur(32px);
            -webkit-backdrop-filter: blur(32px);
            padding: 56px 48px 48px;
            border-radius: var(--radius-xl);
            box-shadow:
                var(--shadow-xl),
                0 0 0 1px rgba(255,255,255,0.8) inset,
                0 1px 0 rgba(255,255,255,0.9) inset,
                0 -1px 0 rgba(201, 162, 39, 0.15) inset;
            width: 460px;
            max-width: 92%;
            border: 1px solid rgba(201, 162, 39, 0.2);
            animation: cardFloat 0.8s var(--ease-bounce);
            z-index: 10;
            overflow: hidden;
            /* 配合 #login-page 的 flex-start：有空间时自动居中，溢出时贴顶可滚动 */
            margin: auto;
        }

        .login-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: var(--gradient-gold);
            z-index: 10;
            box-shadow: 0 0 30px var(--shadow-gold);
        }

        .login-card::after {
            content: "";
            position: absolute;
            top: 20px;
            right: -40px;
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        @keyframes cardFloat {
            from { opacity: 0; transform: translateY(50px) scale(0.92); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .login-icon {
            text-align: center;
            margin-bottom: 20px;
            position: relative;
        }

        .login-icon::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 140px;
            height: 140px;
            background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
            border-radius: 50%;
            animation: iconGlow 3s ease-in-out infinite;
            z-index: -1;
        }

        @keyframes iconGlow {
            0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
            50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
        }

        .login-icon img {
            width: 112px;
            height: 112px;
            object-fit: contain;
            border-radius: 24px;
            box-shadow: 0 16px 48px rgba(15, 76, 92, 0.3), 0 0 0 4px rgba(201, 162, 39, 0.2);
            animation: logoSway 4s ease-in-out infinite;
        }

        @keyframes logoSway {
            0%, 100% { transform: rotate(-2deg) translateY(0); }
            25% { transform: rotate(0deg) translateY(-4px); }
            50% { transform: rotate(2deg) translateY(0); }
            75% { transform: rotate(0deg) translateY(-4px); }
        }

        .login-card h2 {
            text-align: center;
            font-family: var(--font-display);
            color: var(--water-dark);
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 10px;
            letter-spacing: 3px;
            position: relative;
            padding-bottom: 16px;
        }

        .login-card h2::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--gradient-gold);
            border-radius: 3px;
            box-shadow: 0 2px 12px var(--shadow-gold);
        }

        .login-subtitle {
            text-align: center;
            color: var(--ink-mid);
            font-size: 14px;
            margin-bottom: 36px;
            margin-top: 16px;
            font-weight: 500;
            letter-spacing: 1px;
        }

        .login-card .form-group input {
            padding: 16px 20px;
            font-size: 16px;
            border-radius: var(--radius-sm);
            background: linear-gradient(145deg, #fff, var(--paper-cream));
            border: 2px solid rgba(201, 162, 39, 0.15);
            text-align: center;
            letter-spacing: 3px;
            font-weight: 600;
        }

        .login-card .form-group input:focus {
            border-color: var(--gold-primary);
            box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12), 0 8px 24px rgba(201, 162, 39, 0.1);
            background: #fff;
        }

        .login-card .btn-primary {
            width: 100%;
            padding: 16px;
            font-size: 16px;
            margin-top: 16px;
            letter-spacing: 8px;
            border-radius: var(--radius-sm);
        }

        #login-error {
            display: none;
            margin-top: 16px;
            text-align: center;
        }

        .login-form {
            margin-top: 24px;
        }

        .login-input-group {
            position: relative;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
        }

        .login-input-icon {
            position: absolute;
            left: 16px;
            font-size: 18px;
            z-index: 2;
            opacity: 0.7;
            pointer-events: none;
            -webkit-tap-highlight-color: transparent;
        }

        .login-input-group {
            cursor: text;
        }

        .login-input-group input {
            width: 100%;
            padding: 14px 16px 14px 48px !important;
            font-size: 16px !important;
            border-radius: 12px !important;
            background: linear-gradient(145deg, #fff, var(--paper-cream)) !important;
            border: 2px solid rgba(201, 162, 39, 0.15) !important;
            text-align: left !important;
            letter-spacing: 1px !important;
            font-weight: 500 !important;
            transition: all 0.3s ease;
            outline: none;
            -webkit-user-select: text;
            user-select: text;
            -webkit-touch-callout: default;
            touch-action: manipulation;
        }

        .login-input-group input:focus {
            border-color: var(--gold-primary) !important;
            box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12), 0 8px 24px rgba(201, 162, 39, 0.1) !important;
            background: #fff !important;
        }

        .login-toggle-pwd {
            position: absolute;
            right: 12px;
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s ease;
            z-index: 2;
        }

        .login-toggle-pwd:hover {
            background: rgba(201, 162, 39, 0.1);
        }

        .login-captcha-row {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
            align-items: stretch;
        }

        .login-captcha-row .captcha-input {
            flex: 1 1 auto;
            min-width: 0;
            margin-bottom: 0;
            height: 44px;
        }

        .login-captcha-row .captcha-input input {
            height: 44px;
            letter-spacing: 4px !important;
            padding: 0 12px 0 44px !important;
            font-size: 16px !important;
        }

        .login-captcha-img {
            flex: 0 0 auto;
            width: 110px;
            height: 44px;
            border-radius: 12px;
            border: 2px solid rgba(201, 162, 39, 0.2);
            cursor: pointer;
            overflow: hidden;
            transition: all 0.2s ease;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-captcha-img:hover {
            border-color: var(--gold-primary);
            box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
            transform: scale(1.02);
        }

        .login-captcha-img svg {
            width: 100%;
            height: 100%;
        }

        .login-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 0 4px;
        }

        .login-remember {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 14px;
            color: var(--text-muted);
            user-select: none;
        }

        .login-remember input {
            display: none;
        }

        .login-remember .checkmark {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(201, 162, 39, 0.4);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            background: #fff;
        }

        .login-remember input:checked + .checkmark {
            background: var(--gradient-gold);
            border-color: var(--gold-primary);
        }

        .login-remember input:checked + .checkmark::after {
            content: "✓";
            color: #fff;
            font-size: 12px;
            font-weight: bold;
        }

        .login-btn {
            width: 100%;
            padding: 15px !important;
            font-size: 16px !important;
            letter-spacing: 6px !important;
            border-radius: 12px !important;
            position: relative;
            overflow: hidden;
        }

        .login-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .login-type-tabs {
            display: flex;
            background: rgba(201, 162, 39, 0.08);
            border-radius: 10px;
            padding: 4px;
            margin-bottom: 20px;
            gap: 4px;
        }

        .login-type-tab {
            flex: 1;
            text-align: center;
            padding: 10px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-muted);
        }

        .login-type-tab.active {
            background: #fff;
            color: var(--gold-dark);
            box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
        }

        .login-send-sms {
            position: absolute;
            right: 8px;
            background: linear-gradient(135deg, var(--water-primary), var(--water-dark));
            color: #fff;
            border: none;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 2;
            white-space: nowrap;
        }

        .login-send-sms:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            background: #999;
        }

        .login-send-sms:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(42, 147, 168, 0.3);
        }

        .login-hint {
            margin-top: 12px;
            text-align: center;
            font-size: 13px;
            color: var(--text-muted);
        }

        #default-pwd-hint {
            display: inline-block;
            padding: 8px 16px;
            background: rgba(201, 162, 39, 0.1);
            border-radius: 8px;
            color: var(--gold-dark);
        }

        #change-password-modal {
            position: fixed;
            inset: 0;
            z-index: 5000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
        }

        .change-pwd-modal {
            position: relative;
            background: #fff;
            border-radius: 20px;
            padding: 32px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
            z-index: 1;
            animation: modalIn 0.3s ease;
        }

        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.9) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .change-pwd-tip {
            display: none;
        }

        /* 修改密码弹窗：标题和金色装饰线居中 */
        .change-pwd-modal h3 {
            text-align: center !important;
            padding: 0 0 16px 0 !important;
            margin: 0 0 28px 0 !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }
        .change-pwd-modal h3::after {
            left: 50% !important;
            right: auto !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            transform: translateX(-50%) !important;
            -webkit-transform: translateX(-50%) !important;
        }

        .change-pwd-modal .form-group {
            margin-bottom: 16px;
        }

        .change-pwd-modal .form-group label {
            display: block;
            margin-bottom: 6px;
            font-size: 14px;
            color: var(--ink-dark);
            font-weight: 500;
        }

        .change-pwd-modal .form-group input {
            width: 100%;
            padding: 12px 16px;
            font-size: 15px;
            border-radius: 10px;
            border: 2px solid rgba(201, 162, 39, 0.15);
            outline: none;
            transition: all 0.2s ease;
            box-sizing: border-box;
        }

        .change-pwd-modal .form-group input:focus {
            border-color: var(--gold-primary);
            box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
        }

        .change-pwd-actions {
            display: flex;
            gap: 12px;
            margin-top: 24px;
        }

        .change-pwd-actions .btn {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            font-size: 15px;
            cursor: pointer;
            border: none;
            font-weight: 500;
        }

        .btn-secondary {
            background: #f0f0f0;
            color: #666;
        }

        .btn-secondary:hover {
            background: #e5e5e5;
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 36px 28px 32px !important;
                width: 100% !important;
                max-width: none !important;
                margin: auto !important;
            }
            .login-icon img {
                width: 80px !important;
                height: 80px !important;
            }
            .login-card h2 {
                font-size: 18px !important;
                letter-spacing: 1px !important;
            }
        }

        .main-container {
            display: flex;
            height: calc(100vh - 73px);
        }

        .sidebar {
            width: 380px;
            background: linear-gradient(180deg, var(--surface-white) 0%, var(--paper-cream) 100%);
            border-right: 1px solid rgba(201, 162, 39, 0.15);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            box-shadow: 4px 0 32px rgba(15, 76, 92, 0.06);
            position: relative;
        }

        .sidebar::before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 1px;
            height: 100%;
            background: linear-gradient(180deg, transparent, var(--gold-primary) 30%, var(--gold-primary) 70%, transparent);
            opacity: 0.3;
        }

        .nav-tabs {
            display: flex;
            flex-wrap: wrap;
            background: linear-gradient(180deg, var(--paper-cream) 0%, var(--surface-white) 100%);
            border-bottom: 2px solid rgba(201, 162, 39, 0.1);
            padding: 12px 12px 0;
            gap: 6px;
            position: relative;
        }

        .nav-tab {
            padding: 12px 20px;
            cursor: pointer;
            border-bottom: none;
            transition: var(--transition-bounce);
            color: var(--ink-mid);
            font-size: 13px;
            font-weight: 600;
            border-radius: var(--radius-sm) var(--radius-sm) 0 0;
            position: relative;
            user-select: none;
            z-index: 1;
            letter-spacing: 0.5px;
            font-family: var(--font-display);
        }

        .nav-tab::after {
            content: "";
            position: absolute;
            bottom: -2px;
            left: 50%;
            height: 4px;
            width: 0;
            background: var(--gradient-gold);
            border-radius: 4px 4px 0 0;
            transform: translateX(-50%);
            transition: width 0.4s var(--ease-bounce);
            z-index: 3;
            box-shadow: 0 -2px 16px var(--shadow-gold);
        }

        .nav-tab::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: var(--radius-sm) var(--radius-sm) 0 0;
            background: linear-gradient(145deg, rgba(42, 147, 168, 0.08), rgba(201, 162, 39, 0.05));
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .nav-tab:hover {
            color: var(--water-primary);
        }

        .nav-tab:hover::before { opacity: 1; }

        .nav-tab.active {
            background: linear-gradient(145deg, rgba(42, 147, 168, 0.1), rgba(201, 162, 39, 0.06));
            color: var(--water-dark);
            font-weight: 700;
        }

        .nav-tab.active::before { opacity: 1; }

        .nav-tab.active::after {
            width: calc(100% - 24px);
        }

        .nav-tab-indicator { display: none !important; }

        .tab-content {
            padding: 24px;
            display: none;
            animation: tabFadeIn 0.5s var(--ease-smooth);
        }

        .tab-content.active { display: block; }

        @keyframes tabFadeIn {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }
