/* ============================================================
 * ASK · 合盘 UI · 2026-07-18
 * ------------------------------------------------------------
 * 1. 欢迎屏 · 模式切换提示条（替代原来两个大按钮）
 * 2. 顶部命盘条右侧：合盘对象徽章
 * 3. 合盘对象选择弹窗
 * ============================================================ */

/* ---------- 1. 欢迎屏提示条 ---------- */
.ask-modes-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px auto 28px;
  padding: 10px 16px 10px 20px;
  max-width: 520px;
  background: rgba(229, 193, 106, 0.06);
  border: 1px solid rgba(229, 193, 106, 0.18);
  border-radius: 999px;
  font-size: 12.5px;
  color: #8A7B5C;
  line-height: 1.4;
  flex-wrap: wrap;
}
.ask-modes-hint-txt { letter-spacing: 0.2px; }
.ask-modes-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #1A1A2E;
  color: #FEFAEE;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
  font-family: inherit;
}
.ask-modes-hint-btn:hover {
  background: #C89B40;
  transform: translateY(-1px);
}
[data-theme="dark"] .ask-modes-hint {
  background: rgba(229, 193, 106, 0.04);
  border-color: rgba(229, 193, 106, 0.12);
  color: #B5AFA0;
}
[data-theme="dark"] .ask-modes-hint-btn {
  background: #E5C77A;
  color: #1A1A2E;
}

