/* 拼团公开页 — 对齐 SK 活动页风格 */
.gb-public.gb-act{
  --gb-orange:#ff5c00;
  --gb-blue:#2563eb;
  --gb-txt:#1d2129;
  --gb-muted:#86909c;
  --gb-line:#eaedf1;
  --gb-shadow:0 2px 8px 0 rgba(55,99,170,.12);
  margin:0;
  background:#fff;
  color:var(--gb-txt);
  font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
.gb-public.gb-act.is-embed{background:transparent}
.gb-act-wrap{max-width:1200px;margin:0 auto;padding:8px 16px 32px}

/* 页头：浅灰网格感标题区 */
.gb-act-hd{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 28px;
  padding:36px 8px 28px;
  border-bottom:1px solid #f0f2f5;
  background:
    linear-gradient(180deg,rgba(248,250,252,.95),#fff 70%),
    repeating-linear-gradient(-45deg,transparent,transparent 12px,rgba(226,232,240,.35) 12px,rgba(226,232,240,.35) 13px);
}
.gb-act-hd h1{margin:0 0 8px;font-size:28px;font-weight:700;color:#0f172a;letter-spacing:.02em}
.gb-act-hd p{margin:0;font-size:14px;color:var(--gb-muted);line-height:1.6;max-width:720px}
.gb-act-rules-link{
  display:inline;
  margin-left:6px;
  color:var(--gb-blue);
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}
.gb-act-rules-link:hover{text-decoration:underline}

/* 活动规则弹窗（对齐 SK 活动页） */
.gb-act-modal{
  position:fixed;
  inset:0;
  z-index:10050;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
}
.gb-act-modal[hidden]{display:none!important}
.gb-act-modal-mask{
  position:absolute;
  inset:0;
  background:#000;
  opacity:0.4;
}
.gb-act-modal-dialog{
  position:relative;
  z-index:1;
  width:100%;
  max-width:560px;
  max-height:min(78vh,640px);
  display:flex;
  flex-direction:column;
  background:#fff;
  border-radius:8px;
  box-shadow:none;
  filter:none;
  overflow:hidden;
}
.gb-act-modal-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 20px 12px;
  flex-shrink:0;
  background:#fff;
}
.gb-act-modal-hd h3{
  margin:0;
  font-size:18px;
  font-weight:700;
  color:var(--gb-txt);
}
.gb-act-modal-x{
  border:0;
  background:transparent;
  color:#94a3b8;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  padding:0 2px;
}
.gb-act-modal-x:hover{color:#64748b}
.gb-act-modal-bd{
  padding:4px 20px 8px;
  overflow:auto;
  flex:1;
  min-height:0;
  background:#fff;
}
.gb-act-modal-text{
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
  font-family:inherit;
  font-size:14px;
  line-height:1.75;
  color:#334155;
  background:#fff;
}
.gb-act-modal-ft{
  display:flex;
  justify-content:flex-end;
  padding:12px 20px 18px;
  flex-shrink:0;
  background:#fff;
}
.gb-act-modal-ok{
  min-width:96px;
  height:36px;
  padding:0 18px;
  border:0;
  border-radius:4px;
  background:var(--gb-blue);
  color:#fff;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
}
.gb-act-modal-ok:hover{background:#1d4ed8}
html.gb-modal-lock,
body.gb-modal-lock{overflow:hidden}

.gb-act-empty{
  padding:56px 20px;
  text-align:center;
  border:1px dashed var(--gb-line);
  border-radius:8px;
  color:var(--gb-muted);
}
.gb-act-empty strong{display:block;margin-bottom:8px;color:var(--gb-txt);font-size:16px}

/* 活动卡网格：默认约 3 列，单卡不拉满也不过窄 */
.gb-act-row{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:stretch;
  justify-content:flex-start;
}
.gb-act-card{
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  flex:0 0 calc((100% - 40px) / 3);
  width:calc((100% - 40px) / 3);
  max-width:380px;
  border:1px solid var(--gb-line);
  background:#fff;
  box-shadow:var(--gb-shadow);
  position:relative;
  overflow:hidden;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.gb-act-card:hover{
  border-color:var(--gb-blue);
  box-shadow:0 6px 16px rgba(37,99,235,.12);
}
.gb-act-card-top{padding:20px 16px 12px;position:relative;z-index:1}
.gb-act-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.gb-act-title h2{margin:0;font-size:18px;font-weight:700;color:var(--gb-txt);line-height:1.35}
.gb-act-tag{
  display:inline-block;
  padding:2px 8px;
  border:1px solid var(--gb-orange);
  color:var(--gb-orange);
  font-size:12px;
  line-height:18px;
  border-radius:2px;
  white-space:nowrap;
}
.gb-act-desc{margin:0;font-size:13px;color:var(--gb-muted);line-height:1.5}

/* 规格：左灰右黑分行 */
.gb-act-specs{
  padding:4px 16px 8px;
  position:relative;
  z-index:1;
  flex:1;
}
.gb-act-spec{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:9px 0;
  border-bottom:1px dashed #eef1f5;
  font-size:13px;
  line-height:1.4;
}
.gb-act-spec:last-child{border-bottom:none}
.gb-act-spec .k{color:#98a2b3;flex:0 0 auto}
.gb-act-spec .v{color:var(--gb-txt);font-weight:500;text-align:right;word-break:break-word}

.gb-act-foot{
  padding:12px 16px 16px;
  margin-top:auto;
  position:relative;
  z-index:1;
  background:#fff;
}
.gb-act-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px;min-height:24px}
.gb-act-chip{
  display:inline-block;
  padding:2px 8px;
  border:1px solid #e5e7eb;
  border-radius:2px;
  font-size:12px;
  color:var(--gb-orange);
  background:#fff;
}
.gb-act-chip.muted{color:#64748b;border-color:#e5e7eb}

.gb-act-price{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:4px;
  margin:4px 0 12px;
}
.gb-act-price .cur{
  font-size:28px;
  font-weight:700;
  color:var(--gb-orange);
  line-height:1.1;
  letter-spacing:-.02em;
}
.gb-act-price .unit{
  font-size:14px;
  color:var(--gb-orange);
  font-weight:400;
}
.gb-act-price .old{
  margin-left:6px;
  font-size:14px;
  color:#9e9e9e;
  text-decoration:line-through;
}

.gb-act-buy{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:48px;
  border-radius:4px;
  background:var(--gb-blue);
  color:#fff!important;
  font-size:15px;
  font-weight:600;
  text-decoration:none!important;
  transition:background .15s ease;
}
.gb-act-buy:hover{background:#1d4ed8;color:#fff!important}
.gb-act-buy.is-alt{background:#64748b}
.gb-act-buy.is-alt:hover{background:#475569;color:#fff!important}
.gb-act-gate{
  margin:0 0 20px;
  padding:14px 16px;
  border:1px solid #fde68a;
  border-radius:8px;
  background:#fffbeb;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 16px;
}
.gb-act-gate p{
  margin:0;
  flex:1 1 220px;
  font-size:13px;
  line-height:1.55;
  color:#92400e;
}
.gb-act-gate a{
  flex:0 0 auto;
  color:#c2410c!important;
  font-size:13px;
  font-weight:600;
  text-decoration:underline!important;
}
.gb-act-section{margin-top:8px}
.gb-act-section + .gb-act-section{margin-top:36px;padding-top:28px;border-top:1px solid var(--gb-line)}
.gb-act-sec-hd{margin:0 0 18px}
.gb-act-sec-hd h2{
  margin:0;
  font-size:20px;
  font-weight:700;
  color:var(--gb-txt);
  line-height:1.3;
}
.gb-act-sec-hd p{
  margin:6px 0 0;
  font-size:13px;
  color:var(--gb-muted);
  line-height:1.5;
}
.gb-act-join{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:40px;
  margin-top:10px;
  border:1px solid var(--gb-blue);
  border-radius:4px;
  background:#fff;
  color:var(--gb-blue)!important;
  font-size:14px;
  font-weight:600;
  text-decoration:none!important;
}
.gb-act-join:hover{background:#eff6ff;color:var(--gb-blue)!important}
.gb-act-more{
  display:block;
  margin-top:10px;
  text-align:center;
  font-size:13px;
  color:var(--gb-blue);
  text-decoration:none;
}
.gb-act-more:hover{text-decoration:underline}
.gb-act-progress{padding:4px 16px 8px}
.gb-act-progress-hd{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  font-size:12px;
  color:var(--gb-muted);
}
.gb-act-bar{
  height:8px;
  border-radius:999px;
  background:#e5e7eb;
  overflow:hidden;
}
.gb-act-bar>span{
  display:block;
  height:100%;
  background:var(--gb-blue);
  border-radius:999px;
}
.gb-invite-box{
  margin-top:12px;
  padding:14px;
  border:1px solid var(--gb-line);
  border-radius:6px;
  background:#f8fafc;
  text-align:left;
}
.gb-invite-price{margin:12px 0 14px}
.gb-invite-progress{padding:0 0 12px}
.gb-invite-foot{padding:12px 0 0}
.gb-invite-hint{
  margin:10px 0 0;
  font-size:12px;
  color:var(--gb-muted);
  text-align:center;
  line-height:1.5;
}
.gb-invite-specs{
  margin:0 0 8px;
  border:1px solid var(--gb-line);
  border-radius:6px;
  background:#fff;
  overflow:hidden;
}
.gb-invite-specs > summary,
.gb-invite-share > summary{
  list-style:none;
  cursor:pointer;
  padding:12px 14px;
  font-size:13px;
  font-weight:600;
  color:var(--gb-blue);
  user-select:none;
}
.gb-invite-specs > summary::-webkit-details-marker,
.gb-invite-share > summary::-webkit-details-marker{display:none}
.gb-invite-specs > summary:after,
.gb-invite-share > summary:after{
  content:"▾";
  float:right;
  color:var(--gb-muted);
  font-weight:400;
}
.gb-invite-specs[open] > summary:after,
.gb-invite-share[open] > summary:after{content:"▴"}
.gb-invite-specs .gb-act-specs{
  border-top:1px solid var(--gb-line);
  border-radius:0;
  margin:0;
}
.gb-invite-share{margin-top:16px}
.gb-invite-share > summary{
  border:1px solid var(--gb-line);
  border-radius:6px;
  background:#fff;
  text-align:left;
}
.gb-invite-share[open] > summary{
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
}
.gb-invite-share[open] .gb-invite-box{
  margin-top:0;
  border-top:0;
  border-top-left-radius:0;
  border-top-right-radius:0;
}
.gb-invite-tip{
  display:inline-block;
  margin-top:8px;
  font-size:12px;
  color:var(--gb-blue);
}
.gb-invite-tip[hidden]{display:none!important}
.gb-invite-edit-hint{
  margin-left:6px;
  font-size:12px;
  font-weight:400;
  color:var(--gb-muted);
}
.gb-invite-box textarea:not([readonly]){
  background:#fff;
  min-height:140px;
}
.gb-invite-box label{
  display:block;
  margin-bottom:6px;
  font-size:12px;
  color:var(--gb-muted);
}
.gb-invite-row{display:flex;gap:8px}
.gb-invite-box input,
.gb-invite-box textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--gb-line);
  border-radius:4px;
  padding:8px 10px;
  font-size:13px;
  font-family:inherit;
  background:#fff;
  color:var(--gb-txt);
}
.gb-invite-box textarea{resize:vertical;line-height:1.5}
.gb-invite-copy{
  flex-shrink:0;
  height:36px;
  padding:0 14px;
  border:0;
  border-radius:4px;
  background:var(--gb-blue);
  color:#fff;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
}
.gb-invite-copy.block{
  display:block;
  width:100%;
  margin-top:10px;
  height:40px;
}
.gb-invite-copy:hover{background:#1d4ed8}
.gb-act-bottom{margin-top:28px;text-align:center;font-size:13px;color:var(--gb-muted)}
.gb-act-bottom a{color:var(--gb-blue);text-decoration:none}

/* 详情页沿用同一视觉 */
.gb-act-detail{
  max-width:720px;
  margin:0 auto;
  border:1px solid var(--gb-line);
  background:#fff;
  box-shadow:var(--gb-shadow);
  padding:24px 20px 20px;
}
.gb-act-detail.is-wide{
  max-width:1160px;
  padding:28px 28px 24px;
}
.gb-act-detail .gb-act-crumb{margin:0 0 12px;font-size:13px;color:var(--gb-muted)}
.gb-act-detail .gb-act-crumb a{color:var(--gb-blue);text-decoration:none}
.gb-act-detail .gb-act-desc-box{
  margin-top:16px;
  padding:14px;
  background:#f8fafc;
  border-radius:4px;
  font-size:13px;
  line-height:1.7;
  color:#475569;
}
.gb-act-detail .gb-act-desc-box pre{margin:0;white-space:pre-wrap;font-family:inherit}

/* PC 左右分栏：左信息 / 右操作与邀请 */
.gb-split{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.gb-split-main{min-width:0}
.gb-split-side{min-width:0}
.gb-split-panel{
  border:1px solid var(--gb-line);
  border-radius:8px;
  background:#f8fafc;
  padding:18px 16px 16px;
}
.gb-invite-panel-hd{
  margin:0 0 12px;
  font-size:15px;
  font-weight:700;
  color:var(--gb-txt);
  line-height:1.3;
}
.gb-split-side .gb-invite-box{
  margin:0 0 14px;
  padding:0;
  border:0;
  background:transparent;
}
.gb-split-side .gb-invite-hint{margin:10px 0 16px;text-align:left}
.gb-split-side .gb-act-more{display:inline-block;margin-top:14px}
.gb-split-main .gb-act-more{
  display:inline-block;
  margin-top:18px;
  font-size:13px;
}
.gb-split-side-note{
  margin:0 0 14px;
  font-size:13px;
  line-height:1.55;
  color:var(--gb-muted);
}
@media (min-width:900px){
  .gb-split{
    flex-direction:row;
    align-items:flex-start;
    gap:28px;
  }
  .gb-split-main{
    flex:1 1 0;
    min-width:0;
  }
  .gb-split-side{
    flex:0 0 420px;
    width:420px;
    position:sticky;
    top:12px;
  }
  .gb-act-detail.is-wide .gb-split-main .gb-invite-specs{
    margin-top:8px;
  }
}

/* 公开确认表单 */
.gb-pub-form{margin-top:4px}
.gb-pub-field{margin:0 0 14px}
.gb-pub-field label{
  display:block;
  margin:0 0 6px;
  font-size:13px;
  color:var(--gb-muted);
}
.gb-pub-field select{
  width:100%;
  height:42px;
  padding:0 12px;
  border:1px solid var(--gb-line);
  border-radius:6px;
  background:#fff;
  font-size:14px;
  color:var(--gb-txt);
}
.gb-pub-form .gb-act-buy{
  margin-top:4px;
  border:0;
  cursor:pointer;
  font-family:inherit;
}

/* SK 壳 */
.gb-sk-shell{
  margin-top:var(--navheight,72px);
  padding:20px 0 36px;
  background:#fff;
  min-height:48vh;
}
.gb-sk-shell .gb-sk-frame-wrap{max-width:1200px;margin:0 auto;padding:0 16px}
.gb-sk-shell iframe.gb-sk-frame{width:100%;border:0;display:block;min-height:680px;background:transparent}

@media (max-width:1100px){
  .gb-act-card{
    flex:0 0 calc((100% - 20px) / 2);
    width:calc((100% - 20px) / 2);
    max-width:420px;
  }
}
@media (max-width:800px){
  .gb-act-card{
    flex:0 0 calc((100% - 20px) / 2);
    width:calc((100% - 20px) / 2);
    max-width:none;
  }
  .gb-act-hd{flex-direction:column;align-items:flex-start;padding-top:24px}
  .gb-act-hd h1{font-size:24px}
}
@media (max-width:640px){
  .gb-act-wrap{padding:4px 12px 24px}
  .gb-act-card{
    flex:0 0 100%;
    width:100%;
    max-width:100%;
  }
  .gb-sk-shell{
    margin-top:var(--wapnavheight,56px);
    padding:12px 0 24px;
  }
}
