/* ============================================================
   跑狗图库 · 全站样式（light 主题，绿色为主色）
   三个页面共用：index.html / draw.html / pic.html
   修改注意：.topbar / .brand / .lt-tabs 是 draw.html、pic.html 在用的，
   不要因为首页改版就把它们删掉。
   ============================================================ */
:root {
  --bg: #f2f4f6;
  --card: #ffffff;
  --line: #e6e8ec;
  --text: #1f2329;
  --muted: #8a9199;
  --brand: #08c66a;
  --brand-dark: #069457;
  --brand-soft: #e8f9f0;
  --radius: 12px;
  /* 六合彩波色（语义色，不能改） */
  --w-red: #e03e3e;
  --w-blue: #2b6fd4;
  --w-green: #159a52;
  /* 开奖号码球底：118 的空心圆环（外圈透明、中心白心，号码用深色字） */
  --ball-red: url("../img/ball-red.png");
  --ball-green: url("../img/ball-green.png");
  --ball-blue: url("../img/ball-blue.png");
}
* { box-sizing: border-box; }
/* hidden 必须真的能隐藏。
   ⚠ 踩过的坑：.search-bar / .dl-list / .dh-years 这类定了 display:flex 的规则，
   优先级高于 UA 样式表里的 [hidden]{display:none} —— 于是 JS 设了 hidden=true
   元素照样显示。首页搜索条默认就露出来了，日历视图里 60 行列表也压根没藏住
   （页面被撑到几千像素高，无头浏览器整页截图直接崩）。
   这一句是安全网，别再删。 */
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.page { max-width: 720px; margin: 0 auto; padding-bottom: 24px; }
.app-shell { max-width: 720px; margin: 0 auto; padding: 12px; }

