/* P0.6 — Experience UI 冻结（静态演示，非生产） */

/* ── Tab 灰锁 ── */
.tab-btn--locked {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: auto;
  color: rgba(255, 255, 255, 0.38) !important;
}

body:not(.pretrip-page) .tab-btn--locked {
  color: rgba(91, 100, 114, 0.55) !important;
}

.tab-btn--locked .tab-icon svg {
  filter: grayscale(1);
  opacity: 0.7;
}

.tab-btn--unlocked {
  opacity: 1;
  cursor: pointer;
}

body.pretrip-page .tab-btn--unlocked:not(.tab-btn-primary) {
  color: rgba(255, 255, 255, 0.88);
}

/* ── Toast ── */
.exp-toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 3000;
  pointer-events: none;
  width: min(420px, calc(100vw - 32px));
}

.exp-toast {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(31, 33, 38, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.exp-toast.is-visible {
  display: flex;
  opacity: 1;
}

/* ── 出发页 V2 仪式卡片 ── */
.pretrip-v2 .pretrip-card .card-step-num {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pretrip-v2 .pretrip-card.is-done .card-step-num {
  background: linear-gradient(135deg, #A64D79, #D86CA0);
  color: #fff;
}

.pretrip-v2 .pretrip-card.is-done::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #E87AAE;
}

.pretrip-v2 .pretrip-card.is-locked {
  opacity: 0.42;
  pointer-events: none;
}

.pretrip-v2 .pretrip-card {
  position: relative;
}

.pretrip-v2 .pretrip-card .card-cta {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
  font-weight: 500;
}

.pretrip-v2 .pretrip-card.is-done .card-cta {
  color: rgba(232, 122, 174, 0.95);
}

.pretrip-v2 .pretrip-hint-bar {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(31, 33, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  display: none;
}

.pretrip-v2 .pretrip-hint-bar.is-visible {
  display: block;
}

/* ── 灰锁页遮罩（带路/宝藏静态演示） ── */
.page-lock-veil {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(15, 18, 24, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  pointer-events: none;
}

.page-lock-veil[hidden] {
  display: none !important;
}

.page-lock-veil__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.page-lock-veil__title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.page-lock-veil__sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

/* ── P0.6 审阅工具条（仅演示页） ── */
.p06-demo-bar {
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  z-index: 4000;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: center;
}

.p06-demo-bar button {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.p06-demo-bar button.is-active {
  background: #A64D79;
  border-color: #D86CA0;
}

.p06-demo-bar__label {
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

body.has-p06-demo-bar {
  padding-top: 52px;
}

/* ── G4 Map Profile 静态页 ── */
.g4mp-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
  background: #f1f5f9;
  color: #334155;
  min-height: 100vh;
}

.g4mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.g4mp-header h1 {
  margin: 0;
  font-size: 20px;
}

.g4mp-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.g4mp-banner {
  padding: 14px 16px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.g4mp-banner strong {
  color: #047857;
}

.g4mp-section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.g4mp-section h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.g4mp-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.g4mp-profile-tab {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
}

.g4mp-profile-tab.is-default {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

.g4mp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.g4mp-table th,
.g4mp-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.g4mp-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
}

.g4mp-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.g4mp-tag--required {
  background: #fef3c7;
  color: #92400e;
}

.g4mp-tag--optional {
  background: #e0e7ff;
  color: #3730a3;
}

.g4mp-tag--gate {
  background: #dcfce7;
  color: #166534;
}

.g4mp-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.g4mp-meta-item {
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.g4mp-meta-item .k {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
}

.g4mp-meta-item .v {
  font-size: 15px;
  font-weight: 700;
}

/* who-am-i 独立页 */
.who-page {
  min-height: 100vh;
  background: var(--gwm-bg-dark, #1F2126);
  display: flex;
  flex-direction: column;
}

.who-page__main {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.who-page__back {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 16px;
  z-index: 10;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.85;
}

.who-page .pretrip-glass-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
