/* 雪梨缘网页版：照搬新版小程序的设计（app.wxss 变量 + homev1 卡片 B 版 + v1paysheet），rpx ÷ 2 = px */
:root {
  --fs-xs: 12px; --fs-s: 14px; --fs-m: 15px; --fs-h: 24px; --fs-l: 29px;
  --lh: 1.618; --lh-t: 1.5; --w-n: 400; --w-b: 600;
  --sp-1: 8px; --sp-2: 13px; --sp-3: 21px; --sp-4: 34px; --sp-5: 55px;
  --page: 21px; --r: 13px; --r-pill: 999px; --btn-h: 44px; --btn-s: 34px;
  --tx1: #1F1A17; --tx2: #4A413A; --tx3: #6B625A;
  --cream: #FAF7F2; --card: #FFFFFF; --hair: #F1EBE3; --line: #EFE7DC; --fill: #F2ECE3;
  --red: #C8102E; --gold: #A9792A; --gold2: #E2B865; --green: #2E9E57;
  --serif: -apple-system, "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --gold-grad: linear-gradient(90deg, #B8862E, #E2B865);
  --ease: ease-out; --dur: .25s;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--cream); color: var(--tx1); font-family: var(--serif); font-size: var(--fs-s); line-height: var(--lh); -webkit-font-smoothing: antialiased; }
body { overscroll-behavior: none; }
#app { max-width: 480px; margin: 0 auto; min-height: 100%; position: relative; }
button { font: inherit; border: 0; background: none; color: inherit; padding: 0; cursor: pointer; }
input, select { font: inherit; color: var(--tx1); }
.tap:active, button:active { opacity: .68; }
[hidden] { display: none !important; }

