/* ========================================
   学生心理健康监测预警系统 - 全局样式
   完整 Tailwind 工具类 + 自定义组件
   ======================================== */

/* ---- CSS Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background-color: #F8FAFC;
    color: #0F172A;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ========================================
   配色系统（CSS 变量）
   ======================================== */
:root {
    --color-primary: #4F46E5;
    --color-primary-light: #6366F1;
    --color-primary-dark: #4338CA;
    --color-accent: #06B6D4;
    --color-danger: #EF4444;
    --color-danger-light: #FCA5A5;
    --color-warning: #F59E0B;
    --color-warning-light: #FCD34D;
    --color-attention: #8B5CF6;
    --color-success: #10B981;
    --color-success-light: #6EE7B7;
    --color-bg: #F8FAFC;
    --color-card: #FFFFFF;
    --color-text: #0F172A;
    --color-text-secondary: #64748B;
    --color-border: #E2E8F0;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ========================================
   Tailwind 工具类映射 - 布局
   ======================================== */

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Flex 方向 */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Flex 对齐 */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

/* Flex 缩放 */
.flex-1 { flex: 1 1 0%; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

/* Grid 列 */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Grid 跨列 */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }

/* ========================================
   间距
   ======================================== */

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

/* Padding X */
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

/* Padding Y */
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Padding sides */
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-2 { padding-left: 0.5rem; }
.pr-2 { padding-right: 0.5rem; }

/* Margin */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.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; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }

/* Space between children */
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ========================================
   尺寸
   ======================================== */

