/* ===== 用户卡片样式 ===== */
.auth-card-container {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    perspective: 1000px;
}

.auth-card {
    background: var(--section-bg);
    border-radius: var(--radius-lg);
    padding: 0;
    border: 1px solid rgba(74, 0, 255, 0.1);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.user-card:hover, .guest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 0, 255, 0.15);
}

.card-content {
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ===== 未登录 ===== */
.guest-card {
    text-align: center;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.guest-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 0;
    box-shadow: 0 4px 12px var(--primary-shadow);
    object-fit: cover;
    transition: transform 0.3s ease;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.guest-avatar:hover {
    transform: scale(1.05);
}

.guest-avatar svg {
    margin: 0;
    padding: 0;
    width: 74px;
    height: 74px;
    fill: var(--primary-color);
}

.card-subtitle {
    font-size: 0.9375rem;
    color: var(--light-text);
    line-height: 1.5;
    max-width: 100%;
    margin: 0 auto;
}

.login-btn {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin: .75rem auto 0;
}

.login-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 2px 8px var(--primary-shadow);
}

.login-btn .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.login-btn svg.icon {
    margin: 0;
    pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .guest-avatar {
        width: 72px;
        height: 72px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-subtitle {
        font-size: 0.875rem;
        max-width: 90%;
    }
    
    .login-btn {
        padding: 0.625rem;
        font-size: 0.9375rem;
    }
}

/* 用户头部信息 */
.user-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.avatar-container {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px var(--primary-shadow);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--white);
    z-index: 2;
    background: var(--success-color);
}

.status-online {
  background: var(--success-color);
  animation: pulse 2s infinite;
}

.status-offline {
  background: var(--danger-color);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.user-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.username-display {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.username-display .real-name {
    font-weight: 700;
}

.username-display .username {
    font-size: 0.75em;
    color: var(--light-text);
    margin-left: 0;
    font-weight: 500;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.user-role {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.join-date {
    font-size: 0.8125rem;
    color: var(--light-text);
    white-space: nowrap;
}

.user-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.notification-bell {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--light-text);
}

.notification-bell:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse-badge 1.5s infinite;
}

/* 数据概览 */
.data-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0.5rem 0 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.data-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.data-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.data-label {
    font-size: 0.8125rem;
    color: var(--light-text);
    line-height: 1.3;
}

.storage-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.storage-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8e2de2);
    border-radius: 3px;
    transition: width 0.6s ease, background 0.3s ease;
    position: relative;
}

/* 快速操作按钮 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8125rem;
    color: var(--light-text);
}

.action-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-shadow);
}

.action-button:hover .icon {
    fill: white;
}

.action-button .icon {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
    transition: fill 0.3s ease;
}

.action-button svg.icon {
    margin: 0;
    pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .auth-card-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .card-content {
        padding: 1.5rem 1.25rem;
    }
    
    .user-avatar {
        width: 56px;
        height: 56px;
    }
    
    .data-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}
/* ===== 表单基础样式 ===== */
.form-control.invalid {
  border-color: var(--danger-color);
}

.form-control.invalid:focus {
  box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2);
}

.form-text {
  font-size: 0.75rem;
  color: var(--light-text);
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger-color);
  margin-top: 0.25rem;
  display: none;
}

.form-error.show {
  display: block;
}

/* ===== 按钮样式 ===== */
.btn-danger {
  background-color: var(--danger-color);
  color: var(--white-text);
}

.btn-danger:hover {
  background-color: var(--danger-hover);
}

.btn-danger[disabled] {
    opacity: 0.7;
    background-color: var(--danger-color);
    cursor: not-allowed;
}

.btn-success {
  background-color: var(--success-color);
  color: var(--white-text);
}

.btn-success:hover {
  background-color: var(--success-hover);
}

.btn-warning {
  background-color: var(--warning-color);
  color: var(--white-text);
}

.btn-warning:hover {
  background-color: var(--warning-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== 卡片样式 ===== */
.card-header .modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--light-text);
  padding: 5px;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.card-header .modal-close:hover {
  color: var(--text-color);
  background-color: rgba(0, 0, 0, 0.05);
}

.card-body {
  margin-bottom: 1.5rem;
}

.card-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--light-text);
}

