@tailwind base; @tailwind components; @tailwind utilities; :root { --primary-color: #232F3E; --secondary-color: #FF9900; --accent-color: #0D6EFD; --text-color: #333333; --light-gray: #F8F9FA; --white: #FFFFFF; } body { font-family: 'Roboto', sans-serif; color: var(--text-color); } @layer components { .container { @apply max-w-7xl mx-auto px-6 lg:px-8; } .section { @apply py-16; } .btn-primary { @apply inline-block bg-secondary text-white px-6 py-3 rounded hover:bg-opacity-90 transition-all duration-300 relative overflow-hidden; } .btn-secondary { @apply inline-block border border-white text-white px-6 py-3 rounded hover:bg-white/10 transition-all duration-300; } .card-hover { @apply transition-all duration-300 hover:-translate-y-1 hover:shadow-xl; } } /* 页面加载动画 */ .page-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.5s; } .loader-spinner { width: 50px; height: 50px; border: 4px solid #f3f3f3; border-top: 4px solid #FF9900; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 导航栏样式 */ .nav-scrolled { background-color: rgba(35, 47, 62, 0.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }