/* 品艺的「联系平台」等抽屉（pm-sheet.js）：品境同一套白色玻璃抽屉。分享页、找回密码共用。
   颜色变量只挂在抽屉上，不改品艺暗色页面的 --ink。 */
.pm-gsheet {
  --ink: #12161c;
  --ink-mid: #5a6472;
  --ink-dim: #8b95a5;
  --surface-2: #eceff3;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-blur: blur(28px) saturate(180%);
  --scrim: rgba(20, 18, 19, 0.3);
  --app-max: 430px;
  --dur-ui: .2s;
}
body.pm-sheet-open { overflow: hidden; }
.pm-gsheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
}
.pm-gsheet-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  animation: pmFade var(--dur-ui) ease both;
}
.pm-gsheet-panel {
  position: relative;
  width: calc(100% - 16px);
  min-width: 0;
  max-width: calc(var(--app-max) - 16px);
  max-height: min(86dvh, 720px);
  margin-bottom: calc(8px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  color: var(--ink);
  animation: pmGlassUp .34s cubic-bezier(.2, .9, .25, 1) both;
  transition: transform .32s cubic-bezier(.2, .9, .25, 1), height .32s cubic-bezier(.2, .9, .25, 1);
}
.pm-gsheet.is-leaving .pm-gsheet-scrim { animation: pmFadeOut .22s ease both; }
.pm-gsheet.is-leaving .pm-gsheet-panel { animation: pmGlassDown .22s ease-in both; }
.pm-gsheet-grab {
  flex-shrink: 0;
  width: 100%;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: grab;
}
.pm-gsheet-grab::before {
  content: "";
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: rgba(60, 60, 67, 0.36);
}
.pm-gsheet-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px 10px 20px;
  touch-action: none;
}
.pm-gsheet-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.pm-gsheet-x {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.07);
  color: var(--ink-mid);
  cursor: pointer;
}
.pm-gsheet-x svg { width: 15px; height: 15px; }
.pm-gsheet-x:active { transform: scale(.95); }
.pm-gsheet-body {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 16px;
}
.pm-gsheet-body::-webkit-scrollbar { width: 12px; height: 12px; }
.pm-gsheet-body::-webkit-scrollbar-track { margin: 10px 0; background: transparent; }
.pm-gsheet-body::-webkit-scrollbar-thumb { border: 4px solid transparent; border-radius: 999px; background-color: rgba(20, 20, 22, .2); background-clip: padding-box; }
.pm-gsheet-body::-webkit-scrollbar-thumb:hover { background-color: rgba(20, 20, 22, .36); }
.pm-gsheet-body::-webkit-scrollbar-button,
.pm-gsheet-body::-webkit-scrollbar-corner { display: none; width: 0; height: 0; background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  .pm-gsheet-body { scrollbar-width: thin; scrollbar-color: rgba(20, 20, 22, .24) transparent; }
}
.sf-pf-empty { margin: 4px 2px 8px; font-size: 14px; line-height: 1.6; color: var(--ink-dim); }
.sf-pf-contact { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 6px; }
.sf-pf-contact .sf-ct-line {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 6px 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.sf-pf-contact .sf-ct-val {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-gsheet .sf-pf-contact .sf-contact-copy {
  flex: none;
  display: flex;
  align-items: center;
  height: 26px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.sf-ct-line:not(a):not(button) { cursor: default; }
.sf-ct-line .sf-contact-copy + .sf-contact-copy { margin-left: 0; }
@media (max-width: 959px) {
  .pm-gsheet-panel {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    max-height: calc(100dvh - 10px);
    border-radius: 14px 14px 0 0;
    padding-bottom: var(--safe-bottom);
  }
}
@media (min-width: 960px) {
  .pm-gsheet { place-items: center; }
  .pm-gsheet-panel { width: 400px; max-width: 400px; margin-bottom: 0; border-radius: 30px; padding-bottom: 0; }
}
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pmFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes pmGlassUp {
  from { opacity: 0; transform: translateY(40px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pmGlassDown {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce) {
  .pm-gsheet-panel, .pm-gsheet-scrim { animation: none !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pm-gsheet-panel { background: #fff; }
}
