/* 三人拼团 · 学生端。微信内打开为主，手机优先。
   配色、圆角、阴影沿用新途径中台（xin-buddy）的设计规范，和后台一致：品牌蓝 #0054ff、浅蓝灰底、白卡片。 */
:root {
  --brand: #0054ff;
  --brand-hover: #0048d9;
  --brand-active: #003fbd;
  --brand-ink: #003a9f;
  --brand-soft: #e5edff;
  --brand-softer: #f2f6ff;
  --brand-border: #b8ccff;
  --brand-ring: #0054ff1f;
  --brand-tint: #cfe0ff;   /* 蓝底上的强调字 */

  --bg: #f5f7fb;
  --card: #fff;
  --ink-strong: #111827;
  --ink: #172033;
  --ink-2: #475467;
  --ink-3: #667085;
  --ink-4: #9aa3b2;
  --line: #dce4f2;
  --line-soft: #edf1f7;
  --ok: #16855d;
  --ok-soft: #e4f5ed;
  --warn: #d9480f;

  --r-lg: 16px;
  --r-md: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 3px 16px rgba(27, 49, 91, .05);
  --shadow-pop: 0 18px 48px rgba(23, 32, 51, .16);
  --num: "DIN Alternate", "Bahnschrift", "DIN", "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

.site-nav{display:flex;justify-content:space-between;gap:16px;padding:0 20px;background:#fff;border-bottom:1px solid var(--line)}
.site-nav a{display:flex;align-items:center;min-height:46px;text-decoration:none;font-size:13px;color:var(--ink-2)}
.sheet-open{overflow:hidden}
.sheet-box{position:relative}
.sheet-box>h3{padding-right:44px}
.sheet-close{position:absolute;top:8px;right:8px;min-width:44px;min-height:44px;font-size:28px;z-index:1}
.entry-options{display:grid;gap:12px;margin-top:20px}
.entry-option{display:flex;flex-direction:column;gap:6px;text-align:left;border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--brand-softer)}
.entry-option b{font-size:15px;color:var(--brand-ink)}
.entry-option span{font-size:13px;color:var(--ink-2);line-height:1.7}
.entry-option:hover{border-color:var(--brand)}
.btn,.acct,.seg2 button{min-height:44px}
.acct{display:inline-flex;align-items:center}
button:focus-visible,a:focus-visible{outline:3px solid var(--brand-border);outline-offset:3px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 54% -12%, #0054ff14, transparent 30rem),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%) fixed;
  background-color: var(--bg);
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: var(--brand); }
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(96px + var(--safe-b)); }
.boot { height: 100vh; display: grid; place-items: center; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- 头图：和中台登录页左侧同一套品牌蓝 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 22px 22px 64px;
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(141, 180, 255, .45), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 40, 160, .55), transparent 70%),
    linear-gradient(155deg, #2f74ff 0%, #0054ff 45%, #0039c2 100%);
}
.hero::before { /* 装饰圆环 */
  content: ""; position: absolute; width: 360px; height: 360px; left: -150px; bottom: -230px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 0 0 46px rgba(255, 255, 255, .04), 0 0 0 100px rgba(255, 255, 255, .03);
}
.hero-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; letter-spacing: .06em; }
.brand span { min-width: 0; line-height: 1.4; opacity: .85; }
.brand-logo { flex: none; display: block; max-width: 88px; height: 32px; object-fit: contain; background: transparent; padding: 0; border: 0; border-radius: 0; }
.acct { font-size: 12px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 99px; padding: 2px 10px; }
.hero-body { position: relative; z-index: 1; margin-top: 26px; max-width: 62%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); border-radius: 99px; padding: 2px 10px;
}
.title { margin: 12px 0 0; font-size: 30px; line-height: 1.18; font-weight: 800; letter-spacing: .02em; }
.title em { font-style: normal; color: var(--brand-tint); display: block; }
.sub { margin-top: 10px; font-size: 13px; opacity: .85; }
.teacher {
  position: absolute; right: -2px; bottom: 0; width: 50%; max-width: 250px; aspect-ratio: 718/720;
  background: url(/static/pt/teacher.png) center bottom / contain no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.teacher-name { position: absolute; right: 16px; bottom: 44px; z-index: 2; text-align: right; font-size: 12px; opacity: .9; }
.teacher-name b { display: block; font-size: 16px; letter-spacing: .1em; }

/* 价格 */
.price-card {
  position: relative; z-index: 3; margin: -40px 16px 0; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px;
}
.price-main { flex: 1; min-width: 0; }
.price-tag { font-size: 12px; color: var(--brand); font-weight: 600; letter-spacing: .06em; }
.price { display: flex; align-items: baseline; gap: 4px; color: var(--brand); }
.price .cur { font-size: 18px; font-weight: 700; }
.price .num { font: 700 40px/1.05 var(--num); letter-spacing: -.01em; }
.price .unit { font-size: 13px; color: var(--ink-2); }
.price-was { font-size: 12px; color: var(--ink-3); }
.price-was s { margin-left: 4px; }
.price-side { text-align: right; font-size: 12px; color: var(--ink-2); line-height: 1.5; padding-left: 16px; border-left: 1px solid var(--line-soft); }
.price-side b { display: block; font: 700 20px/1.2 var(--num); color: var(--ink-strong); }
.gift { margin: 10px 16px 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--brand-ink);
  background: var(--brand-softer); border: 1px solid var(--brand-soft); border-radius: var(--r-md); padding: 9px 14px; }
