.diary-input-interface {
  width: 402px;
  height: 874px;
  margin: 20px auto;
  overflow: hidden;
  position: absolute;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: rgba(99, 73, 235, 1);
  border-radius: 25px;
  z-index: 1000;
  padding: 60px 19px 26px;
  visibility: hidden;
  flex-direction: column;
  opacity: 0; 
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  letter-spacing: 1.76px;
  transition: opacity 0.3s ease-in-out;
  -webkit-transition: opacity 0.3s ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
}

.example-guidance {
  border-radius: 16px;
  background-color: rgba(246, 245, 255, 1);
  display: flex;
  margin-top: 11px;
  width: 100%;
  padding: 15px 0 25px;
  flex-direction: column;
  align-items: stretch;
  font-size: 18px;
  text-align: center;
  letter-spacing: 1.44px;
}

.guidance-header {
  align-self: center;
  display: flex;
  width: 253px;
  max-width: 100%;
  align-items: center;
  gap: 20px;
  color: rgba(0, 0, 0, 1);
  white-space: nowrap;
  justify-content: space-between;
}

.info-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 24px;
  flex-shrink: 0;
}

.category-section {
  display: flex;
  margin-top: 16px;
  width: 100%;
  padding: 0 15px;
  flex-direction: column;
  align-items: stretch;
}

.category-grid {
  display: flex;
  align-items: stretch;
  gap: 7px;
  color: rgba(0, 0, 0, 1);
  white-space: nowrap;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.category-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 76px;
  border-radius: 9px;
  background-color: rgba(207, 205, 255, 1);
  height: 76px;
}

.category-label {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
}

.example-text {
  color: rgba(122, 117, 149, 1);
  align-self: center;
  font-size: 18px;
}

.highlight {
  color: rgba(99, 73, 235, 1);
}

.normal-text {
  font-size: 15px;
}


.input-section {
  border-radius: 16px;
  background-color: rgba(246, 245, 255, 1);
  display: flex;
  margin-top: 11px;
  width: 100%;
  padding: 25px 8px 13px;
  flex-direction: column;
  align-items: stretch;
  color: rgba(99, 73, 235, 1);
}

.input-header {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  color: rgba(122, 117, 149, 1);
  white-space: nowrap;
  letter-spacing: 1.44px;
}

.input-indicator {
  border-color: rgba(99, 73, 235, 1);
  border-style: solid;
  border-width: 2px;
  width: 2px;
  flex-shrink: 0;
  height: 28px;
}

.input-title {
  font-size: 18px;
  font-weight: 600;
}

.todo-input {
  width: 100%;
  height: 230px;
  padding: 8px 12px;
  font-size: 16px;
  border: none;
  outline: none;
  resize: none;
  box-sizing: border-box;
  background-color: transparent;
  white-space: pre-wrap; /* 确保换行符被尊重 */
  overflow-wrap: break-word;
  line-height: 1.5;
}

.voice-input {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.text-input {
  display: flex;
  margin-top: 14px;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.input-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 52px;
  flex-shrink: 0;
}

.input-button {
  border: none;
  border-radius: 10px;
  background-color: rgba(207, 205, 255, 1);
  padding: 9px 70px;
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 0;
  width: fit-content;
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  color: rgba(99, 73, 235, 1);
  cursor: pointer;
}


.diary-input-action-buttons {
  align-self: center;
  display: flex;
  width: 100%;
  max-width: 319px;
  margin-top: 18px;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

.diary-reset-button {
  border: none;
  border-radius: 49px;
  background-color: rgba(246, 245, 255, 0.9);
  padding: 11px 27px;
  color: rgba(122, 117, 149, 1);
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1.76px;
  cursor: pointer;
}

.diary-confirm-button {
  border: none;
  border-radius: 49px;
  background-color: rgba(246, 245, 255, 1);
  padding: 11px 27px;
  color: rgba(0, 0, 0, 1);
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1.76px;
  cursor: pointer;
}


.task-input-container {
  display: flex;
  margin-bottom: 20px;
}

.task-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  resize: none;
  background-color: rgba(246, 245, 255, 1);
  overflow: hidden;
  min-height: 24px;
  line-height: 24px;
}

.task-input:focus {
  outline: none;
  background-color: rgba(246, 245, 255, 1);
}
