/* ============================================================================
 *  模板 F · 澳门大三巴（照 tk5654 复刻版搬）
 *
 *  ★ 参考稿：`桌面\网站复刻\`（Next.js 工程）里复刻好的 tk5654.top ——
 *    `src/components/sites/tk5654/` 下 10 个组件，每个都标了源站实测尺寸/颜色。
 *    对照截图在 `docs/design-references/tk5654/`（source-* / clone-* / final-*）。
 *    素材（球、轮播图、媒体图、页脚图、标题条底图）已拷到 assets/img/tk5654/。
 *
 *  ★ 为什么这里带着整份皮肤：一个模板 id 一份 theme-<id>.css，选了 layout_f
 *    就不会再引别的皮肤 CSS 了，所以皮肤得自己带上（跟 theme-layout_c.css 同理）。
 *
 *  ★★ 基础件（.kj-tab / .qiu-sx / .nav-anchor-item / .to-top …）是**全站共用**的 ——
 *    改它们必须带容器前缀，否则会连带坑别的页面（上一批 layout_e 就栽在这儿）。
 *
 *  ★ 文件结构：
 *      一、配色变量   二、页面宽度与全局   三、SiteHeader  四、Showcase 轮播
 *      五、DrawSection 开奖区   六、玩法卡片   七、底部图
 *      八、FloatingButtons  九、AnnouncementPopup
 * ========================================================================== */

/* ==================== 一、配色变量（绿金）====================
   全部取自复刻版的实测色：主绿 #0aa35e / 选中 tab 渐变 #22c55e→#17a34a /
   标题条金字 #fff6b9 / 表头橙 #f39a00 / 命中红 #e60012 / 两侧浅灰 #e9e9e9。 */

:root {
    --c-brand-rgb:        10 163 94;     /* #0aa35e */
    --c-brand-light-rgb:  34 197 94;     /* #22c55e */
    --c-brand-dark-rgb:   23 163 74;     /* #17a34a */
    --c-brand-soft-rgb:   240 253 244;   /* #f0fdf4 */
    --c-page-rgb:         233 233 233;   /* #e9e9e9 源站两侧那层浅灰 */
    --c-card-rgb:         255 255 255;
    --c-gold-rgb:         255 246 185;   /* #fff6b9 */
    --c-gold-soft-rgb:    255 251 235;
    --c-gold-deep-rgb:    180 83 9;
    --c-danger-rgb:       230 0 18;      /* #e60012 */
}

/* ==================== 二、页面宽度与全局 ====================
   源站是**固定 720px 的桌面列**（`mx-auto w-[720px]`），我们全局那条
   `#app { max-width: 640px }` 是照手机站定的 —— 本模板放宽到 720，
   白底、去掉那道阴影（源站两侧是纯灰、没有投影）。
   ★ 只在本模板生效（带了 .theme-layout_f 前缀，特异性比 index.php 那条高）。 */

