/* ===== 合拍默契测评 H5 · V4 浅紫粉彩玻璃风（soft pastel glassmorphism） ===== */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { font-size:16px; }
body {
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif;
  background:linear-gradient(160deg,#c7d2fe 0%,#ddd6fe 30%,#fbcfe8 65%,#bfdbfe 100%);
  background-attachment:fixed;
  color:#312e81;
  min-height:100vh;
  overflow-x:hidden;
}

/* 柔和光晕 */
.bg-glow { position:fixed; border-radius:50%; filter:blur(80px); pointer-events:none; z-index:0; }
.glow-a { width:340px; height:340px; top:-90px; right:-90px;
  background:radial-gradient(circle,rgba(255,255,255,.75),rgba(255,255,255,0) 70%); }
.glow-b { width:300px; height:300px; bottom:-70px; left:-80px;
  background:radial-gradient(circle,rgba(249,168,212,.5),rgba(249,168,212,0) 70%); }
.glow-c { width:280px; height:280px; top:38%; left:55%;
  background:radial-gradient(circle,rgba(147,197,253,.45),rgba(147,197,253,0) 70%); }

/* 半透明泡泡装饰（边缘高光） */
.bubble { position:fixed; border-radius:50%; pointer-events:none; z-index:0;
  background:radial-gradient(circle at 32% 30%,rgba(255,255,255,.85),rgba(255,255,255,.18) 42%,rgba(255,255,255,.05) 70%);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:inset -6px -8px 18px rgba(167,139,250,.12), 0 8px 24px rgba(167,139,250,.1);
  animation:bubbleFloat 9s ease-in-out infinite; }
.bubble.b1 { width:86px; height:86px; top:14%; left:6%; }
.bubble.b2 { width:52px; height:52px; top:56%; right:8%; animation-delay:2.2s; }
.bubble.b3 { width:64px; height:64px; bottom:12%; left:12%; animation-delay:4.5s; }
@keyframes bubbleFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-16px); } }

/* 细小白星光点（JS 生成 ✦ 字符 + 闪烁） */
.stars { position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.star-dot { position:absolute; color:#ffffff; text-shadow:0 0 8px rgba(255,255,255,.9);
  animation:twinkle 3s ease-in-out infinite; line-height:1; }
.star-dot.dot { border-radius:50%; box-shadow:0 0 6px rgba(255,255,255,.85); }
@keyframes twinkle { 0%,100% { opacity:.18; transform:scale(.8); } 50% { opacity:.95; transform:scale(1.1); } }

.phone { max-width:420px; margin:0 auto; padding:0 16px 32px; position:relative; z-index:1; min-height:100vh; }
.page { animation:fadeIn .32s ease; padding-top:18px; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px);} to { opacity:1; transform:none;} }
.hidden { display:none !important; }

