/* 用户中心页面样式 */

/* 基础容器 */
.user-page-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.bookshelf-stats {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
}

.bookshelf-stats {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* 用户信息卡片 */
.user-info-card {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe0e5 100%);
  border: 1px solid #fff5f7;
  border-radius: 12px;
  padding: 25px 20px;
  color: #333;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(255, 57, 85, 0.15);
  transition: all 0.3s ease;
}

.user-info-card:hover {
  box-shadow: 0 6px 16px rgba(255, 57, 85, 0.2);
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  color: #ff3955;
  margin: 0 auto 15px;
  box-shadow: 0 4px 8px rgba(255, 57, 85, 0.2);
  border: 3px solid #ff3955;
  transition: transform 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
}

.user-nickname {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  color: #ff3955;
}

.user-username {
  font-size: 0.9rem;
  text-align: center;
  color: #666;
  margin-bottom: 15px;
}

.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.user-stat-item {
  background: #fff;
  border: 2px solid #f0dcdf;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.user-stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 57, 85, 0.25);
  border-color: #ff1744;
}

.user-stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #ff3955;
}

.user-stat-label {
  font-size: 0.85rem;
  color: #666;
}

/* 用户详情列表 */
.user-details-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-detail-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s ease;
}

.user-detail-item:last-child {
  border-bottom: none;
}

.user-detail-item:hover {
  background: #f8f9fa;
}

.user-detail-item:active {
  background: #f0f0f0;
}

.user-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5f7 0%, #ffe0e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.user-detail-item:hover .user-detail-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, #ffc7ce 0%, #ffb3c1 100%);
}

.user-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: #ff3955;
}

.user-detail-content {
  flex: 1;
  min-width: 0;
}

.user-detail-label {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 3px;
}

.user-detail-value {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  word-break: break-all;
}

.user-detail-arrow {
  width: 20px;
  height: 20px;
  fill: #ccc;
  flex-shrink: 0;
}

/* 操作按钮 */
.action-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.action-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn-primary {
  background: linear-gradient(135deg, #ff3955 0%, #ff1744 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 57, 85, 0.3);
}

.action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 57, 85, 0.4);
}

.action-btn-primary:active {
  transform: translateY(0);
}

.action-btn-secondary {
  background: #fff;
  color: #ff3955;
  border: 2px solid #ff3955;
}

.action-btn-secondary:hover {
  background: #fff5f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 57, 85, 0.2);
}

.action-btn-secondary:active {
  transform: translateY(0);
}

/* 模态框 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 2px solid #ff3955;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.modal-form-group {
  margin-bottom: 15px;
}

.modal-form-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.modal-form-input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.modal-form-input:focus {
  outline: none;
  border-color: #ff3955;
  box-shadow: 0 0 0 3px rgba(255, 57, 85, 0.1);
}

.modal-form-error {
  color: #ff4757;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.modal-form-error.show {
  display: block;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn-cancel {
  background: #f0f0f0;
  color: #666;
}

.modal-btn-cancel:hover {
  background: #e0e0e0;
}

.modal-btn-confirm {
  background: linear-gradient(135deg, #ff3955 0%, #ff1744 100%);
  color: #fff;
}

.modal-btn-confirm:hover {
  box-shadow: 0 4px 12px rgba(255, 57, 85, 0.4);
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-state {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 0.95rem;
}

/* 平板端优化 (768px - 1023px) */
@media screen and (min-width: 768px) {
  .user-page-container {
      font-size: 0.95rem;
  }

  .module {
      font-size: 0.95rem;
  }
}

@media screen and (min-width: 1024px) {
  .user-page-container {
    padding: 0 20px;
      font-size: 1.35rem;
  }
  .action-btn {
    font-size: 16px;
  }
  .module {
   font-size: 1.35rem;
  }
}