.theme-layout_f #app {
    max-width: 720px;
    background: #fff;
    box-shadow: none;
}
.tk-home { background: #e9e9e9; min-height: 100vh; }
.tk-shell { width: 720px; max-width: 100%; margin: 0 auto; overflow: hidden; background: #fff; }

/* ★ App 自带的那两颗浮动按钮（返回首页 / 返回顶部）在本模板下**藏掉** ——
   源站用的是右下角三颗绿色圆按钮（见第九节），两套并存会叠在一起。 */
.theme-layout_f .to-top,
.theme-layout_f .to-home { display: none; }

/* ==================== 三、SiteHeader ==================== */
/* 白底、39px、底部 1px 分隔线、绿色居中站名（源站 h-[39px] text-[16px] text-[#00894f]）。
   ★ 不吸顶 —— 吸顶的只有下面那条锚点导航，两个都钉 top:0 会互相盖住。 */
.tk-header {
    height: 39px;
    padding: 8px 8px 6px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}
.tk-header h1 { font-size: 16px; font-weight: 700; line-height: 24px; color: #00894f; }

/* ==================== 四、Showcase 轮播 ====================
   720×211.19，图片 object-fit: fill（源站就是这么拉的，不裁剪）、5 张循环。
   ★★ 周期必须是「张数 × 1.5 秒」—— 这里 5 张 = **7.5 秒**，每张占 1/5 = 20% 的时间。
      写成固定 12 秒（照 8 张的槽位算）的话，5 张只铺满 7.5 秒，
      **剩下 4.5 秒一张都不显示**（实测：所有 slide 的 opacity 全是 0，中间会空一段）。
      ★ 张数一改这里必须跟着改两处：下面的百分比、和 animation 的时长 ——
        CSS 关键帧里的百分比不能动态算（不支持 calc / var）。 */

.tk-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 720 / 211.19;
    overflow: hidden;
    background: #fff;
}
.tk-slide { position: absolute; inset: 0; opacity: 0; }
.tk-slide img { display: block; width: 100%; height: 100%; object-fit: fill; }
.tk-slideshow:not(.tk-rotating) .tk-slide { opacity: 1; }

@keyframes tk-rotate {
    0%, 20%      { opacity: 1; }
    20.01%, 100% { opacity: 0; }
}
.tk-rotating .tk-slide { animation: tk-rotate 7.5s infinite; }
.tk-rotating .tk-slide-1 { animation-delay: 0s; }
.tk-rotating .tk-slide-2 { animation-delay: 1.5s; }
.tk-rotating .tk-slide-3 { animation-delay: 3s; }
.tk-rotating .tk-slide-4 { animation-delay: 4.5s; }
.tk-rotating .tk-slide-5 { animation-delay: 6s; }
.tk-rotating .tk-slide-6 { animation-delay: 7.5s; }
.tk-rotating .tk-slide-7 { animation-delay: 9s; }
.tk-rotating .tk-slide-8 { animation-delay: 10.5s; }

/* ==================== 五、DrawSection 开奖区 ====================
   白卡片 + 圆角 18px + 内边距 10px + 一层柔和阴影（源站
   `my-3 rounded-[18px] bg-white p-[10px] shadow-[0_8px_24px_rgba(15,23,42,0.08)]`）。 */

.tk-draw {
    margin: 12px 0;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(15 23 42 / .08);
}

/* ---- 彩种 Tab ----
   一排 60px 高、圆角 14px、浅灰底 + 1px 边框；选中的那块是绿渐变。
   ★★ 类名是 kj-tabs / kj-tab（基础样式挂在它们上面），必须带 .tk-draw 前缀覆盖。
   ★★ .kj-tab 的 min-width: 0 不能少：flex item 默认 min-width: auto（不能比内容窄），
      彩种名里带回车的那条（库里第一个叫「新新彩 10点33开奖」）会把那格撑宽、
      其余被挤、日期溢出格子连成一串。flex:1 只保证"能均分"，min-width:0 才让它"真的均分"。 */
.tk-draw .kj-tabs {
    display: flex;
    height: 60px;
    overflow: hidden;
    border: 1px solid #cfd7e4;
    border-radius: 14px;
    background: #f6f7f9;
}
.tk-draw .kj-tab {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-bottom: 0;
    background: transparent;
    color: #111827;
    font-size: 16px;
    line-height: 1.25;
    /* ★ 不能沿用基础样式的 white-space: pre-line —— 彩种名允许换行，
       pre-line 会让它占两行、再加日期，60px 的格子里塞三行全挤一起。 */
    white-space: nowrap;
}
.tk-draw .kj-tab.active {
    background: linear-gradient(to bottom, rgb(var(--c-brand-light-rgb)), rgb(var(--c-brand-dark-rgb)));
    color: #fff;
    font-weight: 400;
}
.tk-draw .kj-tab-name,
.tk-draw .kj-tab-date {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tk-draw .kj-tab-date { font-size: 12px; font-weight: 800; color: #6b7280; }
.tk-draw .kj-tab.active .kj-tab-date { color: #fff; }

/* ---- 期号 / 倒计时 / 历史记录：一行三栏 ---- */
.tk-draw-body { margin-top: 10px; padding: 14px 16px 8px; }
.tk-draw-meta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0 16px;
}
.tk-issue   { font-size: 16px; font-weight: 900; color: #111827; white-space: nowrap; }
.tk-count   { font-size: 16px; color: #111827; }
.tk-count b { font-weight: 700; color: rgb(var(--c-danger-rgb)); }
.tk-history { font-size: 16px; color: #0b9d3e; white-space: nowrap; text-decoration: none; }

/* ---- 球行 ----
   ★★ 球用**我们自己的那套**（index.php 基础样式里的 .qiu / .qiu-inner / .qiu-gloss ——
      彩环 + 白内盘 + 右下高光，34px）。用户 2026-10-08 明确说「开奖球还是使用我们的就可以了」。
      ★ 曾经照搬过源站那三张 64px PNG 彩球素材，被用户否了。那三张图还留在
        assets/img/tk5654/ball-*.png（现在没有任何地方引用），要用再捡回来。
   ★ 这里只给球行加个外边距 —— 球本身一个字节都没动，所以逐球揭示、
      「正在搅珠同步中」占位球、未到点回显上一期号码，这些行为全都照旧。
   ★★ 球径要**放大一档**：`--qiu` 默认 34px 是照 640px 宽定的，而本模板放宽到 720
      （源站在 720 下用的是 64px 的球）—— 用 34px 的话 7 个球只占不到一半宽度，
      两边全是留白，看着很小气。48px + 默认间距，比例接近源站。
   ★★★ **派生变量必须在这儿一起重写**，光改 `--qiu` 是不够的 ——
      CSS 的自定义属性在**定义它的那个元素上**就把 `var()` 替换掉了：
      `:root` 里那句 `--qiu-ring: calc(var(--qiu) * 0.114)` 当场就把 `--qiu` 换成了 34px，
      再把 `calc(34px * 0.114)` 这个**文本**继承下来 —— 后面在别处改 `--qiu`，
      它一点都不受影响。表现就是：**球胀到 48px，而环厚/白盘/字号还按 34px 算**，
      于是白盘几乎占满整个球、环细得像根线（实测量到：球 48×48、白盘 40×40、
      环厚变量还是 calc(34px * 0.114)）。
      所以：**改球径 = `--qiu` 和它那四个派生值一起改**（值都照 :root 里的比例抄）。 */
.theme-layout_f {
    --qiu:            48px;
    --qiu-ring:       calc(var(--qiu) * 0.114);   /* 环厚（参考稿 16/140）*/
    --qiu-dx:         calc(var(--qiu) * -0.049);  /* 白盘偏心：朝左上 */
    --qiu-dy:         calc(var(--qiu) * -0.038);
    --qiu-num:        calc(var(--qiu) * 0.475);   /* 号码字号 */
}
.tk-balls { margin-top: 18px; margin-bottom: 10px; }

.tk-foot {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: rgb(var(--c-danger-rgb));
}

/* ==================== 六、玩法卡片 ====================
   照 TextTemplateCard.tsx：卡片 708px 宽（源站 w-[708px]，我们让它撑满容器）、
   标题条 + 描述 + 内容 + 推广行。 */

.tk-card { margin-bottom: 12px; padding: 6px 0 14px; background: #fff; }

/* ---- 标题条 ----
   ★★ 类名里必须留 template-title-bar —— index.php 那段「后台传的牌匾横幅」
      只认 .wf-biaoti / .template-title-bar / .wanfa-head 三个，换名字就静默失效。
      那条规则（特异性更高）会把底图换成后台传的，用户能自己改横幅。
   ★ 这里是**没传横幅时**的默认样子：源站那张 template2.webp 平铺。 */
.template-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 44px;
    padding: 0 85px;
    margin: 0 6px 8px;
    position: relative;
    background-image: url(../img/tk5654/title.webp);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-size: 14px;
    font-weight: 700;
}
.template-title-bar > span,
.template-title-bar > strong {
    color: rgb(var(--c-gold-rgb));
    white-space: pre-line;
}
.tk-titlebar-link { cursor: pointer; }
.tk-back {
    position: absolute;
    left: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
}

/* ---- 官网网址行 ---- */
.tk-domain {
    padding: 0 8px 6px;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: #0076ff;
    word-break: break-all;
}

/* ---- 描述（我们的分组定义 play.tip）---- */
.tk-desc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    padding: 10px 8px 6px;
    font-size: 16px;
    line-height: 1.55;
    color: #222;
}
.tk-desc b { color: #287bff; font-weight: 700; }

/* ---- 命中 / 准错 ---- */
.tk-hit { background: #fff100; color: #e60012; font-weight: 900; }
.tk-ok  { color: #0aa35e; font-weight: 900; }
.tk-bad { color: #e60012; font-weight: 900; }

/* ---- ① 三列表（源站的橙头表格）---- */
.tk-tablewrap { width: 100%; overflow-x: auto; }
.tk-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.tk-table th {
    border: 1px solid #e5e5e5;
    background: #f39a00;
    padding: 5px 2px;
    text-align: center;
    font-weight: 700;
    color: #fff;
}
.tk-table td {
    border: 1px solid #e5e5e5;
    padding: 5px 2px;
    text-align: center;
    font-weight: 700;
    word-break: break-word;
}
.tk-table .tk-col-issue  { width: 22%; color: #ec09d9; white-space: nowrap; }
.tk-table .tk-col-result { width: 26%; color: #1f75ff; white-space: nowrap; }
.tk-table .tk-col-pred   { color: #ff2a2a; }

/* ---- ② 一行一条（源站那种 2px 黑框 + 5px 圆角的行）---- */
.tk-lines { display: flex; flex-direction: column; gap: 4px; }
.tk-line {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 0 6px;
    min-height: 28.8px;
    box-sizing: border-box;
    padding: 2px 8px;
    border: 2px solid #222;
    border-radius: 5px;
    background: #fefefe;
    font-size: 15px;
}
.tk-line-issue  { font-weight: 700; color: #1f75ff; white-space: nowrap; }
.tk-line-pred   { text-align: center; font-weight: 700; color: #ff2a2a; word-break: break-word; }
.tk-line-result { text-align: right; font-weight: 700; color: #1f75ff; white-space: nowrap; }

/* ---- ③ 每期一块 ---- */
.tk-blocks { display: flex; flex-direction: column; gap: 8px; }
.tk-block { border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; }
.tk-block-issue {
    background: rgb(var(--c-brand-rgb));
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
}
.tk-block-pred   { padding: 6px 10px; font-size: 15px; font-weight: 700; color: #ff2a2a; word-break: break-word; }
.tk-block-result { padding: 4px 10px 6px; border-top: 1px dashed #e5e5e5; font-size: 14px; color: #1f75ff; }

/* ---- ④ 多列杀项 ---- */
.tk-multis { display: flex; flex-direction: column; gap: 8px; }
.tk-mblock { border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; }
.tk-mblock-issue {
    background: rgb(var(--c-brand-rgb));
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
}
.tk-mblock-row { display: flex; gap: 4px; padding: 3px 10px; font-size: 14px; border-bottom: 1px solid #f5f5f5; }
.tk-mblock-name { color: #6b7280; white-space: nowrap; }
.tk-mblock-pred { color: #ff2a2a; font-weight: 700; word-break: break-word; }
.tk-mblock-result { padding: 5px 10px 7px; border-top: 1px dashed #e5e5e5; font-size: 14px; color: #1f75ff; }

/* ---- ⑤ 整块图片 ---- */
.tk-image img { display: block; width: 100%; height: auto; }
.tk-image-empty {
    margin: 6px;
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ---- ⑥ 分档阶梯：布局沿用 index.php 的 .wf-ladder-*，只微调配色 ---- */
.tk-ladder .wf-ladder-period { border-color: #e5e5e5; border-radius: 6px; }
.tk-ladder .wf-ladder-row    { border-bottom-color: #f5f5f5; }

/* ---- 锚点导航（吸顶，源站没有这条，是为我们的 38 个玩法加的）---- */
.tk-nav { background: rgb(255 255 255 / .96); border-bottom: 1px solid #e5e5e5; }
.tk-nav .nav-anchor-item { font-size: 11px; padding: 3px 8px; background: #f1f5f9; color: #475569; }
.tk-nav .nav-anchor-item.active { background: rgb(var(--c-brand-rgb)); color: #fff; }
.tk-navgroup {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1px 8px;
    border-bottom: 1px solid #f1f5f9;
}
.tk-navgroup:last-child { border-bottom: 0; }
.tk-navgroup-name {
    flex-shrink: 0;
    border-radius: 3px;
    background: rgb(var(--c-brand-rgb));
    padding: 0 5px;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
}
.tk-navlist {
    display: flex;
    flex: 1;
    min-width: 0;
    /* ★★ 2026-10-18 第 182 批：**自动换行，别再横向溢出** ✗→✓
       原来 `flex-wrap: nowrap` + `overflow-x: auto` + no-scrollbar ——
       手机上看不出能横滑，右边那截按钮就是"消失"了（用户截图：
       生肖专区最后的「必火爆③」、绝杀专区最后两个只露半截）。
       换行之后每组最多占两三行，全部看得见；嫌高的点右下角「收起导航」✓ */
    flex-wrap: wrap;
    gap: 4px;
    overflow-x: visible;
    padding: 1px 0;      /* 覆盖基础样式 .nav-anchor ul 那圈 6px 上下内边距 */
}

.tk-texttemplates { padding-top: 12px; }
.tk-loading { padding: 40px 0; text-align: center; font-size: 14px; color: #94a3b8; }

/* ---- 媒体图组（4 张整宽图）---- */
.tk-media img { display: block; width: 100%; height: auto; }

/* ==================== 七、底部图 ==================== */
.tk-bottom img { display: block; width: 100%; height: auto; }

/* ==================== 八、FloatingButtons ====================
   源站是右下角三颗 48px 绿色圆按钮（#20c463）：↑顶部 / ☰导航 / 📣公告，
   后两颗点开是白色面板。
   ★ 展开用 <details> 做（纯 HTML）—— 模板覆写里加不了组件状态。 */

.tk-floaters {
    position: fixed;
    right: 16px;
    bottom: 22px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tk-floater {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #20c463;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 4px 14px rgb(0 0 0 / .18);
    cursor: pointer;
    list-style: none;          /* 去掉 summary 那个三角 */
}
.tk-floater::-webkit-details-marker { display: none; }
.tk-floater strong { display: block; font-size: 14px; line-height: 1; }
.tk-floater span   { display: block; line-height: 1; }

.tk-floater-wrap { position: relative; }
.tk-floater-panel {
    position: absolute;
    right: 58px;
    bottom: 0;
    max-height: 260px;
    width: 145px;
    overflow: auto;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 18px rgb(0 0 0 / .18);
}
.tk-floater-panel a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #222;
    text-decoration: none;
}
.tk-floater-panel a:hover { background: #f2f4f7; }
.tk-floater-panel > div { padding: 8px 12px; font-size: 13px; color: #222; }

/* ==================== 九、AnnouncementPopup ====================
   照 AnnouncementPopup.tsx：蓝色主题（#1d4ed8 头 / #eff6ff 底 / 3px 蓝边）、
   加载即弹，点遮罩或右上角 × 或底部按钮都能关。
   ★ 用 checkbox 开合：模板里加不了组件状态，details 又只能有一个 summary，
     所以用 input[type=checkbox] + label 这套纯 HTML 的做法 ——
     遮罩和按钮都是 label，点哪个都能关。 */

.tk-popup-chk { display: none; }
.tk-popup-chk:not(:checked) + .tk-popup { display: none; }

.tk-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tk-popup-mask { position: absolute; inset: 0; background: rgb(0 0 0 / .58); cursor: pointer; }

.tk-popup-box {
    position: relative;
    width: 620px;
    max-width: 100%;
    max-height: 90vh;
    overflow: auto;
    border: 3px solid #1d4ed8;
    border-radius: 8px;
    background: #eff6ff;
    box-shadow: 0 24px 70px rgb(0 0 0 / .38);
}
.tk-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: #1d4ed8;
}
.tk-popup-head strong { font-size: 21px; font-weight: 700; color: #fff; }
.tk-popup-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgb(255 255 255 / .24);
    font-size: 28px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}
.tk-popup-body { padding: 14px; display: grid; gap: 12px; }
.tk-popup-card {
    border: 1px solid #60a5fa;
    border-radius: 8px;
    background: #fff;
    padding: 16px 12px;
}
.tk-popup-card-title { font-size: 16px; font-weight: 900; color: #1d4ed8; text-align: center; }
.tk-popup-card-body  {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    /* ★ 2026-10-18 第 183 批：**保留公告里的换行**（时间 / 玩法 / 期号·生肖·号码 分多行）
       不加这句的话 `\n` 会被 HTML 折叠成空格，所有内容挤成一行（用户：
       「这个弹窗不好辨别玩法和内容啊」）✓ */
    white-space: pre-line;
    line-height: 1.75;
    /* ★ 2026-10-18 第 184 批：**内容自动居中**（用户：「自动剧中啊」）——
       标题和正文一起居中，两边留白对称 ✓ */
    text-align: center;
}
.tk-popup-foot { padding: 0 0 16px; text-align: center; }
.tk-popup-btn {
    display: inline-block;
    border-radius: 8px;
    background: #2563eb;
    padding: 10px 34px;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
}

/* ======================================================================
   公告弹窗 · 圆润胶囊（2026-10-09 加）
   外壳：全圆角 + 粗描边 + 胶囊标题 + 圆形关闭钮。
   内容：每行信息各包成一颗胶囊。
   ====================================================================== */
.gg-box {
    background: #f2fdf6; border: 3px solid #0aa35e; border-radius: 26px;
    box-shadow: 0 8px 24px rgba(10,163,94,.22);
}
.gg-head { background: transparent; padding: 18px 22px 0; align-items: flex-start; }
.gg-title {
    background: #0aa35e; color: #fff; font-size: 15px; font-weight: 700;
    padding: 7px 20px; border-radius: 999px; letter-spacing: 1px;
}
.gg-close {
    color: #0aa35e; border: 2px solid #0aa35e; border-radius: 999px;
    width: 30px; height: 30px; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
}
.gg-yellow {
    background: #dcfce7; border: 0; border-radius: 18px;
    margin: 14px 20px 0; padding: 14px 18px; color: #065f46;
}
.gg-white  { background: transparent; padding: 6px 22px 14px; color: #166534; }
.gg-warn   { background: #fff; border: 2px dashed #86efac; border-radius: 16px; color: #15803d; }
.gg-footer { color: #6ee7b7; }
/* 内容排布：每行包一颗胶囊 */
.gg-ln { text-align: left; }
.gg-white { padding-top: 16px; }
.gg-white .gg-ln {
    background: #fff; border: 2px solid #86efac; border-radius: 999px;
    padding: 8px 16px; margin-bottom: 9px; text-align: center; font-size: 13px;
}
.gg-white .gg-ln:last-child { margin-bottom: 0; }

/* 时间和网址前面那两个图标前缀是**绿皮那套的默认**（写在 index.php 里）——
   本模板不要，关掉。 */
#ggDrawTime::before, #ggOfficial::before { content: none; }
/* ── 斜切几何（打样第⑤款）：平行四边形，每块一个双色渐变 ────────────── */
.theme-layout_f .wl-links { gap: 11px; margin: 8px; padding: 2px 0; }
.theme-layout_f .wl-link { flex: 1 1 calc(33.33% - 11px); min-width: 100px; padding: 11px 16px;
    justify-content: center; border-radius: 0; color: #fff; font-size: 14px; font-weight: 800;
    letter-spacing: .05em; background: linear-gradient(135deg, #6366f1, #a855f7);
    clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.theme-layout_f .wl-link:nth-child(2) { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.theme-layout_f .wl-link:nth-child(3) { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.theme-layout_f .wl-link:nth-child(4) { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.theme-layout_f .wl-link:nth-child(5) { background: linear-gradient(135deg, #10b981, #22d3ee); }
.theme-layout_f .wl-link__ico { display: none; }
.theme-layout_f .wl-link:hover { filter: brightness(1.12); transform: translateY(-2px); }
