/* 画规数字字体：服务器自带的 PT Serif（基于 Times 的过渡衬线，数字清晰均匀、不瘦不长，最接近标准古典数字），所有人视图一致 */
@font-face{
  font-family:"GuiNum";
  src:url("../static/fonts/PTSerif-Regular.ttf") format("truetype");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"GuiNum";
  src:url("../static/fonts/PTSerif-Bold.ttf") format("truetype");
  font-weight:700;font-style:normal;font-display:swap;
}
.gui-body{
  background:#eaf2ff;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:contain;
  max-width:420px;margin:0 auto;min-height:100vh;position:relative;
  box-shadow:0 0 24px rgba(0,0,0,.18);
}
.gui-body::before{
  content:"";position:fixed;left:0;right:0;top:0;bottom:0;background:#eef3f9;z-index:-1;
}
.gui-body .notice{display:none}

/* —— 皮肤（主题色）：默认蓝（原版），外加绿/红/紫/橙四套 —— */
.gui-body{
  --gui-accent:#5fa9ee;        /* 主色：期号列、顶栏、fab、下拉按钮（原版蓝） */
  --gui-accent-deep:#4f9be5;  /* 渐变深 / 描边 */
  --gui-strong:#2f4a6b;       /* 加粗竖线/横线、标题 ink 色 */
  --gui-accent-soft:#e9f2fc;  /* 浅色 hover 背景 */
}
.gui-body[data-skin="blue"]{
  --gui-accent:#5fa9ee;--gui-accent-deep:#4f9be5;--gui-strong:#2f4a6b;--gui-accent-soft:#e9f2fc;
}
.gui-body[data-skin="green"]{
  --gui-accent:#16a085;--gui-accent-deep:#1abc9c;--gui-strong:#145a4b;--gui-accent-soft:#d6efe8;
}
.gui-body[data-skin="red"]{
  --gui-accent:#e74c3c;--gui-accent-deep:#c0392b;--gui-strong:#7d1d2b;--gui-accent-soft:#f8d6d3;
}
.gui-body[data-skin="purple"]{
  --gui-accent:#7b5cff;--gui-accent-deep:#6a4ad6;--gui-strong:#3b2d7a;--gui-accent-soft:#e6e0fb;
}
.gui-body[data-skin="orange"]{
  --gui-accent:#f0883e;--gui-accent-deep:#e67e22;--gui-strong:#8a4b1f;--gui-accent-soft:#fbe3cf;
}