.card-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.card-footer a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* ===== 登录/注册布局 ===== */
.auth-layout {
  display: flex;
  min-height: 500px;
}

.auth-image {
  flex: 1;
  background-image: url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.auth-form {
  flex: 1;
  padding: 2rem;
  min-width: 0;
}

/* ===== 验证码 ===== */
.captcha-container {
  display: flex;
  gap: 0.5rem;
}

.captcha-image {
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

/* ===== 用户中心样式 ===== */
.user-center {
  display: flex;
  min-height: 500px;
  max-height: 80vh;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.user-sidebar {
  width: var(--auth-sidebar-width);
  padding: 1.5rem;
  background-color: var(--lighter-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.user-profile-card {
  text-align: center;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.user-avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  transition: var(--transition);
}

.avatar-edit-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: var(--primary-color);
  color: var(--white-text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--white);
}

.avatar-edit-btn .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.avatar-edit-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.1);
}

.user-avatar.uploading {
  position: relative;
  opacity: 0.8;
}

.user-avatar.uploading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
  animation: spin 1s linear infinite;
}

.user-avatar.error {
  border: 3px solid var(--danger-color);
}

.user-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.user-username {
  font-size: 0.875rem;
  color: var(--light-text);
  margin-bottom: 1rem;
  word-break: break-all;
  opacity: 0.8;
}

.user-email {
  font-size: 0.875rem;
  color: var(--light-text);
  margin-bottom: 1rem;
  word-break: break-all;
}

.user-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--light-text);
}

.user-menu {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
  padding: 0;
}

.user-menu-item {
  margin-bottom: 0.5rem;
}

.user-menu-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9375rem;
}

.user-menu-link:hover, 
.user-menu-link.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.user-menu-link.active {
  font-weight: 500;
}

.menu-icon {
  margin-right: 0.75rem;
  opacity: 0.8;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.user-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.user-section {
  display: none;
}

.user-section.active {
  display: block;
}

.user-content .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--light-text);
  padding: 5px;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.user-content .modal-close:hover {
  color: var(--text-color);
  background-color: rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* 卡片布局 */
.profile-grid,
.security-grid,
.notification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.profile-card,
.security-card,
.notification-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 0, 255, 0.08);
}

.profile-card:hover,
.security-card:hover,
.notification-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 0, 255, 0.1);
}

.profile-card.full-width {
  grid-column: 1 / -1;
}

.profile-card .card-title,
.security-card .card-title,
.notification-card .card-title {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-color);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(74, 0, 255, 0.1);
}

.profile-card .card-title svg,
.security-card .card-title svg,
.notification-card .card-title svg {
  margin-right: 0.75rem;
  color: var(--primary-color);
  width: 20px;
  height: 20px;
}

/* 个人资料字段样式 */
.profile-field {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  position: relative;
  min-height: 52px;
}

.profile-field:hover {
  background-color: rgba(74, 0, 255, 0.02);
}

.profile-field:last-child {
  border-bottom: none;
}

.profile-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--light-text);
  min-width: 100px;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.editable-field {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  min-height: 36px;
}

.view-mode {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  justify-content: space-between;
}

.field-value {
  font-size: 0.9375rem;
  color: var(--text-color);
  word-break: break-word;
  flex: 1;
  text-align: left;
  padding: 0.25rem 0;
  line-height: 1.5;
}

.field-value.empty {
  color: var(--lighter-text);
  font-style: italic;
}

.edit-mode {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: rgba(74, 0, 255, 0.02);
  border-radius: var(--radius-md);
  margin-top: 0.25rem;
  border: 1px dashed rgba(74, 0, 255, 0.1);
}

.edit-mode.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.edit-input {
  flex: 1;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  height: 36px;
  border: 1px solid rgba(74, 0, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.edit-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 0, 255, 0.1);
}

.edit-input.textarea {
  min-height: 60px;
  resize: vertical;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
}

.edit-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  width: 100%;
  padding-top: 0.25rem;
}