.tip { position: fixed; left: 50%; top: 110px; transform: translateX(-50%); z-index: 90; background: rgba(31, 26, 23, .88); color: #fff; font-size: var(--fs-xs); border-radius: var(--r-pill); padding: 6px 14px; white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

.xl-head { padding: calc(env(safe-area-inset-top) + 14px) var(--page) var(--sp-1); line-height: var(--lh-t); }
.h1row { display: flex; align-items: baseline; justify-content: space-between; }
.xl-h1 { font-size: var(--fs-h); font-weight: var(--w-b); margin: 0; line-height: var(--lh-t); }
.xl-sub { font-size: var(--fs-xs); color: var(--tx3); line-height: var(--lh); }
.fresh { font-size: var(--fs-xs); color: var(--gold); }
.chips { display: flex; margin-top: 4px; white-space: nowrap; overflow: hidden; }
.chip { font-size: var(--fs-xs); color: var(--tx2); padding: var(--sp-1) 0; margin-right: var(--sp-3); }
.chip.hot { color: var(--red); font-weight: var(--w-b); }
.chip:last-child { margin-right: 0; margin-left: auto; color: var(--tx3); }

.xl-b { display: block; width: 100%; height: var(--btn-h); line-height: var(--btn-h); border-radius: var(--r-pill); font-size: var(--fs-s); font-weight: var(--w-b); letter-spacing: 1px; text-align: center; }
.xl-b.red { background: var(--red); color: #fff; }
.xl-b.gold { background: var(--gold-grad); color: #3a2608; }
.xl-b.ghost { background: var(--card); color: var(--tx2); border: 1px solid var(--line); }
.xl-b[disabled] { opacity: .45; }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 48px) var(--page) calc(env(safe-area-inset-bottom) + var(--sp-3)); }
.lg-logo { width: 76px; height: 76px; border-radius: 50%; display: block; box-shadow: 0 6px 20px rgba(120, 20, 20, .18); }
.lg-t { font-size: 30px; font-weight: var(--w-b); margin: var(--sp-3) 0 0; line-height: 1.3; }
.lg-s { font-size: var(--fs-s); color: var(--tx2); margin-top: 4px; }
.lg-k { font-size: var(--fs-xs); color: var(--gold); letter-spacing: 1px; margin-top: var(--sp-1); }
.lg-form { margin-top: var(--sp-4); }
.field { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); height: 50px; padding: 0 var(--sp-2); margin-bottom: var(--sp-2); }
.field:focus-within { border-color: var(--gold2); }
.field select { border: 0; background: transparent; font-size: var(--fs-m); padding-right: 4px; outline: none; -webkit-appearance: none; appearance: none; }
.field .sep { width: 1px; height: 20px; background: var(--line); margin: 0 var(--sp-2) 0 6px; }
.field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: var(--fs-m); height: 100%; }
.field .code-btn { flex: none; font-size: var(--fs-s); color: var(--gold); font-weight: var(--w-b); padding-left: var(--sp-2); }
.field .code-btn[disabled] { color: var(--tx3); font-weight: var(--w-n); }
.agree { display: flex; align-items: flex-start; font-size: var(--fs-xs); color: var(--tx3); margin: var(--sp-1) 0 var(--sp-3); gap: 6px; }
.agree input { margin: 3px 0 0; accent-color: var(--red); }
.agree a { color: var(--tx2); }
.lg-or { display: flex; align-items: center; font-size: var(--fs-xs); color: var(--tx3); margin: var(--sp-3) 0 var(--sp-2); }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lg-or span { padding: 0 var(--sp-2); }
.wx-soon { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--tx3); }
.lg-foot { margin-top: auto; padding-top: var(--sp-4); text-align: center; font-size: 11px; color: var(--tx3); line-height: 1.7; }
.testbar { position: fixed; top: 0; left: 0; right: 0; z-index: 95; text-align: center; font-size: 11px; line-height: 18px; background: #2a2420; color: #F3DDA8; padding-top: env(safe-area-inset-top); }

/* ---------- 完善资料 ---------- */
.reg { padding: calc(env(safe-area-inset-top) + 28px) var(--page) calc(env(safe-area-inset-bottom) + 40px); }
.reg .rq { background: var(--card); border-radius: var(--r); padding: var(--sp-2); margin-top: var(--sp-2); }
.reg .q { font-size: var(--fs-s); font-weight: var(--w-b); margin-bottom: 6px; }
.reg .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.reg .opt { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 14px; font-size: var(--fs-s); color: var(--tx2); background: var(--cream); }
.reg .opt.on { border-color: var(--gold2); color: var(--gold); background: #FFF8EA; font-weight: var(--w-b); }
.reg .in { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--cream); outline: none; }
.reg .in:focus { border-color: var(--gold2); }
.reg .row2 { display: flex; gap: 8px; }
.reg .note { font-size: var(--fs-xs); color: var(--tx3); margin-top: 6px; }
.reg .pick { display: flex; align-items: center; gap: 12px; border: 1px dashed var(--gold2); border-radius: 10px; padding: 10px 12px; color: var(--gold); font-size: var(--fs-s); background: #FFF8EA; }
.reg .pick img { width: 54px; height: 72px; object-fit: cover; border-radius: 6px; }
.reg .done { color: var(--green); font-size: var(--fs-xs); margin-left: 6px; font-weight: var(--w-n); }

/* ---------- 首页：卡片 B 版 ---------- */
.home { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; touch-action: manipulation; }
.deck { flex: 1; min-height: 0; position: relative; margin: 0 var(--page) calc(var(--sp-3) + env(safe-area-inset-bottom)); }
.card { position: absolute; left: 0; right: 0; top: 0; bottom: calc(var(--btn-h) + var(--sp-2)); border-radius: 22px; overflow: hidden; background: #2a2620; will-change: transform; user-select: none; -webkit-user-select: none; touch-action: none; }
.card.r0 { z-index: 3; transition: transform var(--dur) var(--ease); }
.card.r0.drag { transition: none; }
.card.r1 { z-index: 2; transform: translate3d(0, 13px, 0) scale(.95); opacity: .9; }
.card.out-l { z-index: 4; transform: translate3d(-160%, 0, 0) rotate(-24deg) !important; transition: transform var(--dur) var(--ease) !important; pointer-events: none; }
.card.out-r { z-index: 4; transform: translate3d(160%, 0, 0) rotate(24deg) !important; transition: transform var(--dur) var(--ease) !important; pointer-events: none; }
.card.goldline { border: 2px solid var(--gold2); }
.card.skel { background: linear-gradient(170deg, #efe7dc, #e4d9ca 55%, #d9ccba); animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { 50% { opacity: .6; } }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: linear-gradient(170deg, #a99a86, #6b5d50 45%, #2b211c); pointer-events: none; }
.bars { position: absolute; top: var(--sp-1); left: var(--sp-2); right: var(--sp-2); display: flex; z-index: 2; gap: 4px; }
.bars i { flex: 1; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .35); }
.bars i.on { background: #fff; }
.shade { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; z-index: 1; background: linear-gradient(rgba(15, 10, 8, 0), rgba(15, 10, 8, .5) 50%, rgba(15, 10, 8, .82)); pointer-events: none; }
.best { position: absolute; top: 21px; left: var(--sp-2); z-index: 2; background: var(--gold-grad); color: #3a2608; font-size: var(--fs-xs); font-weight: var(--w-b); line-height: 20px; border-radius: var(--r-pill); padding: 0 var(--sp-1); }
.stamp { position: absolute; top: 68px; z-index: 4; font-size: var(--fs-h); font-weight: var(--w-b); border: 2px solid; border-radius: var(--sp-1); padding: 0 var(--sp-1); opacity: 0; pointer-events: none; }
.stamp-like { right: var(--sp-3); color: var(--green); transform: rotate(14deg); }
.stamp-nope { left: var(--sp-3); color: var(--red); transform: rotate(-14deg); }
.info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 var(--sp-3) var(--sp-3); color: #fff; line-height: var(--lh-t); pointer-events: none; }
.nm { display: flex; align-items: baseline; white-space: nowrap; }
.nmt { font-size: 32px; font-weight: var(--w-b); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nm .sub { flex: none; font-size: 14px; margin-left: var(--sp-1); opacity: .9; }
.id2 { font-size: 16px; font-weight: var(--w-b); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc { font-size: var(--fs-xs); opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc .dot { color: #6fd08f; }
.vf { font-size: var(--fs-xs); color: #F3DDA8; margin-top: 2px; }
.vf span { margin-right: 10px; }
.tg { display: flex; overflow: hidden; margin-top: var(--sp-1); gap: 6px; }
.tg span { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); line-height: 22px; color: #F3DDA8; border: .5px solid var(--gold2); background: rgba(20, 12, 8, .35); border-radius: var(--r-pill); padding: 0 10px; }
.tg span:last-child { flex-shrink: 1; }
/* 没照片：纸面简历卡 */
.resume { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #2b211b, #4a3a2e); color: #F3E6CC; text-align: center; padding: 0 var(--sp-3); }
.rs-k { font-size: 11px; letter-spacing: 4px; color: var(--gold2); }
.rs-n { font-size: 30px; font-weight: var(--w-b); margin-top: 6px; color: #fff; }
.rs-s { font-size: var(--fs-xs); opacity: .8; }
.rs-rule { color: var(--gold2); font-size: 10px; margin: var(--sp-2) 0; letter-spacing: 6px; }
.rs-q { font-size: var(--fs-s); margin-bottom: var(--sp-2); }
.rs-row { display: flex; justify-content: space-between; gap: 16px; font-size: var(--fs-s); border-bottom: .5px solid rgba(226, 184, 101, .25); padding: 6px 0; min-width: 220px; }
.rs-row b { font-weight: var(--w-n); color: var(--gold2); }

.acts { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: var(--sp-1); }
.acts button { flex: 1; height: var(--btn-h); border-radius: var(--r-pill); font-size: var(--fs-s); font-weight: var(--w-b); letter-spacing: 1px; }
.acts .no { background: var(--card); color: var(--tx1); border: .5px solid var(--line); }
.acts .yes { flex: 1.25; background: var(--red); color: #fff; }
.hint { position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--sp-3)); text-align: center; font-size: var(--fs-xs); line-height: var(--sp-3); color: var(--tx3); }
.end { padding: var(--sp-3) var(--page); }
.end-t { font-size: var(--fs-h); font-weight: var(--w-b); line-height: var(--lh-t); }
.end-s { font-size: var(--fs-s); color: var(--tx3); margin-top: 4px; }
.end-link { display: block; text-align: center; padding: var(--sp-3) 0; font-size: var(--fs-xs); color: var(--tx3); }

/* ---------- 资料（点卡片） ---------- */
.pf-mask, .ps-mask { position: fixed; inset: 0; z-index: 40; background: rgba(20, 14, 10, .45); animation: fade var(--dur) var(--ease); }
.pf { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 480px; margin: 0 auto; max-height: 86vh; overflow-y: auto; background: var(--cream); border-radius: var(--r) var(--r) 0 0; padding: var(--sp-3) var(--page) calc(var(--sp-3) + env(safe-area-inset-bottom)); animation: up var(--dur) var(--ease); }
.pf h3 { font-size: var(--fs-h); margin: 0; line-height: var(--lh-t); }
.pf .pf-s { font-size: var(--fs-xs); color: var(--tx3); }
.pf .pf-rows { background: var(--card); border-radius: var(--r); padding: 4px var(--sp-2); margin-top: var(--sp-2); }
.pf .pf-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: .5px solid var(--hair); font-size: var(--fs-s); }
.pf .pf-row:last-child { border-bottom: 0; }
.pf .pf-row span:first-child { color: var(--tx3); flex: none; }
.pf .pf-row span:last-child { text-align: right; }
.pf .pf-txt { background: var(--card); border-radius: var(--r); padding: var(--sp-2); margin-top: var(--sp-2); font-size: var(--fs-s); color: var(--tx2); white-space: pre-wrap; }
.pf .pf-photos { display: flex; gap: 6px; overflow-x: auto; margin-top: var(--sp-2); }
.pf .pf-photos img { flex: none; width: 120px; height: 160px; object-fit: cover; border-radius: 10px; background: var(--fill); }
.x { position: absolute; right: 8px; top: 8px; width: var(--btn-h); height: var(--btn-h); font-size: var(--fs-h); color: var(--tx3); z-index: 3; }

/* ---------- 付费层（v1paysheet） ---------- */
.ps { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 480px; margin: 0 auto; background: var(--cream); border-radius: var(--r) var(--r) 0 0; padding: var(--sp-3) var(--page) calc(var(--sp-2) + env(safe-area-inset-bottom)); animation: up var(--dur) var(--ease); line-height: var(--lh); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translate3d(0, 100%, 0); } }
.ps-kicker { font-size: var(--fs-xs); color: var(--gold); letter-spacing: 1px; }
.ps-title { font-size: var(--fs-h); font-weight: var(--w-b); line-height: var(--lh-t); padding-right: var(--sp-4); }
.ps-online { font-size: var(--fs-xs); color: var(--green); }
.ps-sub { font-size: var(--fs-s); color: var(--tx2); margin-top: var(--sp-1); }
.ps-stars { display: flex; flex-wrap: wrap; gap: 0 var(--sp-2); font-size: var(--fs-xs); color: var(--gold); }
.ps-feats { margin-top: var(--sp-2); }
.ps-feat { font-size: var(--fs-s); color: var(--tx2); display: flex; align-items: center; }
.ps-ok { color: var(--gold); margin-right: var(--sp-1); }
.ps-prices { display: flex; gap: var(--sp-1); margin: var(--sp-3) 0 var(--sp-2); }
.ps-price { position: relative; flex: 1; border: 1px solid transparent; border-radius: var(--r); padding: var(--sp-2) 0 var(--sp-1); text-align: center; background: var(--card); }
.ps-price.on { border-color: var(--gold2); }
.ps-hot { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--gold-grad); color: #3a2608; font-size: 11px; line-height: 18px; border-radius: var(--r-pill); padding: 0 var(--sp-1); white-space: nowrap; }
.ps-p-n { font-size: var(--fs-xs); color: var(--tx3); }
.ps-p-v { font-size: var(--fs-m); font-weight: var(--w-b); line-height: var(--lh-t); }
.ps-p-d { font-size: var(--fs-xs); color: var(--tx2); line-height: var(--lh-t); }
.ps-price.on .ps-p-d { color: var(--gold); }
.ps-p-h { font-size: var(--fs-xs); color: var(--tx3); line-height: var(--lh-t); }
.ps-pv { display: flex; gap: 8px; overflow-x: auto; margin-top: var(--sp-2); }
.ps-pv-c { flex: none; position: relative; width: 76px; height: 104px; border-radius: 10px; overflow: hidden; background: #d9c6b4; }
.ps-pv-c img { width: 100%; height: 100%; object-fit: cover; }
.ps-pv-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 4px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.72)); color: #fff; font-size: 9px; line-height: 1.35; }
.ps-pv-f { margin-top: var(--sp-2); font-size: var(--fs-xs); text-align: center; }
.ps-btn { display: block; width: 100%; height: var(--btn-h); border-radius: var(--r-pill); font-size: var(--fs-s); font-weight: var(--w-b); letter-spacing: 1px; background: var(--gold-grad); color: #3a2608; }
.ps-soon { margin-top: var(--sp-2); background: #FFF6E6; border: .5px solid #E6D3AE; border-radius: 12px; padding: 10px 12px; font-size: var(--fs-xs); color: var(--tx2); line-height: 1.6; }
.ps-link { display: block; width: 100%; text-align: center; font-size: var(--fs-xs); color: var(--tx3); padding: var(--sp-2) 0 0; }

/* ---------- 我的（小菜单） ---------- */
.menu .pf-row { cursor: pointer; }

/* 测试服顶上那条黑条（18px）不压住标题 */
.is-test .xl-head { padding-top: calc(env(safe-area-inset-top) + 32px); }
.is-test .login { padding-top: calc(env(safe-area-inset-top) + 60px); }
.is-test .reg { padding-top: calc(env(safe-area-inset-top) + 44px); }
.is-test .tip { top: 128px; }
