/* 基础样式 */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 0;
}

.personal-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* 头部样式 */
.profile-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #ff9900, #ff6600);
  border-radius: 10px;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.avatar-container img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.avatar-container img:hover {
  transform: scale(1.1);
}

.avatar-container h1 {
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: bold;
}

/* 信息卡片样式 */
.profile-details {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.info-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.info-card h2 {
  color: #ff9900;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.info-item {
  margin: 1rem 0;
  display: flex;
  align-items: center;
}

.info-item label {
  font-weight: bold;
  min-width: 100px;
  color: #666;
  margin-right: 1rem;
}

.info-item p {
  margin: 0;
  color: #444;
}

/* 安全信息卡片 */
.security-info {
  background: #fff8f0;
  border: 1px solid #ffe0b3;
}

/* 操作按钮样式 */
.profile-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.profile-actions button {
  background: #ff9900;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.profile-actions button:hover {
  background: #ff6600;
  transform: translateY(-2px);
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 2rem;
  margin: 10px auto;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
  color: #ff9900;
  font-size: 1.5rem;
}

.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.modal-content .close:hover {
  color: #333;
}

/* 表单样式 */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-weight: bold;
  color: #666;
}

form input,
form textarea,
form select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #ff9900;
  outline: none;
}

form button {
  background: #ff9900;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #ff6600;
}

/* 文件上传样式 */
#avatarFile {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}