.fengxinlou--settings {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.fengxinlou-settings__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 12px;
}

.fengxinlou-settings__group {
  display: grid;
  gap: 12px;
  padding: 12px 12px 90px;
}

.fengxinlou-settings__card {
  padding: 14px 14px 16px;
  border: 1px solid rgba(20, 22, 26, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(20, 22, 26, 0.04);
}

.fengxinlou-settings__card--danger {
  border-color: rgba(201, 90, 90, 0.14);
}

.fengxinlou-settings__card--mingyueji {
  border-color: rgba(180, 160, 200, 0.18);
  background: rgba(250, 248, 255, 0.82);
}

.fengxinlou-settings__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.fengxinlou-settings__card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #17181a;
}

.fengxinlou-settings__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
  color: rgba(23, 24, 26, 0.56);
}

.fengxinlou-settings__hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(23, 24, 26, 0.48);
}

.fengxinlou-settings__hint--fail {
  color: #b13e3e;
}

.fengxinlou-settings__field-grid {
  display: grid;
  gap: 12px;
}

.fengxinlou-settings__field-grid--display {
  gap: 10px;
}

.fengxinlou-settings__field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.fengxinlou-settings__field-row--pair-inputs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.fengxinlou-settings__field-row--search {
  align-items: end;
}

.fengxinlou-settings__field-row--mingyueji {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 8px 0;
}

.fengxinlou-settings__mingyueji-question {
  font-size: 13px;
  color: rgba(23, 24, 26, 0.68);
}

.fengxinlou-settings__field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.fengxinlou-settings__field-label {
  font-size: 12px;
  color: rgba(23, 24, 26, 0.56);
}

.fengxinlou-settings__input,
.fengxinlou-settings__select,
.fengxinlou-settings__textarea {
  width: 100%;
  border: 1px solid rgba(21, 24, 28, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  outline: none;
  font-size: 13px;
  color: #17181a;
  box-sizing: border-box;
}

.fengxinlou-settings__input,
.fengxinlou-settings__select {
  height: 42px;
  padding: 0 12px;
}

.fengxinlou-settings__textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
  line-height: 1.65;
}

