/* ==========================================================================
   享邻嫂官网 · 客户口碑墙（R89）
   供 /guestbook.html 与首页口碑区块共用
   ========================================================================== */

.gb-sum {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6efec;
  box-shadow: 0 4px 18px rgba(14, 124, 102, .05);
  margin-bottom: 26px;
}

.gb-sum__score {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0e7c66;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gb-sum__stars {
  color: #f0a500;
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.gb-sum__meta {
  font-size: .88rem;
  color: #6d8480;
  line-height: 1.9;
}

.gb-sum__meta b {
  color: #1d3130;
  font-weight: 700;
}

.gb-sum__sep {
  width: 1px;
  height: 42px;
  background: #e6efec;
}

.gb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.gb-item {
  background: #fff;
  border: 1px solid #e6efec;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 18px rgba(14, 124, 102, .05);
  transition: .18s;
  position: relative;
}

.gb-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 124, 102, .1);
}

.gb-item--top {
  border-color: #bfe0d6;
  background: linear-gradient(180deg, #f4fbf8 0%, #fff 62%);
}

.gb-item__hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gb-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: #0e7c66;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.gb-item__who {
  min-width: 0;
  flex: 1;
}

.gb-item__name {
  font-weight: 700;
  color: #1d3130;
  font-size: .98rem;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.gb-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f6f1;
  color: #0b6553;
  border: 1px solid #cfe9e0;
}

.gb-badge--type {
  background: #eef4fb;
  color: #2a5f92;
  border-color: #d5e4f3;
}

.gb-item__sub {
  font-size: .78rem;
  color: #8fa5a0;
  margin-top: 2px;
}

.gb-item__stars {
  color: #f0a500;
  font-size: .9rem;
  letter-spacing: 1px;
  margin: 4px 0 10px;
}

.gb-item__text {
  color: #3b4f4c;
  font-size: .94rem;
  line-height: 1.85;
  margin: 0 0 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.gb-item__ft {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  color: #9aada9;
  border-top: 1px dashed #e6efec;
  padding-top: 10px;
}

.gb-empty {
  padding: 40px 0;
  text-align: center;
  color: #8fa5a0;
  font-size: .9rem;
}

/* ---------- 提交表单 ---------- */

.gb-form {
  margin-top: 34px;
  background: #fff;
  border: 1px solid #e6efec;
  border-radius: 18px;
  padding: 26px 26px 24px;
  box-shadow: 0 6px 22px rgba(14, 124, 102, .06);
}

.gb-form h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  color: #1d3130;
}

.gb-form__sub {
  margin: 0 0 18px;
  font-size: .86rem;
  color: #7d938e;
  line-height: 1.8;
}

.gb-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.gb-fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gb-fld label {
  font-size: .82rem;
  color: #4a615e;
  font-weight: 600;
}

.gb-fld .opt {
  font-weight: 400;
  color: #9aada9;
}

.gb-fld input,
.gb-fld select,
.gb-fld textarea {
  padding: 11px 13px;
  border: 1px solid #dfe9e6;
  border-radius: 10px;
  font-size: .94rem;
  font-family: inherit;
  color: #1d3130;
  background: #fbfdfc;
  width: 100%;
}

.gb-fld textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.8;
}

.gb-fld input:focus,
.gb-fld select:focus,
.gb-fld textarea:focus {
  outline: none;
  border-color: #0e7c66;
  background: #fff;
}

.gb-rate {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: #4a615e;
}

.gb-rate__pick {
  display: inline-flex;
  gap: 6px;
}

.gb-rate__pick label {
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid #dfe9e6;
  border-radius: 999px;
  font-size: .84rem;
  color: #4a615e;
  background: #fbfdfc;
}

.gb-rate__pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.gb-rate__pick input:checked + span {
  color: #0b6553;
}

.gb-rate__pick label:has(input:checked) {
  background: #e8f6f1;
  border-color: #0e7c66;
  color: #0b6553;
  font-weight: 700;
}

.gb-form__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.gb-btn {
  padding: 12px 30px;
  border: 0;
  border-radius: 10px;
  background: #0e7c66;
  color: #fff;
  font-size: .98rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .03em;
}

.gb-btn:hover {
  background: #0b6553;
}

.gb-btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

.gb-tip {
  font-size: .78rem;
  color: #9aada9;
}

.gb-msg {
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: .88rem;
  line-height: 1.7;
  display: none;
}

.gb-msg--ok {
  display: block;
  background: #e8f6f1;
  border: 1px solid #cfe9e0;
  color: #0b6553;
}

.gb-msg--no {
  display: block;
  background: #fdecec;
  border: 1px solid #f7d4d4;
  color: #a02020;
}

/* ---------- 首页精简区块 ---------- */

.gb-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.gb-home .gb-item {
  padding: 18px 20px;
  margin: 0;
}

.gb-home .gb-item__text {
  font-size: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gb-home__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}

.gb-secret {
  font-size: .76rem;
  color: #b3c0bd;
  text-decoration: none;
}

.gb-secret:hover {
  color: #8fa5a0;
}

@media (max-width: 640px) {
  .gb-sum {
    padding: 16px 18px;
    gap: 12px;
    justify-content: flex-start;
  }

  .gb-sum__sep {
    display: none;
  }

  .gb-form {
    padding: 20px 17px;
  }

  .gb-item {
    padding: 17px 18px;
  }
}