.gift-t b { font-weight: 600; }
.gift-t span { margin-left: 8px; font-size: 12px; color: var(--ink-3); }
.gift-imgs { margin: 8px 16px 0; display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 4px); gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gift-imgs::-webkit-scrollbar { display: none; }
.class-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.class-photos figure { margin: 0; min-width: 0; }
.class-photos button { display: block; width: 100%; border-radius: var(--r-md); overflow: hidden; }
.class-photos button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.class-photos img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--line-soft); }
.class-photos figcaption { margin-top: 7px; font-size: 13px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.recognition-section h3 { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.recognition-section + .recognition-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
[data-recognition="honor"] .class-photos img { aspect-ratio: 3/4; background: #fff7ed; }
.accommodation-card .gift-imgs { margin: 0; }
.gift-imgs img { width: 100%; aspect-ratio: 4/3; object-fit: contain; border-radius: var(--r-md); display: block; background: var(--line-soft); }
.gift i { flex: none; font-style: normal; font-size: 11px; color: #fff; background: var(--brand); border-radius: 6px; padding: 1px 6px; }

/* ---------- 通用卡片 ---------- */
.card { margin: 14px 16px 0; padding: 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.price-enrollment{grid-column:1/-1;min-width:0}
.price-enrollment:empty{display:none}
.enrollment-card{margin-top:14px;padding-top:13px;border-top:1px solid var(--line-soft)}
.enrollment-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 12px}
.enrollment-label{display:flex;align-items:center;gap:7px;min-width:0;flex:1 1 104px}
.enrollment-heading h2{margin:0;font-size:12px;font-weight:600;color:var(--ink-2);overflow-wrap:anywhere}
.enrollment-badge{flex:none;padding:2px 7px;border-radius:6px;background:var(--brand-soft);color:var(--brand-ink);font-size:11px;font-weight:600;white-space:nowrap}
.enrollment-members{margin:0;font-size:12px;color:var(--ink-2);line-height:1.5;white-space:nowrap}
.enrollment-members strong{padding:0 2px;font:700 16px/1 var(--num);color:var(--brand);font-variant-numeric:tabular-nums}
.enrollment-track{height:5px;margin-top:9px;border-radius:99px;background:var(--brand-soft);overflow:hidden}
.enrollment-fill{width:35%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#85adff,var(--brand));transition:width .4s ease}
.enrollment-note{margin:8px 0 0;font-size:11px;line-height:1.7;color:var(--ink-3);overflow-wrap:anywhere;white-space:pre-line}
.enrollment-update{margin:6px 0 0;font-size:11px;color:var(--ink-3)}
.enrollment-card[data-enrollment-stage="near"] .enrollment-fill{width:92%}
.enrollment-card[data-enrollment-stage="near"] .enrollment-badge{background:#fff1cf;color:#86550b}
.enrollment-card[data-enrollment-stage="closed"] .enrollment-fill{width:100%;background:#8a9cb7}
.enrollment-card[data-enrollment-stage="closed"] .enrollment-badge{background:#edf1f7;color:var(--ink-2)}
.card-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 14px; }
.card-h h2, .card-h h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink-strong); }
.muted { color: var(--ink-3); font-size: 13px; }
.small { font-size: 12px; }
.center { text-align: center; }

/* 团 */
.slots { display: flex; justify-content: center; gap: 22px; margin: 8px 0 18px; position: relative; }
.slot { width: 68px; text-align: center; font-size: 12px; color: var(--ink-2); }
.avatar {
  position: relative; width: 60px; height: 60px; margin: 0 auto 6px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--brand-ink);
  background: var(--brand-soft); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-border);
}
.avatar.me { color: #fff; background: linear-gradient(145deg, #3b7bff, var(--brand) 55%, #0040d0); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand), 0 6px 16px rgba(0, 84, 255, .25); }
.avatar.empty { background: var(--bg); color: var(--ink-4); box-shadow: none; border: 1.5px dashed var(--line); font-weight: 400; font-size: 26px; }
.avatar .lead { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 10px; font-weight: 600; line-height: 16px; padding: 0 6px; border-radius: 8px; color: #fff; background: var(--brand); }
.slot .nm { display: block; margin-top: 12px; }

.state { text-align: center; }
.state-title { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.state-title.ok { color: var(--ok); }
.state-title.wait { color: var(--brand); }
.state-title.bad { color: var(--warn); }
.state-sub { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.countdown { display: inline-flex; gap: 4px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.countdown b { font: 700 15px var(--num); color: var(--brand-ink); background: var(--brand-soft); border-radius: 6px; padding: 1px 6px; min-width: 28px; text-align: center; }
.progress { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; margin: 16px 0 4px; }
.progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3b7bff, var(--brand)); transition: width .6s ease; }

.success-burst { position: relative; width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, var(--ok-soft) 0 60%, transparent 61%); }
.success-burst svg { width: 34px; height: 34px; }
.success-burst::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(22, 133, 93, .25); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

/* 按钮：gold = 主操作（品牌蓝），navy = 次一级的实心按钮，ghost = 白底描边 */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 48px; border-radius: var(--r-md);
  font-size: 16px; font-weight: 600; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; }
.btn.gold { color: #fff; background: var(--brand); box-shadow: 0 6px 16px rgba(0, 84, 255, .25); }
.btn.gold:active { background: var(--brand-active); }
.btn.navy { color: #fff; background: var(--brand-ink); box-shadow: 0 4px 12px rgba(0, 58, 159, .2); }
.btn.navy:active { background: #002f82; }
.btn.ghost { color: var(--brand-ink); background: #fff; border: 1px solid var(--line); }
.btn.ghost:active { background: var(--brand-softer); border-color: var(--brand-border); }
.btn.text { height: auto; width: auto; font-size: 13px; color: var(--brand); font-weight: 500; }
.btns { display: grid; gap: 10px; }
.btns.two { grid-template-columns: 1fr 1fr; }

/* 输入 */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; outline: none;
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.input.code { text-align: center; font: 700 22px var(--num); letter-spacing: .12em; text-transform: uppercase; padding-left: calc(16px + .12em); color: var(--ink-strong); }
.input.code::placeholder { font-size: 17px; font-weight: 500; letter-spacing: .12em; color: var(--ink-4); }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }
.back { text-decoration: none; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--ink-2); margin: 14px 16px 0; }

/* 邀请页 */
.invite { text-align: center; padding-top: 24px; }
.invite .who { font-size: 13px; color: var(--ink-2); }
.invite .who b { color: var(--ink-strong); }
.invite h2 { margin: 6px 0 2px; font-size: 20px; }

/* 介绍 */
.intro { display: flex; gap: 14px; align-items: center; }
/* 老师头像：“破框”——浅蓝圆底，头部超出圆的上沿，露出半身 */
.intro .pic { flex: none; position: relative; width: 84px; height: 92px; }
.intro .pic::before { content: ""; position: absolute; left: 4px; bottom: 0; width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-soft), var(--brand-border)); }
.intro .pic::after { content: ""; position: absolute; left: -6px; bottom: 0; width: 96px; height: 96px;
  background: url(/static/pt/teacher.png) 50% 0 / 100% auto no-repeat;
  /* 圆里面的部分 + 圆上沿以上的头部，其余裁掉 */
  -webkit-mask: radial-gradient(circle at 50% 58px, #000 38px, transparent 38.5px), linear-gradient(#000 52px, transparent 52px);
  mask: radial-gradient(circle at 50% 58px, #000 38px, transparent 38.5px) add, linear-gradient(#000 52px, transparent 52px); }
.intro-copy { min-width: 0; }
.intro h2 { margin: 0; font-size: 18px; line-height: 1.4; color: var(--ink-strong); }
.teacher-records { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.teacher-records .card-h { margin-bottom: 12px; }
.teacher-records .card-h + .recs { margin-top: 0; }
.course-features h3 { margin: 0; font-size: 14px; color: var(--ink-2); }
.course-features.separated { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.course-card .card-h { margin-bottom: 4px; }
.course-card .feats { margin-top: 10px; }
.intro ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.feat { padding: 12px; border-radius: var(--r-md); background: var(--brand-softer); border: 1px solid var(--line-soft); }
.feat b { display: block; font-size: 14px; color: var(--brand-ink); }
.feat span { font-size: 12px; color: var(--ink-3); }

/* 教学战绩：上排小格（大号分数）+ 下排宽格 */
.recs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.recs.two { grid-template-columns: 1fr 1fr; }
.rec { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 6px 10px;
  border-radius: var(--r-md); background: var(--brand-softer); border: 1px solid var(--brand-soft); overflow: hidden; }
.rec i { align-self: stretch; font-style: normal; font-size: clamp(9px, 2.5vw, 11px); font-weight: 600; color: #fff; background: var(--brand);
  margin: 0 -6px 4px; padding: 3px 4px; line-height: 1.4; overflow-wrap: anywhere; }
.rec:not(.wide) i { display: flex; flex-direction: column; justify-content: center; min-height: 36px; }
.rec:not(.wide) span { min-height: 2.7em; display: flex; align-items: center; justify-content: center; }
.rec span { font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.rec b { font: 700 28px/1.1 var(--num); color: var(--brand); margin-top: 2px; }
.rec em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.rec.wide { padding-top: 0; }
.rec.wide i { font-size: 12px; }
.rec.wide b { font-size: 15px; line-height: 1.4; font-family: inherit; color: var(--brand-ink); }
.rec.wide em { font-size: 12px; color: var(--brand); font-weight: 600; }
.rec-note { margin-top: 10px; font-size: 11px; color: var(--ink-4); text-align: center; }
@media (max-width: 420px) { .recs.two { grid-template-columns: 1fr; } }
@media (max-width: 380px) {
  .card { padding: 16px; margin-left: 12px; margin-right: 12px; }
  .recs { gap: 6px; }
  .rec b { font-size: 26px; }
  .rec.wide b { font-size: 15px; }
  .intro { gap: 10px; }
  .intro .pic { width: 72px; }
  .intro .pic::before, .intro .pic::after { transform: scale(.88); transform-origin: left bottom; }
  .intro ul { font-size: 12px; }
  .intro h2 { font-size: 17px; }
  .feat { padding: 10px; }
}
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules li { position: relative; padding-left: 28px; margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.rules li b { color: var(--ink-strong); }
.rules li::before { counter-increment: r; content: counter(r); position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  font: 600 11px/18px var(--num); text-align: center; color: var(--brand); background: var(--brand-soft); }

/* 底部操作栏 */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
}
.dock-in { max-width: 488px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.dock-in.one { grid-template-columns: 1fr; }
.dock-in.three { grid-template-columns: 1.1fr .9fr 1.1fr; gap: 8px; }
.dock-in.three .btn { font-size: 15px; }

/* 课程安排 */
.sched { width: 100%; border-collapse: collapse; font-size: 14px; }
.sched th { width: 5.5em; text-align: left; font-weight: 500; color: var(--ink-3); padding: 10px 0; vertical-align: top; }
.sched td { color: var(--ink); padding: 10px 0; font-weight: 500; }
.sched tr + tr th, .sched tr + tr td { border-top: 1px solid var(--line-soft); }
.hint a, .muted a { color: var(--brand); }

/* 顾问 */
.sales { display: flex; align-items: center; gap: 14px; }
.sales img { width: 112px; height: 112px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: #fff; cursor: zoom-in; }
.sales-info { min-width: 0; }
.sales-info b { color: var(--ink-strong); }
.wx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 10px 12px 10px 14px;
  border-radius: var(--r-md); background: var(--brand-softer); font-size: 14px; color: var(--ink-2); }
.wx-row b { color: var(--ink-strong); font: 700 16px var(--num); letter-spacing: .02em; word-break: break-all; }
.wx-copy { flex: none; height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff; background: var(--brand); }
.wx-copy:active { transform: scale(.97); background: var(--brand-active); }

/* 提示、弹层 */
.toast { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 99; max-width: 80%;
  padding: 10px 18px; border-radius: var(--r-md); font-size: 14px; color: #fff; background: rgba(23, 32, 51, .88); text-align: center; }
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(17, 24, 39, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet-box { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(18px + var(--safe-b)); box-shadow: var(--shadow-pop); animation: up .25s cubic-bezier(.2, .8, .2, 1); }
.sheet-box h3 { margin: 0 0 12px; font-size: 17px; text-align: center; color: var(--ink-strong); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.poster-img { display: block; width: 100%; border-radius: var(--r-md); box-shadow: 0 6px 24px rgba(0, 58, 159, .18); }
.share-tip { position: fixed; inset: 0; z-index: 60; background: rgba(17, 24, 39, .8); color: #fff; text-align: right; padding: 18px 26px; font-size: 15px; }
.share-tip svg { width: 70px; height: 70px; }

.foot-note { margin: 22px 16px 0; text-align: center; font-size: 11px; color: var(--ink-4); }
.fade-in { animation: fade .35s ease; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 521px) { body { background: #eef2f9; } .app { background: var(--bg); box-shadow: 0 0 40px rgba(27, 49, 91, .08); } }

/* 口令确认：显示要进的团 */
#code-box .who { text-align: center; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
#code-box .who b { color: var(--ink-strong); }
#code-box .card-h .num { font: 600 13px var(--num); letter-spacing: .12em; color: var(--ink-3); }

/* 价格卡：立省 */
.price .save { align-self: center; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--warn); background: #fff0e6; border-radius: 6px; padding: 1px 7px; }

/* 三步流程条 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 16px 12px; }
.step { position: relative; text-align: center; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.step i { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 6px; border-radius: 50%; font: 700 13px var(--num); font-style: normal;
  color: #fff; background: var(--brand); box-shadow: 0 4px 10px rgba(0, 84, 255, .22); }
.step b { display: block; font-size: 13px; color: var(--ink-strong); }
.step + .step::before { content: ""; position: absolute; top: 13px; left: -20%; width: 40%; height: 1px; background: var(--brand-border); }

/* 正在拼的团 */
.og-list { display: grid; gap: 10px; }
.og { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--brand-softer); border: 1px solid var(--line-soft); }
.og-av { flex: none; display: flex; }
.og-av span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--brand-ink);
  background: var(--brand-soft); box-shadow: 0 0 0 2px #fff; }
.og-av span + span { margin-left: -8px; }
.og-av span.e { background: #fff; color: var(--ink-4); font-weight: 400; border: 1px dashed var(--line); box-shadow: 0 0 0 2px var(--brand-softer); }
.og-t { flex: 1; min-width: 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.og-t span { display: block; white-space: nowrap; }
.og-t b { display: block; font-size: 14px; color: var(--ink-strong); }
.og-t em { font-style: normal; font-weight: 700; color: var(--warn); }
.og-t i { font-style: normal; font-family: var(--num); }
.btn.sm { width: auto; flex: none; height: 34px; padding: 0 14px; font-size: 14px; border-radius: 10px; box-shadow: none; }

/* 常见问题 */
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 12px 24px 12px 0; font-size: 14px; font-weight: 500; color: var(--ink-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-4); border-bottom: 1.5px solid var(--ink-4);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }

/* 我要开团 / 参团 弹层 */
.ent-t { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.ent-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ent-or::before, .ent-or::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.ent-sales { margin-top: 12px; padding: 14px; border-radius: var(--r-md); background: var(--brand-softer); }
.ent-sales .sales img { width: 96px; height: 96px; }

/* 成团后 / 超时后 */
.note { margin-top: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.divider { height: 1px; background: var(--line-soft); margin: 16px 0; }
button.link { font-size: 11px; color: var(--ink-3); text-decoration: underline; }

/* 默认域名：选择课程顾问 */
.pick-t { margin: 12px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: center; }
.pick { display: grid; gap: 8px; }
.pick-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r-md); text-align: left;
  background: #fff; border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.pick-i:active { border-color: var(--brand-border); background: var(--brand-softer); }
.pick-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); }
.pick-i b { flex: 1; font-size: 15px; color: var(--ink-strong); }
.pick-go { flex: none; font-size: 13px; font-weight: 600; color: #fff; background: var(--brand); border-radius: 8px; padding: 4px 12px; }
#ask-sales .ent-sales { margin-top: 0; }

/* 邀请文案：微信 / 小红书切换，随机一条 */
.seg2 { display: flex; gap: 6px; padding: 4px; border-radius: var(--r-md); background: var(--brand-softer); margin-bottom: 10px; }
.seg2 button { flex: 1; height: 34px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.seg2 button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px rgba(27, 49, 91, .1); }
.copy-box { white-space: pre-wrap; word-break: break-all; font-size: 14px; line-height: 1.7; color: var(--ink); padding: 12px 14px;
  border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line-soft); max-height: 220px; overflow: auto; }

/* 所有素材用统一 4:3 预览框，原图完整保留，点击查看大图。二维码独立保持方形。 */
.gift-imgs button { min-width: 0; border-radius: var(--r-md); overflow: hidden; }
.gift-imgs button:focus-visible, .trial-qr:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.trial-block { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.trial-copy { min-width: 0; }
.trial-copy h3 { margin: 0; font-size: 16px; color: var(--ink-strong); }
.trial-copy p { margin: 6px 0 10px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.trial-copy span { display: block; font-size: 12px; color: var(--ink-3); }
.trial-qr { display: block; flex: none; width: 144px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.trial-qr img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 360px) { .trial-block { gap: 10px; } .trial-qr { width: 128px; } }

/* Staging consultation: keep the purpose and availability above the fold. */
.test-public .consult-header{padding:18px 20px 12px;background:#fff;border-bottom:1px solid var(--line)}
.test-public .consult-header h1{margin:6px 0;font-size:22px;line-height:1.35;overflow-wrap:anywhere}
.test-public .consult-header p{margin:6px 0;font-size:14px;line-height:1.6;color:var(--ink-2)}
.test-public .consult-header .consult-brand{font-weight:700;color:var(--brand)}
.test-public .site-nav{flex-wrap:wrap;gap:4px 16px;padding:0 16px}
.test-public .site-nav a{min-height:44px;display:flex;align-items:center}
@media(max-width:360px){.test-public .site-nav{gap:4px 12px}.test-public .consult-header{padding:14px 16px 10px}}
