/* 碰一碰评价助手 · 顾客端样式 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #f5f6f8;
  color: #1f2329;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 48px;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.wx-tip {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #1f2329;
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  text-align: center;
  line-height: 1.5;
}
.wx-tip strong { color: #ffd666; }

.hero {
  background: var(--accent, #e8541e);
  background-image: linear-gradient(135deg, rgba(255,255,255,.16), rgba(0,0,0,.18));
  color: #fff;
  padding: 24px 18px 28px;
}
.hero-in { display: flex; align-items: center; gap: 12px; max-width: 620px; margin: 0 auto; }
.logo {
  width: 52px; height: 52px; border-radius: 14px; object-fit: cover;
  background: rgba(255,255,255,.22); flex: 0 0 auto;
}
.logo.ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
}
.hero-tx { min-width: 0; }
.hero-tx h1 { font-size: 19px; margin: 0; font-weight: 700; line-height: 1.35; }
.hero-tx p { margin: 4px 0 0; font-size: 13px; opacity: .9; }
.notice {
  max-width: 620px; margin: 14px auto 0;
  background: rgba(255,255,255,.16);
  border-radius: 12px; padding: 10px 12px;
  font-size: 13px; line-height: 1.6;
}

.wrap { max-width: 620px; margin: 0 auto; padding: 14px 14px 0; }

.card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 14px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(20,25,40,.05);
}
.head { display: flex; align-items: center; gap: 8px; }
.head h2 { font-size: 16px; margin: 0; font-weight: 700; flex: 1 1 auto; }
.card.center .head { justify-content: center; }
.card.center .head h2 { flex: 0 0 auto; }
.card.center .sub { text-align: center; }
.num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent, #e8541e); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.done {
  font-size: 13px; color: #16a34a; font-weight: 700;
  opacity: 0; transition: opacity .2s;
}
.done.show { opacity: 1; }
.sub { margin: 8px 0 10px; font-size: 13px; color: #6b7280; line-height: 1.6; }

textarea {
  display: block; width: 100%; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 12px; font-size: 15px; line-height: 1.7; color: #1f2329;
  background: #fafbfc; resize: vertical; min-height: 108px;
  font-family: inherit; -webkit-appearance: none;
}
textarea:focus { outline: 2px solid rgba(232,84,30,.25); border-color: var(--accent, #e8541e); background: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 2px; }
.chip {
  border: 1px solid #e5e7eb; background: #fff; color: #4b5563;
  border-radius: 999px; padding: 6px 12px; font-size: 13px;
  cursor: pointer; transition: all .15s;
}
.chip.on { background: var(--accent, #e8541e); border-color: var(--accent, #e8541e); color: #fff; }

.btns { display: flex; gap: 10px; margin-top: 12px; }
.btn {
  flex: 1 1 0; border: 0; border-radius: 12px; padding: 13px 10px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform .08s, opacity .2s;
}
.btn:active { transform: scale(.985); opacity: .9; }
.btn.primary {
  background: var(--accent, #e8541e);
  background-image: linear-gradient(135deg, rgba(255,255,255,.12), rgba(0,0,0,.08));
  color: #fff;
  box-shadow: 0 6px 16px rgba(232,84,30,.24);
}
.btn.ghost { background: #f3f4f6; color: #374151; flex: 0 0 34%; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; gap: 8px; }
.thumb {
  padding: 0; border: 0; background: #f3f4f6; border-radius: 10px;
  overflow: hidden; position: relative; height: 0; padding-bottom: 100%; cursor: pointer; width: 100%;
}
.thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.plats {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  justify-content: center;
  justify-content: safe center;
}
.plats::-webkit-scrollbar { display: none; }
.plat {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  gap: 7px; min-width: 94px; padding: 13px 14px 11px; border-radius: 14px;
  border: 1px solid #e5e7eb; background: #fff; cursor: pointer; font-size: 15px;
}
.plat:active { background: #f9fafb; }
.plat.copied { border-color: #bbf7d0; background: #f0fdf4; }
.plat.copied .go { color: #15803d; font-weight: 600; }
.dot {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  background: var(--pc, #e8541e); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; overflow: hidden;
}
.dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn { font-weight: 600; color: #1f2329; font-size: 14px; }
.go { font-size: 11px; color: #9ca3af; white-space: nowrap; }

.hint { margin: 10px 0 0; font-size: 13px; color: #b45309; background: #fffbeb; border-radius: 10px; padding: 10px 12px; line-height: 1.6; }
.hint-soft { margin: 10px 0 0; font-size: 12px; color: #a0a6b0; line-height: 1.6; text-align: center; }

.foot { text-align: center; font-size: 12px; color: #9ca3af; line-height: 1.7; margin: 18px 6px 0; }
.foot.weak { color: #c0c4cc; margin-top: 6px; }

/* 大图 */
.lb {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(0,0,0,.94);
  display: flex; flex-direction: column;
}
.lb[hidden] { display: none; }
.lb-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.16); color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer;
}
.lb-img-wrap { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 44px 0 8px; overflow: hidden; }
.lb-img-wrap img { max-width: 94vw; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-bar { padding: 12px 16px 26px; text-align: center; }
.lb-bar p { color: #e5e7eb; font-size: 13px; margin: 0 0 10px; }
.lb-bar .btn { max-width: 320px; margin: 0 auto; display: block; width: 100%; }

/* 手动引导 */
.mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end;
}
.mask[hidden] { display: none; }
.sheet {
  width: 100%; background: #fff; border-radius: 18px 18px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  animation: up .22s ease-out;
  max-height: 84vh; overflow-y: auto;
}
@keyframes up { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet h3 { margin: 0 0 8px; font-size: 17px; }
.gdesc { margin: 0 0 10px; font-size: 13px; color: #6b7280; line-height: 1.7; }
.glink {
  display: block; width: 100%; margin: 0 0 12px; padding: 10px 12px;
  border: 1px solid #e5e7eb; border-radius: 10px; background: #fafbfc;
  font-size: 13px; color: #374151; font-family: inherit;
  -webkit-user-select: all; user-select: all;
}
.glink[hidden] { display: none; }
.sheet ol { margin: 0; padding-left: 20px; color: #4b5563; font-size: 14px; line-height: 2; }
.sheet .btns { margin-top: 16px; }
.gweb {
  display: block; width: 100%; margin-top: 10px; padding: 10px;
  border: 0; background: none; color: #9ca3af; font-size: 13px;
  text-decoration: underline; cursor: pointer; font-family: inherit;
}

.toast {
  position: fixed; left: 50%; bottom: 42px; transform: translate(-50%, 12px);
  background: rgba(24,28,36,.94); color: #fff;
  padding: 11px 18px; border-radius: 999px; font-size: 14px;
  max-width: 82vw; text-align: center; line-height: 1.5;
  opacity: 0; pointer-events: none; transition: all .22s; z-index: 120;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
