/* ===========================================================
   首页「联系客服」：入口区 + 工单弹层
   2026-12-01 · 复用 /api/support（旧版工单逻辑）
   =========================================================== */

/* ---------- 入口区（放在「常见问题」之前） ---------- */
.support-band { background: var(--bg, #fff); }

.support-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  background: var(--green-l, #e8f3ee);
  border: 1px solid rgba(15, 125, 85, .14);
  border-radius: var(--radius-lg, 22px);
  padding: clamp(24px, 4vw, 46px);
}

.support-copy .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green, #0f7d55);
}

.support-copy h2 {
  margin: 10px 0 12px;
  font-family: var(--font-display, "Songti SC", serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  color: var(--ink, #16211c);
}
.support-copy h2 em { font-style: normal; color: var(--green, #0f7d55); }

.support-copy > p {
  margin: 0 0 16px;
  max-width: 44em;
  color: var(--muted, #667a71);
  font-size: 14.8px;
  line-height: 1.9;
}

.support-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.support-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink, #16211c);
}
.support-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold, #bd8a3f);
}
.support-list a { color: var(--green, #0f7d55); border-bottom: 1px solid rgba(15, 125, 85, .3); }
.support-list a:hover { border-bottom-color: var(--green, #0f7d55); }

.support-side {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line, #e3e8e0);
  border-radius: var(--radius, 14px);
}
.support-btn { width: 100%; }
.support-mail {
  font-size: 13.5px;
  color: var(--green, #0f7d55);
  word-break: break-all;
}
.support-mail:hover { text-decoration: underline; }
.support-hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted, #667a71);
}

/* ---------- 弹层（只作用于 #supportSheet，避免影响工具页） ---------- */
#supportSheet.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}
#supportSheet[hidden] { display: none; }

#supportSheet .sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 26, .55);
  backdrop-filter: blur(4px);
  animation: hs-fade .2s ease;
}

#supportSheet .sheet-panel {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-lg, 22px);
  padding: 32px 26px 24px;
  box-shadow: 0 24px 60px rgba(12, 32, 24, .28);
  text-align: center;
  animation: hs-in .26s cubic-bezier(.2, .8, .3, 1);
}

@keyframes hs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hs-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}

#supportSheet .sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, #667a71);
  cursor: pointer;
}
#supportSheet .sheet-close:hover { background: #f1f4f1; color: var(--ink, #16211c); }
#supportSheet .sheet-close svg { width: 16px; height: 16px; }

#supportSheet .sheet-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink, #16211c);
}
#supportSheet .sheet-sub {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted, #667a71);
}

#supportSheet .sup-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
  justify-content: center;
}
#supportSheet .tone-opt {
  padding: 7px 14px;
  border: 1px solid var(--line, #e3e8e0);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #16211c);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
#supportSheet .tone-opt:hover { border-color: var(--green, #0f7d55); }
#supportSheet .tone-opt.is-active {
  border-color: var(--green, #0f7d55);
  background: var(--green-l, #e8f3ee);
  color: var(--green-d, #0a5f40);
  font-weight: 600;
}

#supportSheet .field { display: block; margin-bottom: 14px; text-align: left; }
#supportSheet .field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--muted, #667a71);
}
#supportSheet .field textarea,
#supportSheet .field input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--line, #e3e8e0);
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #16211c);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
}
#supportSheet .field textarea:focus,
#supportSheet .field input:focus {
  outline: none;
  border-color: var(--green, #0f7d55);
  box-shadow: 0 0 0 3px rgba(15, 125, 85, .12);
}

#supportSheet .sup-submit { width: 100%; margin-top: 4px; }

#supportSheet .pay-status {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted, #667a71);
}
#supportSheet .pay-status.is-error { color: #c0392b; }
#supportSheet .pay-status.is-ok { color: var(--green, #0f7d55); }

#supportSheet .copy-link {
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line, #e3e8e0);
  border-radius: 999px;
  background: #fff;
  color: var(--muted, #667a71);
  font-size: 12.5px;
  cursor: pointer;
}
#supportSheet .copy-link:hover { border-color: var(--green, #0f7d55); color: var(--green, #0f7d55); }

/* 打开弹层时锁滚动 */
body.hs-lock { overflow: hidden; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .support-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 20px;
  }
  .support-side { padding: 18px; }
  #supportSheet .sheet-panel { padding: 30px 20px 22px; }
  #supportSheet .sup-kinds { justify-content: flex-start; }
  #supportSheet .tone-opt { font-size: 12.5px; padding: 6px 12px; }
}
