* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #333;
  background: #FFF0F5;
}

.page-content {
  min-height: 100vh;
  padding-bottom: calc(50px + env(safe-area-inset-bottom));
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(50px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #ffffff;
  display: flex;
  border-top: 1px solid #eee;
  z-index: 999;
}

.tab-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 5px;
  text-decoration: none;
  color: #999;
}

.tab-icon {
  font-size: 22px;
  line-height: 1;
  transition: all 0.3s;
}

.tab-icon.active {
  transform: scale(1.1);
}

.tab-text {
  font-size: 11px;
  color: #999999;
  margin-top: 4px;
  transition: all 0.3s;
}

.tab-text.active {
  color: #FF6B81;
  font-weight: bold;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-box {
  width: 85%;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.modal-title {
  font-size: 16px;
  font-weight: bold;
  color: #FF6B81;
}

.modal-close {
  font-size: 20px;
  color: #999;
  padding: 0 5px;
  cursor: pointer;
}

.modal-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  display: block;
}

.modal-body {
  margin-bottom: 10px;
}

.modal-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-cancel {
  flex: 1;
  height: 36px;
  background: #f5f5f5;
  color: #666;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.modal-submit {
  flex: 1;
  height: 36px;
  background: linear-gradient(135deg, #FF6B81 0%, #FFB6C1 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.form-item {
  margin-bottom: 10px;
}

.form-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  display: block;
}

.form-input {
  width: 100%;
  height: 36px;
  background: #f8f8f8;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  outline: none;
}

.modal-input {
  width: 100%;
  background: #f8f8f8;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  outline: none;
  resize: none;
  line-height: 1.6;
}

.phone-input {
  width: 100%;
  height: 40px;
  background: #f8f8f8;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  outline: none;
}

.phone-input-field {
  width: 100%;
  height: 36px;
  background: #f8f8f8;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  outline: none;
}

.login-item {
  margin-bottom: 10px;
}

.login-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  display: block;
}

.login-tips {
  margin-top: 8px;
}

.tips-text {
  font-size: 12px;
  color: #999;
}

.modal-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.modal-images-section {
  margin-top: 10px;
}

.img-preview-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.img-item {
  position: relative;
  width: 60px;
  height: 60px;
}

.img-preview {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}

.img-del {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #FF6B81;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.img-add {
  width: 60px;
  height: 60px;
  background: #f8f8f8;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.img-add-icon {
  font-size: 24px;
  color: #999;
}

.img-add-text {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.date-picker {
  height: 36px;
  background: #f8f8f8;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  position: relative;
}

.picker-arrow {
  font-size: 12px;
  color: #999;
}

.intro-input {
  width: 100%;
  min-height: 80px;
  background: #f8f8f8;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  outline: none;
  resize: none;
  line-height: 1.6;
}

.char-count {
  font-size: 12px;
  color: #999;
  display: block;
  text-align: right;
  margin-top: 4px;
}

.toast-msg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast-msg.show {
  opacity: 1;
}

.person-detail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.detail-card {
  width: 70%;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.detail-title {
  font-size: 16px;
  font-weight: bold;
  color: #FF6B81;
}

.detail-avatar {
  text-align: center;
  margin-bottom: 10px;
}

.detail-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #FFB6C1;
  object-fit: cover;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-item {
  display: flex;
  align-items: center;
}

.detail-item .label {
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
}

.detail-item .value {
  font-size: 13px;
  color: #333;
}

.detail-item .value.highlight {
  color: #FF6B81;
  font-weight: bold;
}

.name-input {
  width: 100%;
  height: 36px;
  background: #f8f8f8;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  outline: none;
}