.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-48 { width: 12rem; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-2\/3 { width: 66.666667%; }
.w-full { width: 100%; }
.w-auto { width: auto; }

.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-auto { height: auto; }

.min-h-screen { min-height: 100vh; }
.min-w-\[80px\] { min-width: 80px; }
.max-h-\[600px\] { max-height: 600px; }
.max-h-\[400px\] { max-height: 400px; }
.max-h-full { max-height: 100%; }

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* ========================================
   背景色
   ======================================== */

.bg-transparent { background-color: transparent; }
.bg-white { background-color: #FFFFFF; }
.bg-black { background-color: #000000; }

.bg-gray-50 { background-color: #F9FAFB; }
.bg-gray-100 { background-color: #F3F4F6; }
.bg-gray-200 { background-color: #E5E7EB; }
.bg-gray-300 { background-color: #D1D5DB; }
.bg-gray-400 { background-color: #9CA3AF; }
.bg-gray-500 { background-color: #6B7280; }
.bg-gray-600 { background-color: #4B5563; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1F2937; }
.bg-gray-900 { background-color: #111827; }

.bg-red-50 { background-color: #FEF2F2; }
.bg-red-100 { background-color: #FEE2E2; }
.bg-red-200 { background-color: #FECACA; }
.bg-red-500 { background-color: #EF4444; }
.bg-red-600 { background-color: #DC2626; }
.bg-red-700 { background-color: #B91C1C; }

.bg-orange-50 { background-color: #FFF7ED; }
.bg-orange-100 { background-color: #FFEDD5; }
.bg-orange-200 { background-color: #FED7AA; }
.bg-orange-500 { background-color: #F97316; }
.bg-orange-600 { background-color: #EA580C; }
.bg-orange-700 { background-color: #C2410C; }

.bg-yellow-50 { background-color: #FEFCE8; }
.bg-yellow-100 { background-color: #FEF3C7; }
.bg-yellow-400 { background-color: #FACC15; }
.bg-yellow-500 { background-color: #EAB308; }
.bg-yellow-700 { background-color: #A16207; }

.bg-green-50 { background-color: #F0FDF4; }
.bg-green-100 { background-color: #DCFCE7; }
.bg-green-500 { background-color: #22C55E; }
.bg-green-600 { background-color: #16A34A; }
.bg-green-700 { background-color: #15803D; }

.bg-blue-50 { background-color: #EFF6FF; }
.bg-blue-100 { background-color: #DBEAFE; }
.bg-blue-200 { background-color: #BFDBFE; }
.bg-blue-500 { background-color: #3B82F6; }
.bg-blue-600 { background-color: #2563EB; }
.bg-blue-700 { background-color: #1D4ED8; }

.bg-purple-50 { background-color: #FAF5FF; }
.bg-purple-100 { background-color: #F3E8FF; }
.bg-purple-500 { background-color: #A855F7; }
.bg-purple-600 { background-color: #9333EA; }
.bg-purple-700 { background-color: #7E22CE; }

.bg-pink-50 { background-color: #FDF2F8; }
.bg-pink-100 { background-color: #FCE7F3; }
.bg-pink-700 { background-color: #BE185D; }

.bg-indigo-500 { background-color: #6366F1; }
.bg-indigo-600 { background-color: #4F46E5; }

/* 渐变背景 */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }

.from-blue-500 { --tw-gradient-from: #3B82F6; --tw-gradient-to: #3B82F600; }
.from-red-500 { --tw-gradient-from: #EF4444; --tw-gradient-to: #EF444400; }
.from-orange-500 { --tw-gradient-from: #F97316; --tw-gradient-to: #F9731600; }
.from-yellow-400 { --tw-gradient-from: #FACC15; --tw-gradient-to: #FACC1500; }
.from-purple-600 { --tw-gradient-from: #9333EA; --tw-gradient-to: #9333EA00; }
.from-indigo-500 { --tw-gradient-from: #6366F1; --tw-gradient-to: #6366F100; }
.from-indigo-600 { --tw-gradient-from: #4F46E5; --tw-gradient-to: #4F46E500; }

.to-blue-600 { --tw-gradient-to: #2563EB; }
.to-purple-600 { --tw-gradient-to: #9333EA; }
.to-red-600 { --tw-gradient-to: #DC2626; }
.to-orange-600 { --tw-gradient-to: #EA580C; }
.to-yellow-500 { --tw-gradient-to: #EAB308; }
.to-indigo-600 { --tw-gradient-to: #4F46E5; }
.to-pink-500 { --tw-gradient-to: #EC4899; }
.to-cyan-400 { --tw-gradient-to: #22D3EE; }

/* ========================================
   文字颜色
   ======================================== */

.text-white { color: #FFFFFF; }
.text-black { color: #000000; }

.text-gray-300 { color: #D1D5DB; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-gray-600 { color: #4B5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1F2937; }
.text-gray-900 { color: #111827; }

.text-red-500 { color: #EF4444; }
.text-red-600 { color: #DC2626; }
.text-red-700 { color: #B91C1C; }

.text-orange-500 { color: #F97316; }
.text-orange-600 { color: #EA580C; }
.text-orange-700 { color: #C2410C; }

.text-yellow-500 { color: #EAB308; }
.text-yellow-600 { color: #CA8A04; }
.text-yellow-700 { color: #A16207; }

.text-green-500 { color: #22C55E; }
.text-green-600 { color: #16A34A; }
.text-green-700 { color: #15803D; }

.text-blue-500 { color: #3B82F6; }
.text-blue-600 { color: #2563EB; }
.text-blue-700 { color: #1D4ED8; }

.text-purple-500 { color: #A855F7; }
.text-purple-600 { color: #9333EA; }
.text-purple-700 { color: #7E22CE; }

.text-pink-700 { color: #BE185D; }

.text-indigo-500 { color: #6366F1; }
.text-indigo-600 { color: #4F46E5; }

/* ========================================
   字号
   ======================================== */

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }

/* ========================================
   字重
   ======================================== */

.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; }

/* ========================================
   文字对齐 & 装饰
   ======================================== */

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.no-underline { text-decoration: none; }
.line-through { text-decoration: line-through; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   边框
   ======================================== */

.border { border-width: 1px; border-style: solid; border-color: #E5E7EB; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: #E5E7EB; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #E5E7EB; }
.border-l { border-left-width: 1px; border-left-style: solid; border-left-color: #E5E7EB; }
.border-r { border-right-width: 1px; border-right-style: solid; border-right-color: #E5E7EB; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-l-0 { border-left-width: 0; }

/* 边框颜色 */
.border-transparent { border-color: transparent; }
.border-gray-100 { border-color: #F3F4F6; }
.border-gray-200 { border-color: #E5E7EB; }
.border-gray-300 { border-color: #D1D5DB; }
.border-gray-400 { border-color: #9CA3AF; }
.border-gray-500 { border-color: #6B7280; }

.border-red-200 { border-color: #FECACA; }
.border-red-500 { border-color: #EF4444; }

.border-orange-200 { border-color: #FED7AA; }
.border-orange-500 { border-color: #F97316; }

.border-yellow-400 { border-color: #FACC15; }
.border-yellow-500 { border-color: #EAB308; }

.border-green-500 { border-color: #22C55E; }

.border-blue-200 { border-color: #BFDBFE; }
.border-blue-500 { border-color: #3B82F6; }

.border-purple-200 { border-color: #E9D5FF; }
.border-purple-500 { border-color: #A855F7; }

.border-pink-200 { border-color: #FBCFE8; }

/* 自定义边框颜色（模板中使用的语义化类名） */
.border-danger { border-color: #EF4444; }
.border-warning { border-color: #F59E0B; }
.border-success { border-color: #10B981; }

/* 背景透明度 */
.bg-opacity-20 { --tw-bg-opacity: 0.2; opacity: var(--tw-bg-opacity); }
.bg-opacity-80 { --tw-bg-opacity: 0.8; opacity: var(--tw-bg-opacity); }

/* 文字透明度 */
.text-opacity-80 { opacity: 0.8; }

/* ========================================
   圆角
   ======================================== */

.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* ========================================
   阴影
   ======================================== */

.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* ========================================
   定位
   ======================================== */

.static { position: static; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* ========================================
   溢出
   ======================================== */

.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

/* ========================================
   透明度 & 可见性
   ======================================== */

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }

/* ========================================
   过渡 & 动画
   ======================================== */

.transition { transition: all 0.2s ease; }
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.transition-shadow { transition: box-shadow 0.2s ease; }
.transition-transform { transition: transform 0.2s ease; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

.transform { transform: var(--tw-transform); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }

/* ========================================
   光标 & 交互
   ======================================== */

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* ========================================
   Divide（分隔线）
   ======================================== */

.divide-y > * + * { border-top-width: 1px; border-top-style: solid; }
.divide-y > * + * { border-top-color: #E5E7EB; }
.divide-gray-100 > * + * { border-top-color: #F3F4F6; }
.divide-gray-200 > * + * { border-top-color: #E5E7EB; }

/* ========================================
   Hover 状态
   ======================================== */

.hover\:bg-gray-50:hover { background-color: #F9FAFB; }
.hover\:bg-gray-100:hover { background-color: #F3F4F6; }
.hover\:bg-gray-200:hover { background-color: #E5E7EB; }
.hover\:bg-gray-300:hover { background-color: #D1D5DB; }

.hover\:bg-red-50:hover { background-color: #FEF2F2; }
.hover\:bg-red-100:hover { background-color: #FEE2E2; }
.hover\:bg-red-500:hover { background-color: #EF4444; }
.hover\:bg-red-600:hover { background-color: #DC2626; }

.hover\:bg-orange-100:hover { background-color: #FFEDD5; }

.hover\:bg-yellow-100:hover { background-color: #FEF3C7; }

.hover\:bg-green-50:hover { background-color: #F0FDF4; }
.hover\:bg-green-100:hover { background-color: #DCFCE7; }

.hover\:bg-blue-50:hover { background-color: #EFF6FF; }
.hover\:bg-blue-100:hover { background-color: #DBEAFE; }
.hover\:bg-blue-600:hover { background-color: #2563EB; }
.hover\:bg-blue-700:hover { background-color: #1D4ED8; }

.hover\:bg-purple-50:hover { background-color: #FAF5FF; }
.hover\:bg-purple-100:hover { background-color: #F3E8FF; }

.hover\:bg-pink-100:hover { background-color: #FCE7F3; }

.hover\:text-red-500:hover { color: #EF4444; }
.hover\:text-red-600:hover { color: #DC2626; }
.hover\:text-blue-500:hover { color: #3B82F6; }
.hover\:text-blue-600:hover { color: #2563EB; }
.hover\:text-blue-700:hover { color: #1D4ED8; }
.hover\:text-gray-500:hover { color: #6B7280; }
.hover\:text-gray-700:hover { color: #374151; }

.hover\:shadow-md:hover { box-shadow: var(--shadow-md); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }

.hover\:underline:hover { text-decoration: underline; }

/* ========================================
   Focus 状态
   ======================================== */

.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(0,0,0,0), 0 0 0 4px rgba(59, 130, 246, 0.5); }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 2px rgba(0,0,0,0), 0 0 0 4px rgba(59, 130, 246, 0.5); }
.focus\:border-transparent:focus { border-color: transparent; }
.focus\:outline-none:focus { outline: none; }

/* ========================================
   响应式 - md (768px)
   ======================================== */

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:space-x-4 > * + * { margin-left: 1rem; }
    .md\:text-base { font-size: 1rem; }
    .md\:text-lg { font-size: 1.125rem; }
}

@media (max-width: 767px) {
    .hidden\.md\:flex { display: none; }
}

/* ========================================
   响应式 - lg (1024px)
   ======================================== */

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
}

/* ========================================
   自定义组件样式
   ======================================== */

/* ---- 导航栏 ---- */
nav.main-nav {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #4F46E5 100%);
    background-size: 200% auto;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 3px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.01em;
}

.nav-brand-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    border: 2px solid rgba(255,255,255,0.3);
}

.nav-logout {
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-logout:hover {
    color: #FFFFFF;
    background-color: rgba(239, 68, 68, 0.6);
    border-color: rgba(239, 68, 68, 0.5);
}

/* 移动端菜单 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu .nav-link {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* ---- 页脚 ---- */
footer.main-footer {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    color: #94A3B8;
    margin-top: auto;
}

footer.main-footer a {
    color: #CBD5E1;
    transition: color 0.2s;
}

footer.main-footer a:hover {
    color: #FFFFFF;
}

/* ---- Alert 消息提示 ---- */
.alert {
    border: 1px solid transparent;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: alertSlideIn 0.3s ease;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-color: #86EFAC;
    color: #166534;
}

.alert-danger,
.alert-error {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-color: #FCA5A5;
    color: #991B1B;
}

.alert-warning {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-color: #FDE68A;
    color: #92400E;
}

.alert-info {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-color: #93C5FD;
    color: #1E40AF;
}

/* ---- 登录页面 ---- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 30%, #6366F1 60%, #06B6D4 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(6,182,212,0.1) 0%, transparent 50%);
    animation: loginBgMove 15s ease-in-out infinite alternate;
}

@keyframes loginBgMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-3%, -3%) rotate(2deg); }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25),
                0 0 0 1px rgba(255,255,255,0.1);
    width: 100%;
    max-width: 28rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.3);
}

.login-title {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
}

.login-title p {
    color: #64748B;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.login-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 16px -4px rgba(79,70,229,0.4);
}

/* ---- 表单 ---- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background-color: #FFFFFF;
    color: #0F172A;
}

.form-control:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
    color: #9CA3AF;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ---- 按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.375rem;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    color: white;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338CA, #4F46E5);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10B981);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #B91C1C, #DC2626);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #B45309, #D97706);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: #D1D5DB;
    color: #4B5563;
}

.btn-outline:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
}

.btn-ghost {
    background: transparent;
    color: #64748B;
}

.btn-ghost:hover {
    background-color: #F1F5F9;
    color: #334155;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ---- 仪表盘统计卡片 ---- */
.stat-card {
    background: #FFFFFF;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stat-accent, #4F46E5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748B;
    margin-top: 0.5rem;
}

/* ---- 表格 ---- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table thead {
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
}

.data-table th,
.data-table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-size: 0.875rem;
    border-bottom: 1px solid #E2E8F0;
}

.data-table th {
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.75rem;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
    background-color: #F8FAFC;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---- 风险等级标签 ---- */
.risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.risk-badge-normal {
    background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
    color: #166534;
}

.risk-badge-low {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
}

.risk-badge-medium {
    background: linear-gradient(135deg, #FFEDD5, #FED7AA);
    color: #9A3412;
}

.risk-badge-high {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #991B1B;
}

/* ---- 卡片 ---- */
.card {
    background: #FFFFFF;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ---- 分页 ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #475569;
}

.pagination a:hover {
    background-color: #F1F5F9;
    border-color: #CBD5E1;
}

.pagination .current {
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

/* ---- 搜索框 ---- */
.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-box input {
    flex: 1;
    max-width: 20rem;
}

/* ---- 筛选标签 ---- */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #475569;
}

.filter-tab:hover {
    background-color: #F1F5F9;
    border-color: #CBD5E1;
}

.filter-tab.active {
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

/* ---- 空状态 ---- */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748B;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ---- 详情页面 ---- */
.detail-section {
    margin-bottom: 2rem;
}

.detail-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0F172A;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: #F8FAFC;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
}

.detail-item-label {
    font-size: 0.75rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
}

/* ---- 时间线 ---- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #4F46E5, #C7D2FE);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #4F46E5;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 2px #4F46E5;
}

.timeline-time {
    font-size: 0.75rem;
    color: #64748B;
    margin-bottom: 0.25rem;
}

.timeline-content {
    font-size: 0.875rem;
}

/* ---- 图表容器 ---- */
.chart-container {
    background: #FFFFFF;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0F172A;
}

/* ---- 状态指示器 ---- */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot-online { background-color: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.status-dot-offline { background-color: #9CA3AF; }
.status-dot-maintenance { background-color: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }

/* ---- 进度条 ---- */
.progress-bar {
    height: 0.5rem;
    background-color: #E2E8F0;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* ---- 标签/徽章 ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ---- 设备类型图标映射 ---- */
.device-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ---- 页面标题区域 ---- */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
}

.page-header p {
    color: #64748B;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ---- 情绪记录条形图 ---- */
.emotion-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emotion-bar-track {
    flex: 1;
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
}

.emotion-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 767px) {
    .hidden.md\:flex {
        display: none;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }

    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input {
        max-width: 100%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .grid-cols-2 { grid-template-columns: 1fr; }
    .grid-cols-3 { grid-template-columns: 1fr; }
    .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .page-header h1 {
        font-size: 1.25rem;
    }
}

/* ========================================
   打印样式
   ======================================== */

@media print {
    nav, footer, .btn {
        display: none !important;
    }

    .card, .stat-card {
        box-shadow: none;
        border: 1px solid #E2E8F0;
    }

    body {
        background: #FFFFFF;
    }
}

/* ========================================
   滚动条美化
   ======================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #94A3B8;
}

/* ========================================
   选择高亮
   ======================================== */

::selection {
    background-color: rgba(79, 70, 229, 0.2);
    color: #0F172A;
}