/* ============================================================
   1. 顶栏（首页用 .hdr；draw/pic 用 .topbar）
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #12c877 0%, #069457 100%);
  box-shadow: 0 2px 8px rgba(6, 148, 87, .22);
  color: #fff;
}
/* 顶栏 LOGO（后台「站点设置」上传；没配时 img 是 hidden，不占位） */
.hdr-logo {
  flex: 0 0 auto; width: auto; height: 24px; border-radius: 5px;
  object-fit: contain; background: rgba(255, 255, 255, .18);
}
.hdr-spare {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  border: 0; background: transparent; color: #fff; padding: 2px 0;
  cursor: pointer; min-width: 0; font-family: inherit; text-align: left;
}
.hdr-spare i { font-style: normal; font-size: 10px; opacity: .82; }
.hdr-spare b {
  font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
  max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hdr-lt { display: flex; gap: 2px; margin: 0 auto; }
.hdr-lt button {
  position: relative; border: 0; background: transparent; cursor: pointer;
  color: rgba(255, 255, 255, .74); font-family: inherit;
  font-size: 17px; font-weight: 600; padding: 5px 14px 7px;
}
.hdr-lt button.active { color: #fff; }
.hdr-lt button.active::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 2px; background: #fff;
}
.hdr-right { display: flex; gap: 8px; }
.hdr-ico {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border: 0; background: transparent; color: #fff; cursor: pointer;
  font-family: inherit; font-size: 10px; opacity: .95; padding: 0;
}
.hdr-ico svg {
  width: 19px; height: 19px; fill: none; stroke: #fff;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

/* 搜索条 */
.search-bar {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px 0;
}
.search-bar input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 14px; font-family: inherit; color: var(--text);
  outline: none;
}
.search-bar input:focus { border-color: var(--brand); }
.search-bar button {
  height: 38px; padding: 0 14px; border-radius: 10px; border: 0;
  font-size: 14px; font-family: inherit; cursor: pointer;
}
.search-go { background: var(--brand); color: #fff; font-weight: 600; }
.search-reset { background: var(--brand-soft); color: var(--brand-dark); }

/* ============================================================
   2. Banner 轮播
   ============================================================ */
.banner {
  position: relative; margin: 10px 12px 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 35, 41, .08);
  /* 高度由 JS 同步为当前 slide 的实际高度（自适应，切换时过渡） */
  transition: height .35s ease;
}
.banner-track { display: flex; transition: transform .35s ease; align-items: flex-start; }
.banner-slide {
  flex: 0 0 100%; min-height: 128px; height: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 20px; color: #fff;
}
.banner-slide h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.banner-slide p { margin: 7px 0 0; font-size: 12.5px; opacity: .93; }
.banner-slide.s1 { background: linear-gradient(120deg, #14c877, #068c53); }
.banner-slide.s2 { background: linear-gradient(120deg, #f7a92a, #de7414); }
.banner-slide.s3 { background: linear-gradient(120deg, #2f74da, #1b4c9e); }
.banner-slide.s1::after,
.banner-slide.s2::after,
.banner-slide.s3::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

/* 图片版轮播（后台「轮播图管理」上传的图）。
   注意不要再带 s1/s2/s3 —— 那三个类的 ::after 装饰圆点会压在照片上。
   高度自适应核心：img 走文档流 + width:100%/height:auto，原图什么比例就多高，
   slide 跟着图片长，不再有固定 128px 裁切；文字用底部渐变浮层保证可读性。 */
.banner-slide.has-img {
  position: relative; padding: 0; overflow: hidden; text-decoration: none;
  display: block;
}
.banner-slide.has-img > img {
  display: block; width: 100%; height: auto;
  background: #eef0f3;
}
.banner-slide.has-img .banner-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 30px 20px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .58));
}
.banner-slide.has-img h3,
.banner-slide.has-img p { text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
/* 无图时文字直接摆在色块上，撑满宽度好跟有图对齐 */
.banner-cap { width: 100%; }
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 5px;
}
.banner-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .5); transition: all .25s;
}
.banner-dots i.on { width: 15px; border-radius: 3px; background: #fff; }

/* ============================================================
   3. 公告（跑马灯）
   ============================================================ */
.notice {
  display: flex; align-items: center; gap: 6px;
  margin: 10px 12px 0; padding: 8px 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 12.5px; color: #5b6470;
}
.notice-tag { color: #e2523f; font-weight: 700; white-space: nowrap; }
.notice-scroll { flex: 1; overflow: hidden; white-space: nowrap; min-width: 0; }
/* ★ 位移交给 gallery.js 的 startNoticeMarquee() 算（按 70px/s 匀速，位移 = 容器宽 + 文字宽）。
   不要再用 `padding-left:100%` + `translateX(-100%)` 那套百分比 hack：
   iOS Safari 在 flex 首帧会把 .notice-scroll 的宽度算成 0，百分比留白跟着变 0，
   文字一开始就贴在左边缘、动画立刻往左推出画面 —— 表现就是「滚几个字突然消失」。
   这里只负责不换行、不被撑开。 */
.notice-scroll span {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ============================================================
   4. 彩种大卡
   ============================================================ */
.lt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 12px 0; }
.lt-card {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 11px 8px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #eef1f4; cursor: pointer; font-family: inherit;
  transition: all .18s;
}
.lt-card b { font-size: 19px; font-weight: 800; letter-spacing: 3px; color: #9aa1a9; }
.lt-card i { font-style: normal; font-size: 12px; color: #a6adb5; }
.lt-card.active {
  background: linear-gradient(135deg, #14c877, #06965a);
  border-color: #06965a;
  box-shadow: 0 4px 12px rgba(6, 150, 90, .3);
}
.lt-card.active b, .lt-card.active i { color: #fff; }

/* ============================================================
   5. 开奖区
   ============================================================ */
.draw {
  margin: 10px 12px 0; padding: 12px 12px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.draw-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.draw-issue { color: #2b6fd4; font-weight: 700; white-space: nowrap; }
.draw-cd { margin-left: auto; color: #5b6470; white-space: nowrap; font-variant-numeric: tabular-nums; }
.draw-cd b { color: #e2523f; font-weight: 700; letter-spacing: .3px; }
.draw-hist { color: #2b6fd4; text-decoration: none; white-space: nowrap; }

/* 首页开奖区：6 平码 + 特码 共 7 个号码，自适应宽度铺满一行、永不换行。
   ⚠ 新规则一律挂在 .draw-balls 下 —— 历史页 .dl-balls 复用同一套 .num/.num-ball，
   直接改基础类会把它一起撑坏。 */
.draw-balls {
  display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: center;
  gap: 0 clamp(3px, 1vw, 6px);
  margin-top: 14px;
}
.draw-loading { color: var(--muted); font-size: 13px; padding: 12px 0; }

/* 一个号码：圆环球 + 下方生肖/五行 */
.num { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.num-ball {
  display: flex; align-items: center; justify-content: center;
  width: clamp(34px, 10.5vw, 46px); height: clamp(34px, 10.5vw, 46px);
  background: var(--ball-blue) center / 100% 100% no-repeat;
  color: #2b3038;
  font-size: clamp(15px, 4.6vw, 19px); font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.num-ball.w-red   { background-image: var(--ball-red); }
.num-ball.w-blue  { background-image: var(--ball-blue); }
.num-ball.w-green { background-image: var(--ball-green); }
.num-ball.w-none  { background-image: none; background-color: #e6e8ec; border-radius: 50%; color: #8a9199; }
.num-sub { font-size: 11px; color: #8a9199; white-space: nowrap; }
/* 特码：金圈标出来，一眼能找到 */
.num.is-special .num-ball { box-shadow: 0 0 0 2px #f0b429; border-radius: 50%; }
.num.is-special .num-sub { color: #c8901a; font-weight: 600; }
.num-sep { align-self: center; color: #b9bfc7; font-size: 15px; margin: 0 1px 16px; }

/* ── 首页开奖号码：放大 + 自适应宽度（2026-10-13）──
   7 个 .num 用 flex:1 1 0 等分，号码球 width:100% + aspect-ratio:1 撑满各自格，
   max-width 72px 封顶（桌面上不至于变成巨型泡泡），字号跟着球走。 */
.draw-balls .num { flex: 1 1 0; min-width: 0; }
.draw-balls .num-ball {
  width: 100%; max-width: 72px; height: auto; aspect-ratio: 1 / 1;
  font-size: clamp(17px, 5vw, 30px);
}
.draw-balls .num-sub { font-size: clamp(11px, 2.8vw, 13px); }
.draw-balls .num-sep { flex: 0 0 auto; font-size: 13px; margin: 0 1px 16px; }

/* 「第285期 2026/10/12 21:32星期一」 */
.draw-next { margin-top: 12px; text-align: center; font-size: 12.5px; color: #8a9199; }
.draw-next b { color: var(--brand-dark); font-weight: 700; }

/* ---------- 快捷方式（开奖模块下面，5 个入口） ---------- */
.quick { margin: 10px 12px 0; padding: 11px 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.quick-hd { padding: 0 8px 9px; font-size: 13px; font-weight: 700; }
.quick-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--text); padding: 0 2px;
}
.quick-ic {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px;
}
.quick-ic svg {
  width: 23px; height: 23px; fill: none; stroke: #fff;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 站点导航（开奖模块下面，后台「站点导航管理」维护） ---------- */
.sitenav { margin: 10px 12px 0; padding: 11px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* 一行 4 个，长名字自动换行不截断（名称上限 16 字，竖屏也能放下） */
.sitenav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* 文字模式（默认）：浅灰圆角 pill */
.sitenav-item {
  display: flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 4px 6px; border-radius: 6px; background: #f5f6f8;
  font-size: 13px; line-height: 1.25; color: #333; text-align: center;
  text-decoration: none; word-break: break-all;
  transition: background-color .18s ease, color .18s ease;
}
/* 鼠标移上去：背景变绿、字体变白（触屏设备没有 hover 不触发，无副作用） */
.sitenav-item:hover { background: var(--brand); color: #fff; }
.sitenav-item:active { background: #eceef2; }
.sitenav-item:hover:active { background: var(--brand-dark); }

/* 图标模式：站点 LOGO + 下方名称 */
.sitenav-grid.is-icon { gap: 14px 10px; }
.sitenav-item.is-ico {
  flex-direction: column; gap: 6px;
  min-height: 0; padding: 0; background: none; border-radius: 0;
  font-size: 12px; color: var(--text);
}
/* 图标模式 hover：图标底 + 名称都变绿/白 */
.sitenav-item.is-ico .sn-logo, .sitenav-item.is-ico .sn-ph {
  transition: background-color .18s ease;
}
.sitenav-item.is-ico:hover .sn-logo, .sitenav-item.is-ico:hover .sn-ph { background: var(--brand); }
.sitenav-item.is-ico:hover .sn-ph { color: #fff; }
.sitenav-item.is-ico:hover .sn-tx { color: var(--brand-dark); font-weight: 600; }
.sitenav-item.is-ico:active { background: none; opacity: .7; }
.sitenav-item.is-ico .sn-logo, .sitenav-item.is-ico .sn-ph {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
  background: #f5f6f8;
}
/* 没上图标的站点：名称首字占位（与后台预览同款） */
.sitenav-item.is-ico .sn-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #8a9199;
}
.sitenav-item.is-ico .sn-tx {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.quick-ic.q1 { background: linear-gradient(135deg, #17d47a, #06a35c); }
.quick-ic.q2 { background: linear-gradient(135deg, #4b8ce8, #2b6fd4); }
.quick-ic.q3 { background: linear-gradient(135deg, #efa53c, #d9822b); }
.quick-ic.q4 { background: linear-gradient(135deg, #8f74e0, #6b4fd0); }
.quick-ic.q5 { background: linear-gradient(135deg, #e4695a, #cf4535); }
.quick-tx { font-size: 12px; color: #4b5560; white-space: nowrap; }
.quick-item:active .quick-ic { transform: scale(.94); }
.quick-item:active .quick-tx { color: var(--brand-dark); }

/* ============================================================
   6. 图库（颜色切换 / 系列 / 网格）
   ============================================================ */
.year-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 12px 10px; }
.year-tabs button {
  padding: 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); font-size: 14px; font-weight: 500; cursor: pointer;
  color: var(--text); font-family: inherit;
}
.year-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 图纸分类条：可横向滚动。点中的分类会被滚到靠前位置（gallery.js 的 scrollTabTo）。
   滚动条按移动端惯例隐藏，所以用两侧渐隐来暗示「还有更多」。 */
.series-tabs { position: relative; margin: 0 12px 12px; overflow: hidden; }
.series-tabs-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;      /* iOS 原生惯性 */
  overscroll-behavior-x: contain;         /* 滚到头别把整页带着横滚 */
  cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.series-tabs-scroll::-webkit-scrollbar { display: none; }
.series-tabs-scroll.is-dragging { cursor: grabbing; }
.series-tabs::before,
.series-tabs::after {
  content: ''; position: absolute; top: 0; bottom: 4px; width: 26px;
  pointer-events: none; opacity: 0; transition: opacity .18s;
}
.series-tabs::before { left: 0;  background: linear-gradient(90deg, var(--bg), rgba(242, 244, 246, 0)); }
.series-tabs::after  { right: 0; background: linear-gradient(-90deg, var(--bg), rgba(242, 244, 246, 0)); }
.series-tabs.can-scroll-left::before { opacity: 1; }
.series-tabs.can-scroll-right::after { opacity: 1; }
.series-tabs-scroll button {
  flex: 0 0 auto; padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card); font-size: 13px;
  cursor: pointer; color: var(--text); font-family: inherit;
}
.series-tabs-scroll button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.gallery-section { padding: 0 12px; }
/* 图纸瀑布流：两列容器，卡片由 JS 逐张插入较短的列（gallery.js append）。
   图片一律按原始比例完整显示——不裁切、不限高，列与列自然错落。 */
.gallery-grid { display: flex; gap: 10px; align-items: flex-start; }
.wf-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pic-card {
  position: relative; display: block;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit;
}
/* height:auto + 无 aspect-ratio：原图多大比例就多大比例，cover 裁切彻底去掉 */
/* ★ 2026-10-25 首屏占位（用户反馈「加载慢、看着是竖着几张往下冒」）：
   图纸绝大多数是 1080×1659 的竖版，先按这个比例把位置占住 ——
   卡片一插入就有最终高度，两列立刻左右铺开，不用等图片下载完才成型。
   图片 onload 后由 gallery.js 把 aspect-ratio 改回 auto，恢复真实比例，
   所以最终不会变形、也不会裁切（比例差异只在下载完成前存在）。 */
.pic-card img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1080 / 1659;
  background: #eef0f3;
}
.pic-card.is-missing { opacity: .5; }

/* 旧期角标（2026-10-18）：完整名单里，最新一期还没采到的图显示它最近一期的版本，
   角标注明期号——位置固定、客户随时找得到，也不会误以为是当期图。 */
.pic-stale-tag {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 7px; border-radius: 10px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 11px; line-height: 1.4; letter-spacing: .5px;
}

/* 图名（2026-10-25 用户要求加回）：图片下方一行居中文本，
   单行超出省略；「看/赞」元信息（.pic-meta）仍不显示。 */
.pic-title {
  padding: 7px 8px 10px; font-size: 16px; font-weight: 700; line-height: 1.4;
  color: var(--text); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 「有黑白版」角标 */
.pic-alt-tag {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 7px; border-radius: 10px;
  font-size: 11px; line-height: 1.6; color: #fff;
  background: rgba(0, 0, 0, .58); pointer-events: none;
}

.gallery-state { text-align: center; color: var(--muted); padding: 24px 0; }
.gallery-load-more { text-align: center; color: var(--muted); padding: 16px 0; font-size: 13px; }

/* ============================================================
   7. 兼容旧页（pic.html 在用）—— 不要删
   draw.html 改版后已改用自己的 .dh 顶栏，这里只剩详情页在用。
   加 max-width 是为了和首页/历史页同一个宽度，桌面上不会一个拉满一个居中。
   ============================================================ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  max-width: 720px; margin: 0 auto;
}
.brand strong { font-size: 16px; }
.brand span { color: var(--muted); margin-left: 8px; font-size: 13px; }
.top-link {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 13px; font-weight: 500; text-decoration: none;
}
.lt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.lt-tabs button {
  padding: 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--text); font-family: inherit;
}
.lt-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%);
  max-width: 80vw; padding: 9px 16px; border-radius: 20px;
  background: rgba(0, 0, 0, .78); color: #fff; font-size: 13px;
  z-index: 99; pointer-events: none;
}

/* ============================================================
   7. 底部悬浮菜单（2026-10-19 用户需求，截图样式）
   首页 index.html 专属：5 等分 tabbar，当前页高亮品牌蓝。
   只加在首页——详情页有自己的固定评论条，不叠罗汉。
   ============================================================ */
.tabbar {
  /* 宽屏与 .page（max-width:720px 居中）对齐，窄屏左右留 12px：
     fixed 下 left/right:0 + margin auto + max-width 即水平居中 */
  position: fixed; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  margin: 0 auto;
  width: calc(100% - 24px); max-width: 720px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-radius: 20px;
  box-shadow: 0 4px 22px rgba(15, 23, 42, .16);
  padding: 6px 8px;
}
.tabbar-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 6px 2px;
  text-decoration: none; color: var(--muted); font-size: 11px; line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}
.tabbar-item svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.tabbar-item.is-on { color: var(--brand); font-weight: 600; }
.tabbar-item:active { opacity: .65; }
/* 中间「工具箱」：圆形凸起主按钮（2026-10-19 用户要求突出）。
   注意两项 transform 的分工：
   - 项级 -11px：行高被本项撑高后，把文字拉回与其他四项同一水平线
   - 圆形再 -9px：补偿上移损失，保持圆凸出于菜单条上沿 */
.tabbar-item.tab-mid { transform: translateY(-11px); }
.tabbar-item.tab-mid .tab-mid-ic {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  transform: translateY(-9px);
  background: linear-gradient(140deg, #12d67c, var(--brand));
  box-shadow: 0 6px 14px rgba(8, 198, 106, .42);
  color: #fff;
}
.tabbar-item.tab-mid .tab-mid-ic svg { width: 26px; height: 26px; stroke-width: 1.8; }
.tabbar-item.tab-mid.is-on { font-weight: 600; }
/* 有 tabbar 的页面内容别被压住：底部留出悬浮条高度（含中间凸起项）+ 离底偏移 + 安全区 */
body[data-page="home"] .page,
body[data-page="discover"] .page,
body[data-page="mycmt"] .page { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
/* toast 原来贴底 60px，有 tabbar 后抬到菜单上方 */
body[data-page="home"] .toast,
body[data-page="discover"] .toast,
body[data-page="mycmt"] .toast { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }

/* ============================================================
   8. 我的评论页 mycomments.html
   ============================================================ */
.mycmt-me {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  margin: 12px 12px 0; padding: 10px 12px;
  background: var(--brand-soft); border-radius: var(--radius);
  font-size: 12px; color: var(--muted);
}
.mycmt-me strong { font-size: 14px; color: var(--brand-dark); }
.mycmt-me em { font-style: normal; }
.mycmt-empty { padding: 72px 24px; text-align: center; color: var(--muted); }
.mycmt-empty-ic svg {
  width: 56px; height: 56px; fill: none; stroke: var(--line);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.mycmt-empty p { margin: 12px 0 18px; font-size: 14px; }
.mycmt-go {
  display: inline-block; padding: 9px 26px; border-radius: 20px;
  background: var(--brand); color: #fff; font-size: 14px; text-decoration: none;
}
.mycmt-go:active { background: var(--brand-dark); }
.mycmt-list { margin: 12px 12px 24px; display: flex; flex-direction: column; gap: 10px; }
.mycmt-item {
  display: block; padding: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
}
.mycmt-item:active { border-color: var(--brand); }
.mycmt-item-c { font-size: 14px; line-height: 1.55; word-break: break-all; }
.mycmt-item-m {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin-top: 8px; font-size: 11px; color: var(--muted);
}
.mycmt-pic { color: var(--text); font-weight: 600; }
.mycmt-tag {
  padding: 1px 7px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-dark);
}
.mycmt-more { margin: 0 12px 24px; text-align: center; }
.mycmt-more button {
  padding: 10px 34px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); font-size: 13px; color: var(--text);
  font-family: inherit; cursor: pointer;
}
.mycmt-more button:active { background: var(--bg); }
