* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', sans-serif;
}

body {
  background-color: #ebebeb;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  background-color: #f5f5f5;
  min-height: 100vh;
  position: relative;
}


/* 问答页面样式 */
.qa-page {
  padding: 15px;
  padding-bottom: 150px; /* 为底部按钮留出空间 */
  display: none;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  background-color: #f5f5f5;
}

.qa-page.active {
  display: block;
}

.chat-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.message {
  max-width: 70%;
  padding: 10px 15px;
  position: relative;
  line-height: 1.5;
  font-size: 16px;
  word-break: break-word;
}

.bot-message {
  align-self: flex-start;
  background-color: #fff;
  border-radius: 4px;
  margin-left: 45px;
  position: relative;
}

.bot-message:before {
  content: "";
  position: absolute;
  top: 14px;
  left: -6px;
  width: 12px;
  height: 12px;
  background-color: #fff;
  transform: rotate(45deg);
  z-index: -1;
}

.user-message {
  align-self: flex-end;
  background-color: #95ec69;
  border-radius: 4px;
  margin-right: 45px;
  position: relative;
}

.user-message:after {
  content: "";
  position: absolute;
  top: 14px;
  right: -6px;
  width: 12px;
  height: 12px;
  background-color: #95ec69;
  transform: rotate(45deg);
  z-index: -1;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  position: absolute;
  left: -45px;
  top: 0;
  border-radius: 4px;
  object-fit: cover;
}

.user-avatar {
  width: 40px;
  height: 40px;
  position: absolute;
  right: -45px;
  top: 0;
  border-radius: 4px;
  object-fit: cover;
}

.options {
  display: none;
  gap: 10px;
  margin-top: 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f5f5f7;
  padding: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  z-index: 100;
}

.option-button {
  flex: 1;
  padding: 12px;
  background-color: #09bb07;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

/* 选择按钮样式 */
.selection-buttons {
  display: none;
  margin-top: 15px;
  width: 100%;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background-color: #f5f5f7;
  padding: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.selection-buttons.active {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.selection-btn {
  padding: 12px;
  background-color: #09bb07;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
}

.selection-btn:hover {
  background-color: #07a631;
}

/* 年龄选择四个按钮布局 */
.age-selection {
  display: none;
}

.age-selection.active {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  z-index: 50;
}

/* 双按钮布局 */
.interest-selection, 
.join-selection, 
.applied-selection,
.time-selection {
  display: none;
}

.interest-selection.active, 
.join-selection.active, 
.applied-selection.active,
.time-selection.active {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  z-index: 50;
}

.interest-selection .selection-btn, 
.join-selection .selection-btn, 
.applied-selection .selection-btn,
.time-selection .selection-btn {
  flex-basis: 48%;
}

/* 添加客服页面样式 */
.add-service-page {
  display: none;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #fff;
}

.add-service-page.active {
  display: block;
}

.success-header {
  background-color: #f00;
  color: #ffec00;
  padding: 30px 20px;
  text-align: center;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.success-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.success-subtitle {
  font-size: 32px;
  font-weight: bold;
}

.qrcode-container {
  padding: 20px;
  margin-top: 20px;
  position: relative;
  text-align: center;
}

.arrow-text {
  color: #f00;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.fingerprint-img {
  width: 100%;
  display: block;
  margin: 0 auto;
  border: 1px solid #eee;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.scan-line {
  position: absolute;
  height: 4px;
  background: linear-gradient(to right, transparent, rgba(0, 255, 0, 0.8), transparent);
  box-shadow: 0 0 8px 2px rgba(0, 255, 0, 0.6);
  z-index: 1000;
  transition: top 1s ease-out;
}

.scan-text {
  margin-top: 20px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-align: center;
} 