:root {
    --dark-bg: #0a0f1a;
    --dark-card: #111827;
    --dark-elevated: #1f2937;
    --neon-cyan: #00f5ff;
    --neon-purple: #a855f7;
    --neon-green: #22c55e;
    --neon-red: #ef4444;
    --neon-amber: #f59e0b;
}

body {
    background: var(--dark-bg);
    color: #e2e8f0;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* ============ 通用组件 ============ */
.glass {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 245, 255, 0.1);
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: inherit;
    z-index: -1;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============ 状态颜色 ============ */
.status-online {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.text-neon-green { color: var(--neon-green); }
.text-neon-red { color: var(--neon-red); }
.text-neon-cyan { color: var(--neon-cyan); }
.text-neon-purple { color: var(--neon-purple); }
.text-neon-amber { color: var(--neon-amber); }

.bg-neon-green { background-color: var(--neon-green); }
.bg-neon-red { background-color: var(--neon-red); }
.bg-neon-cyan { background-color: var(--neon-cyan); }
.bg-neon-purple { background-color: var(--neon-purple); }
.bg-neon-amber { background-color: var(--neon-amber); }
.bg-slate-600 { background-color: #64748b; }

.bg-dark-elevated { background-color: var(--dark-elevated); }
.bg-dark-card { background-color: var(--dark-card); }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-700 { background-color: #334155; }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.border-green-500\/30 { border-color: rgba(34, 197, 94, 0.3); }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.hover\:bg-green-500\/30:hover { background-color: rgba(34, 197, 94, 0.3); }
.hover\:bg-dark-elevated\/80:hover { background-color: rgba(31, 41, 55, 0.8); }
.hover\:bg-red-500\/20:hover { background-color: rgba(239, 68, 68, 0.2); }
.focus\:border-neon-cyan:focus { border-color: var(--neon-cyan); }
.focus\:outline-none:focus { outline: none; }
.transition-colors { transition: background-color 0.2s, border-color 0.2s, color 0.2s; }

/* ============ 布局 ============ */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-7xl { max-width: 80rem; }

/* ============ 定位 ============ */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.overflow-y-auto { overflow-y: auto; }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.max-w-md { max-width: 28rem; }

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-12 { padding: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-4 { padding-right: 1rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ============ 网格 ============ */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:block { display: block; }
    .sm\:text-left { text-align: left; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ============ 响应式宽度 ============ */
.modal-responsive {
    width: 95vw;
    max-width: 95vw;
}
@media (min-width: 640px) {
    .modal-responsive {
        width: 90vw;
        max-width: 90vw;
    }
}
@media (min-width: 1024px) {
    .modal-responsive {
        width: 85vw;
        max-width: 85vw;
    }
}
@media (min-width: 1280px) {
    .modal-responsive {
        width: 80vw;
        max-width: 1400px;
    }
}

/* ============ 响应式高度 ============ */
.modal-h-responsive {
    height: 85vh;
}
@media (min-width: 640px) {
    .modal-h-responsive {
        height: 90vh;
    }
}

/* ============ 圆角与边框 ============ */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-cyan-400 { border-color: var(--neon-cyan); }
.border-slate-600 { border-color: #475569; }

/* ============ 文字 ============ */
.text-white { color: #fff; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.placeholder-slate-400::placeholder { color: #94a3b8; }

/* ============ 按钮 ============ */
button {
    cursor: pointer;
    border: none;
    outline: none;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--dark-elevated);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #374151;
}

.btn-danger {
    background-color: var(--neon-red);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* ============ 输入框 ============ */
input {
    width: 100%;
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    transition: border-color 0.2s, outline 0.2s;
}

input:focus {
    border-color: var(--neon-cyan);
    outline: none;
}

input:disabled {
    cursor: not-allowed;
    color: #64748b;
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    transition: border-color 0.2s, outline 0.2s;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
    border-color: var(--neon-cyan);
    outline: none;
}

label {
    display: block;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

/* ============ 开关 ============ */
.toggle-switch {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-sizing: border-box;
    flex-shrink: 0;
}

.toggle-switch.on { background-color: var(--neon-cyan); }
.toggle-switch.off { background-color: #64748b; }

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background-color: #fff;
    border-radius: 50%;
    transition: right 0.2s;
}

.toggle-switch.on::after { right: 0.25rem; }
.toggle-switch.off::after { left: 0.25rem; }

/* ============ Toast ============ */
.toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 500;
    z-index: 50;
    animation: fadeIn 0.3s ease-out;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.toast-success { background-color: var(--neon-green); }
.toast-error { background-color: var(--neon-red); }
.toast-info { background-color: var(--neon-cyan); }
.toast-warning { background-color: var(--neon-amber); }

/* ============ 模态框 ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    position: relative;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 90%;
    max-width: 24rem;
    animation: fadeIn 0.3s ease-out;
}

/* ============ 侧边抽屉 ============ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 28rem;
    height: 100%;
    background-color: var(--dark-card);
    overflow-y: auto;
    padding: 1.5rem;
    z-index: 50;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* ============ 页面容器 ============ */
.page-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

/* ============ 卡片 ============ */
.card {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 245, 255, 0.1);
}

/* ============ 图标容器 ============ */
.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box-cyan { background-color: rgba(0, 245, 255, 0.2); color: var(--neon-cyan); }
.icon-box-purple { background-color: rgba(168, 85, 247, 0.2); color: var(--neon-purple); }
.icon-box-green { background-color: rgba(34, 197, 94, 0.2); color: var(--neon-green); }
.icon-box-red { background-color: rgba(239, 68, 68, 0.2); color: var(--neon-red); }
.icon-box-amber { background-color: rgba(245, 158, 11, 0.2); color: var(--neon-amber); }

/* ============ 状态徽章 ============ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-online {
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--neon-green);
}

.badge-offline {
    background-color: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.badge-lost {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--neon-red);
}

/* ============ 状态点 ============ */
.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.status-dot-online {
    background-color: #22c55e;
    animation: pulse 2s infinite;
}

.status-dot-offline { background-color: #94a3b8; }
.status-dot-lost { background-color: #ef4444; }

/* ============ 加载动画 ============ */
.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(0, 245, 255, 0.3);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ 头像/图标背景 ============ */
.avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
}

.avatar-small {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
}

/* ============ 空状态 ============ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state svg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.75rem;
    opacity: 0.5;
}

/* ============ 头部导航 ============ */
.header {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    color: #94a3b8;
    white-space: nowrap;
}

.nav-btn:hover {
    color: #fff;
    background-color: var(--dark-elevated);
}

.nav-btn.active {
    color: var(--neon-cyan);
    background-color: rgba(0, 245, 255, 0.15);
    border-bottom: 2px solid var(--neon-cyan);
}

.nav-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* ============ 响应式 ============ */
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }

@media (max-width: 767px) {
    .md\:flex { display: none; }
    .md\:block { display: none; }
    .hidden\.sm\:block { display: none; }
}

@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:text-left { text-align: left; }
    .hidden\.sm\:block { display: block; }
}

/* ============ 滚动条 ============ */
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ============ 头像/图标 ============ */
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { height: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-4 { width: 1rem; height: 1rem; }

.rounded-2xl { border-radius: 1rem; }

/* ============ 登录页特定 ============ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0a0f1a 0%, #1a1f3a 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

/* 背景光晕效果 */
.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 245, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, -2%) rotate(1deg); }
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.login-logo {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.4),
                0 0 80px rgba(168, 85, 247, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 40px rgba(6, 182, 212, 0.4), 0 0 80px rgba(168, 85, 247, 0.2); }
    to { box-shadow: 0 0 60px rgba(6, 182, 212, 0.6), 0 0 100px rgba(168, 85, 247, 0.3); }
}

.login-logo svg {
    width: 2.25rem;
    height: 2.25rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00f5ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    padding-left: 0.25rem;
}

.input-wrapper {
    position: relative;
}

.input-with-icon {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.75rem;
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.25s;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 1.25rem 1.25rem;
}

.icon-user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

.icon-lock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

.input-with-icon:focus {
    outline: none;
    border-color: #00f5ff;
    background-color: rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.15);
}

.input-with-icon:focus.icon-user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300f5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

.input-with-icon:focus.icon-lock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300f5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

.input-with-icon:focus {
    outline: none;
    border-color: #00f5ff;
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.15),
                0 0 20px rgba(0, 245, 255, 0.1);
}

.input-with-icon:focus + .input-icon,
.input-with-icon:focus ~ .input-icon {
    color: #00f5ff;
}

.input-with-icon::placeholder {
    color: #64748b;
}

.btn-login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6, #a855f7);
    background-size: 200% 200%;
    border: none;
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.4),
                0 0 60px rgba(168, 85, 247, 0.3);
    background-position: right center;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.8rem;
}

/* ============ 列表项 ============ */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--dark-elevated);
    border-radius: 0.75rem;
    transition: background-color 0.2s;
}

.list-item:hover {
    background-color: #374151;
}

/* ============ 网格布局 ============ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .grid-2, .grid-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* ============ Flex 2 cols ============ */
.flex-col { flex-direction: column; }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
}

/* ============ 描述文字 ============ */
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }

/* ============ 间距调整 ============ */
.gap-4 { gap: 1rem; }
.gap-3 { gap: 0.75rem; }

/* ============ 下划线链接 ============ */
.link {
    color: var(--neon-cyan);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.link:hover {
    color: #22d3ee;
}