.edit-btn {
  height: 32px;
  padding: 0.5rem 0.75rem;
  background: rgba(74, 0, 255, 0.05);
  border: 1px solid rgba(74, 0, 255, 0.1);
  color: var(--primary-color);
  font-size: 0.8125rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.edit-btn:hover {
  background: rgba(74, 0, 255, 0.1);
}

.edit-btn svg {
  width: 12px;
  height: 12px;
}

/* 账号安全卡片 */
.security-card {
  position: relative;
  padding-bottom: 1.5rem;
}

.security-card.danger {
  border-left: 4px solid var(--danger-color);
  background-color: rgba(255, 71, 87, 0.02);
}

.card-description {
  font-size: 0.875rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.password-form,
.email-form,
.mobile-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(74, 0, 255, 0.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* 新增安全卡片头部样式 */
.security-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.security-card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.security-card-actions .card-description {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--light-text);
}

/* 验证状态徽章 */
.security-card-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.security-card-status[data-status="verified"] {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.security-card-status[data-status="unverified"] {
  background-color: rgba(255, 165, 2, 0.1);
  color: var(--warning-color);
  border: 1px solid rgba(255, 165, 2, 0.2);
}

/* 表单行内布局 */
.email-form, .mobile-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.email-form .form-group, 
.mobile-form .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* 通知设置 */
.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.notification-item:hover {
  background-color: rgba(74, 0, 255, 0.02);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-info h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.notification-info p {
  font-size: 0.8125rem;
  color: var(--light-text);
  line-height: 1.5;
}

/* 删除账号 */
.delete-account-container {
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0px 20px;
}

.delete-account-container .title {
    margin: 20px 0px 24px;
    color: rgb(51, 51, 51);
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}

.delete-account-container .tips {
    margin: 0px;
    font-size: 14px;
    font-weight: 400;
    color: rgb(101, 101, 101);
}

/* 日期选择器样式 */
.date-picker {
  position: relative;
  flex: 1;
}

.date-picker input {
  width: 100%;
  height: 36px;
}

/* 性别选择器样式 */
.gender-selector {
  display: flex;
  gap: 0.75rem;
  margin-right: 0;
  flex-wrap: wrap;
  width: 100%;
  padding: 0.5rem 0;
}

.gender-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  min-height: auto;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  background: var(--white);
  flex: 1;
  min-width: 80px;
  justify-content: center;
  font-size: 0.875rem;
}

.gender-option:hover {
  background-color: var(--light-bg);
  border-color: rgba(74, 0, 255, 0.2);
}

.gender-option.selected {
  background-color: rgba(74, 0, 255, 0.08);
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
}

.gender-option input[type="radio"] {
  display: none;
}

.gender-label {
  font-size: 0.875rem;
}

/* 加载动画 */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
  .profile-grid,
  .security-grid,
  .notification-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .btn {
    height: 40px;
  }
  
  .btn-sm {
    height: 32px;
  }
  
  .edit-btn {
    height: 36px;
  }
  
  .auth-layout {
    flex-direction: column;
    min-height: auto;
  }

  .auth-image {
    height: 200px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  
  .user-center {
    flex-direction: column;
    min-height: auto;
    max-height: none;
  }
  
  .user-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    max-height: none;
    padding: 1rem;
  }
  
  .user-menu {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .user-menu-item {
    margin-bottom: 0;
    min-width: 140px;
  }
  
  .user-menu-link {
    white-space: nowrap;
  }
  
  .user-content {
    max-height: none;
    padding: 1.5rem;
  }

  .profile-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
  }
  
  .profile-field label {
    margin-bottom: 0;
    margin-right: 0;
    width: 100%;
  }
  
  .editable-field {
    width: 100%;
  }
  
  .view-mode {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  
  .edit-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
  
  .gender-selector {
    flex-direction: row;
    gap: 0.75rem;
  }
  
  .gender-option {
    justify-content: center;
    min-width: calc(33.333% - 0.75rem);
  }

  .security-card .btn {
    position: static;
    margin-top: 1rem;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .user-content {
    padding: 1rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .gender-option {
    min-width: calc(50% - 0.75rem);
  }
  
  .edit-actions {
    flex-direction: column;
  }
}

/* 确认对话框文本样式 */
.confirm-delete-text {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.confirm-delete-warning {
    color: var(--warning-color);
    font-weight: 500;
}