/* Peeka · Base Tokens (dopamine-theme.css overrides in phone) */
:root {
  --bg-base: #fffaf0;
  --bg-warm: #f0ead6;
  --bg-screen: #fffaf0;
  --accent: #ffc1cc;
  --accent-soft: rgba(255, 193, 204, 0.35);
  --accent-hover: #f4b0bc;
  --aux-pink: #f4c2c2;
  --aux-cyan: #e7feff;
  --aux-cream: #f0ead6;
  --secondary: var(--aux-cyan);
  --border: rgba(255, 193, 204, 0.35);
  --border-strong: rgba(255, 193, 204, 0.5);
  --card-white: #ffffff;
  --text-dark: #5c5346;
  --text-muted: #9a9088;
  --text-on-primary: #5c5346;
  --text-light: #c4bbb2;
  --btn-disabled: #ece8e4;
  --calendar-bg: rgba(38, 38, 38, 0.94);
  --calendar-accent: #ffc1cc;
  --radius-card: 24px;
  --radius-button: 999px;
  --radius-input: 999px;
  --radius-option: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 28px rgba(255, 193, 204, 0.12);
  --shadow-button: 0 4px 16px rgba(255, 193, 204, 0.35);
  --phone-w: 375px;
  --phone-h: 812px;
  --font-main: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  /* legacy aliases */
  --pink-primary: var(--accent);
  --pink-secondary: var(--aux-pink);
  --pink-border: var(--border);
  --pink-soft: var(--accent-soft);
  --bg-pink-light: var(--bg-base);
  --bg-pink-mid: var(--bg-warm);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background: #121212;
  color: #eee;
  min-height: 100vh;
  display: flex;
}

/* ── Prototype Shell ── */
.proto-sidebar {
  width: 300px;
  min-width: 300px;
  background: #16162a;
  border-right: 1px solid #2a2a4a;
  padding: 20px;
  overflow-y: auto;
  height: 100vh;
  position: sticky;
  top: 0;
}

.proto-sidebar h1 {
  font-size: 18px;
  font-weight: 700;
  color: #fd79a8;
  margin-bottom: 4px;
}

.proto-sidebar .subtitle {
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
}

.flow-section { margin-bottom: 20px; }

.flow-section h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 8px;
}

.flow-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.flow-btn:hover { background: #222240; color: #fff; }

.flow-btn.active {
  background: rgba(225, 48, 108, 0.12);
  border-color: var(--accent);
  color: #fd79a8;
}

.flow-btn .id {
  font-size: 10px;
  color: #666;
  margin-right: 6px;
}

.demo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2a2a4a;
}

.demo-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s;
}

.demo-btn:active { transform: scale(0.97); }

.demo-btn.primary {
  background: var(--accent);
  color: var(--text-on-primary);
}

.demo-btn.secondary {
  background: #2a2a4a;
  color: #ccc;
}

.spec-link {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: #fd79a8;
  text-decoration: none;
}

.spec-link:hover { text-decoration: underline; }

/* ── Phone Frame ── */
.proto-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 100vh;
}

.phone-frame {
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: 44px;
  border: 3px solid #333;
  background: #000;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 100;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.screen-label {
  position: absolute;
  bottom: 92px;
  left: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 90;
  pointer-events: none;
}

/* ── Screen Base ── */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg-screen);
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

.screen.active { display: flex; }

