* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; } body { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); color: #333; line-height: 1.6; padding: 20px; min-height: 100vh; } .container { max-width: 1000px; margin: 0 auto; } header { text-align: center; margin-bottom: 30px; padding: 20px; } h1 { color: #2c3e50; font-size: 2.5rem; margin-bottom: 10px; position: relative; display: inline-block; } h1:after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: #e67e22; border-radius: 2px; } .employee-card { background: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); overflow: hidden; margin-bottom: 30px; } .profile-header { background: linear-gradient(to right, #3498db, #2c3e50); color: white; padding: 30px; display: flex; align-items: center; position: relative; } .avatar { width: 150px; height: 150px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, 0.3); background-color: #ecf0f1; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-right: 30px; flex-shrink: 0; } .avatar i { font-size: 70px; color: #7f8c8d; } .basic-info h2 { font-size: 2rem; margin-bottom: 5px; } .position { font-size: 1.2rem; opacity: 0.9; margin-bottom: 15px; } .contact-info { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 10px; } .contact-item { display: flex; align-items: center; font-size: 0.95rem; } .contact-item i { margin-right: 8px; color: #f1c40f; } .profile-content { padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; } @media (max-width: 768px) { .profile-content { grid-template-columns: 1fr; } .profile-header { flex-direction: column; text-align: center; } .avatar { margin-right: 0; margin-bottom: 20px; } } .section { margin-bottom: 25px; } .section-title { font-size: 1.4rem; color: #2c3e50; border-bottom: 2px solid #e67e22; padding-bottom: 8px; margin-bottom: 15px; display: flex; align-items: center; } .section-title i { margin-right: 10px; color: #e67e22; } .info-grid { display: grid; grid-template-columns: 100px 1fr; gap: 12px; } .info-label { font-weight: 600; color: #7f8c8d; } .skills-container { display: grid; gap: 12px; } .skill-item { display: flex; align-items: center; } .skill-name { width: 120px; font-weight: 500; } .skill-bar { flex-grow: 1; height: 10px; background: #ecf0f1; border-radius: 5px; overflow: hidden; } .skill-level { height: 100%; background: #3498db; border-radius: 5px; } .project-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; } .project-item:last-child { border-bottom: none; } .project-title { font-weight: 600; color: #2c3e50; margin-bottom: 5px; } .project-period { color: #7f8c8d; font-size: 0.9rem; margin-bottom: 8px; } .project-description { font-size: 0.95rem; } .badge { display: inline-block; background: #e74c3c; color: white; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; margin-left: 8px; } footer { text-align: center; padding: 20px; color: #7f8c8d; font-size: 0.9rem; } /* 无数据提示样式 */ .no-data { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px 20px; margin: 40px auto; max-width: 600px; border: 1px solid #f5c6cb; border-radius: 12px; background: #fff8f8; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); color: #721c24; } .no-data i { font-size: 56px; color: #e74c3c; margin-bottom: 16px; } .no-data h2 { margin: 0; font-size: 22px; font-weight: bold; color: #c0392b; } .no-data p { margin-top: 10px; font-size: 15px; color: #a94442; }