/* ---------- 2. 顶部条：合盘对象徽章 ---------- */
.ask-context-partner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  background: rgba(200, 155, 64, 0.10);
  border: 1px solid rgba(200, 155, 64, 0.28);
  border-radius: 999px;
  font-size: 12px;
  color: #6B5C2F;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
  height: 26px;
  flex-shrink: 0;
  margin-right: 8px;
  font-family: inherit;
}
.ask-context-partner:hover {
  background: rgba(200, 155, 64, 0.18);
  border-color: rgba(200, 155, 64, 0.45);
}
.ask-context-partner-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #C89B40, #A67F2E);
  color: #FEFAEE;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Noto Serif SC', serif;
}
.ask-context-partner-name {
  font-weight: 500;
  letter-spacing: 0.3px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ask-context-partner-swap {
  display: inline-flex;
  opacity: 0.5;
}
[data-theme="dark"] .ask-context-partner {
  background: rgba(229, 199, 122, 0.08);
  border-color: rgba(229, 199, 122, 0.22);
  color: #E5C77A;
}

/* ---------- 3. 合盘对象选择弹窗 ---------- */
.ask-couple-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ask-couple-modal[hidden] { display: none; }
.ask-couple-mask {
  position: absolute; inset: 0;
  background: rgba(20, 16, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: askCoupleFadeIn 0.2s ease;
}
.ask-couple-card {
  position: relative;
  width: min(92vw, 560px);
  max-height: 88vh;
  overflow: hidden;
  background: #FAF7F0;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(20, 16, 10, 0.35);
  display: flex; flex-direction: column;
  font-family: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  animation: askCoupleSlideIn 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes askCoupleFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes askCoupleSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ask-couple-head {
  padding: 20px 24px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(20, 16, 10, 0.08);
}
.ask-couple-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 600;
  color: #1A1A2E;
  letter-spacing: 1.5px;
}
.ask-couple-close {
  border: none;
  background: transparent;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  width: 32px; height: 32px;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.15s;
}
.ask-couple-close:hover { background: rgba(0,0,0,0.06); color: #333; }

.ask-couple-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.ask-couple-section {
  display: block;
  cursor: pointer;
  padding: 14px 16px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  transition: all 0.18s;
}
.ask-couple-section:hover { background: rgba(200, 155, 64, 0.04); }
.ask-couple-section.is-active {
  background: rgba(200, 155, 64, 0.06);
  border-color: rgba(200, 155, 64, 0.35);
}
.ask-couple-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ask-couple-section-head input[type=radio] {
  width: 18px; height: 18px;
  cursor: pointer;
  accent-color: #C89B40;
  flex-shrink: 0;
}
.ask-couple-section-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #1A1A2E;
  letter-spacing: 0.3px;
  flex: 1;
}
.ask-couple-newprofile {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  color: #C89B40;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.15s;
  text-decoration: none;
}
.ask-couple-newprofile:hover { background: rgba(200, 155, 64, 0.10); }

.ask-couple-list-wrap {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.ask-couple-list-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  padding: 10px 14px;
  font-size: 11.5px;
  color: #999;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}
.ask-couple-list {
  max-height: 200px;
  overflow-y: auto;
}
.ask-couple-list-empty {
  padding: 32px 14px;
  text-align: center;
  color: #B0A9A0;
  font-size: 13px;
}
.ask-couple-list-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ask-couple-list-item:last-child { border-bottom: none; }
.ask-couple-list-item:hover { background: rgba(200, 155, 64, 0.05); }
.ask-couple-list-item.is-selected { background: rgba(200, 155, 64, 0.09); }
.ask-couple-list-item.is-self { opacity: 0.45; cursor: not-allowed; }
.ask-couple-list-item.is-self:hover { background: transparent; }
.ask-couple-list-name {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
  color: #1A1A2E;
  font-size: 13.5px;
}
.ask-couple-list-name-tag {
  padding: 2px 6px;
  background: rgba(200, 155, 64, 0.15);
  color: #A67F2E;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}
.ask-couple-list-info {
  font-size: 12.5px;
  color: #8A7B5C;
  letter-spacing: 0.2px;
}
.ask-couple-list-radio {
  width: 16px; height: 16px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  transition: all 0.15s;
  position: relative;
}
.ask-couple-list-item.is-selected .ask-couple-list-radio {
  border-color: #C89B40;
  background: #C89B40;
}
.ask-couple-list-item.is-selected .ask-couple-list-radio::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ask-couple-or {
  display: flex; align-items: center;
  margin: 16px 0;
  color: #C0B8AD;
  font-size: 12px;
}
.ask-couple-or::before,
.ask-couple-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.08);
}
.ask-couple-or span { padding: 0 14px; }

.ask-couple-quick {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.ask-couple-quick-year {
  padding: 8px 14px;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  color: #1A1A2E;
  cursor: pointer;
  outline: none;
  min-width: 130px;
}
.ask-couple-quick-year:disabled { opacity: 0.5; cursor: not-allowed; }
.ask-couple-quick-gender {
  display: flex;
  gap: 6px;
}
.ask-couple-gender-btn {
  padding: 8px 18px;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  color: #1A1A2E;
}
.ask-couple-gender-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ask-couple-gender-btn:not(:disabled):hover {
  border-color: #C89B40;
  color: #C89B40;
}
.ask-couple-gender-btn.is-active {
  background: #1A1A2E;
  color: #fff;
  border-color: #1A1A2E;
}

.ask-couple-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(20, 16, 10, 0.08);
  background: #fff;
  flex-wrap: wrap;
}
.ask-couple-foot-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999;
  flex: 1;
  min-width: 200px;
}
.ask-couple-foot-btns {
  display: inline-flex;
  gap: 8px;
}
.ask-couple-btn {
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  border: 1px solid transparent;
  letter-spacing: 0.5px;
}
.ask-couple-btn-ghost {
  background: transparent;
  color: #666;
  border-color: rgba(0,0,0,0.12);
}
.ask-couple-btn-ghost:hover { background: rgba(0,0,0,0.04); color: #333; }
.ask-couple-btn-primary {
  background: #1A1A2E;
  color: #FEFAEE;
}
.ask-couple-btn-primary:hover:not(:disabled) {
  background: #C89B40;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 155, 64, 0.25);
}
.ask-couple-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- dark mode ---- */
[data-theme="dark"] .ask-couple-card {
  background: var(--ask-card, #14161C);
  border: 1px solid rgba(255,255,255,0.05);
}
[data-theme="dark"] .ask-couple-title,
[data-theme="dark"] .ask-couple-section-title,
[data-theme="dark"] .ask-couple-list-name,
[data-theme="dark"] .ask-couple-quick-year,
[data-theme="dark"] .ask-couple-gender-btn { color: #EDE8DC; }
[data-theme="dark"] .ask-couple-list-wrap {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .ask-couple-list-head { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); color: #B5AFA0; }
[data-theme="dark"] .ask-couple-list-item { border-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .ask-couple-list-info { color: #B5AFA0; }
[data-theme="dark"] .ask-couple-foot { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .ask-couple-btn-primary { background: #E5C77A; color: #1A1A2E; }
[data-theme="dark"] .ask-couple-quick-year,
[data-theme="dark"] .ask-couple-gender-btn {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .ask-couple-gender-btn.is-active {
  background: #E5C77A;
  color: #1A1A2E;
  border-color: #E5C77A;
}

/* ---- 移动端 ---- */
@media (max-width: 640px) {
  .ask-couple-card { border-radius: 16px; }
  .ask-couple-head { padding: 16px 18px 12px; }
  .ask-couple-title { font-size: 16px; letter-spacing: 1px; }
  .ask-couple-body { padding: 16px 18px; }
  .ask-couple-section { padding: 12px 12px; }
  .ask-couple-foot { padding: 12px 18px 14px; }
  .ask-couple-foot-tip { min-width: 100%; margin-bottom: 6px; }
  .ask-couple-foot-btns { width: 100%; justify-content: flex-end; }
  .ask-couple-list-head,
  .ask-couple-list-item { grid-template-columns: 1fr 1.4fr auto; padding: 10px; }
}

/* ============================================================
 * 欢迎屏顶部：合盘身份大字条（谁 × 谁）
 * ============================================================ */
.ask-couple-head-strip {
  display: flex;
  justify-content: center;
  margin: 6px 0 22px;
}
.ask-couple-head-strip-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 14px;
  background: linear-gradient(135deg, rgba(200, 155, 64, 0.12), rgba(216, 124, 176, 0.08));
  border: 1px solid rgba(200, 155, 64, 0.28);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(200, 155, 64, 0.10);
}
.ask-couple-head-tag {
  padding: 3px 10px;
  background: #C89B40;
  color: #FEFAEE;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 2px;
}
.ask-couple-head-me,
.ask-couple-head-ta {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 700;
  color: #1A1A2E;
  letter-spacing: 1px;
}
.ask-couple-head-x {
  font-size: 15px;
  color: #C89B40;
  font-weight: 300;
  opacity: 0.7;
}
.ask-couple-head-swap-btn {
  margin-left: 4px;
  padding: 5px 12px;
  font-size: 11.5px;
  color: #8A7B5C;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(200, 155, 64, 0.2);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.ask-couple-head-swap-btn:hover {
  background: #fff;
  color: #C89B40;
  border-color: rgba(200, 155, 64, 0.5);
}

/* 合盘模式下欢迎屏隐藏"切到合盘"提示条 */
.ask-modes-hint.is-hidden { display: none; }

[data-theme="dark"] .ask-couple-head-strip-inner {
  background: linear-gradient(135deg, rgba(229, 199, 122, 0.10), rgba(216, 124, 176, 0.06));
  border-color: rgba(229, 199, 122, 0.20);
}
[data-theme="dark"] .ask-couple-head-me,
[data-theme="dark"] .ask-couple-head-ta { color: #EDE8DC; }
[data-theme="dark"] .ask-couple-head-swap-btn { background: rgba(255,255,255,0.06); color: #B5AFA0; border-color: rgba(255,255,255,0.1); }

@media (max-width: 640px) {
  .ask-couple-head-strip-inner { padding: 8px 14px 8px 10px; gap: 8px; }
  .ask-couple-head-me,
  .ask-couple-head-ta { font-size: 14px; }
  .ask-couple-head-swap-btn { padding: 4px 8px; font-size: 11px; }
}