.fengxinlou-settings__apply,
.fengxinlou-settings__ghost-button,
.fengxinlou-settings__danger-button,
.fengxinlou-settings__search-item {
  border: 1px solid rgba(21, 24, 28, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #17181a;
  font-size: 13px;
  cursor: pointer;
}

.fengxinlou-settings__apply {
  height: 42px;
  padding: 0 14px;
}

.fengxinlou-settings__apply--full {
  width: 100%;
}

.fengxinlou-settings__apply--danger {
  border-color: rgba(201, 90, 90, 0.18);
  background: rgba(255, 244, 244, 0.92);
  color: #b13e3e;
}

.fengxinlou-settings__ghost-button,
.fengxinlou-settings__danger-button {
  min-height: 42px;
  padding: 10px 14px;
}

.fengxinlou-settings__ghost-button--primary {
  background: rgba(225, 235, 255, 0.88);
}

.fengxinlou-settings__danger-button {
  width: 100%;
  border-color: rgba(201, 90, 90, 0.14);
  background: rgba(255, 244, 244, 0.92);
  color: #b13e3e;
}

.fengxinlou-settings__button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fengxinlou-settings__details {
  display: block;
}

.fengxinlou-settings__details-summary {
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #17181a;
  margin-bottom: 12px;
}

.fengxinlou-settings__details-summary::-webkit-details-marker {
  display: none;
}

.fengxinlou-settings__check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(21, 24, 28, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.fengxinlou-settings__check-item--multi {
  min-height: 44px;
  padding: 10px 14px;
}

.fengxinlou-settings__check-item input {
  margin: 0;
  flex: 0 0 auto;
}

.fengxinlou-settings__check-main {
  display: flex;
  align-items: center;
  min-width: 0;
}

.fengxinlou-settings__check-title {
  font-size: 14px;
  color: #17181a;
}

.fengxinlou-settings__dropdown {
  border: 1px solid rgba(21, 24, 28, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
}

.fengxinlou-settings__dropdown[open] {
  box-shadow: 0 10px 24px rgba(20, 22, 26, 0.06);
}

.fengxinlou-settings__dropdown-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
}

.fengxinlou-settings__dropdown-summary::-webkit-details-marker {
  display: none;
}

.fengxinlou-settings__dropdown-text {
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #17181a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fengxinlou-settings__dropdown-arrow {
  flex: 0 0 auto;
  font-size: 12px;
  color: rgba(23, 24, 26, 0.52);
  transition: transform 0.2s ease;
}

.fengxinlou-settings__dropdown[open] .fengxinlou-settings__dropdown-arrow {
  transform: rotate(180deg);
}

.fengxinlou-settings__dropdown-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(21, 24, 28, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.fengxinlou-settings__multi-select-list {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.fengxinlou-settings__empty-inline {
  padding: 12px 14px;
  border: 1px dashed rgba(21, 24, 28, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  color: rgba(23, 24, 26, 0.52);
}

.fengxinlou-settings__search-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.fengxinlou-settings__search-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
}

.fengxinlou-settings__search-preview {
  font-size: 13px;
  line-height: 1.65;
  color: #17181a;
}

.fengxinlou-settings__search-time {
  font-size: 12px;
  color: rgba(23, 24, 26, 0.48);
}

.fengxinlou-settings__search-time--obscured {
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(23, 24, 26, 0.3);
}

.fengxinlou-call-record-detail {
  display: block;
  overflow: hidden;
  padding: 0;
}

.fengxinlou-call-record-detail__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.fengxinlou-call-record-detail__summary::-webkit-details-marker {
  display: none;
}

.fengxinlou-call-record-detail__summary::before {
  content: "▶";
  flex: 0 0 auto;
  font-size: 11px;
  color: rgba(23, 24, 26, 0.62);
  transition: transform 0.2s ease;
}

.fengxinlou-call-record-detail[open] .fengxinlou-call-record-detail__summary::before {
  transform: rotate(90deg);
}

.fengxinlou-call-record-detail__summary .fengxinlou-settings__search-preview {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fengxinlou-call-record-detail__summary .fengxinlou-settings__search-time {
  flex: 0 0 auto;
  white-space: nowrap;
}

.fengxinlou-call-record-detail__body {
  padding: 0 14px 12px 32px;
  border-top: 1px solid rgba(21, 24, 28, 0.06);
  background: rgba(255, 255, 255, 0.42);
}

.fengxinlou-call-record-detail__body .fengxinlou-summary-card__text:first-child {
  margin-top: 10px;
}

.fengxinlou-settings__bottom-tabs {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  padding: 10px 12px 14px;
  background: linear-gradient(180deg, rgba(246, 248, 252, 0), rgba(246, 248, 252, 0.92) 22%, rgba(246, 248, 252, 0.98));
}

.fengxinlou-settings__bottom-tabs-capsule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(21, 24, 28, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(20, 22, 26, 0.06);
}

.fengxinlou-settings__bottom-tab {
  min-width: 0;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 24, 26, 0.66);
  font-size: 14px;
  cursor: pointer;
}

.fengxinlou-settings__bottom-tab.is-active {
  background: rgba(213, 225, 246, 0.92);
  color: #2b3446;
}

.fengxinlou-settings__input:focus,
.fengxinlou-settings__select:focus,
.fengxinlou-settings__textarea:focus,
.fengxinlou-settings__dropdown-summary:focus-visible,
.fengxinlou-settings__apply:focus-visible,
.fengxinlou-settings__ghost-button:focus-visible,
.fengxinlou-settings__danger-button:focus-visible,
.fengxinlou-settings__search-item:focus-visible,
.fengxinlou-settings__bottom-tab:focus-visible {
  border-color: rgba(75, 88, 110, 0.18);
  box-shadow: 0 0 0 3px rgba(160, 171, 189, 0.12);
}

@media (max-width: 420px) {
  .fengxinlou-settings__group {
    padding-left: 10px;
    padding-right: 10px;
  }

  .fengxinlou-settings__card {
    padding: 13px 12px 14px;
    border-radius: 18px;
  }

  .fengxinlou-settings__field-row,
  .fengxinlou-settings__field-row--pair-inputs,
  .fengxinlou-settings__button-row {
    grid-template-columns: 1fr;
  }

  .fengxinlou-settings__apply {
    width: 100%;
  }

  .fengxinlou-settings__bottom-tabs {
    padding-left: 10px;
    padding-right: 10px;
  }
}
