/* 基础样式 */ body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; min-height: 100vh; transition: background-color 0.3s, color 0.3s; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } /* 语言和主题切换 */ .language-switch, .theme-switch { text-align: right; margin: 10px 0; } .language-switch a, .theme-switch a { text-decoration: none; margin-left: 10px; } /* 登录和注册表单 */ .auth-container { display: flex; justify-content: center; align-items: center; min-height: 80vh; } .auth-form { width: 100%; max-width: 400px; padding: 25px; border-radius: 10px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); } .auth-form h2 { margin-bottom: 20px; text-align: center; } .error { color: #dc3545; font-size: 0.875rem; display: block; margin-top: 5px; } /* 仪表盘 */ .dashboard-container { padding: 20px 0; } .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #eee; } .user-info { display: flex; align-items: center; gap: 15px; } .services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; } .service-card { background-color: #fff; border-radius: 8px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.05); padding: 20px; transition: transform 0.3s, box-shadow 0.3s; } .service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); } .service-card h3 { margin-top: 0; margin-bottom: 10px; } .service-card p { margin-bottom: 15px; color: #666; } /* 响应式设计 */ @media (max-width: 768px) { .dashboard-header { flex-direction: column; align-items: flex-start; gap: 15px; } .services-grid { grid-template-columns: 1fr; } .auth-form { padding: 20px; } } /* 通用样式 */ .btn { cursor: pointer; } .flashes { margin-bottom: 20px; } /* 消息提示 */ .alert { margin-bottom: 15px; padding: 12px 20px; border-radius: 4px; } /* 表单元素 */ .form-control:focus { box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); border-color: #86b7fe; } /* 主页卡片特效 */ .service-card .btn { width: 100%; margin-top: auto; } .service-card { display: flex; flex-direction: column; height: 100%; min-height: 200px; }