/* === 容器 === */
#userAvatar {
  width: 100px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 10px;
  flex-shrink: 0;
	opacity:.5;
}



.user-avatar {
  position: absolute;
  right: 0%;
  bottom: -130px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.top-row {
  position: relative;
  display: flex;
  flex-direction: column;
}
.bind-wrapper {
 max-width: 480px;
  margin: 20px auto;  /* 居中 */
  padding: 16px 0;
  border-radius: 12px;
  box-sizing: border-box;
}

.input-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bind-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
}

.bind-input-row input {
  flex: 1;
  padding: 6px 8px;
  margin-left: 8px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #999;
  outline: none;
	width:100%;
}

.input-label {
  font-size: 16px;
  min-width: 24px;
  color: #333;
  font-weight: normal;
}

/* === 输入区域 === */
.bind-input-area {
  border: 2px solid #999;
  border-radius: 6px;
  padding: 10px 30px 2px;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.4s ease;
  background: #fff;
  overflow: hidden;
  
  min-height: 60px;
  height: auto;
  max-height: 200px;
}

.bind-input-area.expanded {
  min-height: 200px;
  max-height: 480px;
  padding: 20px 30px 10px;
  border-color: #666;
}


.bind-input-area > div:first-child {
  display: flex;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.egg-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.bind-input-area input[type="text"] {
  flex: 1;
  font-size: 16px;
  border: none;
  outline: none;
  background: transparent;
  padding: 4px;
  border-bottom: 2px solid #999;
}

/* === 加载动画 === */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

.spinner.error {
  width: auto;
  height: auto;
  border: none;
  animation: none;
  font-size: 20px;
  color: red;
}

.bind-error {
  color: red;
  font-size: 14px;
  margin-top: 6px;
  min-height: 1em;
  text-align: center;
}


@media (max-width: 600px) {
  .user-avatar {
    width: 60px;
    height: 60px;
    margin-left: 6px;
  }

  .bind-input-area.expanded {
    /*height: 180px;*/
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.input-and-avatar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  gap: 8px;
  width: 100%;
}

/* === 绑定按钮 === */
.bind-button {
  margin-top: 16px;
  padding: 10px 20px;
  font-size: 16px;
  border: 2px solid #999;
  background-color: #fff;
  color: black;
  border-radius: 8px;
  cursor: pointer;
  width: auto;
  display: inline-block;
}

.bind-button:hover {
  background-color: #f0f0f0;
  color: #000;
}

/* === 展开后的内容 === */
.bind-success {
  margin-top: 0px;
  padding-left: calc(24px + 8px); /* 对齐 input-label */
  font-size: 14px;
  color: #333;
  text-align: left;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  pointer-events: none;
  margin-bottom: 8px;
}


.bind-success.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bind-success-inner {
  padding-left: 12px; /* 与输入框左侧对齐 */
  text-align: left;
  font-size: 14px;
  color: #333;
  padding-bottom: 0px;
}


.query-button {
  margin-left: 10px;
  background-color: #68c;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}



@media (max-width: 480px) {
  #userAvatar {
    width: 80px;
    height: 80px;
  }

  .bind-wrapper {
    width: 90%;
  }
}

@keyframes drip {
  0% {
    height: 0;
    opacity: 0;
  }
  50% {
    height: 30px;
    opacity: 1;
  }
  100% {
    height: 60px;
    opacity: 1;
  }
}
@media (min-width: 768px) {
.ellipsis-text {
  white-space: nowrap;        /* 不换行 */
  overflow: hidden;           /* 超出隐藏 */
  text-overflow: ellipsis;    /* 显示... */
  max-width: 150px;           /* 你想要的最大宽度 */
  display: inline-block;      /* 或 block，根据需要 */
  vertical-align: bottom;     /* 和文字对齐 */
}
}

@media (max-width: 767px) {
.ellipsis-text {
  white-space: nowrap;        /* 不换行 */
  overflow: hidden;           /* 超出隐藏 */
  text-overflow: ellipsis;    /* 显示... */
  max-width: 100px;           /* 你想要的最大宽度 */
  display: inline-block;      /* 或 block，根据需要 */
  vertical-align: bottom;     /* 和文字对齐 */
}
}