/* —— 顶部蓝色工具栏 —— */
.gui-topbar{
  position:sticky;top:0;z-index:50;
  display:grid;grid-template-columns:auto repeat(4,1fr);gap:4px;
  padding:0 4px;
  background:var(--gui-accent);color:#fff;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  box-shadow:0 1px 0 rgba(0,0,0,.06);
}
.gui-tab-btn{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  background:transparent;border:0;color:#fff;padding:10px 0 8px;
  font-size:13px;cursor:pointer;line-height:1.1;
  border-right:1px solid rgba(255,255,255,.15);
}
.gui-tab-btn:last-child{border-right:0}
.gui-tab-btn b{font-weight:600}
.gui-tab-btn.active{background:var(--gui-accent-deep)}
.gui-tab-btn .ic{width:18px;height:18px;display:inline-block;background-position:center;background-repeat:no-repeat;background-size:contain;filter:invert(1)}
/* 彩种自定义下拉（精修版） */
.gui-lottery{position:relative;display:flex;align-items:center;justify-content:flex-start}
.gui-lottery-native{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
/* 触发按钮：胶囊 + 渐变 + 居中 */
.gui-lottery-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  position:relative;
  margin:7px 6px;
  height:40px;min-width:108px;
  padding:0 15px 0 17px;
  background:linear-gradient(180deg,var(--gui-accent) 0%,var(--gui-accent-deep) 100%);
  border:1px solid rgba(255,255,255,.40);
  border-radius:21px;
  color:#fff;
  font:inherit;font-size:14.5px;font-weight:600;letter-spacing:.6px;white-space:nowrap;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(0,0,0,.06),0 3px 8px rgba(47,113,178,.28);
  transition:background .18s,border-color .18s,box-shadow .18s,transform .08s;
}
.gui-lottery-btn:hover{
  background:linear-gradient(180deg,var(--gui-accent) 0%,var(--gui-accent-deep) 100%);
  border-color:rgba(255,255,255,.65);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 5px 12px rgba(47,113,178,.34);
}
.gui-lottery-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(255,255,255,.45),inset 0 1px 0 rgba(255,255,255,.4);
}
.gui-lottery-btn:active{transform:scale(.96)}
.gui-lottery-label{line-height:1}
/* 自绘箭头 */
.gui-lottery-arrow{
  width:11px;height:8px;flex:0 0 auto;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>") no-repeat center/contain;
  transition:transform .25s cubic-bezier(.34,1.56,.64,1);
}
.gui-lottery.open .gui-lottery-arrow{transform:rotate(180deg)}
/* 浮层：气泡卡片 + 指向按钮的小三角 + 柔和分层阴影 */
.gui-lottery-menu{
  position:absolute;
  top:calc(100% + 12px);
  left:6px;
  margin:0;padding:7px;
  list-style:none;
  min-width:158px;
  max-height:296px;overflow-y:auto;overscroll-behavior:contain;
  background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%);
  border:1px solid rgba(120,160,210,.22);
  border-radius:16px;
  box-shadow:0 2px 6px rgba(30,70,120,.10),0 14px 38px rgba(30,70,120,.22);
  z-index:120;
  opacity:0;
  transform:translateY(-8px) scale(.96);
  transform-origin:top left;
  pointer-events:none;
  transition:opacity .18s ease,transform .2s cubic-bezier(.34,1.3,.64,1);
}
/* 气泡小三角：指向按钮底部 */
.gui-lottery-menu::before{
  content:"";position:absolute;top:-6px;left:24px;
  width:12px;height:12px;
  background:linear-gradient(135deg,#ffffff 0%,#ffffff 50%,transparent 50%);
  border-left:1px solid rgba(120,160,210,.22);
  border-top:1px solid rgba(120,160,210,.22);
  transform:rotate(45deg);
}
.gui-lottery-menu:not([hidden]){
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.gui-lottery-item{
  position:relative;
  padding:11px 14px 11px 38px;
  border-radius:11px;
  color:#33506f;
  font-size:14.5px;font-weight:600;letter-spacing:.3px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  transition:background .14s,color .14s,transform .1s;
}
/* 每项的彩色圆点前缀 */
.gui-lottery-item::before{
  content:"";position:absolute;left:14px;top:50%;
  width:12px;height:12px;margin-top:-6px;border-radius:50%;
  background:var(--dot,var(--gui-accent));
  box-shadow:0 0 0 3px rgba(95,169,238,.15);
}
.gui-lottery-item:hover{background:#eef5ff;color:#1d4f8b;transform:translateX(2px)}
.gui-lottery-item:focus{outline:none;background:#e8f1ff;color:#1d4f8b}
/* 当前项：左侧色条 + 对勾 */
.gui-lottery-item.active{
  background:linear-gradient(90deg,rgba(63,143,217,.14),rgba(63,143,217,.05));
  color:#1d4f8b;
  box-shadow:inset 3px 0 0 var(--gui-accent-deep);
}
.gui-lottery-item.active::before{box-shadow:0 0 0 3px rgba(63,143,217,.25)}
.gui-lottery-item.active::after{
  content:"";width:15px;height:15px;flex:0 0 auto;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='%233f8fd9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-10'/></svg>") no-repeat center/contain;
}
.ic-lottery{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M4 5h16v14H4z' fill-opacity='.25' stroke='white' stroke-width='1.5'/><path fill='white' d='M4 9h16v2H4z'/></svg>")}
.ic-undo{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M9 14l-5-5 5-5'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' d='M4 9h11a5 5 0 0 1 0 10h-4'/></svg>")}
.ic-redo{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M15 14l5-5-5-5'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' d='M20 9H9a5 5 0 0 0 0 10h4'/></svg>")}
.ic-clear{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 7h14M9 7V4h6v3M7 7l1 13h8l1-13'/></svg>")}
.ic-save{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 4v12'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' d='M7 11l5 5 5-5'/><path fill='none' stroke='white' stroke-width='2' d='M5 20h14'/></svg>")}
.ic-settings{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='3' fill='none' stroke='white' stroke-width='2'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' d='M19 12a7 7 0 0 0-.2-1.6l2-1.5-2-3.4-2.3.9a7 7 0 0 0-2.7-1.6L13.4 2h-2.8l-.4 2.8a7 7 0 0 0-2.7 1.6L5.2 5.5l-2 3.4 2 1.5A7 7 0 0 0 5 12c0 .6.1 1.1.2 1.6l-2 1.5 2 3.4 2.3-.9a7 7 0 0 0 2.7 1.6l.4 2.8h2.8l.4-2.8a7 7 0 0 0 2.7-1.6l2.3.9 2-3.4-2-1.5c.1-.5.2-1 .2-1.6z'/></svg>")}
.ic-lock{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='5' y='11' width='14' height='10' rx='2' fill='none' stroke='white' stroke-width='2'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>")}
.ic-gear{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='3' fill='none' stroke='white' stroke-width='2'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' d='M19 12a7 7 0 0 0-.2-1.6l2-1.5-2-3.4-2.3.9a7 7 0 0 0-2.7-1.6L13.4 2h-2.8l-.4 2.8a7 7 0 0 0-2.7 1.6L5.2 5.5l-2 3.4 2 1.5A7 7 0 0 0 5 12c0 .6.1 1.1.2 1.6l-2 1.5 2 3.4 2.3-.9a7 7 0 0 0 2.7 1.6l.4 2.8h2.8l.4-2.8a7 7 0 0 0 2.7-1.6l2.3.9 2-3.4-2-1.5c.1-.5.2-1 .2-1.6z'/></svg>")}
.ic-pen{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 19l7-7 3 3-7 7-3-3z'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'/></svg>")}
/* 智能笔图标：笔尖 + 三条发散连线与圆点，一目了然表示“一笔按规则出多圈连线” */
.ic-smartpen{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><path d='M4 20L15 9'/><path d='M15 9L10 4'/><path d='M15 9L19 6'/><path d='M15 9L20 12'/></g><g fill='white'><circle cx='10' cy='4' r='2.4'/><circle cx='19' cy='6' r='2.4'/><circle cx='20' cy='12' r='2.4'/><circle cx='4' cy='20' r='2.6'/></g></svg>")}

/* —— 笔按钮 + 面板 同容器：面板绝对定位挂在笔周围，由 .open 控制显隐 —— */
.gui-pen-zone{
  position:relative;
  display:flex;flex-direction:column;align-items:center;
  pointer-events:auto;
}
/* 颜色面板（笔上方浮动）：默认隐藏，.open 时显示 */
.gui-colors{
  position:absolute;
  left:50%;bottom:calc(100% + 10px);
  transform:translateX(-50%);
  z-index:100;
  display:none;flex-direction:column;gap:4px;
  padding:4px;border-radius:8px;
  background:rgba(40,45,55,.82);
  box-shadow:0 3px 10px rgba(0,0,0,.25);
}
.gui-pen-zone.open .gui-colors{display:flex}
.gui-color{
  width:22px;height:22px;border-radius:50%;cursor:pointer;
  border:2px solid rgba(255,255,255,.92);
  box-shadow:inset 0 1px 2px rgba(255,255,255,.35),0 2px 4px rgba(0,0,0,.3);
  transition:transform .12s,box-shadow .12s;
  position:relative;display:flex;align-items:center;justify-content:center;
}
.gui-color:hover{transform:scale(1.12);box-shadow:0 3px 7px rgba(0,0,0,.4)}
/* 选中态：覆盖第三方站同款对勾图标 */
.gui-color .gui-check{
  width:16px;height:16px;display:none;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.55));
}
.gui-color.active{border-color:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.55),0 2px 5px rgba(0,0,0,.4)}
.gui-color.active .gui-check{display:block}

/* 粗细面板（笔右侧浮动，紧凑版）：按钮 30px，总宽约 108px 不遮挡右侧锁定钮 */
.gui-strokes{
  position:absolute;
  left:calc(100% + 12px);top:50%;
  transform:translateY(-50%);
  z-index:100;
  display:none;flex-direction:row;gap:3px;
  width:80px;max-width:none; /* 显式宽度+解除手机端全局 max-width:100% 钳制：深色底完整盖住三档按钮 */
  padding:3px 4px;border-radius:8px;
  background:rgba(40,45,55,.82);
  box-shadow:0 3px 10px rgba(0,0,0,.25);
}
.gui-pen-zone.open .gui-strokes{display:flex}
.gui-strokes button{
  width:22px;height:22px;min-width:22px;flex:0 0 auto;border-radius:6px;border:2px solid transparent;background:rgba(255,255,255,.1);
  color:#fff;font-size:11px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.gui-strokes button.active{background:rgba(230,59,82,.5);border-color:#fff}
.gui-strokes button svg{width:15px;height:11px}

/* —— 期号 + 号码格 主区（真表格：期数|和值|万|千|百|十|个，加粗特定竖线，每4行横线） —— */
/* 手机端手势策略（分区）：
   - 号码格/和值列：touch-action 继承 .gui-grid 的 none → 全向画线（横纵均可，与电脑版一致）
   - 期号列 .gui-issue-cell：touch-action:pan-y → 按住期号列上下拖 = 浏览器原生滚动，
     纵向手势归浏览器（不触发画线），画线与滚动彻底分区互不影响。
   引导遮罩的长条图正好贴在期号列位置，提示用户「按这里上下滑」。
   user-select/callout 防止 iOS 长按选中号码或弹出放大镜。 */
.gui-grid{
  touch-action:none;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
  display:grid;
  gap:0;
  border:1px solid #9fb6cf;   /* 外框细线，不加粗 */
  border-radius:8px;
  overflow:hidden;
  background:#e9f2fc;          /* 号码列底色（num-cell 透明，便于连线在底层透出） */
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",serif;
}
/* 期号列=滚动热区：touch-action 交由 JS 接管手动滚动（.gui-grid overflow:hidden 会
   截断浏览器 pan-y 滚动链，故不用原生方案），gui.js 绑定带惯性滚动 */
.gui-grid .gui-issue-cell{touch-action:none;cursor:grab}

/* —— 手动滚动条（右侧常显）：隐藏浏览器原生滚动条，红滑块即唯一滚动条，完全融合 —— */
/* 画规页禁用全局平滑滚动：scroll-behavior:smooth 会让 scrollBy/scrollTo 变成动画，
   把手拖动与期号列惯性滚动都跟不上手 */
html{scroll-behavior:auto!important;scrollbar-width:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{width:0;height:0;display:none}
.gui-scroll-thumb{position:fixed;right:0;top:20%;height:60%;width:18px;z-index:65;display:block;border-radius:9px 0 0 9px;background:rgba(43,23,23,.35);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);pointer-events:none}
.gui-scroll-thumb[hidden]{display:none}
/* 滑块：视觉 26px（突出轨道更醒目）、高 80px；左侧 10px 透明边框扩大触控区 */
.gui-scroll-thumb .gui-scroll-knob{position:absolute;right:0;top:6px;width:36px;height:80px;border:10px solid transparent;border-right-width:0;border-radius:12px 0 0 12px;
  background:linear-gradient(145deg,#e63b52,#b71f33) padding-box;box-sizing:border-box;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.35));touch-action:none;cursor:grab;pointer-events:auto}
/* 滑块中央的拖动纹理（两道浅痕，暗示可拖） */
.gui-scroll-knob::before{content:'';position:absolute;right:5px;top:50%;width:12px;height:4px;transform:translateY(-50%);border-radius:2px;background:rgba(255,255,255,.75);box-shadow:0 -7px 0 rgba(255,255,255,.55),0 7px 0 rgba(255,255,255,.55)}
.gui-scroll-knob:active{cursor:grabbing}
.gui-grid-empty{padding:60px 0;text-align:center;color:#678}
/* 单元格：透明内容层（z-index:2），仅承载文字/圆圈；
   背景+边框交给独立底层 .gui-grid-bg（z-index:0），连线在中间（z-index:1）。
   层级自顶向下：文字 → 圆圈 → 连线 → 边框+背景 */
.gui-issue-cell,
.gui-stat-cell,
.gui-num-cell{
  border:0;               /* 自身不画边框，边框由 .gui-grid-bg 底层绘制 */
  position:relative;
  z-index:2;
}
.gui-num-cell:last-child{}
/* 独立背景+边框底层 */
.gui-grid-bg{position:absolute;inset:0;z-index:0;pointer-events:none}
.gui-cell-bg{position:absolute;box-sizing:border-box;border-right:1px solid #9fb6cf;border-bottom:1px solid #9fb6cf}
.gui-cell-bg.col-strong-right{border-right:2.5px solid var(--gui-strong)}
.gui-cell-bg.block-end{border-bottom:2.5px solid var(--gui-strong)}
.gui-cell-bg.block-start{border-top:2.5px solid var(--gui-strong)}
.gui-blank-cell{
  border-right:1px solid #9fb6cf;
  border-bottom:1px solid #9fb6cf;
  min-height:48px;background:#f3f8fd;
}
.gui-blank-cell:last-child{border-right:0}
.gui-issue-cell b{font-size:14px;font-weight:700;white-space:nowrap;letter-spacing:-0.3px}
.gui-issue-cell small{font-size:10px;opacity:.85;margin-top:1px;white-space:nowrap}
/* 加粗线仅作用于底层 .gui-cell-bg（不再用 !important，避免污染单元格内容层） */
/* 单元格背景色移到底层 .gui-cell-bg（按列区分） */
.gui-cell-bg.is-issue{background:var(--gui-accent)}
.gui-cell-bg.is-stat{background:#e3eef9}
.gui-cell-bg.is-num{background:#e9f2fc}
.gui-cell-bg.is-num-white{background:#ffffff} /* 万位~十位（前4位）白底 */
.gui-issue-cell{
  color:#fff;padding:6px 4px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-size:13px;line-height:1.15;font-weight:600;
  cursor:default;
}
.gui-stat-cell{
  color:#456;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-size:20px;font-weight:700;
  font-family:"GuiNum",Georgia,"Times New Roman",serif;
  cursor:pointer;
}
.gui-stat-cell small{font-size:10px;color:#789;font-weight:400}
.gui-stat-cell.has-pick > b{visibility:hidden}
.gui-num-cell{
  color:#445a73;  /* 文字色（背景已由底层 .gui-cell-bg.is-num 提供） */
  display:flex;align-items:center;justify-content:center;
  font-family:"GuiNum",Georgia,"Times New Roman",serif;
  font-size:32px;font-weight:700;line-height:1;
  cursor:pointer;min-height:48px;
}
.gui-num-cell .n{display:inline-block;position:relative;z-index:1}
.gui-num-cell.has{background:#cfdef0;color:#2f4a6b;font-weight:600;font-family:"GuiNum",Georgia,"Times New Roman",serif}
/* 圆圈标记：绝对定位 + transform 精确居中于 cell 中心；不依赖 cell flex 设置 */
.gui-pick-circle{
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 5px rgba(0,0,0,.3),inset 0 1px 2px rgba(255,255,255,.25);
  border:2px solid rgba(255,255,255,.85);
  z-index:3;pointer-events:none;
  margin:0;padding:0;
}
.gui-pick-circle .gui-pick-num{
  display:block;width:100%;text-align:center;
  font-size:27px;font-weight:700;color:currentColor;  /* 继承 mark 颜色：实心白字、空心彩字；inline 按字符数自适应（单字27=34×0.8） */
  line-height:1;font-family:"GuiNum",Georgia,"Times New Roman",serif;
  padding:0;margin:0;
}
.gui-num-cell.has-pick > .n{display:none}
.gui-num-cell .holiday{font-size:11px;color:#9aa7b5;font-family:-apple-system,"PingFang SC",sans-serif}

/* —— 底部浮动按钮 —— */
.gui-fabbar{
  position:fixed;left:calc(50% - 200px);bottom:16px;width:400px;
  display:flex;justify-content:space-between;align-items:flex-end;gap:10px;padding:0 18px;
  z-index:80;pointer-events:none;
}
/* 锁定/智能笔/设置 三钮靠右成组 */
.gui-fab.lock-fab{margin-left:auto}
@media(max-width:430px){
  .gui-fabbar{left:0;width:100%}
}
.gui-fab{
  pointer-events:auto;
  width:46px;height:46px;border-radius:50%;border:0;
  background:var(--gui-accent);color:#fff;font-size:13px;font-weight:600;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(95,169,238,.45);cursor:pointer;
  letter-spacing:.04em;
}
.gui-fab.bao-fab{
  width:62px;height:62px;background:linear-gradient(145deg,#e63b52,#b71f33);font-size:22px;font-weight:800;
  box-shadow:0 6px 20px rgba(230,59,82,.45);
  font-family:Georgia,"Times New Roman",serif;
}
.gui-fab.bao-fab.active{outline:3px solid rgba(230,59,82,.3)}
/* 我的存图按钮：APP LOGO 圆形图标（后台上传的 brand.icon_url），未上传回退文字 */
.gui-fab.history-fab{
  width:52px;height:52px;border-radius:50%;padding:0;
  background:linear-gradient(145deg,#e63b52,#b71f33);box-shadow:0 6px 20px rgba(230,59,82,.45);
  font-size:13px;font-weight:800;
}
.gui-fab.history-fab .fab-logo{width:40px;height:40px;border-radius:12px;object-fit:cover;display:block}
.gui-fab.settings-fab{
  width:46px;height:46px;border-radius:50%;padding:0;font-size:13px;gap:0;
  background:rgba(95,169,238,.95);color:#fff;
}
/* 独立智能笔按钮：胶囊形，开启时紫色高亮以区别于普通设置 */
.gui-fab.smartpen-fab{
  width:auto;height:46px;border-radius:24px;padding:0 14px;font-size:13px;gap:5px;
  background:rgba(95,169,238,.95);color:#fff;
}
.gui-fab.smartpen-fab .ic{width:20px;height:20px;display:inline-block;background-position:center;background-repeat:no-repeat;background-size:contain}
.gui-fab.smartpen-fab.active{
  background:linear-gradient(145deg,#a83ce6,#7a1fb7);
  box-shadow:0 4px 14px rgba(168,60,230,.5);
}
.gui-fab.smartpen-fab.active .ic-smartpen{filter:drop-shadow(0 0 2px rgba(255,255,255,.6))}
.gui-fab-left{display:flex;flex-direction:column;gap:10px;align-items:center}
.gui-fab.tool-fab{
  width:52px;height:52px;background:#fff;color:var(--gui-accent);
  border:2px solid var(--gui-accent);box-shadow:0 4px 14px rgba(95,169,238,.35);
  position:relative;z-index:70; /* 始终浮在展开的面板之上，保证二次点击能关闭 */
}
.gui-fab.tool-fab .ic{width:24px;height:24px;filter:none;background-size:contain}
.gui-fab.tool-fab .ic-pen{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='%235fa9ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 19l7-7 3 3-7 7-3-3z'/><path fill='none' stroke='%235fa9ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'/></svg>")}
.gui-fab.tool-fab.active{background:var(--gui-accent);border-color:var(--gui-accent-deep)}

/* fab 内通用图标尺寸（lock/gear 等） */
.gui-fab .ic{width:20px;height:20px;display:inline-block;background-position:center;background-repeat:no-repeat;background-size:contain}

/* 锁定按钮：默认（未锁定）显示锁形图标 */
.ic-lock{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='5' y='11' width='14' height='10' rx='2' fill='none' stroke='white' stroke-width='2'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
}
/* 锁定按钮：激活（已锁定，点击可退出锁定）显示上下滚动双箭头图标 */
.gui-fab.lock-fab.active .ic-lock{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7 8l5-5 5 5'/><path fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7 16l5 5 5-5'/></svg>");
}
/* 锁定按钮：激活态变红高亮 */
.gui-fab.lock-fab.active{background:#e63b52;border-color:#b71f33;color:#fff;box-shadow:0 4px 14px rgba(230,59,82,.45)}

/* 锁定后隐藏：宝 / 笔 / 设置 */
.gui-fabbar .hidden{display:none !important}

/* —— 通用弹层（设置/清除等）：约束在手机视口内，内部表单换行 —— */
#modal{
  border:0;border-radius:14px;padding:0;
  width:calc(100% - 16px);max-width:420px;margin:auto;
  box-sizing:border-box;
  box-shadow:0 8px 32px rgba(0,0,0,.2);
}
#modal::backdrop{background:rgba(0,0,0,.35)}
#modal>.close{position:absolute;right:8px;top:8px;border:0;background:transparent;font-size:20px;color:#8aa;cursor:pointer;line-height:1;padding:4px 8px;z-index:1}
#modal>.close:hover{color:#e63b52}
#modalBody{padding:24px 18px 18px;font-size:14px;color:var(--ink,#2f4a6b)}
#modalBody h2{margin:0 0 14px;font-size:17px;font-weight:700;color:#2f4a6b}
#modalBody label{display:block;margin:8px 0 4px;color:#678;font-size:13px}
#modalBody input[type=color],#modalBody select{
  width:100%;max-width:100%;box-sizing:border-box;
  padding:6px 8px;border:1px solid #d6e2ef;border-radius:6px;background:#fff;font:inherit;
}
#modalBody input[type=color]{height:36px;padding:2px}
#modalBody .primary,#modalBody .ghost{
  display:inline-block;max-width:100%;margin-top:14px;margin-right:8px;
  padding:8px 18px;border-radius:18px;font-weight:700;cursor:pointer;font:inherit;
}
#modalBody .primary{border:0;background:linear-gradient(90deg,#f37280,#e63b52);color:#fff}
#modalBody .ghost{border:1px solid #d6e2ef;background:#fff;color:#2f4a6b}

/* 锁定横幅：锁定态显示，告知用户仍可上下滚动 */
.gui-lock-banner{
  position:sticky;top:0;z-index:60;
  display:flex;align-items:center;justify-content:center;gap:8px;
  background:rgba(230,59,82,.92);color:#fff;
  font-size:13px;font-weight:600;padding:8px 12px;
  box-shadow:0 1px 4px rgba(0,0,0,.2);
}
.gui-lock-banner .ic{width:16px;height:16px;display:inline-block;background-position:center;background-repeat:no-repeat;background-size:contain}
.gui-lock-banner .ic-lock{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='5' y='11' width='14' height='10' rx='2' fill='none' stroke='white' stroke-width='2'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>")}
.gui-lock-banner .ic-scroll{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 5v14'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 11l5 5 5-5'/></svg>")}
.gui-lock-banner[hidden]{display:none}

/* 锁定态：表格区变灰、不可圈选/画线（pointer-events:none 屏蔽所有交互） */
.gui-grid-wrap.locked{pointer-events:none;filter:grayscale(.85);opacity:.7}

/* —— 触屏首次引导遮罩：盖在期号列表位置（顶对齐工具栏），左侧竖排提示 —— */
.gui-gesture-guide{position:fixed;left:0;right:0;bottom:0;z-index:90;background:rgba(38,44,60,.55);backdrop-filter:blur(1px);display:block}
.gui-gesture-guide[hidden]{display:none}
/* guide-pan.png（105×1200 长条：上箭头/下箭头分列两端）整体贴左侧拉通 */
.gui-gesture-guide .guide-pan{position:absolute;left:8px;top:12px;bottom:96px;width:auto;height:calc(100% - 108px);opacity:.95;filter:drop-shadow(0 2px 6px #0008)}
/* 手指叠在长条中间，上下往复动画 */
.gui-gesture-guide .guide-finger{position:absolute;left:4px;top:50%;width:46px;margin-top:-30px;z-index:2;animation:guide-finger-pan 1.6s ease-in-out infinite;filter:drop-shadow(0 4px 8px #0006)}
@keyframes guide-finger-pan{0%,100%{transform:translateY(-18px)}50%{transform:translateY(18px)}}
/* 竖排提示文字：长条右侧、期号列表上 */
.gui-gesture-guide .guide-text{position:absolute;left:92px;top:52px;writing-mode:vertical-rl;text-orientation:upright;font-size:22px;font-weight:900;color:#fff;letter-spacing:10px;text-shadow:0 2px 6px #000b}
.gui-gesture-guide .text2{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);min-width:124px;text-align:center;padding:10px 30px;border-radius:22px;background:#fff;color:#2b1717;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 6px 18px -6px #000a}
.gui-gesture-guide .text2:active{transform:translateX(-50%) scale(.95)}
.gui-fab.tool-fab.active .ic-pen{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 19l7-7 3 3-7 7-3-3z'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'/></svg>")}

/* —— 开奖号码辅助表（3 行 × 5 列空白格）—— */
.gui-pick-zone{padding:0 0 96px}
.gui-pick-grid{
  display:grid;
  grid-template-columns:62px 40px repeat(5, 1fr);
  border:1px solid #9fb6cf;border-radius:8px;overflow:hidden;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",serif;
  background:#fff;
}
.gui-pick-cell{
  border-right:1px solid #9fb6cf;border-bottom:1px solid #9fb6cf;
  min-height:46px;display:flex;align-items:center;justify-content:center;
  position:relative;cursor:pointer;background:#f3f8fd;
}
.gui-pick-cell:last-child{border-right:0}
.gui-pick-cell.has-pick{background:#e9f2fc}
/* 期数 + 和值列也参与（视觉对齐主表），空白但可点 */
.gui-pick-issue{background:var(--gui-accent);color:#fff;font-size:11px;flex-direction:column;cursor:default;padding:4px}
.gui-pick-stat{background:#e3eef9;color:#789;font-size:11px;font-weight:600}
/* 圆圈标记：与开奖格 .gui-pick-circle(32×32) 保持同尺寸，避免空白辅助格圆圈明显偏大 */
.gui-pick-mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;            /* 与开奖圆圈一致，并整体放大 1.2 倍（32→38） */
  background:#e63b52;color:#fff;
  border:2px solid rgba(255,255,255,.85);
  border-radius:50%;                  /* 正圆形 */
  font-family:"GuiNum",Georgia,"Times New Roman",serif;
  font-size:27px;font-weight:700;line-height:1;  /* 与 .gui-pick-num 字号一致（inline 按字符数自适应，单字27=34×0.8） */
  box-shadow:0 2px 5px rgba(0,0,0,.3),inset 0 1px 2px rgba(255,255,255,.25);
}
#numPad{margin:auto auto 0;padding:0;border:0;border-radius:16px 16px 0 0;box-shadow:0 -4px 20px rgba(0,0,0,.2);max-width:420px;width:calc(100% - 16px)}
#numPad::backdrop{background:rgba(0,0,0,.35)}
.num-pad{padding:14px;min-width:300px;text-align:left;max-height:80vh;overflow:auto}
.num-pad-header{display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:10px}
.num-pad-title{font-size:14px;font-weight:700;color:#2f4a6b}
.num-pad-x{position:absolute;right:0;top:50%;transform:translateY(-50%);border:0;background:transparent;font-size:22px;color:#8aa;cursor:pointer;line-height:1;padding:0 6px}
.num-pad-x:hover{color:#e63b52}
.num-pad-section{margin-bottom:12px}
.num-pad-tabs{display:flex;gap:6px;margin-bottom:12px}
.num-pad-tab{
  flex:1;padding:9px 0;font-size:14px;font-weight:600;cursor:pointer;
  background:#eef3f9;border:1px solid #d6e2ef;border-radius:8px;color:#5b6e83;
}
.num-pad-tab.active{background:var(--gui-accent);color:#fff;border-color:var(--gui-accent-deep)}
.num-pad-section-title{font-size:13px;color:#678;margin-bottom:6px;font-weight:600}
.num-pad-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.num-pad-grid-5{grid-template-columns:repeat(5,1fr)}
.num-pad-grid button{
  padding:10px 0;font-size:16px;font-weight:600;
  background:#f3f7fc;border:1px solid #d6e2ef;border-radius:50%;color:#2f4a6b;
  font-family:Georgia,"Times New Roman","PingFang SC",serif;cursor:pointer;
  transition:background .12s,color .12s,border-color .12s;
}
/* 号码选择区（开奖号码 0-9 / 和值 0-36）用正圆 */
.num-pad-grid:not(.num-pad-grid-5) button{
  width:38px;height:38px;justify-self:center;padding:0;
  display:flex;align-items:center;justify-content:center;
}
/* 选择对数 / 单双大小（双字）也用正圆，稍大避免文字挤压 */
.num-pad-grid-5 button{
  width:44px;height:44px;justify-self:center;padding:0;
  display:flex;align-items:center;justify-content:center;
  font-size:14px;line-height:1.05;text-align:center;
}
.num-pad-grid button:hover{background:var(--gui-accent-soft)}
.num-pad-grid button.active{background:var(--gui-accent);color:#fff;border-color:var(--gui-accent-deep)}
.num-pad-clear{background:#e57373}

@media(max-width:380px){
  .gui-issue-cell b{font-size:12px;white-space:nowrap}
  .gui-num-cell{font-size:22px;min-height:44px}
  .gui-panel{left:4px;top:88px;padding:8px 6px}
  .gui-color{width:28px;height:28px}
}

/* —— 画规设置弹层（点击右下角"设置"打开，显示在 #modal 中） ——
   #modal 宽度已与和值/号码选择层(#numPad)一致：max-width:420px; width:calc(100% - 16px) */
.gui-set-colors{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.gui-set-color{
  width:30px;height:30px;border-radius:50%;border:2px solid transparent;cursor:pointer;
  box-shadow:0 1px 3px rgba(0,0,0,.2);padding:0;
}
.gui-set-color.active{border-color:#2f4a6b;box-shadow:0 0 0 2px #fff,0 0 0 4px #e63b52}
.gui-set-strokes{display:flex;gap:8px}
.gui-set-stroke{
  flex:1;max-width:90px;padding:9px 0;font:inherit;font-size:14px;font-weight:600;cursor:pointer;
  background:#f3f7fc;border:1px solid #d6e2ef;border-radius:8px;color:#2f4a6b;
  transition:background .12s,color .12s,border-color .12s
}
.gui-set-stroke:hover{background:var(--gui-accent-soft)}
.gui-set-stroke.active{background:#e63b52;color:#fff;border-color:#e63b52}
/* 期数 / 额外空白行：与粗细按钮同款风格 */
.gui-set-periods{display:flex;flex-wrap:wrap;gap:8px}
.gui-set-period{
  flex:1;min-width:64px;padding:9px 0;font:inherit;font-size:14px;font-weight:600;cursor:pointer;
  background:#f3f7fc;border:1px solid #d6e2ef;border-radius:8px;color:#2f4a6b;
  transition:background .12s,color .12s,border-color .12s
}
.gui-set-period:hover{background:var(--gui-accent-soft)}
.gui-set-period.active{background:#e63b52;color:#fff;border-color:#e63b52}
.gui-set-blanks{display:flex;flex-wrap:wrap;gap:8px}
.gui-set-blank{
  flex:1;min-width:72px;padding:9px 0;font:inherit;font-size:14px;font-weight:600;cursor:pointer;
  background:#f3f7fc;border:1px solid #d6e2ef;border-radius:8px;color:#2f4a6b;
  transition:background .12s,color .12s,border-color .12s
}
.gui-set-blank:hover{background:var(--gui-accent-soft)}
.gui-set-blank.active{background:#e63b52;color:#fff;border-color:#e63b52}
.gui-set-marks{display:flex;flex-wrap:wrap;gap:8px}
.gui-set-mark{
  flex:1;min-width:72px;padding:9px 0;font:inherit;font-size:14px;font-weight:600;cursor:pointer;
  background:#f3f7fc;border:1px solid #d6e2ef;border-radius:8px;color:#2f4a6b;
  transition:background .12s,color .12s,border-color .12s
}
.gui-set-mark:hover{background:var(--gui-accent-soft)}
.gui-set-mark.active{background:#e63b52;color:#fff;border-color:#e63b52}
.gui-set-skins{display:flex;flex-wrap:wrap;gap:8px}
.gui-set-skin{
  flex:1;min-width:56px;padding:9px 0;font:inherit;font-size:14px;font-weight:600;cursor:pointer;
  background:#f3f7fc;border:1px solid #d6e2ef;border-radius:8px;color:var(--gui-strong);
  transition:background .12s,color .12s,border-color .12s
}
.gui-set-skin:hover{background:var(--gui-accent-soft)}
.gui-set-skin.active{background:var(--gui-accent);color:#fff;border-color:var(--gui-accent)}

/* —— 智能笔（设置弹层内） —— */
.gui-set-onoff{
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none;
  padding:7px 12px;border-radius:20px;background:#eef2f7;border:1px solid #d6e2ef;
  font-size:14px;font-weight:600;color:#8aa0b8;margin-bottom:10px;transition:all .15s;
}
.gui-set-onoff i{width:34px;height:18px;border-radius:10px;background:#c4d0de;position:relative;transition:background .15s;flex:none}
.gui-set-onoff i::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:left .15s;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.gui-set-onoff.on{background:var(--gui-accent-soft);color:var(--gui-strong);border-color:var(--gui-accent)}
.gui-set-onoff.on i{background:var(--gui-accent)}
.gui-set-onoff.on i::after{left:18px}
.gui-set-penblock.off{opacity:.45;pointer-events:none;filter:grayscale(.4)}
.gui-set-penblock label{display:block;margin:10px 0 6px;font-size:13px;color:var(--gui-strong);font-weight:600}
.gui-set-pens,.gui-set-gaps,.gui-set-shapes,.gui-set-pencolors{display:flex;flex-wrap:wrap;gap:8px}
.gui-set-gaps + .gui-set-gaps{margin-top:8px} /* 间隔分两行（0-4 / 5-9）时两行间距 */
.gui-set-pen,.gui-set-gap,.gui-set-shape,.gui-set-pencolor{
  flex:1;min-width:56px;padding:9px 0;font:inherit;font-size:14px;font-weight:600;cursor:pointer;
  background:#f3f7fc;border:1px solid #d6e2ef;border-radius:8px;color:#2f4a6b;
  transition:background .12s,color .12s,border-color .12s
}
.gui-set-pen:hover,.gui-set-gap:hover,.gui-set-shape:hover,.gui-set-pencolor:hover{background:var(--gui-accent-soft)}
.gui-set-pen.active,.gui-set-gap.active,.gui-set-shape.active,.gui-set-pencolor.active{background:var(--gui-accent);color:#fff;border-color:var(--gui-accent)}
.gui-set-pen.disabled,.gui-set-gap.disabled,.gui-set-shape.disabled,.gui-set-pencolor.disabled{
  opacity:.4;cursor:not-allowed;background:#eef2f7;color:#aab6c4;border-color:#dde4ec
}
.gui-set-pen.disabled:hover,.gui-set-gap.disabled:hover,.gui-set-shape.disabled:hover,.gui-set-pencolor.disabled:hover{background:#eef2f7}

/* 智能笔曲线中点控制柄：可拖拽改变幅度（独立顶层覆盖层，避免被圆圈遮挡） */
.gui-ctrl-layer{position:absolute;inset:0;z-index:20;pointer-events:none}
.gui-ctrl-handle{
  touch-action:none;             /* 端点控制柄全向拖拽（纵向也能拖），不受 pan-y 影响 */
  position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;
  background:var(--gui-accent);border:2px solid #fff;cursor:grab;pointer-events:all;
  box-shadow:0 1px 4px rgba(0,0,0,.45);
  display:flex;align-items:center;justify-content:center;
}
.gui-ctrl-handle::before{content:"↕";color:#fff;font-size:16px;line-height:1;font-weight:700}
.gui-ctrl-handle:active{cursor:grabbing}
/* —— 手机浏览器直访：站内底部导航存在时，画规浮动按钮抬升到导航之上，内容留白同步让位 —— */
@media(max-width:850px){
  .gui-fabbar{bottom:calc(var(--tabbar-h,62px) + 12px + env(safe-area-inset-bottom))}
  .gui-grid-wrap{padding-bottom:calc(var(--tabbar-h,62px) + 120px + env(safe-area-inset-bottom))}
}

/* 手机直访：号码键盘/和值弹层抬到底部导航之上 */
@media(max-width:850px){
  #numPad{margin-bottom:calc(var(--tabbar-h,62px) + env(safe-area-inset-bottom))}
}

/* 我的存图（服务器归档历史） */
.gui-history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:12px}
.gui-history-item{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid #e8dcdc;border-radius:12px;background:#fff}
.gui-history-item a{display:block;line-height:0}
.gui-history-item img{width:100%;height:auto;max-height:190px;object-fit:cover;border-radius:8px;background:#f6f1f1}
.gui-history-item b{font-size:13px}
.gui-history-item small{color:#927f7f;font-size:11.5px}
.gui-history-ops{display:flex;gap:8px;margin-top:4px}
.gui-history-ops a,.gui-history-ops button{flex:1;text-align:center;font-size:12.5px;padding:6px 0;text-decoration:none}
/* 存图分类标签 */
.gui-history-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.gui-history-tabs button{padding:7px 14px;border-radius:999px;font-size:13px;font-weight:700;background:#fff;border:1px solid #e8dcdc;color:#806b6b;display:inline-flex;align-items:center;gap:6px}
.gui-history-tabs button small{font-size:11px;font-weight:800;background:#f6efef;color:#927f7f;border-radius:999px;padding:1px 7px}
.gui-history-tabs button:hover{border-color:#ecc9c9;color:#c91521}
.gui-history-tabs button.active{background:linear-gradient(135deg,#e63b52,#b71f33);border-color:transparent;color:#fff;box-shadow:0 6px 14px -8px #b71f3399}
.gui-history-tabs button.active small{background:rgba(255,255,255,.28);color:#fff}

/* 存图分页 */
.gui-history-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:14px;padding-top:12px;border-top:1px dashed #e8dcdc}
.gui-history-pager button{min-width:74px;padding:7px 12px;font-size:13px}
.gui-history-pager button:disabled{opacity:.45;cursor:not-allowed}
.gui-history-pager span{color:#806b6b;font-size:13px}
.gui-history-pager span b{color:#c91521;font-size:15px}