/* 悬浮按钮不占页面高度，桌面上仍对齐手机内容区右侧。 */
.music-toolbar { position:fixed; top:calc(8px + env(safe-area-inset-top, 0px)); right:max(16px, calc(50% - 194px)); z-index:20; pointer-events:none; }
.music-toggle { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:10px; border:1px solid rgba(255,255,255,.55); border-radius:50%; background:rgba(255,255,255,.5); box-shadow:0 4px 16px rgba(167,139,250,.18); color:#6b6399; cursor:pointer; pointer-events:auto; }
.music-toggle.is-playing { color:#be185d; }
.music-toggle:focus-visible { outline:2px solid #be185d; outline-offset:3px; }
.music-note { width:22px; height:22px; }
.music-toggle.is-playing .music-slash { display:none; }
.home-account { position:fixed; top:calc(8px + env(safe-area-inset-top, 0px)); left:max(16px, calc(50% - 194px)); z-index:20; display:inline-flex; align-items:center; gap:8px; height:44px; padding:5px 14px 5px 5px; border:1px solid rgba(255,255,255,.55); border-radius:999px; background:rgba(255,255,255,.5); box-shadow:0 4px 16px rgba(167,139,250,.18); color:#8055b4; font-family:inherit; font-size:.95rem; font-weight:700; line-height:1; cursor:pointer; }
.home-account-avatar { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,#f9c2e0,#bd9cf3); font-size:20px; }
.home-account:focus-visible { outline:2px solid #8055b4; outline-offset:3px; }
.home-account:active { background:rgba(255,255,255,.65); }

/* ===== 文字 ===== */
.grad-text {
  background:linear-gradient(90deg,#ec4899,#a78bfa);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
h1.hero { font-size:2.1rem; text-align:center; letter-spacing:3px; margin:36px 0 10px; font-weight:900;
  color:#ffffff; text-shadow:0 2px 14px rgba(109,40,217,.35), 0 1px 3px rgba(49,46,129,.25); }
.subtitle { text-align:center; color:#6b6399; font-size:.92rem; margin-bottom:24px; line-height:1.7; }
h2.sec-title { font-size:1.12rem; margin:24px 0 12px; font-weight:700; color:#312e81; }
.muted { color:#6b6399; font-size:.82rem; line-height:1.6; }
.center { text-align:center; }

/* ===== 卡片：白色半透明毛玻璃 ===== */
.card {
  background:rgba(255,255,255,.62);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.8);
  border-radius:24px;
  padding:18px;
  margin-bottom:14px;
  box-shadow:0 12px 32px rgba(167,139,250,.18);
}
.card-title { font-size:1rem; font-weight:700; margin-bottom:10px; color:#312e81; }

/* ===== 按钮 ===== */
.btn {
  display:block; width:100%; border:none; cursor:pointer;
  padding:14px 20px; border-radius:999px;
  font-size:1rem; font-weight:700; letter-spacing:1px;
  transition:transform .12s ease, box-shadow .2s, opacity .2s;
  text-align:center; font-family:inherit;
}
.btn:active { transform:scale(.96); }
.btn-primary {
  background:linear-gradient(90deg,#fb7185,#ec4899);
  color:#ffffff;
  box-shadow:0 8px 20px rgba(236,72,153,.35);
}
.btn-primary:disabled { opacity:.45; box-shadow:none; cursor:not-allowed; }
.btn-blue {
  background:linear-gradient(90deg,#60a5fa,#3b82f6); color:#ffffff;
  box-shadow:0 8px 20px rgba(59,130,246,.3);
}
.btn-ghost {
  background:rgba(255,255,255,.75); color:#ec4899;
  border:1px solid rgba(236,72,153,.45);
}
.btn-wx {
  background:linear-gradient(90deg,#fb7185,#ec4899); color:#ffffff;
  box-shadow:0 8px 24px rgba(236,72,153,.4);
  font-size:1.05rem; padding:16px 20px;
}
.btn-sm { padding:9px 16px; font-size:.85rem; width:auto; display:inline-block; }
.btn-row { display:flex; gap:10px; }
.btn-row .btn { flex:1; }
.mt8{margin-top:8px;} .mt12{margin-top:12px;} .mt16{margin-top:16px;} .mt24{margin-top:24px;}

/* ===== 表单 ===== */
.input, textarea.input, select.input {
  width:100%; padding:12px 14px; border-radius:14px;
  background:rgba(255,255,255,.7); border:1px solid rgba(167,139,250,.35);
  color:#312e81; font-size:.95rem; font-family:inherit; outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.input:focus { border-color:#a78bfa; box-shadow:0 0 0 3px rgba(167,139,250,.18); }
.input::placeholder { color:#a5a0c8; }
select.input option { background:#ffffff; color:#312e81; }
label.f-label { display:block; font-size:.88rem; color:#312e81; margin:14px 0 8px; font-weight:600; }

/* ===== 头像 ===== */
.avatar {
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; flex-shrink:0; border:2px solid rgba(244,114,182,.55);
  box-shadow:0 4px 14px rgba(167,139,250,.25);
  overflow:hidden; background-size:cover; background-position:center;
}
img.avatar { object-fit:cover; }
.avatar-lg { width:76px; height:76px; font-size:2.2rem; }
.avatar-md { width:52px; height:52px; font-size:1.5rem; }
.avatar-sm { width:40px; height:40px; font-size:1.1rem; }
.avatar-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.avatar-opt { width:100%; aspect-ratio:1; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.7rem; cursor:pointer; border:3px solid rgba(255,255,255,.8); transition:transform .15s, border-color .15s;
  overflow:hidden; background-size:cover; background-position:center; }
.avatar-opt img { width:100%; height:100%; object-fit:cover; }
.avatar-opt.on { border-color:#ec4899; transform:scale(1.08); box-shadow:0 0 16px rgba(236,72,153,.45); }
.avatar-upload {
  width:100%; aspect-ratio:1; border-radius:50%; cursor:pointer;
  border:2px dashed rgba(236,72,153,.5); color:#ec4899;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-size:.62rem; gap:2px; background:rgba(255,255,255,.55); overflow:hidden;
  background-size:cover; background-position:center;
}
.avatar-upload .up-ico { font-size:1.3rem; }
.avatar-upload.on { border-style:solid; border-color:#ec4899; box-shadow:0 0 16px rgba(236,72,153,.45); }
.avatar-upload img { width:100%; height:100%; object-fit:cover; }

/* ===== 标签 chips ===== */
.chips { display:flex; flex-wrap:wrap; gap:10px; }
.chip {
  padding:8px 16px; border-radius:999px; font-size:.85rem; cursor:pointer;
  background:rgba(255,255,255,.65); border:1px solid rgba(167,139,250,.3); color:#6b6399;
  transition:all .15s;
}
.chip.on { background:linear-gradient(90deg,#f472b6,#ec4899); border-color:transparent; color:#ffffff;
  box-shadow:0 4px 12px rgba(236,72,153,.3); }
.chip.static { cursor:default; font-size:.75rem; padding:5px 12px; }
/* 匹配池粉彩多色标签 */
.chip.static:nth-child(3n+1) { background:rgba(252,231,243,.9); border-color:rgba(244,114,182,.4); color:#db2777; }
.chip.static:nth-child(3n+2) { background:rgba(220,252,231,.9); border-color:rgba(52,211,153,.4); color:#059669; }
.chip.static:nth-child(3n)   { background:rgba(219,234,254,.9); border-color:rgba(96,165,250,.4); color:#2563eb; }

/* ===== 单选段 ===== */
.seg { display:flex; gap:10px; }
.seg-item { flex:1; text-align:center; padding:11px 0; border-radius:14px; cursor:pointer;
  background:rgba(255,255,255,.65); border:1px solid rgba(167,139,250,.3); color:#6b6399; transition:all .15s; }
.seg-item.on { background:linear-gradient(90deg,#f472b6,#ec4899); border-color:transparent; color:#ffffff; font-weight:700;
  box-shadow:0 4px 12px rgba(236,72,153,.3); }

/* ===== 答题 ===== */
.quiz-top { display:flex; justify-content:space-between; align-items:center; margin-top:6px; }
.quiz-count { color:#312e81; font-weight:700; font-size:.95rem; letter-spacing:1px; }
.progress { height:10px; border-radius:99px; background:rgba(255,255,255,.65);
  border:1px solid rgba(255,255,255,.8); overflow:hidden; margin:10px 0 6px; }
.progress-bar { height:100%; border-radius:99px; background:linear-gradient(90deg,#93c5fd,#60a5fa);
  box-shadow:0 0 10px rgba(96,165,250,.55); transition:width .3s ease; }
.q-title { font-size:1.14rem; font-weight:700; line-height:1.5; margin:16px 0 18px; color:#312e81; }
.opt-item {
  padding:14px 16px; border-radius:18px; margin-bottom:10px; cursor:pointer;
  background:rgba(255,255,255,.58); border:1px solid rgba(255,255,255,.85);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  box-shadow:0 6px 18px rgba(167,139,250,.12);
  transition:all .15s; display:flex; align-items:center; gap:10px; font-size:.95rem; color:#312e81;
}
.opt-item:active { transform:scale(.98); }
.opt-item.on { background:rgba(252,231,243,.9); border-color:#f472b6;
  box-shadow:0 0 0 2px rgba(244,114,182,.35), 0 8px 20px rgba(236,72,153,.25); }
.opt-item.on::after { content:"✓"; margin-left:auto; color:#ec4899; font-weight:900; font-size:1.05rem; }
/* 彩色圆形序号气泡（带高光立体感） */
.opt-key { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:.82rem; font-weight:800; color:#ffffff; flex-shrink:0;
  box-shadow:inset 0 2px 3px rgba(255,255,255,.55), inset 0 -3px 5px rgba(0,0,0,.12), 0 3px 8px rgba(167,139,250,.3); }
.opt-key.k1 { background:linear-gradient(150deg,#c4b5fd,#a78bfa); }
.opt-key.k2 { background:linear-gradient(150deg,#fde68a,#fbbf24); }
.opt-key.k3 { background:linear-gradient(150deg,#6ee7b7,#34d399); }
.opt-key.k4 { background:linear-gradient(150deg,#f9a8d4,#f472b6); }
.opt-img-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.opt-img {
  border-radius:18px; padding:20px 10px 14px; text-align:center; cursor:pointer;
  border:2px solid rgba(255,255,255,.9); transition:all .15s; position:relative; overflow:hidden;
  color:#312e81; box-shadow:0 6px 18px rgba(167,139,250,.14);
}
.opt-img .emo { font-size:2.4rem; display:block; margin-bottom:8px; filter:drop-shadow(0 4px 8px rgba(167,139,250,.3)); }
.opt-img .lb { font-size:.88rem; font-weight:600; }
.opt-img.on { border-color:#f472b6; transform:scale(1.03);
  box-shadow:0 0 22px rgba(236,72,153,.5), inset 0 0 18px rgba(255,255,255,.35); }
.quiz-confirm { margin-top:18px; }
.quiz-prev { background:none; border:none; color:#6b6399; font-size:.82rem; cursor:pointer;
  display:block; margin:14px auto 0; text-decoration:underline; font-family:inherit; }

/* ===== 报告：粉紫渐变圆环仪表盘 ===== */
.score-big { font-size:4.6rem; font-weight:900; text-align:center; line-height:1.1; }
.score-ring { width:190px; height:190px; margin:14px auto; border-radius:50%; display:flex; flex-direction:column;
  align-items:center; justify-content:center; position:relative;
  background:conic-gradient(#ec4899,#f472b6,#a78bfa,#c084fc,#ec4899); padding:6px;
  box-shadow:0 0 34px rgba(236,72,153,.35); }
.score-ring-inner { width:100%; height:100%; border-radius:50%; background:rgba(255,255,255,.88);
  display:flex; flex-direction:column; align-items:center; justify-content:center; }
.duo { display:flex; align-items:center; justify-content:center; gap:18px; margin:16px 0; }
.duo .heart { font-size:1.6rem; animation:beat 1.4s infinite; }
@keyframes beat { 0%,100%{transform:scale(1);} 50%{transform:scale(1.25);} }
.duo-name { text-align:center; font-size:.85rem; margin-top:6px; color:#312e81; }

/* ===== 首页主视觉（3D 黏土插画 / CSS 双人光环回退） ===== */
.hero-img { display:block; width:min(300px,82%); margin:0 auto 18px;
  filter:drop-shadow(0 16px 28px rgba(167,139,250,.35)); animation:heroFloat 4.5s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
.duo-visual { position:relative; height:230px; margin:6px 0 22px; }
.duo-ring { position:absolute; left:50%; top:50%; transform:translate(-50%,-52%);
  width:220px; height:220px; border-radius:50%;
  border:2px solid rgba(255,255,255,.85);
  box-shadow:0 0 34px rgba(236,72,153,.28), inset 0 0 34px rgba(255,255,255,.35);
  animation:ringPulse 3.2s ease-in-out infinite; }
.duo-ring.r2 { width:176px; height:176px; border-color:rgba(244,114,182,.55);
  box-shadow:0 0 26px rgba(244,114,182,.32), inset 0 0 26px rgba(255,255,255,.28);
  animation-delay:1.1s; }
@keyframes ringPulse { 0%,100% { opacity:.75; transform:translate(-50%,-52%) scale(1);} 50% { opacity:1; transform:translate(-50%,-52%) scale(1.04);} }
.duo-card { position:absolute; top:38px; width:118px; height:160px; border-radius:22px;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; }
.duo-card.c1 { left:calc(50% - 118px); transform:rotate(-7deg);
  background:rgba(255,255,255,.6);
  border:1px solid rgba(255,255,255,.85); box-shadow:0 10px 30px rgba(96,165,250,.25); }
.duo-card.c2 { right:calc(50% - 118px); transform:rotate(7deg);
  background:rgba(255,255,255,.6);
  border:1px solid rgba(255,255,255,.85); box-shadow:0 10px 30px rgba(236,72,153,.25); }
.silhouette { position:relative; width:64px; height:88px; }
.silhouette .head { position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:34px; height:34px; border-radius:50%; }
.silhouette .body { position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:58px; height:52px; border-radius:50% 50% 12px 12px / 62% 62% 12px 12px; }
.c1 .silhouette .head { background:linear-gradient(160deg,#bfdbfe,#60a5fa); }
.c1 .silhouette .body { background:linear-gradient(160deg,#93c5fd,#3b82f6); }
.c2 .silhouette .head { background:linear-gradient(160deg,#fbcfe8,#f472b6); }
.c2 .silhouette .body { background:linear-gradient(160deg,#f9a8d4,#ec4899); }
.duo-card .dc-lb { font-size:.72rem; color:#312e81; letter-spacing:2px; font-weight:700; }
.duo-spark { position:absolute; left:50%; top:26px; transform:translateX(-50%); font-size:1.3rem;
  animation:beat 1.8s infinite; z-index:2; }

/* ===== 首页功能卡（紫 / 粉 / 蓝 pastel 渐变） ===== */
.feat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.feat-card { border-radius:20px; padding:16px 8px; text-align:center; cursor:pointer;
  border:1px solid rgba(255,255,255,.85); transition:transform .15s;
  box-shadow:0 8px 22px rgba(167,139,250,.16); }
.feat-card:active { transform:scale(.95); }
.feat-card .fi { font-size:1.7rem; display:block; margin-bottom:8px; }
.feat-card .fi-img { width:52px; height:52px; object-fit:contain; display:block; margin:0 auto 8px;
  filter:drop-shadow(0 6px 12px rgba(167,139,250,.3)); }
.feat-card .fl { font-size:1rem; font-weight:800; line-height:1.4; }
.feat-card .fs { font-size:.75rem; font-weight:400; line-height:1.5; opacity:.78; margin-top:3px; display:block; }
.feat-violet { background:linear-gradient(160deg,rgba(221,214,254,.92),rgba(196,181,253,.75)); color:#4c1d95; }
.feat-pink { background:linear-gradient(160deg,rgba(252,231,243,.95),rgba(249,168,212,.75)); color:#9d174d; }
.feat-blue { background:linear-gradient(160deg,rgba(219,234,254,.95),rgba(147,197,253,.75)); color:#1e40af; }

/* ===== 登录页 ===== */
.login-card { padding:34px 20px 26px; text-align:center; border-radius:28px;
  border:1px solid rgba(255,255,255,.85);
  box-shadow:0 16px 44px rgba(167,139,250,.25); }
.login-logo { width:88px; height:88px; margin:0 auto 14px; border-radius:50%;
  background:linear-gradient(150deg,#c4b5fd,#f9a8d4);
  display:flex; align-items:center; justify-content:center;
  font-size:2.4rem; font-weight:900; color:#ffffff;
  box-shadow:0 0 30px rgba(236,72,153,.35), inset 0 2px 6px rgba(255,255,255,.6);
  overflow:hidden; }
.login-logo img { width:100%; height:100%; object-fit:cover; }
.login-name { font-size:1.3rem; font-weight:900; letter-spacing:3px; color:#312e81; }
.login-tags { display:flex; justify-content:center; gap:8px; margin-top:18px; flex-wrap:wrap; }
.login-tag { font-size:.68rem; border-radius:999px; padding:5px 12px; border:1px solid transparent; }
.login-tag:nth-child(1) { color:#7c3aed; background:rgba(237,233,254,.9); border-color:rgba(167,139,250,.45); }
.login-tag:nth-child(2) { color:#db2777; background:rgba(252,231,243,.9); border-color:rgba(244,114,182,.45); }
.login-tag:nth-child(3) { color:#2563eb; background:rgba(219,234,254,.9); border-color:rgba(96,165,250,.45); }
.preview-link { display:block; text-align:center; margin-top:14px; color:#7c3aed;
  font-size:.85rem; cursor:pointer; text-decoration:underline; background:none; border:none; font-family:inherit; width:100%; }

/* ===== 列表 / 菜单 ===== */
.menu-item {
  display:flex; align-items:center; gap:12px; padding:15px 16px; cursor:pointer;
  border-bottom:1px solid rgba(167,139,250,.14); transition:background .15s; color:#312e81;
  font-size:1rem; font-weight:800; line-height:1.5;
}
.menu-item:last-child { border-bottom:none; }
.menu-item:active { background:rgba(255,255,255,.5); }
.menu-item .ico { font-size:1.25rem; flex-shrink:0; }
.menu-item .arrow { margin-left:auto; color:#a5a0c8; flex-shrink:0; }
.list-row { display:flex; align-items:center; gap:12px; padding:13px 4px; border-bottom:1px solid rgba(167,139,250,.14); }
.list-row:last-child { border-bottom:none; }
.list-row .grow { flex:1; min-width:0; }
.amt-pos { color:#ec4899; font-weight:700; }
.badge { display:inline-block; padding:3px 10px; border-radius:99px; font-size:.72rem; font-weight:600; }
.badge-wait { background:rgba(253,230,138,.5); color:#b45309; }
.badge-ok { background:rgba(110,231,183,.35); color:#059669; }
.badge-done { background:rgba(147,197,253,.4); color:#2563eb; }
.badge-no { background:rgba(253,164,175,.4); color:#e11d48; }
.badge-pink { background:rgba(249,168,212,.4); color:#db2777; }
.badge-blue { background:rgba(147,197,253,.4); color:#2563eb; }

/* ===== 匹配池 ===== */
.pool-card { display:flex; gap:14px; align-items:flex-start; }
.pool-info { flex:1; min-width:0; }
.pool-name { font-weight:700; font-size:1rem; }
.pool-meta { color:#6b6399; font-size:.8rem; margin:3px 0 8px; }
.pool-invite-btn { border-radius:999px; }

/* ===== 分享链接卡 ===== */
.link-card { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.55); border:1px dashed rgba(236,72,153,.5);
  border-radius:14px; padding:12px 14px; word-break:break-all; font-size:.82rem; color:#312e81; }
.step-flow { display:flex; align-items:center; justify-content:space-between; margin:14px 0; }
.step-item { flex:1; text-align:center; }
.step-ico { width:48px; height:48px; margin:0 auto 6px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; background:rgba(255,255,255,.7); border:1px solid rgba(255,255,255,.9);
  box-shadow:0 6px 16px rgba(167,139,250,.18); }
.step-lb { font-size:.72rem; color:#6b6399; }
.step-arrow { color:#a5a0c8; font-size:.9rem; padding-bottom:18px; }

/* ===== 海报 ===== */
.tpl-tabs { display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.tpl-tab { flex:1 1 30%; text-align:center; padding:10px 4px; border-radius:14px; cursor:pointer; font-size:.8rem;
  background:rgba(255,255,255,.6); border:1px solid rgba(167,139,250,.3); color:#6b6399; transition:all .15s; }
.tpl-tab.on { background:linear-gradient(90deg,#f472b6,#ec4899); border-color:transparent; font-weight:700; color:#ffffff;
  box-shadow:0 4px 14px rgba(236,72,153,.3); }
#posterCanvas { width:100%; border-radius:20px; box-shadow:0 14px 36px rgba(167,139,250,.3); display:block; }

/* ===== 每日合拍签 ===== */
.sign-card { text-align:center; padding:30px 20px; position:relative; overflow:hidden; }
.sign-card::before { content:""; position:absolute; top:-40px; right:-40px; width:150px; height:150px;
  border-radius:50%; background:radial-gradient(circle,rgba(244,114,182,.28),transparent 70%); }
.sign-date { font-size:.78rem; color:#6b6399; letter-spacing:2px; }
.sign-idx { font-size:3.2rem; font-weight:900; margin:10px 0 2px; }
.sign-tip { font-size:1.05rem; font-weight:700; color:#312e81; margin-bottom:14px; }
.sign-meta { display:flex; justify-content:center; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.sign-meta span { font-size:.72rem; border:1px solid rgba(244,114,182,.4); color:#db2777;
  border-radius:999px; padding:4px 12px; background:rgba(252,231,243,.7); }
.sign-msg { color:#6b6399; font-size:.9rem; line-height:1.9; }

/* ===== 多人专场 ===== */
.rank-row { display:flex; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px solid rgba(167,139,250,.14); }
.rank-row:last-child { border-bottom:none; }
.rank-medal { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:.85rem; font-weight:800; flex-shrink:0; background:rgba(255,255,255,.7); color:#6b6399; }
.rank-medal.m1 { background:linear-gradient(160deg,#fde68a,#f59e0b); color:#78350f; box-shadow:0 0 14px rgba(245,158,11,.45); }
.rank-medal.m2 { background:linear-gradient(160deg,#e2e8f0,#94a3b8); color:#334155; box-shadow:0 0 12px rgba(148,163,184,.4); }
.rank-medal.m3 { background:linear-gradient(160deg,#fdba74,#d97706); color:#7c2d12; box-shadow:0 0 12px rgba(217,119,6,.35); }
.rank-score { font-weight:800; color:#ec4899; font-size:1.05rem; }
.multi-price { font-size:2.2rem; font-weight:900; }

/* ===== 角色栏 / 页脚 / toast ===== */
.rolebar { display:flex; align-items:center; gap:8px; padding:9px 12px; margin-top:10px; border-radius:14px;
  background:rgba(255,255,255,.65); border:1px solid rgba(244,114,182,.45); font-size:.78rem; color:#312e81;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.rolebar button { margin-left:auto; background:rgba(255,255,255,.8); border:1px solid rgba(236,72,153,.5); color:#ec4899;
  border-radius:99px; padding:4px 12px; font-size:.72rem; cursor:pointer; }
.site-footer { text-align:center; padding:26px 0 10px; color:#6b6399; font-size:.75rem; line-height:1.8; }
.site-footer .disclaimer { color:#a5a0c8; }
.toast {
  position:fixed; left:50%; bottom:90px; transform:translateX(-50%);
  background:rgba(255,255,255,.92); border:1px solid rgba(244,114,182,.5); color:#312e81;
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  padding:12px 22px; border-radius:99px; font-size:.88rem; z-index:99;
  box-shadow:0 10px 30px rgba(167,139,250,.3); animation:toastIn .25s ease; max-width:84%; text-align:center;
}
@keyframes toastIn { from{opacity:0; transform:translate(-50%,12px);} to{opacity:1; transform:translate(-50%,0);} }

/* ===== 协议勾选 ===== */
.agree-row { display:flex; align-items:flex-start; gap:8px; font-size:.78rem; color:#6b6399; margin:16px 0; line-height:1.5; }
.agree-row input { margin-top:3px; accent-color:#ec4899; width:16px; height:16px; }
.agree-row a { color:#ec4899; text-decoration:none; }

/* ===== 权益清单 ===== */
.perk { display:flex; gap:10px; align-items:center; padding:9px 0; font-size:.9rem; }
.perk .tick { color:#ec4899; }
.price-tag { text-align:center; margin:14px 0; }
.price-tag .num { font-size:2.6rem; font-weight:900; }
.price-tag .cur { font-size:1.1rem; }
.price-tag .old { color:#a5a0c8; text-decoration:line-through; font-size:.85rem; margin-left:8px; }

/* ===== 顶部导航条 ===== */
.navhead { display:flex; align-items:center; gap:10px; margin-bottom:14px; padding-right:56px; }
.navhead .back { width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.7);
  border:1px solid rgba(255,255,255,.9); color:#ec4899; cursor:pointer; font-size:1rem;
  box-shadow:0 4px 12px rgba(167,139,250,.18); }
.navhead .t { font-size:1.05rem; font-weight:700; color:#312e81; }

.empty-tip { text-align:center; color:#a5a0c8; padding:30px 0; font-size:.85rem; }

/* 微信内以真实图片展示海报，支持长按保存和转发。 */
body.poster-preview-open { overflow:hidden; }
.poster-preview { position:fixed; inset:0; z-index:1000; overflow:auto; background:rgba(30,20,50,.88); padding:20px 14px; overscroll-behavior:contain; }
.poster-preview-card { max-width:480px; margin:0 auto; color:#fff; text-align:center; }
.poster-preview-card p { margin:14px 0; line-height:1.7; }
.poster-preview-card img { width:100%; height:auto; display:block; border-radius:12px; -webkit-touch-callout:default; user-select:auto; -webkit-user-select:auto; }

/* 双人测试与报告历史 */
.history-record-head, .history-person, .history-pagination { display: flex; align-items: center; gap: 12px; }
.history-record-head { justify-content: space-between; margin-bottom: 16px; }
.history-person { margin-bottom: 16px; }
.history-person > .avatar { flex: 0 0 40px; width: 40px; height: 40px; }
.history-person-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.history-person p { margin: 5px 0 0; }
.history-score { color: #d9468b; white-space: nowrap; }
.history-actions { display: grid; gap: 10px; }
.history-pagination { justify-content: center; margin: 16px 0; }

/* 图片选项保留完整内容，不裁掉关键信息。 */
.opt-img .question-option-image { width:100%; height:140px; object-fit:contain; display:block; margin-bottom:10px; border-radius:10px; background:rgba(255,255,255,.7); }
.opt-img .question-option-image[hidden], .question-image-error[hidden] { display:none; }
.question-image-error { display:block; min-height:100px; padding:20px 4px; font-size:.8rem; }

/* 照片墙：照片只随资料提交保存。 */
.wall-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.wall-item { position:relative; aspect-ratio:3/4; border-radius:16px; overflow:hidden; border:2px solid rgba(255,255,255,.85); box-shadow:0 6px 16px rgba(167,139,250,.18); }
.wall-preview { display:block; width:100%; height:100%; padding:0; border:0; background:#f3e8ff; cursor:pointer; }
.wall-preview img { width:100%; height:100%; object-fit:cover; }
.wall-del { position:absolute; right:4px; top:4px; width:32px; height:32px; border:0; border-radius:50%; background:rgba(49,46,129,.7); color:white; font-size:22px; cursor:pointer; }
.wall-add { aspect-ratio:3/4; border:2px dashed rgba(167,139,250,.6); border-radius:16px; background:rgba(255,255,255,.55); color:#7c3aed; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; font:inherit; font-size:13px; cursor:pointer; }
.wall-add span { font-size:28px; }
.photo-preview-dialog { width:min(90vw,640px); max-height:90vh; border:0; border-radius:18px; padding:16px; background:#fff; }
.photo-preview-dialog::backdrop { background:rgba(24,16,48,.75); }
.photo-preview-dialog img { display:block; max-width:100%; max-height:70vh; margin:auto; object-fit:contain; }

/* 匹配池：沿用参考页的叠层滑卡、照片比例与邀请面板。 */
/* ===== 匹配池：Tinder 式滑卡（与集成版一致） ===== */
.swipe-progress { text-align:center; font-size:.78rem; color:#6b6399; margin-bottom:10px; }
.swipe-progress b { color:#ec4899; }
.swipe-stage { position:relative; }
.swipe-deck { position:relative; height:500px; margin-bottom:6px; }
.swipe-card {
  position:absolute; left:0; right:0; top:0; height:480px;
  background:rgba(255,255,255,.66);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.85); border-radius:26px;
  padding:20px 22px 14px; text-align:center;
  box-shadow:0 14px 36px rgba(167,139,250,.22);
  display:flex; flex-direction:column; align-items:center;
  user-select:none; -webkit-user-select:none;
  touch-action:pan-y;
  will-change:transform;
}
.swipe-card.top { touch-action:none; cursor:grab; }
.swipe-card.top:active { cursor:grabbing; }
.swipe-card.dragging { transition:none !important; }
.swipe-card.fly { transition:transform .3s ease-in, opacity .3s ease-in; opacity:0; pointer-events:none; }
.swipe-card.spring { transition:transform .38s cubic-bezier(.22,1.4,.36,1); }
.swipe-name { font-weight:800; font-size:1.25rem; color:#312e81; display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:center; }
.age-pill { font-size:.72rem; font-weight:700; color:#ffffff; padding:3px 12px; border-radius:999px;
  background:linear-gradient(90deg,#fb7185,#ec4899); box-shadow:0 4px 10px rgba(236,72,153,.3); }
.invited-pill { font-size:.68rem; font-weight:700; color:#db2777; padding:3px 10px; border-radius:999px;
  background:rgba(252,231,243,.95); border:1px solid rgba(244,114,182,.5); }
.swipe-gender { margin:6px 0 12px; }
.swipe-card .chips { gap:8px; }
.swipe-bio { color:#6b6399; font-size:.86rem; line-height:1.6; margin:12px 0 0;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; max-width:92%; }
.swipe-tip { margin-top:auto; padding-top:12px; font-size:.72rem; color:#a5a0c8; letter-spacing:1px; }
.swipe-stamp { position:absolute; top:26px; padding:7px 18px; border-radius:14px;
  font-size:1.15rem; font-weight:900; letter-spacing:2px; opacity:0; pointer-events:none; z-index:5; white-space:nowrap; }
.stamp-like { left:18px; transform:rotate(-14deg); color:#ec4899; border:3px solid #ec4899;
  background:rgba(252,231,243,.88); box-shadow:0 6px 18px rgba(236,72,153,.3); }
.stamp-nope { right:18px; transform:rotate(14deg); color:#64748b; border:3px solid #94a3b8;
  background:rgba(241,245,249,.88); box-shadow:0 6px 18px rgba(100,116,139,.25); }
.swipe-actions { display:flex; justify-content:center; gap:34px; margin:8px 0 16px; }
.swipe-btn { width:62px; height:62px; border-radius:50%; border:none; cursor:pointer;
  font-size:1.6rem; display:flex; align-items:center; justify-content:center;
  transition:transform .12s ease, box-shadow .2s; font-family:inherit; }
.swipe-btn:active { transform:scale(.9); }
.swipe-btn-nope { background:rgba(255,255,255,.8); color:#64748b;
  border:1px solid rgba(148,163,184,.5); box-shadow:0 8px 20px rgba(100,116,139,.22); }
.swipe-btn-like { background:linear-gradient(135deg,#fb7185,#ec4899); color:#ffffff;
  box-shadow:0 10px 24px rgba(236,72,153,.4); }
.swipe-btn:disabled { opacity:.4; cursor:not-allowed; transform:none; }
.swipe-empty { text-align:center; padding:44px 24px 34px; margin-bottom:14px;
  background:rgba(255,255,255,.62); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.8); border-radius:24px;
  box-shadow:0 12px 32px rgba(167,139,250,.18); }
.swipe-empty-emoji { font-size:3.2rem; animation:bubbleFloat 5s ease-in-out infinite; }
.swipe-empty-title { font-weight:800; font-size:1.1rem; color:#312e81; margin:12px 0 8px; }
/* ===== 照片墙统一渲染 + 滑卡照片区（3:4）+ 分段指示条 ===== */
.photo-cell { width:100%; height:100%; object-fit:cover; display:flex; align-items:center; justify-content:center; }
.photo-cell .pe { font-size:2.2rem; filter:drop-shadow(0 4px 10px rgba(49,46,129,.3)); }
.swipe-photo { position:relative; width:64%; aspect-ratio:3/4; border-radius:18px; overflow:hidden;
  margin-bottom:10px; border:2px solid rgba(255,255,255,.9);
  box-shadow:0 10px 24px rgba(167,139,250,.28); background:rgba(255,255,255,.5); }
.photo-view { width:100%; height:100%; }
.photo-view .pe { font-size:3rem; }
.photo-fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg,rgba(221,214,254,.75),rgba(251,207,232,.75)); }
.photo-dots { position:absolute; top:8px; left:10px; right:10px; display:flex; gap:5px; z-index:3; }
.photo-dots .pd { flex:1; height:4px; border-radius:99px; background:rgba(255,255,255,.55);
  box-shadow:0 1px 3px rgba(49,46,129,.25); transition:background .2s; }
.photo-dots .pd.on { background:#ffffff; box-shadow:0 0 8px rgba(255,255,255,.95), 0 1px 3px rgba(236,72,153,.5); }
/* ===== 顶部工具条：模式分段切换 + 🔔 邀请入口 ===== */
.pool-toolbar { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.mode-seg { flex:1; display:flex; gap:6px; padding:4px; border-radius:999px;
  background:rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.8);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  box-shadow:0 6px 16px rgba(167,139,250,.16); }
.mode-item { flex:1; text-align:center; padding:8px 0; border-radius:999px; cursor:pointer;
  font-size:.82rem; font-weight:600; color:#6b6399; transition:all .15s; }
.mode-item.on { background:linear-gradient(90deg,#fb7185,#ec4899); color:#ffffff; font-weight:700;
  box-shadow:0 4px 12px rgba(236,72,153,.35); }
.bell-btn { position:relative; width:44px; height:44px; border-radius:50%; cursor:pointer;
  border:1px solid rgba(255,255,255,.85); background:rgba(255,255,255,.7); font-size:1.15rem;
  display:flex; align-items:center; justify-content:center; font-family:inherit;
  box-shadow:0 6px 16px rgba(167,139,250,.2); transition:transform .12s; }
.bell-btn:active { transform:scale(.92); }
.bell-badge { position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px;
  border-radius:999px; background:linear-gradient(90deg,#fb7185,#ec4899); color:#ffffff;
  font-size:.62rem; font-weight:800; display:flex; align-items:center; justify-content:center;
  box-shadow:0 3px 8px rgba(236,72,153,.45); border:1.5px solid #ffffff; }
/* ===== 列表模式 ===== */
.pool-list .pool-item { display:flex; align-items:center; gap:12px; padding:14px; }
.pi-photo { position:relative; width:66px; height:88px; border-radius:14px; overflow:hidden; flex-shrink:0;
  border:2px solid rgba(255,255,255,.85); box-shadow:0 6px 14px rgba(167,139,250,.2);
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg,rgba(221,214,254,.7),rgba(251,207,232,.7)); }
.pi-photo .pe { font-size:1.7rem; }
.pi-photo .avatar { width:46px; height:46px; }
.pi-count { position:absolute; right:4px; bottom:4px; font-size:.6rem; font-weight:800; color:#ffffff;
  padding:2px 7px; border-radius:999px; background:rgba(49,46,129,.6); backdrop-filter:blur(4px); }
.pi-info { flex:1; min-width:0; }
.pi-name { font-weight:800; font-size:1rem; color:#312e81; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pi-info .chips { gap:6px; }
.pi-info .muted { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pi-act { flex-shrink:0; display:flex; flex-direction:column; align-items:center; gap:6px; }
/* ===== 收到的合拍邀请：底部上滑面板 ===== */
.inbox-mask { position:fixed; inset:0; z-index:80; background:rgba(49,46,129,.35);
  backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px);
  opacity:0; transition:opacity .25s ease; }
.inbox-mask.show { opacity:1; }
.inbox-panel { position:fixed; left:50%; bottom:0; transform:translate(-50%,102%);
  width:100%; max-width:420px; max-height:78vh; z-index:81;
  display:flex; flex-direction:column;
  background:rgba(255,255,255,.9); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,.9); border-bottom:none; border-radius:26px 26px 0 0;
  box-shadow:0 -14px 44px rgba(167,139,250,.35);
  transition:transform .3s cubic-bezier(.22,1.1,.36,1); }
.inbox-panel.show { transform:translate(-50%,0); }
.inbox-grab { width:44px; height:5px; border-radius:99px; background:rgba(167,139,250,.4); margin:10px auto 4px; }
.inbox-head { display:flex; align-items:center; padding:8px 16px 12px; }
.inbox-head .t { font-weight:800; font-size:1.05rem; color:#312e81; }
.inbox-close { margin-left:auto; width:30px; height:30px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(167,139,250,.16); color:#6b6399; font-size:.8rem; }
.inbox-list { overflow-y:auto; padding:0 14px 10px; }
.inbox-item { display:flex; gap:12px; align-items:flex-start; padding:14px 10px; border-radius:18px;
  background:rgba(255,255,255,.6); border:1px solid rgba(167,139,250,.2); margin-bottom:10px; }
.ii-info { flex:1; min-width:0; }
.ii-name { font-weight:800; font-size:.95rem; color:#312e81; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ii-note { font-size:.82rem; color:#6b6399; margin:8px 0 4px; line-height:1.6; }
.ii-act { flex-shrink:0; display:flex; flex-direction:column; gap:8px; }
.inbox-empty { text-align:center; padding:34px 20px 26px; }

.pool-page button { font-family:inherit; }
.pool-page .mode-item { border:0; background:transparent; }
.pool-page .mode-item.on { background:linear-gradient(90deg,#fb7185,#ec4899); }
.pool-page .pool-intro { margin-bottom:10px; }
.swipe-stage { isolation:isolate; }
.swipe-card { overflow:hidden; }
.swipe-card:not(.top) { pointer-events:none; }
.swipe-card .swipe-photo { flex-shrink:0; }
.swipe-name { max-width:100%; overflow-wrap:anywhere; }
.swipe-card .chips { justify-content:center; max-height:60px; overflow:hidden; flex-shrink:0; }
.swipe-card .swipe-gender { flex-shrink:0; }
.swipe-card .swipe-bio { flex-shrink:0; }
.swipe-card .swipe-tip { letter-spacing:0; }
.swipe-card.top { touch-action:pan-y; }
.photo-view>img,.pi-photo>img { display:block; width:100%; height:100%; object-fit:cover; }
.photo-fallback .avatar-xl { width:120px; height:120px; font-size:3.4rem; border-width:3px; }
.photo-dots { pointer-events:none; }
.photo-step { position:absolute; top:0; bottom:0; width:50%; border:0; padding:0; background:transparent; cursor:pointer; z-index:2; }
.photo-step.prev { left:0; }
.photo-step.next { right:0; }
.photo-step:focus-visible { outline:2px solid #ec4899; outline-offset:-4px; border-radius:16px; }
.pool-list .pi-photo { cursor:pointer; padding:0; }
.pool-list .pi-info { overflow-wrap:anywhere; }
.pool-list .pi-info .chip { font-size:.7rem; padding:4px 9px; }
.pool-list .pi-act .btn { font-size:.75rem; padding:9px 11px; letter-spacing:0; }
.pool-record-link { display:block; margin:8px auto 14px; border:0; padding:5px 10px; background:transparent; color:#6b6399; font:inherit; font-size:.8rem; cursor:pointer; }
.pool-tabs { display:flex; gap:6px; padding:4px; border-radius:999px; background:rgba(255,255,255,.55); margin-bottom:14px; }
.pool-tabs button { flex:1; border:0; border-radius:999px; padding:9px 8px; background:transparent; color:#6b6399; font:inherit; font-size:.82rem; cursor:pointer; }
.pool-tabs button.on { background:linear-gradient(90deg,#fb7185,#ec4899); color:white; font-weight:700; }
.pool-invite-row { display:flex; align-items:center; gap:12px; width:100%; text-align:left; cursor:pointer; font:inherit; color:inherit; }
.pool-invite-copy { flex:1; min-width:0; display:flex; flex-direction:column; gap:7px; overflow-wrap:anywhere; }
.pool-invite-copy>span,.pool-invite-copy small { color:#6b6399; font-size:12px; }
.inbox-panel { top:auto; margin:0; padding:0; color:#312e81; transform:translate(-50%,0); max-height:78dvh; overflow:hidden; padding-bottom:env(safe-area-inset-bottom,0px); }
.inbox-panel:not([open]) { display:none; }
.inbox-panel[open] { animation:poolInboxIn .25s ease; }
.inbox-panel::backdrop { background:rgba(49,46,129,.35); backdrop-filter:blur(3px); }
.inbox-panel .pool-tabs { margin:0 16px 12px; flex-shrink:0; }
.inbox-head,.inbox-grab { flex-shrink:0; }
.inbox-head .inbox-close { flex-shrink:0; }
.inbox-list { overscroll-behavior:contain; }
.inbox-item { flex-wrap:wrap; }
.ii-info { overflow-wrap:anywhere; }
.ii-act { width:100%; flex-direction:row; justify-content:flex-end; }
.ii-act .btn { letter-spacing:0; }
.ii-note { margin-top:6px; }
.pool-sheet-pager { display:flex; justify-content:center; gap:12px; padding:4px 0 12px; }
#poolAction:empty { display:none; }
@keyframes poolInboxIn { from {transform:translate(-50%,100%);} to {transform:translate(-50%,0);} }
@media(max-width:360px) { .swipe-card {padding:18px 16px 14px;} .pool-list .pi-photo {width:54px;height:72px;} .pool-list .pool-item {gap:8px;padding:12px;} .pool-list .pi-name {gap:5px;} .pool-list .pi-act .btn {padding:9px 8px;} }
@media(prefers-reduced-motion:reduce) { .swipe-card.fly,.swipe-card.spring {transition:none;} .inbox-panel[open] {animation:none;} }
