.bc-cs-chat-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--lt-bg);
  background-image: url('/client/assets/lt/bg.png');
  background-size: cover;
  background-position: center top;
}

.bc-cs-chat-page #appNav {
  flex-shrink: 0;
}

.bc-cs-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.bc-cs-chat__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 8px;
}

.bc-cs-chat__composer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--lt-card-bg);
  border-top: 1px solid var(--lt-card-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}

.bc-cs-chat__composer input {
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(224, 165, 64, 0.18);
  color: var(--lt-primary-text);
}

.bc-cs-chat__composer button {
  margin: 0;
  padding-left: 16px;
  padding-right: 16px;
}

.bc-cs__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0;
}

.bc-cs__row--right { align-items: flex-end; }
.bc-cs__row--left { align-items: flex-start; }
.bc-cs__row--center { align-items: center; }

.bc-cs__label {
  font-size: 0.72rem;
  color: var(--bc-muted);
}

.bc-cs__bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.bc-cs__bubble--user {
  background: rgba(224, 165, 64, 0.18);
  border: 1px solid rgba(224, 165, 64, 0.28);
  color: var(--lt-primary-text);
}

.bc-cs__bubble--admin {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--lt-primary-text);
}

.bc-cs__system {
  color: var(--bc-muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.bc-cs__read {
  font-size: 0.68rem;
  color: var(--bc-muted);
  margin-top: -2px;
}

/* 满意度弹窗 */
.bc-cs-rating {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bc-cs-rating.hidden {
  display: none;
}

.bc-cs-rating__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.bc-cs-rating__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--lt-card-bg);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border: 1px solid var(--lt-card-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.bc-cs-rating__title {
  margin: 0;
  font-size: 1rem;
  text-align: center;
  color: var(--lt-primary-text);
}

.bc-cs-rating__hint {
  margin: 8px 0 16px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--bc-muted);
}

.bc-cs-rating__stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.bc-cs-rating__star {
  border: none;
  background: none;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.25);
  padding: 4px;
  cursor: pointer;
}

.bc-cs-rating__star.is-active,
.bc-cs-rating__star.is-hover {
  color: var(--lt-primary);
}

.bc-cs-rating__actions {
  display: grid;
  gap: 10px;
}

.bc-cs-rating__submit {
  width: 100%;
  margin: 0;
}

.bc-cs-rating__submit:disabled {
  opacity: 0.45;
}

.bc-cs-rating__skip {
  width: 100%;
  margin: 0;
  background: transparent;
  border: 1px solid rgba(224, 165, 64, 0.28);
  color: var(--bc-muted);
}
