/* 个人中心样式 */
#profile {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.profile-header {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.user-profile {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 60px;
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.user-info {
    flex-grow: 1;
}

#username {
    font-size: 24px;
    margin-bottom: 10px;
}

.styled-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.styled-btn:hover {
    background-color: #45a049;
}

#logout-btn:hover,
#settings-btn:hover,
#delete-articles-btn:hover {
    background-color: rgba(21, 225, 144, 0.3); /*悬停效果 */
}

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.delete-btn:hover .icon {
    transform: scale(1.1);
}
.spacer{
    height: 300px;
}
.button-container {
    display: flex;
    align-items: center;
    gap: 10px; /* 按钮之间的间距 */
}
  
#confirm-delete-btn,
#cancel-delete-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  width: 40px;
}

#confirm-delete-btn:hover,
#cancel-delete-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

#confirm-delete-btn svg {
  display: block;
  width: 28px;
  height: 28px;
}
#cancel-delete-btn svg{
    display: block;
    width: 30px;
    height: 30px;
}
#confirm-delete-btn svg path,
#cancel-delete-btn svg path {
  fill: #333;
  transition: fill 0.3s ease;
}

#confirm-delete-btn:hover svg path {
  fill: #4CAF50;
}

#cancel-delete-btn:hover svg path {
  fill: #F44336;
}

