﻿/* ============ 游戏场景界面 ============ */

/* 场景画布：铺满舞台 */
.gscene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}

/* 资源浮条（左上） */
.ghud {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.gpill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 11px;
  border-radius: var(--r-pill);
  background: rgba(8, 24, 46, .46);
  border: 1px solid rgba(150, 200, 255, .26);
  box-shadow: 0 6px 18px rgba(3, 12, 26, .28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #EAF3FF;
}
.gpill .ic { width: 16px; height: 16px; color: #8FC6FF; flex: 0 0 auto; }
.gpill b {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
}
.gpill em {
  font-style: normal;
  font-size: 10px;
  opacity: .62;
  margin-left: 1px;
}

/* 转生按钮（右上） */
.gprestige {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 122, 26, .16);
  border: 1px solid rgba(255, 168, 102, .55);
  color: #FFD9B8;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.gprestige:hover:not([disabled]) { background: rgba(255, 122, 26, .3); color: #fff; }
.gprestige[disabled] { color: rgba(230, 240, 255, .48); border-color: rgba(160, 195, 235, .28); background: rgba(20, 40, 66, .38); }

/* 底部操作坞 */
.gdock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 14px 16px 16px;
  background: linear-gradient(to top, rgba(4, 14, 28, .62) 0%, rgba(4, 14, 28, .28) 62%, rgba(4, 14, 28, 0) 100%);
}
.gbtn {
  flex: 1 1 0;
  max-width: 220px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(150, 200, 255, .26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #EAF3FF;
  text-align: left;
  transition: background-color var(--t-mid) var(--ease), transform 90ms var(--ease);
}
.gbtn:hover:not([disabled]) { background: rgba(255, 255, 255, .19); }
.gbtn:active:not([disabled]) { transform: scale(.98); }
.gbtn[disabled] { opacity: .42; }
.gbtn .ic { width: 22px; height: 22px; flex: 0 0 auto; color: #9CC6F5; }
.gbtn-main { flex: 1; min-width: 0; display: block; }
.gbtn-name { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbtn-sub { display: block; font-size: 10.5px; opacity: .6; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbtn-cost {
  flex: 0 0 auto;
  font-family: var(--font-num);
  font-size: 12.5px;
  font-weight: 700;
  color: #FFC189;
}

@media (max-width: 767px) {
  .gdock { gap: 6px; padding: 8px 8px 9px; }
  .gbtn { padding: 6px 8px; gap: 5px; border-radius: 10px; }
  .gbtn .ic { width: 14px; height: 14px; }
  .gbtn-name { font-size: 10px; }
  .gbtn-sub { display: none; }
  .gbtn-cost { font-size: 11px; }
  .ghud { gap: 5px; top: 8px; left: 8px; }
  .gpill { padding: 4px 8px 4px 6px; gap: 4px; }
  .gpill .ic { width: 13px; height: 13px; }
  .gpill b { font-size: 12.5px; }
  .gpill em { font-size: 9px; }
  .gprestige { top: 8px; right: 8px; height: 26px; padding: 0 9px; font-size: 10px; }
}

/* 操作提示 */
.ghint {
  position: absolute;
  left: 16px;
  bottom: 108px;
  z-index: 2;
  font-size: 11px;
  color: rgba(214, 232, 255, .58);
  background: rgba(8, 24, 46, .3);
  padding: 4px 11px;
  border-radius: var(--r-pill);
  pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .ghint { bottom: 82px; font-size: 10px; left: 10px; }
}

/* ============ 结算浮层 ============ */
.gs-stagewrap { position: relative; }
.gs-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(233, 242, 255, .82);
  backdrop-filter: blur(6px);
  border-radius: var(--r-card);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid) var(--ease), visibility var(--t-mid);
  z-index: 22;
}
.gs-overlay.is-open { opacity: 1; visibility: visible; }

.gs-result {
  width: min(340px, calc(100% - 40px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(20, 58, 107, .14);
  padding: 26px 24px 22px;
  text-align: center;
  transform: translateY(8px);
  transition: transform var(--t-slow) var(--ease);
}
.gs-overlay.is-open .gs-result { transform: none; }

.gs-rating {
  width: 56px; height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
}
.gs-rating.is-S { background: linear-gradient(135deg, #FFA24D, #FF7A1A); }
.gs-rating.is-A { background: linear-gradient(135deg, #6EA0FF, #2F6BFF); }
.gs-rating.is-B { background: #8FA8C8; }
.gs-rating.is-C { background: #B4C2D4; }

.gs-score {
  font-family: var(--font-num);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.2;
}
.gs-score span { display: block; font-family: var(--font); font-size: 11px; color: var(--muted); font-weight: 400; }
.gs-rows {
  margin: 14px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.gs-rows div { display: flex; justify-content: space-between; }
.gs-rows b { color: var(--primary-deep); font-weight: 600; }
.gs-new {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: #FFF1E6;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.gs-actions { display: flex; gap: 10px; }
.gs-actions .btn { flex: 1; }

/* 升级坞进度条 */
.gbtn { position: relative; padding-bottom: 15px; }
.gbtn-bar {
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: rgba(150, 200, 255, .22);
  overflow: hidden;
}
.gbtn-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #6FB6FF, #FF9A4D);
  transition: width .28s var(--ease);
}
@media (max-width: 767px) {
  .gbtn { padding-bottom: 11px; }
  .gbtn-bar { left: 8px; right: 8px; bottom: 4px; height: 2px; }
}

/* 场景右上角提示 */
.ghint-top {
  left: auto;
  right: 12px;
  bottom: auto;
  top: 12px;
  text-shadow: 0 1px 3px rgba(2, 10, 20, .5);
}
@media (max-width: 767px) {
  .ghint-top { top: 40px; right: 8px; font-size: 9.5px; }
}

/* ============ 场景内工作台（替代底部升级条） ============ */
.gpanel {
  position: absolute;
  z-index: 7;
  width: 214px;
  transform: translate(-50%, -100%);
  padding: 13px 14px 14px;
  border-radius: 15px;
  background: rgba(7, 20, 36, .86);
  border: 1px solid rgba(150, 200, 255, .32);
  box-shadow: 0 14px 34px rgba(2, 10, 22, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  color: #EAF3FF;
  opacity: 1;
  transition: opacity .16s var(--ease);
}
.gpanel[hidden] { display: none; }
.gpanel::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: rgba(7, 20, 36, .86);
  border-right: 1px solid rgba(150, 200, 255, .32);
  border-bottom: 1px solid rgba(150, 200, 255, .32);
  transform: rotate(45deg);
}
.gpanel-head { display: flex; align-items: center; gap: 7px; }
.gpanel-head .ic { width: 18px; height: 18px; color: #8FC4FF; flex: 0 0 auto; }
.gpanel-title { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.gpanel-lv {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(120, 180, 255, .16);
  color: #A9D1FF;
}
.gpanel-rate { margin: 9px 0 0; font-size: 11px; color: rgba(214, 234, 255, .66); }
.gpanel-bar {
  margin-top: 9px;
  height: 4px;
  border-radius: 3px;
  background: rgba(150, 200, 255, .18);
  overflow: hidden;
}
.gpanel-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #6FB6FF, #FF9C4F);
  transition: width .3s var(--ease);
}
.gpanel-act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 34px;
  margin-top: 11px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #FF9548, #F06A1C);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(240, 106, 28, .32);
  transition: transform 90ms var(--ease), filter var(--t-mid) var(--ease);
}
.gpanel-act:active { transform: scale(.97); }
.gpanel-act[disabled] {
  background: rgba(150, 200, 255, .16);
  color: rgba(226, 240, 255, .5);
  box-shadow: none;
}
.gpanel-note {
  margin-top: 8px;
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(206, 228, 255, .5);
}
.gpanel-x {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(226, 240, 255, .55);
  font-size: 14px;
  line-height: 1;
}
.gpanel-x:hover { background: rgba(255, 255, 255, .1); color: #fff; }

@media (max-width: 767px) {
  .gpanel { width: 168px; padding: 10px 11px 11px; }
  .gpanel-title { font-size: 11.5px; }
  .gpanel-act { height: 30px; font-size: 11.5px; }
  .gpanel-note { display: none; }
}

/* 面板标题与关闭键不重叠 */
.gpanel-head { padding-right: 16px; }
.gpanel-lv { margin-right: 6px; }

/* ============ 点击类专用的仪表件 ============ */
.gpill.is-accent {
  border-color: rgba(255, 168, 92, .5);
  background: rgba(74, 34, 12, .42);
}
.gpill.is-accent b { color: #FFD3A4; }

/* 车间订单（顶部居中） */
.gorder {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: min(300px, calc(100% - 260px));
  padding: 8px 12px 9px;
  border-radius: 12px;
  background: rgba(8, 24, 46, .46);
  border: 1px solid rgba(150, 200, 255, .26);
  box-shadow: 0 6px 18px rgba(3, 12, 26, .28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #EAF3FF;
  pointer-events: none;
}
.gorder-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 10.5px; opacity: .8; }
.gorder-top b { font-family: var(--font-num); font-size: 12px; color: #BFE4FF; }
.gorder-reward { color: #FFD0A0 !important; }
.gorder-bar {
  margin-top: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(140, 190, 240, .18);
  overflow: hidden;
}
.gorder-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6FB8FF, #FFB061); transition: width .2s var(--ease); }

/* 计时器（右上） */
.gclock {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: rgba(8, 24, 46, .46);
  border: 1px solid rgba(150, 200, 255, .26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #EAF3FF;
  pointer-events: none;
}
.gclock b { font-family: var(--font-num); font-size: 18px; font-weight: 700; }
.gclock em { font-style: normal; font-size: 10px; opacity: .6; }

/* 段落提示 */
.gseg {
  position: absolute;
  top: 60px;
  right: 14px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(8, 24, 46, .38);
  border: 1px solid rgba(255, 196, 120, .32);
  color: #FFD9AC;
  font-size: 11px;
  letter-spacing: .06em;
  pointer-events: none;
}

/* 超载徽标 */
.gover {
  position: absolute;
  top: 104px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #FF9B3D, #FF7326);
  box-shadow: 0 8px 22px rgba(255, 122, 26, .38);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  pointer-events: none;
}
.gover.is-on { opacity: 1; visibility: visible; transform: translateX(-50%); }
.gover b { font-family: var(--font-num); font-size: 12px; opacity: .9; }
.gover span { font-family: var(--font-num); font-size: 13px; }

/* 超载能量条（最底部细线） */
.genergy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 4;
  background: rgba(10, 26, 46, .5);
  pointer-events: none;
}
.genergy i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4E9BFF, #8FD0FF 70%, #FFC46A); box-shadow: 0 0 12px rgba(120, 190, 255, .55); transition: width .18s var(--ease); }

/* 爆米花三连表 */
.gpop-gauge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  width: 214px;
  padding: 9px 12px 10px;
  border-radius: 12px;
  background: rgba(14, 10, 22, .52);
  border: 1px solid rgba(255, 200, 150, .26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  gap: 6px;
  pointer-events: none;
}
.gpop-row { display: flex; align-items: center; gap: 8px; font-size: 10px; color: rgba(240, 230, 220, .62); letter-spacing: .06em; }
.gpop-row span { width: 26px; flex: 0 0 auto; }
.gpop-bar { position: relative; flex: 1; height: 5px; border-radius: 999px; background: rgba(255, 240, 220, .12); overflow: hidden; }
.gpop-bar u { display: block; height: 100%; width: 0; text-decoration: none; transition: width .16s linear; background: linear-gradient(90deg, #7FB6E8, #FFE0A8); }
.gpop-bar.heat u { background: linear-gradient(90deg, #6FA8DE, #FF9A4A); }
.gpop-bar.heat.is-hot u { background: linear-gradient(90deg, #FFC46A, #FF8A2B); box-shadow: 0 0 10px rgba(255, 160, 70, .5); }
.gpop-bar.heat.is-danger u { background: linear-gradient(90deg, #FF6A3D, #E03A18); }
.gpop-bar.burn u { background: linear-gradient(90deg, #8A5A3A, #C24420); }

/* 可以起锅提示 */
.gready {
  position: absolute;
  left: 47%;
  top: 36%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(255, 190, 110, .96), rgba(255, 138, 46, .96));
  box-shadow: 0 8px 24px rgba(255, 140, 50, .38);
  color: #3A1B08;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  opacity: 0;
  visibility: hidden;
  transition: opacity .14s var(--ease);
  pointer-events: none;
  animation: greadyPulse 1s ease-in-out infinite;
}
.gready.is-on { opacity: 1; visibility: visible; }
@keyframes greadyPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

/* 焦糖加成 */
.gcaramel {
  position: absolute;
  top: 96px;
  right: 14px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(74, 34, 12, .5);
  border: 1px solid rgba(255, 180, 100, .45);
  color: #FFD2A2;
  font-size: 10.5px;
  letter-spacing: .06em;
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s var(--ease);
  pointer-events: none;
}
.gcaramel.is-on { opacity: 1; visibility: visible; }

@media (max-width: 767px) {
  .gorder { width: calc(100% - 150px); padding: 6px 9px 7px; }
  .gorder-top { font-size: 9px; }
  .gclock b { font-size: 14px; }
  .gseg { top: 52px; font-size: 9.5px; padding: 4px 9px; }
  .gpop-gauge { width: 150px; left: 8px; bottom: 8px; padding: 7px 9px; }
  .gpop-row { font-size: 9px; }
  .gready { font-size: 10px; padding: 5px 12px; }
}



/* ============ 通用任务 / 活动 面板 ============ */
/* 手账式任务牌：米色纸面、墨线、印章按钮，尽量不像后台面板 */
.gboard{
  position:absolute; z-index:14; width:286px; max-height:82%;
  transform:translateX(-50%);
  display:flex; flex-direction:column;
  padding:0 14px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 40%),
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(120,96,64,.10) 25px 25px),
    linear-gradient(172deg,#F6E9CF 0%,#EDD9B6 100%);
  border:1px solid #C9A879; border-radius:4px 14px 6px 12px;
  box-shadow:0 22px 46px rgba(6,12,22,.55), 0 2px 0 #E9D3AC inset, 0 -8px 18px rgba(120,86,48,.18) inset;
  color:#3B2C1A; overflow:hidden;
  animation:gbIn .3s cubic-bezier(.2,.9,.3,1.1) both;
}
.gboard:before{
  content:''; position:absolute; left:0; right:0; top:0; height:3px;
  background:linear-gradient(90deg,#C98A46,#8A5A2B 50%,#C98A46);
  opacity:.8;
}
.gboard[hidden]{display:none}
@keyframes gbIn{from{opacity:0;transform:translate(-50%,10px) rotate(-.6deg)}to{opacity:1;transform:translate(-50%,0) rotate(-.35deg)}}
.gb-hd{display:flex;align-items:center;justify-content:space-between;
  margin:0 -14px 8px; padding:13px 14px 10px 16px;
  border-bottom:1px solid rgba(122,92,54,.28); flex:0 0 auto;
  background:linear-gradient(180deg,rgba(255,255,255,.45),rgba(255,255,255,0));}
.gb-t{
  font-family: var(--font-serif, "Songti SC", serif);
  font-size:15px; letter-spacing:.34em; color:#4A3418;
  padding-left:2px;
}
.gb-t:before{
  content:''; display:inline-block; width:6px; height:6px; margin-right:9px;
  border-radius:50%; background:#FF8A2B; vertical-align:2px;
  box-shadow:0 0 0 3px rgba(255,138,43,.18);
}
.gb-x{
  width:22px;height:22px;border-radius:50%;border:1px solid rgba(96,70,40,.45);
  background:rgba(255,255,255,.3);color:#5A4223;font-size:13px;line-height:1;cursor:pointer;
}
.gb-x:hover{background:rgba(255,138,43,.22);border-color:#C98A46}
.gb-body{padding:0 0 6px;overflow-y:auto;flex:1 1 auto;scrollbar-width:thin}
.gb-task{
  padding:9px 0 8px; border-bottom:1px dashed rgba(122,92,54,.28);
  position:relative;
}
.gb-task:last-child{border-bottom:0}
.gb-task:before{
  content:''; position:absolute; left:-14px; top:0; bottom:0; width:2px;
  background:rgba(201,138,70,.0);
}
.gb-l1{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.gb-l1 b{font-size:13px;font-weight:700;color:#3A2A14;letter-spacing:.02em;
  font-family: var(--font-serif, "Songti SC", serif);}
.gb-l1 span{font-size:11.5px;color:#7A5E3A;font-variant-numeric:tabular-nums}
.gb-desc{font-size:10.5px;line-height:1.6;color:#7C6544;margin:3px 0 7px}
.gb-bar{
  height:5px; border-radius:1px; background:rgba(122,92,54,.16);
  border:1px solid rgba(122,92,54,.16); overflow:hidden;
}
.gb-bar i{display:block;height:100%;border-radius:0;
  background:repeating-linear-gradient(135deg,#E08A34 0 4px,#F2A758 4px 8px);
  transition:width .35s ease}
.gb-l2{display:flex;align-items:center;justify-content:space-between;margin-top:7px}
.gb-l2 em{font-style:normal;font-size:11px;color:#A0561B}
.gb-claim{
  font:inherit;font-size:11px;padding:4px 12px;cursor:pointer;
  border:1px solid #B4571C; background:rgba(255,138,43,.14);
  color:#A0441A; border-radius:3px;
  letter-spacing:.14em; box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}
.gb-claim:hover:not([disabled]){background:rgba(255,138,43,.3)}
.gb-claim[disabled]{border-color:rgba(122,92,54,.3);background:transparent;color:#9A8874;cursor:default;
  letter-spacing:.08em}
.gb-tag{font-size:10.5px;color:#2F7A54}
.gb-task.is-claimed{opacity:.5}
.gb-task.is-claimed .gb-l1 b{text-decoration:line-through}
.gb-task.is-full .gb-bar i{background:repeating-linear-gradient(135deg,#2F9E6A 0 4px,#4FC78C 4px 8px)}
.gb-sub{display:flex;align-items:center;gap:8px;margin:14px 0 4px;font-size:11px;color:#6B5330;letter-spacing:.14em}
.gb-sub:after{content:'';flex:1;height:1px;background:rgba(122,92,54,.3)}
.gb-ev{padding:9px 0;border-bottom:1px dashed rgba(122,92,54,.24)}
.gb-ev.is-on .gb-l1 b{color:#A0441A}
.gb-ev.is-on .gb-l1 span{color:#A0441A}
.gb-foot{flex:0 0 auto;margin:0 -14px;padding:7px 14px 9px;border-top:1px solid rgba(122,92,54,.3);
  font-size:10px;color:#7C6544;display:flex;align-items:center;gap:6px;
  background:linear-gradient(180deg,rgba(201,138,70,.10),rgba(201,138,70,.02))}
.gb-dot{width:5px;height:5px;border-radius:50%;background:#C98A46;box-shadow:0 0 6px #E0A45E}

/* 活动横幅 */
.gevent{
  position:absolute; left:14px; top:60px; z-index:5;
  display:flex;align-items:center;gap:8px;padding:6px 11px 6px 7px;
  border-radius:999px; background:rgba(12,22,36,.78);
  border:1px solid rgba(255,170,90,.45);
  box-shadow:0 6px 18px rgba(4,10,20,.45);
  color:#FFD8AF; font-size:11px; pointer-events:none;
  animation:geIn .3s ease both;
}
.gevent[hidden]{display:none}
@keyframes geIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.ge-badge{font-size:9.5px;letter-spacing:.12em;padding:2px 7px;border-radius:999px;
  background:linear-gradient(120deg,#FF9A45,#FFC46A);color:#3A1B08;font-weight:700}
.gevent b{font-weight:600;letter-spacing:.02em}
.gevent em{font-style:normal;color:#FFB067;font-variant-numeric:tabular-nums}
.gevent.is-hot{animation:gePulse .7s ease-in-out infinite alternate}
@keyframes gePulse{from{box-shadow:0 6px 18px rgba(4,10,20,.45)}to{box-shadow:0 6px 24px rgba(255,150,70,.55)}}

@media (max-width:767px){
  .gboard{width:212px;transform:translateX(-50%);max-height:64%}
  .gb-desc,.gb-dot{display:none}
  .gb-l1 b{font-size:11.5px}
  .gevent{top:52px;font-size:10px;padding:5px 9px 5px 6px}
}

/* ---- 任务手账：加宽、字号上调、四条约任务一屏放下 ---- */
.gboard{width:334px;max-height:79%;padding:0 16px 0;border-radius:5px 16px 7px 13px}
.gb-hd{padding:12px 14px 9px 17px;margin-bottom:6px}
.gb-t{font-size:16px;letter-spacing:.28em}
.gb-task{padding:7px 0 7px}
.gb-l1 b{font-size:13.5px}
.gb-l1 span{font-size:12px}
.gb-desc{font-size:10.8px;margin:2px 0 5px;line-height:1.45}
.gb-bar{height:3px}
.gb-l2{margin-top:6px}
.gb-l2 em{font-size:11.5px}
.gb-claim{font-size:11.5px;padding:3px 10px;border-radius:3px;letter-spacing:.06em}
.gb-sub{margin:10px 0 2px}
.gb-foot{font-size:11px}
