@tailwind base; @tailwind components; @tailwind utilities; /* 全站浅色单主题(2026-08-15 用户裁定):深色媒体查询已移除,dark: 变体已停用(tailwind darkMode:'class' 且不挂 .dark) */ :root { --foreground-rgb: 0, 0, 0; --background-start-rgb: 250, 250, 250; --background-end-rgb: 255, 255, 255; } body { color: rgb(var(--foreground-rgb)); background: linear-gradient( to bottom, transparent, rgb(var(--background-end-rgb)) ) rgb(var(--background-start-rgb)); } /* Apple-style button */ .btn-apple { @apply px-6 py-2.5 rounded-apple font-medium transition-all duration-200 shadow-apple hover:shadow-apple-lg; } .btn-primary { @apply btn-apple bg-gray-900 dark:bg-gray-700 text-white hover:bg-gray-800 dark:hover:bg-gray-600 active:scale-95; } .btn-secondary { @apply btn-apple bg-gray-200 dark:bg-gray-700 text-gray-900 dark:text-gray-200 hover:bg-gray-300 dark:hover:bg-gray-600 active:scale-95; } .btn-danger { @apply btn-apple bg-red-600 dark:bg-red-700 text-white hover:bg-red-700 dark:hover:bg-red-600 active:scale-95; } /* Apple-style input */ .input-apple { @apply w-full px-4 py-3 rounded-apple border border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white focus:border-gray-900 dark:focus:border-gray-400 focus:ring-2 focus:ring-gray-200 dark:focus:ring-gray-600 outline-none transition-all; } /* Apple-style card */ .card-apple { @apply bg-white dark:bg-gray-800 rounded-apple shadow-apple hover:shadow-apple-lg transition-all duration-300 border border-transparent dark:border-gray-700; } /* 考核调研管理端:为所有原生交互控件提供一致、清晰的键盘焦点。 */ .performance-admin-config :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid #0050cb; outline-offset: 2px; } .performance-admin-config :is(button, input, select, textarea):disabled { cursor: not-allowed; } /* 淡入动画 */ @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .animate-fade-in { animation: fadeIn 0.3s ease-out; }