/* 本地双人版新增样式：沿用 v4 的浅蓝 / 米白 / 手写感，全是 CSS，无图片、无人像 */

/* ---------- 通用小块 ---------- */
.badge{display:inline-flex;align-items:center;gap:6px;align-self:center;
  background:#EDF4F8;border:1px solid #DCE9F0;border-radius:20px;
  padding:6px 13px;font-size:11px;color:#6289A5;letter-spacing:.05em}
.badge i{width:6px;height:6px;border-radius:50%;background:#8FB4CE;display:block}
.badge.warm{background:#FCF4F0;border-color:#F0DFD7;color:#A86F5C}
.badge.warm i{background:#C79A87}
.soft-note{text-align:center;font-size:11.5px;line-height:1.9;color:#9BAEB7;margin-top:12px}
.act-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
.act-grid .btn{margin-top:0}
.act-grid .full{grid-column:1/-1}
.link-box{margin-top:12px;background:#fff;border:1px dashed #C9DBE5;border-radius:10px;
  padding:11px 12px;font-size:11.5px;line-height:1.6;color:#4B7189;
  word-break:break-all;font-family:ui-monospace,Consolas,monospace}
.mini-link{background:none;border:none;color:#6D93B0;font-size:11.5px;padding:0;text-decoration:underline}

/* ---------- 邀请区 ---------- */
.invite{margin-top:18px;width:100%;max-width:354px;background:linear-gradient(150deg,#F2F8FB,#FBF8F4);
  border:1px solid #DEEAF1;border-radius:15px;padding:17px 17px 16px;
  box-shadow:0 6px 20px rgba(80,115,130,.07)}
.invite .iv-h{font-size:15px;color:#3F6479;letter-spacing:.04em;display:flex;align-items:center;gap:8px}
.invite .iv-h::before{content:"";width:4px;height:15px;border-radius:3px;background:#8FB4CE}
.invite .iv-p{margin-top:9px;font-size:12px;line-height:1.95;color:#6E8794}
.invite .iv-p b{font-weight:500;color:#4B7189}
.qr-wrap{display:flex;align-items:center;gap:14px;margin-top:14px;
  background:rgba(255,255,255,.72);border:1px solid #E5EEF2;border-radius:12px;padding:11px 12px}
.qr-wrap img{width:96px;height:96px;flex:0 0 96px;background:#fff;border-radius:6px}
.qr-wrap .qr-t{font-size:11.5px;line-height:1.9;color:#7B93A0}
.qr-wrap .qr-t b{display:block;color:#456274;font-size:12.5px;font-weight:500;margin-bottom:3px}
.btn.iv-poster{margin-top:14px;width:100%;
  background:linear-gradient(135deg,#7BA6C2,#5F8DAB);color:#fff;border-color:#5F8DAB;
  box-shadow:0 5px 14px rgba(95,141,171,.24);letter-spacing:.06em}
.iv-state{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;
  font-size:11.5px;color:#8CA0AA}
.iv-state .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#C6D5DC;margin-right:6px}
.iv-state.on .dot{background:#A9C6BA;box-shadow:0 0 0 3px rgba(169,198,186,.22)}
.iv-state.on{color:#5D8B77}

/* ---------- 双人卡新增区块 ---------- */
.dual-hero{margin-top:18px;border:1px solid #DEEAF1;border-radius:12px;
  background:linear-gradient(140deg,#F0F6FA,#FBF8F4);padding:14px 15px}
.dh-line{display:flex;align-items:center;gap:14px}
.dh-line + .dh-line{margin-top:11px;padding-top:11px;border-top:1px dashed #DEE8EC}
.dh-num{flex:0 0 62px;text-align:center;font-size:30px;font-weight:300;color:#5A87A7;line-height:1.1}
.dh-num.warm{color:#B5765F}
.dh-num small{font-size:11px;color:#A8BAC3;margin-left:1px}
.dh-txt{font-size:13px;color:#5D7887;line-height:1.7}
.dh-txt b{font-weight:600;color:#4B7189}
.dh-note{margin-top:11px;padding-top:9px;border-top:1px dashed #DEE8EC;
  font-size:11.5px;color:#93A6AF;text-align:center}
.pairs{margin-top:11px;display:flex;flex-direction:column;gap:10px}
.pair{border:1px solid #E5EEF2;border-left:2px solid #B9D2E1;border-radius:0 10px 10px 0;
  background:rgba(247,251,253,.85);padding:10px 12px 11px}
.pair .q{font-size:12px;line-height:1.6;color:#4C6B7B}
.pair .q i{display:inline-block;min-width:22px;height:18px;line-height:18px;text-align:center;
  background:#E7F0F5;border-radius:5px;color:#7FA3B5;font-size:10px;margin-right:7px}
.pair .tr{display:flex;gap:9px;margin-top:5px;font-size:11.5px;line-height:1.6;color:#8B9DA6}
.pair .tr span{flex:0 0 48px;color:#A2B0B8}
.pair .tr em{font-style:normal;color:#4B7189;flex:1}
.pair .tr.real em{color:#A86F5C;font-weight:500}
.pair .say{margin-top:8px;font-size:11.5px;line-height:1.7;color:#A86F5C;
  background:#FCF4F0;border-radius:7px;padding:7px 9px}
.dbars{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.db-row{display:flex;align-items:center;gap:10px}
.db-row .nm{flex:0 0 32px;font-size:11.5px;color:#68818E}
.db-row .tracks{flex:1;display:flex;flex-direction:column;gap:3px}
.db-row .tracks i{display:block;height:4px;border-radius:4px}
.db-row .f1{background:linear-gradient(90deg,#B7D3E2,#6E9CC0)}
.db-row .f2{background:linear-gradient(90deg,#E4C4B6,#C79A87)}
.db-row .n{flex:0 0 40px;text-align:right;font-size:10.5px;color:#9CAEB6;font-variant-numeric:tabular-nums}

/* ---------- 同一个链接的结果页 ---------- */
#share{padding:22px 20px 40px;align-items:center}
.share-top{width:100%;max-width:354px;text-align:center;margin-bottom:14px}
.share-top .t{font-size:13px;color:#5D7887;line-height:1.9;margin-top:9px}
.share-top .t b{color:#4B7189;font-weight:500}
.share-after{width:100%;max-width:354px}
.hold{background:#fff;border:1px solid #E4EBEE;border-radius:14px;padding:24px 20px;text-align:center;margin-top:30px}
.hold .h1{font-size:22px;line-height:1.7}
.hold .p{margin-top:12px;font-size:12.5px;line-height:1.95;color:#8298A3}

/* ---------- TA 那一侧 ---------- */
.v-hero{margin:0 auto 20px;width:132px;height:96px;animation:fadeIn .7s ease both}
.v-hero svg{display:block;width:132px;height:96px}
.v-hook{margin-top:24px;border-top:1px dashed #D8E3E8;border-bottom:1px dashed #D8E3E8;
  padding:20px 4px;font-size:18px;line-height:1.95;color:#3F6479;text-align:center}
.v-hook em{font-style:normal;color:#B5765F;
  background:linear-gradient(transparent 76%,rgba(181,118,95,.19) 76%);padding:0 2px}
.v-steps{margin-top:20px;text-align:left;font-size:12.5px;line-height:2;color:#6F8490;
  background:rgba(255,255,255,.58);border:1px solid #E7EEF0;border-radius:14px;padding:14px 16px}
.v-steps .n{display:inline-block;width:20px;height:20px;line-height:20px;text-align:center;
  border-radius:50%;background:#E3EEF4;color:#6D93B0;font-size:11px;margin-right:9px}
.v-done{text-align:center}
.v-done .h1{font-size:26px}
.v-done .b2{margin-top:16px}

/* ---------- 覆盖层：海报 / 贺卡预览 ---------- */
.warm-btn{border-color:#E6CDC1!important;color:#A86F5C!important;background:#FDF6F2!important}
.sheet-mask{display:none;position:fixed;inset:0;z-index:60;background:rgba(38,52,60,.55);
  flex-direction:column;align-items:center;overflow-y:auto;padding:14px 0 30px;-webkit-overflow-scrolling:touch}
.sheet-mask.on{display:flex}
.sheet-bar{width:100%;max-width:430px;display:flex;align-items:center;justify-content:space-between;
  padding:6px 18px 12px;color:#EAF1F5;font-size:12.5px}
.sheet-bar button{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);
  color:#fff;border-radius:18px;padding:5px 16px;font-size:12.5px}
.poster-wrap{width:100%;display:flex;justify-content:center;padding:0 16px}
.sheet-tip{margin-top:14px;color:#D6E2E9;font-size:11.5px;text-align:center;line-height:1.8;padding:0 20px}

/* 海报真图片：长按可保存到相册 / 发送给朋友 */
.poster-img{width:350px;max-width:100%;display:block;border-radius:3px;
  box-shadow:0 16px 44px rgba(20,34,44,.28);-webkit-touch-callout:default;user-select:auto}
.po-loading{width:350px;max-width:100%;min-height:520px;display:flex;align-items:center;justify-content:center;
  background:#FCFAF4;color:#9FB0B6;font-size:13px;letter-spacing:.05em;box-shadow:0 16px 44px rgba(20,34,44,.28)}
.po-dim{opacity:.62;font-size:11px}
#posterDownload{display:block;margin:12px auto 0}

/* 海报：浅蓝米白手写感长图，350 宽，纯 CSS */
.poster{width:350px;max-width:100%;background:#FCFAF4;position:relative;overflow:hidden;
  box-shadow:0 16px 44px rgba(20,34,44,.28);padding:30px 28px 26px;
  font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
.poster::before{content:"";position:absolute;inset:9px;border:1px solid #E4EBE6;pointer-events:none}
.poster::after{content:"✦　✦　✦";position:absolute;left:0;right:0;bottom:9px;text-align:center;
  color:#CBD9CD;font-size:10px;letter-spacing:.3em}
.po-brand{text-align:center;font-size:10px;letter-spacing:.34em;color:#AEC1C9;
  display:flex;align-items:center;justify-content:center;gap:12px}
.po-brand i{width:34px;height:1px;background:linear-gradient(90deg,transparent,#CFDEE6);
  display:block}
.po-brand i:last-child{background:linear-gradient(90deg,#CFDEE6,transparent)}
.po-seal{width:104px;height:74px;margin:12px auto 4px;animation:fadeIn .7s ease both}
.po-seal svg{display:block;width:100%;height:100%}
.po-title{text-align:center;font-size:25px;line-height:1.7;color:#3F6479;margin-top:10px;letter-spacing:.02em}
.po-title em{font-style:normal;color:#6E9CC0}
.po-hook{text-align:center;font-size:19px;line-height:1.75;color:#B5765F;margin-top:12px;padding:0 4px}
.po-rule{margin:17px auto 0;width:100%;border-top:1px dashed #D8E3E8;position:relative}
.po-rule::after{content:"✦";position:absolute;left:50%;top:-9px;transform:translateX(-50%);background:#FCFAF4;padding:0 10px;color:#A9C4D5;font-size:11px}
.po-num{display:flex;align-items:stretch;gap:9px;margin-top:16px}
.po-num .cell{flex:1;text-align:center;background:#EFF5F9;border:1px solid #DFEAF1;border-radius:11px;padding:11px 4px 10px}
.po-num .cell.warm{background:#FBF3EF;border-color:#F0E1D8}
.po-num .v{font-size:32px;line-height:1;color:#5A87A7;font-weight:300}
.po-num .cell.warm .v{color:#B5765F}
.po-num .v small{font-size:12px;color:#A8BAC3;margin-left:1px}
.po-num .k{font-size:11px;color:#7B93A0;margin-top:7px;line-height:1.5}
.po-quote{margin-top:15px;background:#FCF4F0;border-left:2px solid #D3AA98;border-radius:0 9px 9px 0;
  padding:11px 13px;font-size:12.5px;line-height:1.85;color:#8C6452}
.po-quote .lab{font-size:10.5px;color:#B58E7B;letter-spacing:.06em;margin-bottom:4px}
.po-quote b{font-weight:600;color:#7E4F3C}
.po-cta{margin-top:18px;text-align:center}
.po-cta .big{font-size:16px;color:#3F6479;line-height:1.7}
.po-cta .sm{font-size:11.5px;color:#93A6AF;margin-top:5px;line-height:1.7}
.po-qr{display:flex;flex-direction:column;align-items:center;margin-top:20px}
.po-qr .qr-frame{position:relative;display:inline-block;padding:13px;
  background:#fff;border:1px solid #E6EEF2;border-radius:14px;
  box-shadow:0 8px 24px rgba(72,110,132,.10)}
.po-qr .qr-frame i.c{position:absolute;width:15px;height:15px;border:2px solid #88B0CA}
.po-qr .qr-frame i.tl{top:5px;left:5px;border-right:none;border-bottom:none;border-radius:4px 0 0 0}
.po-qr .qr-frame i.tr{top:5px;right:5px;border-left:none;border-bottom:none;border-radius:0 4px 0 0}
.po-qr .qr-frame i.bl{bottom:5px;left:5px;border-right:none;border-top:none;border-radius:0 0 0 4px}
.po-qr .qr-frame i.br{bottom:5px;right:5px;border-left:none;border-top:none;border-radius:0 0 4px 0}
.po-qr img{display:block;width:140px;height:140px;background:#fff}
.po-qr .cap{font-size:11px;color:#8BA5B2;margin-top:12px;letter-spacing:.03em;text-align:center;line-height:1.7}
.po-foot{display:flex;align-items:center;justify-content:space-between;margin-top:18px;
  border-top:1px dashed #DCE6E4;padding-top:13px}
.po-foot .stamp{flex:0 0 48px;height:48px;border:1.4px solid #C4A9A0;border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(-10deg);color:#AE8B80}
.po-foot .stamp b{font-size:12px;line-height:1}
.po-foot .stamp i{font-size:9px;font-style:normal;margin-top:2px}
.po-foot .meta{text-align:right;font-size:10.5px;color:#9FB0B6;line-height:1.7}
.po-foot .meta .lnk{font-family:ui-monospace,Consolas,monospace;color:#7B9BB0;font-size:10px;word-break:break-all}

/* 贺卡预览：一张摊开的卡片，带录音条示意 */
.greet-wrap{width:350px;max-width:100%}
.gcard{background:#FCFAF4;position:relative;overflow:hidden;box-shadow:0 16px 44px rgba(20,34,44,.28);
  padding:26px 24px 22px;font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
.gcard::before{content:"";position:absolute;inset:8px;border:1px solid #E7EDE7;pointer-events:none}
.gc-brand{text-align:center;font-size:10px;letter-spacing:.3em;color:#B4A08F}
.gc-seal{width:88px;height:62px;margin:10px auto 0}
.gc-seal svg{width:100%;height:100%;display:block}
.gc-to{text-align:center;font-size:13px;color:#8C9AA2;margin-top:10px;letter-spacing:.04em}
.gc-hook{text-align:center;font-size:21px;line-height:1.7;color:#3F6479;margin-top:8px}
.gc-hook em{font-style:normal;color:#B5765F}
.gc-rule{margin:15px auto 0;width:100%;border-top:1px dashed #E0D8CD}
.gc-note{margin-top:14px;font-size:12.5px;line-height:1.95;color:#6E7E88;text-align:center;padding:0 4px}
.gc-voice{margin-top:16px;display:flex;align-items:center;gap:11px;background:#F1F6F9;
  border:1px solid #DEEAF1;border-radius:12px;padding:12px 13px}
.gc-voice .play{flex:0 0 34px;height:34px;border-radius:50%;background:#6E9CC0;
  display:flex;align-items:center;justify-content:center}
.gc-voice .play svg{width:14px;height:14px;margin-left:2px}
.gc-voice .wave{flex:1;height:26px;display:flex;align-items:center;gap:2.5px}
.gc-voice .wave i{flex:1;background:#AECBDD;border-radius:2px;display:block}
.gc-voice .dur{font-size:11px;color:#9BAEB7;font-variant-numeric:tabular-nums}
.gc-foot{margin-top:16px;border-top:1px dashed #E7E0D6;padding-top:12px;
  display:flex;align-items:center;justify-content:space-between;font-size:10.5px;color:#A8A093}
.gc-foot .tag{background:#F5EEE6;border-radius:12px;padding:4px 10px;color:#A98A6F}
.gc-photo{margin-top:15px;height:92px;border:1px dashed #D9E4EA;border-radius:10px;
  background:repeating-linear-gradient(45deg,#F4F8FA,#F4F8FA 8px,#EFF5F8 8px,#EFF5F8 16px);
  display:flex;align-items:center;justify-content:center;font-size:11.5px;color:#A3B4BD;gap:7px}
.gc-photo svg{width:17px;height:17px}

/* ---------- 商品入口：三处共用，温和升起，不盖住卡 ---------- */
.entry-slot{width:100%;max-width:350px;margin:16px auto 0}
.pentry{background:#FCF8F3;border:1px solid #EADFD2;border-radius:14px;position:relative;overflow:hidden;
  padding:18px 18px 15px;box-shadow:0 8px 26px rgba(74,54,36,.10);
  animation:peRise .55s cubic-bezier(.22,.68,.35,1) both;
  font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
.pentry::before{content:"";position:absolute;inset:7px;border:1px solid #F0E7DA;border-radius:9px;pointer-events:none}
@keyframes peRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.pentry{animation:none}}
.pe-kicker{text-align:center;font-size:10px;letter-spacing:.24em;color:#B79C85}
.pe-lead{text-align:center;font-size:18px;line-height:1.65;color:#8C6A4F;margin-top:9px}
.pe-rule{margin:12px auto 0;width:64px;border-top:1px solid #E5D3BF;position:relative}
.pe-rule::after{content:"✦";position:absolute;left:50%;top:-9px;transform:translateX(-50%);
  background:#FCF8F3;padding:0 8px;color:#C7A98C;font-size:10px}
.pe-sub{text-align:center;font-size:11.5px;line-height:1.75;color:#A08A76;margin-top:9px}
.pe-scenes{margin-top:12px;display:flex;flex-direction:column}
.pe-row{display:flex;align-items:baseline;gap:10px;padding:8px 2px;border-bottom:1px dashed #EDE0D2}
.pe-row:last-child{border-bottom:none}
.pe-k{flex:0 0 58px;font-size:12px;color:#856247;font-weight:500}
.pe-t{font-size:11.5px;color:#9C8978;line-height:1.6}
.pe-cta{display:block;width:100%;margin-top:14px;padding:11px;border:none;border-radius:10px;
  background:#B98B6B;color:#fff;font-size:13.5px;letter-spacing:.03em;cursor:pointer}
.pe-cta span{margin-left:5px}
.pe-cta:active{background:#A87A5B}
.pe-note{text-align:center;font-size:10px;color:#B9A792;margin-top:10px}

/* ---------- v5：选填名字 / 维度解读 / 落差总结 ---------- */

/* 开始页两个选填名字 */
.names{margin-top:18px;display:flex;flex-direction:column;gap:8px;width:100%;max-width:302px}
.nm-row{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.7);
  border:1px solid #DDE9EF;border-radius:10px;padding:9px 12px;transition:border-color .2s,box-shadow .2s}
.nm-row label{flex:0 0 60px;font-size:11.5px;color:#8FA6B2;letter-spacing:.02em}
.nm-row input{flex:1;min-width:0;border:none;background:transparent;outline:none;
  font-size:14px;color:#3F6479;font-family:inherit;letter-spacing:.02em;padding:0}
.nm-row input::placeholder{color:#C2CED5;font-size:12.5px}
.nm-row:focus-within{border-color:#AECBDD;box-shadow:0 0 0 3px rgba(174,203,221,.16)}
.nm-tip{margin-top:2px;text-align:center;font-size:10.5px;color:#B3C0C7;line-height:1.7}

/* 结果卡上的名字：像落款，不抢主钩子 */
.rc-who{display:flex;align-items:center;justify-content:center;gap:11px;margin-top:14px}
.rc-who i{width:26px;height:1px;background:linear-gradient(90deg,rgba(174,203,221,0),#D3E2EA)}
.rc-who i:last-child{background:linear-gradient(90deg,#D3E2EA,rgba(174,203,221,0))}
.rc-who span{font-size:13px;color:#6E8FA3;letter-spacing:.12em;white-space:nowrap}

/* 维度行：改成两行网格 —— 上面是条和次数，下面一行是解读 */
.bar-row,.db-row{display:grid;grid-template-columns:32px 1fr 47px;
  align-items:center;column-gap:10px;row-gap:3px}
.bar-row .nb,.db-row .nb{grid-column:1/-1;font-size:10.5px;line-height:1.65;
  color:#A2B3BB;padding-left:42px;letter-spacing:.01em}
.bar-row .n,.db-row .n{text-align:right}

/* 落差总结：一行，跟上面的条拉开一点 */
.rc-gap{margin-top:11px;padding-top:9px;border-top:1px dashed #E7EEEC;
  font-size:11px;line-height:1.8;color:#8FA3AD}

/* 海报网页版的名字落款（canvas 版另画） */
.po-who{text-align:center;font-size:12.5px;color:#93AAB7;letter-spacing:.14em;margin-top:5px}

/* TA 落地页：谁请你答的 */
.v-from{margin-top:11px;font-size:12.5px;color:#7B93A0;letter-spacing:.06em}

/* 过期页：结果过期但邀请还有效时的一句提示（v6 双时间窗） */
.exp-more{margin-top:12px;font-size:12.5px;line-height:1.9;color:#7C97A6;
  background:rgba(174,203,221,.14);border-radius:10px;padding:10px 14px;max-width:320px}

/* ---------- v7：相处类型块（结果卡里的一张小卡） ---------- */
.rc-ptype{margin:20px 0 4px;padding:20px 18px 18px;text-align:center;position:relative;
  background:linear-gradient(160deg,#F4F9FB 0%,#FDF7F2 100%);
  border:1px solid #E4EDF0;border-radius:16px;box-shadow:0 3px 14px rgba(110,156,192,.07)}
.rc-ptype:before{content:'✦';position:absolute;top:9px;left:12px;color:#D8C6B4;font-size:11px}
.rc-ptype:after{content:'✦';position:absolute;bottom:9px;right:12px;color:#D8C6B4;font-size:11px}
.pt-tag{font-size:10px;letter-spacing:.22em;color:#A8B8C0}
.pt-name{font-size:27px;line-height:1.45;color:#B07D69;margin:5px 0 2px;letter-spacing:.02em}
.pt-sub{font-size:12px;color:#9A8D80;letter-spacing:.03em}
.pt-desc{margin:13px auto 14px;max-width:300px;font-size:12.5px;line-height:1.95;color:#5F7885;text-align:left}
.pt-tags{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.pt-tags span{font-size:10.5px;color:#7C93A0;background:rgba(255,255,255,.85);
  border:1px solid #E0EAEE;border-radius:999px;padding:4px 10px}

/* 发笔记按钮：比 ghost 重一点，比主按钮轻一点 */
.btn.note-btn{background:linear-gradient(135deg,#F6EFE7,#EFE3D6);color:#A1785F;
  border:1px solid #E8D8C7}
.note-tip{margin:-6px 0 6px;text-align:center;font-size:10.5px;color:#B3A79A;line-height:1.7}