.phone-screen--tabs .screen[data-screen="home"].active,
.phone-screen--tabs .screen[data-screen="discovery"].active,
.phone-screen--tabs .screen[data-screen="records"].active,
.phone-screen--tabs .screen[data-screen="chat"].active {
  padding-bottom: 76px;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes floatCat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes bounceIn {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes tapHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Background Cat Stickers (Ins deco) ── */
.bg-hearts, .bg-cats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.heart, .cat-sticker {
  position: absolute;
  opacity: 0.12;
  animation: floatCat 4s ease-in-out infinite;
  filter: grayscale(20%);
}

.cat-sticker { font-size: 28px; }

/* ── Nav Bar ── */
.nav-bar {
  position: relative;
  z-index: 10;
  padding: 58px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-back {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 300;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.step-dots {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.step-dot.done { background: var(--accent); }

/* ── Content ── */
.screen-content {
  position: relative;
  z-index: 5;
  flex: 1;
  padding: 0 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen-content--tab {
  padding-bottom: 88px;
}

/* ── Invite Card ── */
.invite-card {
  width: 100%;
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.invite-card.ins-photo {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ins-photo-area {
  position: relative;
  background: #e7feff;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Bilingual copy blocks ── */
.bi-line { text-align: center; }
.bi-line + .bi-line { margin-top: 8px; }

.bi-cn {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.bi-en {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

.bi-cn--sm { font-size: 18px; }
.bi-en--fun { font-style: italic; }

.hero-cyan {
  background: #e7feff;
  border-radius: 24px 24px 0 0;
  padding: 28px 20px 20px;
  margin: -20px -20px 0;
}

.hero-primary {
  background: var(--accent);
  border-radius: 24px 24px 0 0;
  padding: 28px 20px 20px;
  margin: -20px -20px 0;
}

.hero-primary .bi-cn,
.hero-primary .bi-en {
  color: var(--text-on-primary);
}

.hero-primary .bi-en {
  opacity: 0.88;
}

.surprise-card { padding: 20px; overflow: hidden; }
.surprise-card .surprise-body { padding-top: 16px; }

/* ── Exaggerated bilingual: nav / tabs / home ── */
.nav-bar--bi { align-items: flex-start; padding-top: 58px; }
.nav-bar--bi .nav-back { margin-top: 4px; }

.nav-bar--tab-root {
  justify-content: flex-start;
  gap: 8px;
  padding-left: 12px;
  padding-right: 16px;
}

.nav-bar--tab-root .nav-back {
  flex-shrink: 0;
  margin-top: 4px;
}

.nav-bar--tab-root .nav-bi {
  flex: 1;
  min-width: 0;
}

.nav-home-link {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--text-on-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}

.nav-bi {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-bi-cn {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.nav-bi-en {
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.tab-bi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 14px 8px !important;
  line-height: 1.15;
}

.tab-bi-cn {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tab-bi-en {
  font-size: 11px;
  font-weight: 600;
  font-style: italic;
  opacity: 0.9;
}

.template-tab.active .tab-bi-en {
  color: var(--text-on-primary);
  opacity: 0.92;
}

.home-hero-bi {
  text-align: center;
  margin: 8px 0 20px;
  width: 100%;
}

.home-hero-bi .bi-cn {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-hero-bi .bi-en {
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  margin-top: 6px;
}

.home-card-btn .btn-bi-cn {
  font-size: 17px;
  font-weight: 800;
  display: block;
}

.home-card-btn .btn-bi-en {
  font-size: 12px;
  font-style: italic;
  color: var(--accent);
  margin-top: 4px;
  display: block;
}

.pending-item__cn {
  font-size: 15px;
  font-weight: 600;
}

.pending-item__en {
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-bi-cn { font-size: 16px; font-weight: 700; }
.btn-bi-en { font-size: 12px; font-weight: 500; opacity: 0.85; }

.wx-invite-hero.hero-cyan {
  border-radius: 24px;
  padding: 32px 20px;
  margin-bottom: 16px;
}

.wx-invite-hero.hero-white {
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 32px 20px;
  margin-bottom: 16px;
  min-height: auto;
}

.wx-emoji-item--icon-only {
  aspect-ratio: 1;
  padding: 8px !important;
}

.wx-emoji-item--icon-only .wx-icon {
  font-size: 32px;
}

.type-chip--bi {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px !important;
  min-width: 72px;
}

.type-chip--bi .tab-bi-cn {
  font-size: 14px;
  font-weight: 700;
}

.type-chip--bi .tab-bi-en {
  font-size: 10px;
  font-style: italic;
  opacity: 0.85;
}

.type-chip--bi.selected .tab-bi-en {
  color: var(--text-on-primary);
  opacity: 0.9;
}

.ins-photo-area img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.ins-photo-body { padding: 16px 20px 20px; }

.invite-card + .invite-card { margin-top: 16px; }

/* ── Buttons ── */
.btn-primary {
  width: 100%;
  min-height: 52px;
  height: auto;
  border: none;
  border-radius: var(--radius-button);
  background: var(--accent);
  color: var(--text-on-primary);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: transform 0.15s, background 0.15s;
  position: relative;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 20px;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-primary:hover { transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }

.btn-primary.disabled,
.btn-primary:disabled {
  background: var(--btn-disabled);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost-sm {
  padding: 6px 16px;
  border: 1px solid rgba(240, 234, 214, 0.8);
  border-radius: var(--radius-pill);
  background: var(--aux-cream);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 193, 204, 0.7);
  text-underline-offset: 3px;
  margin-top: 12px;
}

.tap-hint {
  position: absolute;
  bottom: -28px;
  right: 20px;
  font-size: 24px;
  animation: tapHint 1.5s ease-in-out infinite;
  pointer-events: none;
}

/* ── Typography ── */
.h1-question {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin: 12px 0;
  line-height: 1.3;
}

.h2-card {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.text-body {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.5;
}

.text-caption {
  font-size: 13px;
  color: var(--text-muted);
}

.text-pink, .text-accent {
  color: var(--accent);
  font-weight: 600;
}

.text-center { text-align: center; }

/* ── Meme Image ── */
.meme-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 8px auto;
  display: block;
  animation: bounceIn 0.8s ease;
}

.meme-img-sm {
  width: 160px;
  height: 160px;
}

/* ── Identity Hints ── */
.hint-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.hint-tag, .clue-chip, .type-chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: var(--card-white);
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.15s;
}

.hint-tag.selected, .clue-chip.selected, .type-chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-primary);
  font-weight: 600;
}

.hint-tag.add, .clue-chip.add {
  border-style: dashed;
  color: var(--text-muted);
}

.hint-tag--bi,
.clue-chip--bi {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
}

.hint-tag--bi .tab-bi-en,
.clue-chip--bi .tab-bi-en {
  font-size: 10px;
  font-weight: 600;
  font-style: italic;
  opacity: 0.85;
}

.hint-tag.selected .tab-bi-en,
.clue-chip.selected .tab-bi-en {
  opacity: 0.95;
}

.hint-preview {
  background: var(--bg-warm);
  border-radius: var(--radius-input);
  padding: 14px;
  font-size: 13px;
  color: var(--text-dark);
  margin-top: 12px;
  border: 1px solid var(--border);
  line-height: 1.6;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
  align-self: flex-start;
}

.clue-input-wrap {
  margin-top: 10px;
  display: none;
}

.clue-input-wrap.show { display: block; }

.clue-answer-input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-base);
}

.clue-answer-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── Template Tabs ── */
.template-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.template-tab {
  flex: 1;
  padding: 10px 6px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  background: var(--card-white);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.template-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  font-weight: 600;
  color: var(--text-on-primary);
}

.upload-zone {
  width: 100%;
  height: 200px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: var(--bg-base);
  color: var(--text-muted);
  font-size: 13px;
  transition: border-color 0.15s;
}

.upload-zone:hover { border-color: var(--accent); color: var(--accent); }

.upload-zone .cat-big { font-size: 48px; }

.cat-picker {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-pick-item {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
}

.cat-pick-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-pick-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.cat-pick-item.emoji-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: var(--bg-warm);
}

/* ── 微信表情包选择器 ── */
.wx-emoji-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.wx-emoji-item {
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  background: var(--card-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.15s;
  padding: 4px;
}

.wx-emoji-item:hover { border-color: var(--accent); background: var(--accent-soft); }

.wx-emoji-item.selected {
  border-color: var(--accent);
  border-width: 2px;
  background: var(--accent);
}

.wx-emoji-item.selected .wx-name {
  color: var(--text-on-primary);
}

.wx-emoji-item .wx-icon { font-size: 28px; line-height: 1; }

.wx-emoji-item .wx-name {
  font-size: 9px;
  color: var(--text-muted);
  transform: scale(0.95);
}

.wx-emoji-show {
  flex-direction: column;
  gap: 8px;
  background: var(--bg-warm) !important;
  min-height: 200px !important;
}

.wx-emoji-large {
  font-size: 88px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-emoji-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.wx-invite-hero {
  text-align: center;
  margin: 8px 0 4px;
}

.wx-invite-hero .wx-emoji-large { font-size: 96px; }

/* ── Editable Text ── */
.editable-text {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-dark);
  text-align: center;
  outline: none;
  resize: none;
}

.editable-text.title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ── Option Grid ── */
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.option-grid.food {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.option-item {
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: var(--radius-option);
  background: var(--card-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s ease, box-shadow 0.35s ease;
}

.option-grid.food .option-item { font-size: 26px; }

.option-item:hover {
  background: var(--card-white);
  box-shadow: 0 6px 20px rgba(255, 193, 204, 0.15);
}

.option-item.selected {
  border-color: var(--accent);
  border-width: 2px;
  background: radial-gradient(circle at center, rgba(255, 193, 204, 0.55) 0%, rgba(255, 193, 204, 0.15) 50%, #fff 100%);
  transform: scale(1.06);
  box-shadow: var(--shadow-button);
}

/* ── Form Fields ── */
.field-group { margin-bottom: 16px; width: 100%; }

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-label--bi {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-label-en {
  font-size: 11px;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  text-transform: none;
}

.field-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--card-white);
  cursor: pointer;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── Calendar Overlay ── */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay.show { display: flex; }

.calendar-modal {
  width: 100%;
  background: var(--calendar-bg);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 20px;
  color: #fff;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-header h3 { font-size: 18px; }

.cal-nav {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
  color: #fff;
  font-family: inherit;
}

.cal-day:hover { background: rgba(255, 255, 255, 0.1); }

.cal-day.selected {
  background: var(--calendar-accent);
  box-shadow: 0 0 12px rgba(77, 159, 255, 0.5);
}

.cal-day.disabled {
  color: #555;
  cursor: not-allowed;
  pointer-events: none;
}

.cal-day.empty { pointer-events: none; }

.cal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.cal-reset {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-button);
  background: #444;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
}

.cal-confirm {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--calendar-accent);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ── Time Picker ── */
.time-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
  height: 160px;
  overflow: hidden;
  position: relative;
}

.time-picker::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 40px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  pointer-events: none;
}

.time-col {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.time-col::-webkit-scrollbar { display: none; }

.time-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.35);
  scroll-snap-align: center;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
}

.time-item.active {
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}

.time-item.disabled {
  color: rgba(255, 255, 255, 0.12);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Friend List ── */
.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 4px;
}

.friend-item:hover { background: var(--pink-soft); }

.friend-item.selected { background: var(--pink-soft); border: 2px solid var(--pink-primary); }

.friend-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pink-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.friend-name { font-size: 15px; font-weight: 600; color: var(--text-dark); }

/* ── Home Step 0 · 选人 ── */
.home-step0 {
  width: 100%;
  margin-bottom: 16px;
}

.home-step0-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.home-selected-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: var(--pink-soft);
  border: 2px solid var(--pink-primary);
  border-radius: var(--radius-card);
}

.home-selected-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.home-selected-text { flex: 1; }

.home-selected-cn {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}

.home-selected-en {
  font-size: 11px;
  color: var(--text-dark);
  font-style: italic;
  margin: 2px 0 0;
}

.recipient-chip__en {
  font-size: 11px;
  color: var(--text-dark);
  font-style: italic;
  margin: 2px 0 0;
}

.home-selected-clear {
  border: none;
  background: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.home-friend-list { width: 100%; }

/* ── Recipient chip (hints / create) ── */
.recipient-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: var(--card-bg);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius-card);
}

.recipient-chip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.recipient-chip__cn {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}

.send-preview-en {
  display: block;
  text-align: center;
  color: var(--text-dark);
  font-style: italic;
  opacity: 0.8;
  margin: 8px 0 0;
  font-size: 14px;
}

/* ── Send page recipient ── */
.send-recipient {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius-card);
}

.send-recipient-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--text-dark);
}

.send-recipient-sub {
  font-size: 12px;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

/* ── Detail Rows ── */
.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 16px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--pink-soft);
}

.detail-row:last-child { border-bottom: none; }

.detail-icon { font-size: 20px; width: 28px; text-align: center; }

/* ── Identity Reveal ── */
.reveal-section {
  border-top: 2px dashed var(--pink-border);
  margin-top: 16px;
  padding-top: 16px;
}

.reveal-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.reveal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-secondary), var(--pink-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

/* ── Confirm Dialog ── */
.dialog {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.dialog.show { display: flex; }

.dialog-box {
  background: var(--card-white);
  border-radius: var(--radius-card);
  padding: 24px;
  width: 100%;
  text-align: center;
}

.dialog-box h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.dialog-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.dialog-actions {
  display: flex;
  gap: 12px;
}

.dialog-actions button { flex: 1; }

/* ── Home Screen ── */
.home-logo {
  cursor: pointer;
  user-select: none;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 8px 0 4px;
  text-align: center;
  letter-spacing: -0.03em;
}

.home-logo .cat-emoji { font-size: 32px; display: block; margin-bottom: 8px; }

.city-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--card-white);
  padding: 6px 14px;
  border-radius: var(--radius-button);
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.home-actions { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.home-card-btn {
  width: 100%;
  padding: 18px;
  border: 2px solid var(--pink-border);
  border-radius: var(--radius-card);
  background: var(--card-white);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.home-card-btn:hover { border-color: var(--pink-primary); }

.pending-item {
  width: 100%;
  padding: 14px 16px;
  background: var(--card-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
}

.pending-item .status {
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
}

.ins-header-cat {
  text-align: center;
  font-size: 40px;
  margin: 8px 0 4px;
}

.spec-panel h3 { color: #fd79a8; }

/* ── 聊一聊 FAB ── */
.home-top-bar {
  position: relative;
  z-index: 10;
  padding: 58px 24px 0;
  min-height: 24px;
}

.agree-top-bar {
  position: relative;
  z-index: 10;
  padding: 58px 24px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.agree-top-hint {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
}

.chat-fab {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(231, 254, 255, 0.8);
  border-radius: 50%;
  background: var(--aux-cyan);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s, border-color 0.15s;
}

.chat-fab:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.chat-fab--inline { flex-shrink: 0; }

/* ── 聊天列表 ── */
.chat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.chat-item:last-child { border-bottom: none; }

.chat-item__emoji { font-size: 36px; }

.chat-item__body { flex: 1; min-width: 0; }

.chat-item__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.chat-item__name { font-size: 15px; font-weight: 600; }

.chat-item__time { font-size: 12px; color: var(--text-muted); }

.chat-item__preview {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item__badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* ── 聊天室 ── */
.chat-room {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: calc(100% - 80px);
  padding: 0 24px 16px;
}

.chat-anon-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px;
  background: var(--aux-cream);
  border-radius: 24px;
  margin-bottom: 12px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.chat-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
}

.chat-bubble--them {
  align-self: flex-start;
  background: var(--card-white);
  border: 1px solid var(--border);
  color: var(--text-dark);
}

.chat-bubble--me {
  align-self: flex-end;
  background: var(--accent);
  color: var(--text-on-primary);
}

.chat-input-bar {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  background: var(--card-white);
}

.chat-send {
  padding: 0 18px;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: var(--accent);
  color: var(--text-on-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ── 约会记录 ── */
.screen-content--records {
  align-items: stretch;
  padding-top: 0;
}

.record-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 16px;
}

.record-tab-en {
  display: block;
  font-size: 10px;
  opacity: 0.85;
  font-weight: 600;
  font-style: italic;
  margin-top: 2px;
}

.record-tab.active .record-tab-en {
  opacity: 0.95;
}

.record-list {
  width: 100%;
  flex: 1;
}

.record-tab {
  padding: 10px 4px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  background: var(--card-white);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
}

.record-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text-on-primary);
  font-weight: 600;
}

.record-item {
  padding: 20px;
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
}

.record-item__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.record-item__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.record-item__tag {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* ── 消息撰写 ── */
.msg-compose-input {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  resize: none;
  background: var(--bg-base);
}

.msg-compose-input:focus {
  outline: none;
  border-color: var(--accent);
}

.comfort-msg {
  padding: 0 16px;
  line-height: 1.6;
  color: var(--text-muted);
  font-size: 16px;
}

/* ── Toast ── */
.toast {
  position: absolute;
  bottom: 100px;
  left: 24px;
  right: 24px;
  background: rgba(38, 38, 38, 0.92);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 13px;
  text-align: center;
  z-index: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.screen[data-screen="chatRoom"] {
  display: none;
  flex-direction: column;
}

.screen[data-screen="chatRoom"].active {
  display: flex;
}

/* ── Success Animation ── */
.success-icon {
  font-size: 64px;
  margin: 40px 0 20px;
  animation: bounceIn 0.8s ease;
}

/* ── Checkbox row ── */
.check-row {
  display: flex;
  gap: 16px;
  margin: 12px 0;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
}

.check-item input { accent-color: var(--pink-primary); }

/* ── Spec Panel (right of phone on wide screens) ── */
.spec-panel {
  width: 280px;
  margin-left: 32px;
  padding: 20px;
  background: #16162a;
  border-radius: 16px;
  border: 1px solid #2a2a4a;
  max-height: 80vh;
  overflow-y: auto;
}

.spec-panel h3 {
  font-size: 14px;
  color: var(--pink-secondary);
  margin-bottom: 12px;
}

.spec-panel dl { font-size: 12px; }

.spec-panel dt {
  color: #888;
  margin-top: 8px;
}

.spec-panel dd {
  color: #ccc;
  margin-left: 0;
  margin-top: 2px;
}

/* ── Bottom Tab Bar ── */
.bottom-tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  background: var(--bg-screen);
  border-top: 1px solid rgba(225, 48, 108, 0.08);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
}

.bottom-tab-bar[hidden] { display: none; }

.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  border-radius: 12px;
  transition: background 0.15s;
}

.bottom-tab:hover { background: var(--accent-soft); }

.bottom-tab.active { background: var(--accent-soft); }

.bottom-tab-icon {
  font-size: 18px;
  line-height: 1;
}

.bottom-tab-cn {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
}

.bottom-tab-en {
  font-size: 9px;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
}

.section-label--bi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.section-label--bi .section-label-en {
  font-size: 11px;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
}

.discovery-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-card);
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.discovery-user:hover {
  background: var(--bg-warm);
}

.discovery-user.selected {
  background: rgba(255, 193, 204, 0.25);
  outline: 1px solid var(--accent);
}

.discovery-user__cta {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.discovery-user__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pink-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.discovery-user__body { flex: 1; }

.discovery-user__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.discovery-user__status {
  font-size: 11px;
  color: var(--text-dark);
  opacity: 0.7;
  font-style: italic;
}

.records-pending-block {
  width: 100%;
  margin-bottom: 16px;
  min-height: 0;
}

.records-pending-block:empty {
  display: none;
}

/* ── P00 Compliance ── */
.compliance-page {
  align-items: center;
  padding-top: 72px;
  text-align: center;
}

.compliance-page__cat {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
}

.compliance-card {
  width: 100%;
  padding: 0 !important;
  margin: 20px 0 16px;
  overflow: hidden;
}

.compliance-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
}

.compliance-item:last-child {
  border-bottom: none;
}

.compliance-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-on-primary);
}

.compliance-check--on {
  background: var(--accent);
}

.compliance-item__cn {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.compliance-item__en {
  font-size: 12px;
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
  margin: 4px 0 0;
}

.compliance-link {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.compliance-safety {
  width: 100%;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--bg-warm);
  border-radius: 14px;
  text-align: left;
}

.compliance-safety-cn,
.compliance-safety-en {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: var(--text-dark);
}

.compliance-safety-en {
  margin-top: 6px;
  font-style: italic;
  color: var(--text-muted);
}

.compliance-decline {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.privacy-page {
  align-items: stretch;
  padding-top: 8px;
  text-align: left;
}

.privacy-page__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 4px;
}

.privacy-page__sub {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  margin: 0 0 20px;
}

.privacy-section {
  margin-bottom: 20px;
}

.privacy-section__h {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-dark);
}

.privacy-section__p,
.privacy-section__p-en {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 6px;
  color: var(--text-dark);
}

.privacy-section__p-en {
  font-style: italic;
  color: var(--text-muted);
}

.detail-row--bi {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-bottom: 1px solid var(--pink-soft);
}

.detail-row--bi .detail-row-en {
  font-size: 12px;
  color: var(--text-dark);
  opacity: 0.65;
  font-style: italic;
  padding-left: 28px;
}

@media (max-width: 1100px) {
  .spec-panel { display: none; }
}

@media (max-width: 800px) {
  body { flex-direction: column; }
  .proto-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    max-height: 200px;
  }
  .proto-main { padding: 16px; }
  .phone-frame { transform: scale(0.85); transform-origin: top center; }
}
