/* 万两空降 — 高端交友落地页框架 */

:root {
  --bg-deep: #07060b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f0f7;
  --text-muted: #9b93a8;
  --accent: #e8a4b8;
  --accent-strong: #d4738f;
  --gold: #c9a86a;
  --glow: rgba(232, 164, 184, 0.35);
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 背景光晕 */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(212, 115, 143, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(201, 168, 106, 0.12), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(120, 80, 160, 0.1), transparent 50%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 20px;
  background: rgba(7, 6, 11, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 主内容 */
main {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 20px 120px;
}

/* Hero */
.hero {
  padding: 32px 0 24px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 28px;
}

/* 公告条 */
.announce {
  margin-bottom: 28px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.announce strong { color: var(--accent); font-weight: 600; }

/* 档案列表 */
.profile-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 28rem;
  margin: 0 auto;
}

.profile {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.profile-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.profile-cover:hover img { transform: scale(1.03); }

.cover-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #4ade80;
}

.cover-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 14px;
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(to top, rgba(7, 6, 11, 0.85), transparent);
}

.profile-body {
  padding: 22px 20px 24px;
}

.profile-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.profile-bio {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 20px;
  border: 0;
  background: transparent;
}

.btn-inline { margin-top: 4px; }

.album img.active {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--accent-strong);
}

/* 信任区 */
.trust {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.trust-item {
  padding: 16px 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.trust-icon { font-size: 1.25rem; margin-bottom: 6px; }

.trust-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.trust-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 底部固定 CTA */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg-deep) 60%, transparent);
  pointer-events: none;
}

.bottom-cta-inner {
  max-width: 28rem;
  margin: 0 auto;
  pointer-events: auto;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #1a0f14;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(135deg, #f0c4d4 0%, var(--accent) 50%, var(--accent-strong) 100%);
  box-shadow: 0 8px 32px var(--glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px var(--glow);
}

/* 弹窗 */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .overlay {
    align-items: center;
    padding: 24px;
  }
}

.overlay.show { display: flex; }

.modal {
  width: 100%;
  max-width: 26rem;
  max-height: 92vh;
  overflow-y: auto;
  background: #12101a;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border);
  position: relative;
}

@media (min-width: 640px) {
  .modal { border-radius: var(--radius-xl); }
}

.modal-hero {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.modal-body { padding: 24px; }

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.album-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.album {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.album img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}

.album img:hover { border-color: var(--accent); }

/* 预约加载（框架占位） */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.booking-overlay.show { display: flex; }

.booking-card {
  width: 100%;
  max-width: 22rem;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #12101a;
  border: 1px solid var(--border);
  text-align: center;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin: 20px 0 8px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-strong), var(--gold));
  transition: width 0.1s linear;
}

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

#booking-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.booking-loading { margin-top: 16px; }

.btn-ok {
  margin-top: 20px;
  width: 100%;
}

.gallery-modal .album {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-modal .album.album-many {
  grid-template-columns: repeat(4, 1fr);
  max-height: 200px;
  overflow-y: auto;
}
