/* =========================================================
   YKDH Toolbox - 科技感样式
   作用域：.ykdh-tb-* / #ykdh-toolbox-panel
   ========================================================= */

/* ---------- 头部入口 ---------- */
.ykdh-tb-entry {
    display: flex;
    align-items: center;
    margin: 0 6px;
}

.ykdh-tb-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    color: #cbe9ff;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(0, 229, 255, .16), rgba(122, 84, 255, .16));
    border: 1px solid rgba(0, 229, 255, .35);
    box-shadow: 0 0 0 rgba(0, 229, 255, 0);
    transition: all .25s ease;
    overflow: hidden;
    white-space: nowrap;
}
.ykdh-tb-trigger::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
}
.ykdh-tb-trigger:hover {
    color: #fff;
    border-color: rgba(0, 229, 255, .9);
    box-shadow: 0 0 18px rgba(0, 229, 255, .45), inset 0 0 12px rgba(0, 229, 255, .2);
    transform: translateY(-1px);
}
.ykdh-tb-trigger:hover::after { left: 120%; }
.ykdh-tb-trigger-ico { display: inline-flex; }
.ykdh-tb-trigger-ico svg { width: 18px; height: 18px; }

/* ---------- 首页内容切换 ---------- */
#ykdh-toolbox-panel { display: none; }

body.ykdh-tb-on #ykdh-toolbox-panel { display: block; }

/* 打开工具箱时隐藏首页原有内容（左侧栏 + 搜索hero + 主内容区）
   1) .aside-body 是 position:fixed 的兄弟节点，必须单独隐藏，
      否则它会以 z-index:99 浮在工具箱上面；
   2) .header-hero 带 margin-top:-80px / padding-top:80px（回顶对齐固定顶栏），
      隐藏它可避免与工具箱面板重叠 80px 并消除空白带。 */
body.ykdh-tb-on .home-container,
body.ykdh-tb-on .search-container,
body.ykdh-tb-on .header-hero,
body.ykdh-tb-on .ioui-aside,
body.ykdh-tb-on #layout_aside,
body.ykdh-tb-on .aside-body { display: none !important; }

/* 侧栏隐藏后，去掉主题给侧栏预留的左边距（页脚等会因此左移 233px） */
@media screen and (min-width: 768px) {
    body.ykdh-tb-on.aside-show .home-content > *,
    body.ykdh-tb-on.aside-show .apd-body,
    body.ykdh-tb-on.aside-show .ioui-main { margin-left: 0 !important; }
}

/* ---------- 面板容器 ---------- */
.ykdh-tb-panel {
    max-width: var(--home-max-width, 1400px);
    margin: 26px auto 40px;
    padding: 0 16px;
    box-sizing: border-box;
    animation: ykdhTbFade .35s ease both;
}
@keyframes ykdhTbFade {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ykdh-tb-inner {
    position: relative;
    border-radius: 18px;
    padding: 26px 26px 30px;
    color: #dbeafe;
    background:
        radial-gradient(900px 340px at 8% -20%, rgba(0, 229, 255, .12), transparent 60%),
        radial-gradient(700px 300px at 100% 0%, rgba(122, 84, 255, .12), transparent 60%),
        linear-gradient(160deg, #0b1322 0%, #0a0f1a 55%, #070c15 100%);
    border: 1px solid rgba(0, 229, 255, .18);
    box-shadow: inset 0 0 80px rgba(0, 229, 255, .05), 0 22px 60px rgba(0, 0, 0, .45);
    overflow: hidden;
}
/* 网格底纹 */
.ykdh-tb-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, .06) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
    pointer-events: none;
    opacity: .5;
}

/* ---------- 面板头部 ---------- */
.ykdh-tb-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(0, 229, 255, .14);
}
.ykdh-tb-head-left { display: flex; align-items: center; gap: 14px; }
.ykdh-tb-mark {
    width: 10px; height: 34px;
    border-radius: 6px;
    background: linear-gradient(180deg, #00e5ff, #7a54ff);
    box-shadow: 0 0 16px rgba(0, 229, 255, .8);
}
.ykdh-tb-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #7ef0ff, #a98bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ykdh-tb-sub {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(126, 240, 255, .55);
    margin-top: 2px;
}
.ykdh-tb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    color: #9fe8ff;
    text-decoration: none;
    background: rgba(0, 229, 255, .07);
    border: 1px solid rgba(0, 229, 255, .28);
    transition: all .22s ease;
    white-space: nowrap;
}
.ykdh-tb-back:hover {
    color: #fff;
    border-color: rgba(0, 229, 255, .8);
    box-shadow: 0 0 16px rgba(0, 229, 255, .35);
}
.ykdh-tb-back-ico { font-size: 15px; line-height: 1; }

/* ---------- 工具网格 ---------- */
.ykdh-tb-body { position: relative; z-index: 1; }

.ykdh-tb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.ykdh-tb-card {
    position: relative;
    display: block;
    padding: 20px 18px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: #d7e7ff;
    background: linear-gradient(160deg, rgba(19, 30, 52, .92), rgba(12, 19, 33, .92));
    border: 1px solid rgba(0, 229, 255, .16);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    overflow: hidden;
}
.ykdh-tb-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 229, 255, .6), rgba(122, 84, 255, .6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
}
.ykdh-tb-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, .45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 26px rgba(0, 229, 255, .18);
}
.ykdh-tb-card:hover::before { opacity: 1; }

.ykdh-tb-card-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    color: #7ef0ff;
    background: radial-gradient(circle at 30% 20%, rgba(0, 229, 255, .25), rgba(0, 229, 255, .05));
    border: 1px solid rgba(0, 229, 255, .3);
    box-shadow: inset 0 0 14px rgba(0, 229, 255, .2);
    margin-bottom: 12px;
}
.ykdh-tb-card-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #eaf4ff;
    margin-bottom: 6px;
}
.ykdh-tb-card-desc {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(190, 214, 245, .62);
    min-height: 34px;
}
.ykdh-tb-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .5px;
}
.ykdh-tb-badge.is-free {
    color: #7dffc4;
    background: rgba(0, 255, 170, .1);
    border: 1px solid rgba(0, 255, 170, .35);
}
.ykdh-tb-badge.is-paid {
    color: #ffd479;
    background: rgba(255, 190, 60, .1);
    border: 1px solid rgba(255, 190, 60, .35);
}

/* ---------- 工具舞台 ---------- */
.ykdh-tb-stage { animation: ykdhTbFade .3s ease both; }

.ykdh-tb-tool {
    border-radius: 14px;
    padding: 22px;
    background: linear-gradient(160deg, rgba(16, 26, 46, .9), rgba(10, 16, 28, .9));
    border: 1px solid rgba(0, 229, 255, .16);
}
.ykdh-tb-tool-head h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #eaf4ff;
    letter-spacing: 1px;
}
.ykdh-tb-tool-head p {
    margin: 0 0 18px;
    font-size: 13px;
    color: rgba(190, 214, 245, .6);
}

/* 表单 */
.ykdh-tb-field {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ykdh-tb-input {
    flex: 1 1 260px;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #eaf4ff;
    background: rgba(6, 12, 22, .85);
    border: 1px solid rgba(0, 229, 255, .25);
    outline: none;
    transition: all .22s ease;
    box-sizing: border-box;
}
.ykdh-tb-input::placeholder { color: rgba(150, 180, 220, .4); }
.ykdh-tb-input:focus {
    border-color: rgba(0, 229, 255, .85);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, .15), 0 0 20px rgba(0, 229, 255, .25);
}
.ykdh-tb-btn {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 30px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #04121c;
    cursor: pointer;
    background: linear-gradient(135deg, #35e6ff, #7a9bff);
    box-shadow: 0 8px 22px rgba(0, 229, 255, .28);
    transition: all .22s ease;
}
.ykdh-tb-btn:hover { filter: brightness(1.08); box-shadow: 0 10px 28px rgba(0, 229, 255, .45); transform: translateY(-1px); }
.ykdh-tb-btn.is-loading { opacity: .6; pointer-events: none; }
.ykdh-tb-btn.ghost {
    color: #9fe8ff;
    background: rgba(0, 229, 255, .08);
    border: 1px solid rgba(0, 229, 255, .3);
    box-shadow: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* 结果 */
.ykdh-tb-result { margin-top: 20px; }
.ykdh-tb-cardresult {
    border-radius: 12px;
    padding: 16px 18px;
    background: rgba(6, 12, 22, .7);
    border: 1px solid rgba(0, 229, 255, .2);
    box-shadow: inset 0 0 30px rgba(0, 229, 255, .05);
}
.ykdh-tb-cardresult-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7ef0ff;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 229, 255, .2);
}
.ykdh-tb-cardresult-head .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 10px #00e5ff;
}
.ykdh-tb-row {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.ykdh-tb-row:last-child { border-bottom: 0; }
.ykdh-tb-k { flex: 0 0 96px; color: rgba(160, 190, 230, .65); }
.ykdh-tb-v { flex: 1 1 auto; color: #eaf4ff; word-break: break-all; }

/* QQ 头像（结果里的图片值，直接渲染成圆形头像） */
.ykdh-tb-avatar {
    display: inline-block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, .45);
    box-shadow: 0 0 12px rgba(0, 229, 255, .25);
    vertical-align: middle;
    background: rgba(255, 255, 255, .06);
    object-fit: cover;
}

/* 状态 */
.ykdh-tb-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 22px 4px;
    color: #9fe8ff;
    font-size: 14px;
}
.ykdh-tb-loading span {
    width: 8px; height: 8px; border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 10px #00e5ff;
    animation: ykdhTbPulse 1s infinite ease-in-out;
}
.ykdh-tb-loading span:nth-child(2) { animation-delay: .15s; }
.ykdh-tb-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes ykdhTbPulse {
    0%, 100% { transform: scale(.6); opacity: .4; }
    50%      { transform: scale(1);  opacity: 1; }
}
.ykdh-tb-err {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #ffb4b4;
    background: rgba(255, 70, 70, .08);
    border: 1px solid rgba(255, 90, 90, .3);
}
.ykdh-tb-actions { margin-top: 14px; }
.ykdh-tb-empty {
    padding: 30px;
    text-align: center;
    color: rgba(160, 190, 230, .6);
    font-size: 14px;
}
.ykdh-tb-empty code {
    color: #7ef0ff;
    background: rgba(0, 229, 255, .08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
    .ykdh-tb-trigger { padding: 7px 10px; }
    .ykdh-tb-trigger-txt { display: none; }
    .ykdh-tb-panel { margin-top: 16px; padding: 0 12px; }
    .ykdh-tb-inner { padding: 18px 16px 22px; border-radius: 14px; }
    .ykdh-tb-title { font-size: 18px; }
    .ykdh-tb-sub { display: none; }
    .ykdh-tb-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .ykdh-tb-card { padding: 16px 14px; }
    .ykdh-tb-card-desc { display: none; }
    .ykdh-tb-btn { flex: 1 1 100%; }
    .ykdh-tb-k { flex-basis: 78px; }
}

/* =========================================================
   工具箱顶部 —— 科技感扫描特效（map-box）
   以下 .map-box/.map-container/.api-label2/.bottom-label/.fullscreen-btn*
   取自 apihz 原版样式（down.erguanmingmin.com/api/css/user.css），
   仅按工具箱横幅尺寸微调了高度与定位。
   ========================================================= */
.map-box {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

#container2.map-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #04080f;
    border: 1px solid rgba(0, 229, 255, .25);
    box-shadow: inset 0 0 70px rgba(0, 229, 255, .07);
}

/* ---- 扫描容器 ---- */
.tk-scan-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    --tk-scan-duration: 3.5s;
    --tk-scan-bar-width: 140px;
}

.tk-scan-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(560px 200px at 18% -10%, rgba(0, 229, 255, .18), transparent 62%),
        radial-gradient(620px 240px at 88% 110%, rgba(122, 84, 255, .18), transparent 62%),
        linear-gradient(160deg, #061020 0%, #04070e 72%);
}

.tk-scan-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, .16) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: .5;
}

.tk-scan-grid-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 229, 255, .07) 0 1px, transparent 1px 4px);
    animation: tkScanOverlay 6s linear infinite;
    opacity: .6;
}
@keyframes tkScanOverlay {
    from { background-position: 0 0; }
    to   { background-position: 0 64px; }
}

.tk-scan-image-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tk-scan-image-wrapper img {
    max-height: 76%;
    max-width: 72%;
    opacity: .95;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, .45));
}

/* ---- 扫描条 / 光晕 / 激活区 ---- */
.tk-scan-active-area,
.tk-scan-bar,
.tk-scan-bar-glow-left,
.tk-scan-bar-glow-right {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--tk-scan-bar-width);
    animation: tkScanMove var(--tk-scan-duration) linear infinite;
    pointer-events: none;
}
.tk-scan-active-area {
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .10), transparent);
}
.tk-scan-bar-glow-left  { z-index: 2; box-shadow: -46px 0 64px rgba(0, 229, 255, .28); }
.tk-scan-bar-glow-right { z-index: 2; box-shadow:  46px 0 64px rgba(0, 229, 255, .28); }

.tk-scan-bar {
    z-index: 3;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 229, 255, .26) 42%,
        rgba(190, 245, 255, .55) 50%,
        rgba(0, 229, 255, .26) 58%,
        transparent 100%);
}
@keyframes tkScanMove {
    0%   { left: calc(-1.6 * var(--tk-scan-bar-width)); }
    100% { left: 100%; }
}

.tk-scan-scanline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: rgba(210, 250, 255, .9);
    box-shadow: 0 0 14px rgba(0, 229, 255, .95);
}
.tk-scan-bar-edge-top,
.tk-scan-bar-edge-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 229, 255, .85);
    box-shadow: 0 0 12px rgba(0, 229, 255, .85);
}
.tk-scan-bar-edge-top { top: 0; }
.tk-scan-bar-edge-bottom { bottom: 0; }
.tk-scan-bar-edge-left,
.tk-scan-bar-edge-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 229, 255, .7);
    box-shadow: 0 0 12px rgba(0, 229, 255, .8);
}
.tk-scan-bar-edge-left { left: 0; }
.tk-scan-bar-edge-right { right: 0; }

.tk-scan-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 1px solid rgba(0, 229, 255, .75);
    border-radius: 50%;
    animation: tkScanRipple calc(var(--tk-scan-duration) / 2) ease-out infinite;
}
@keyframes tkScanRipple {
    0%   { transform: scale(.4); opacity: .9; }
    100% { transform: scale(3.2); opacity: 0; }
}

.tk-scan-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #9ff3ff;
    box-shadow: 0 0 8px #00e5ff;
    animation: tkScanParticle 2.4s ease-in-out infinite;
}
@keyframes tkScanParticle {
    0%, 100% { opacity: .2; transform: translateY(0) scale(.8); }
    50%      { opacity: 1;  transform: translateY(-12px) scale(1.25); }
}

.tk-scan-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
}
.tk-scan-crosshair::before,
.tk-scan-crosshair::after {
    content: "";
    position: absolute;
    background: rgba(210, 250, 255, .85);
    box-shadow: 0 0 8px rgba(0, 229, 255, .85);
}
.tk-scan-crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.tk-scan-crosshair::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }

/* ---- 四角装饰 ---- */
.tk-scan-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    z-index: 6;
    pointer-events: none;
}
.tk-scan-corner-tl { top: 10px; left: 10px;  border-top: 2px solid rgba(0, 229, 255, .9); border-left: 2px solid rgba(0, 229, 255, .9); }
.tk-scan-corner-tr { top: 10px; right: 10px; border-top: 2px solid rgba(0, 229, 255, .9); border-right: 2px solid rgba(0, 229, 255, .9); }
.tk-scan-corner-bl { bottom: 10px; left: 10px;  border-bottom: 2px solid rgba(0, 229, 255, .9); border-left: 2px solid rgba(0, 229, 255, .9); }
.tk-scan-corner-br { bottom: 10px; right: 10px; border-bottom: 2px solid rgba(0, 229, 255, .9); border-right: 2px solid rgba(0, 229, 255, .9); }
.tk-scan-corner-h, .tk-scan-corner-v { display: none; }

/* ---- 特效关闭 ---- */
.tk-scan-container.is-off .tk-scan-bar,
.tk-scan-container.is-off .tk-scan-bar-glow-left,
.tk-scan-container.is-off .tk-scan-bar-glow-right,
.tk-scan-container.is-off .tk-scan-active-area,
.tk-scan-container.is-off .tk-scan-ripple,
.tk-scan-container.is-off .tk-scan-particle,
.tk-scan-container.is-off .tk-scan-crosshair,
.tk-scan-container.is-off .tk-scan-grid-overlay { display: none !important; }

/* ---- 文案（原版 apihz 样式） ---- */
.api-label2 {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 15px;
    color: #fff;
    background: rgba(89, 89, 89, 0);
    padding: 10px 25px;
    border-radius: 0;
    z-index: 999;
    backdrop-filter: blur(4px);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, .2);
    white-space: nowrap;
}
.bottom-label {
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 52%;
    font-size: 14px;
    color: #fff;
    background: rgba(89, 89, 89, 0);
    padding: 10px 20px;
    border-radius: 0;
    z-index: 999;
    backdrop-filter: blur(4px);
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, .2);
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- 按钮（原版 apihz 样式） ---- */
.fullscreen-btn,
.fullscreen-btn2,
.fullscreen-btn3 {
    position: absolute;
    font-size: 15px;
    color: #fff;
    background: rgba(89, 89, 89, 0);
    padding: 10px 25px;
    border-radius: 0;
    z-index: 1001;
    backdrop-filter: blur(4px);
    cursor: pointer;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, .2);
    transition: background .2s, transform .2s, box-shadow .2s;
}
.fullscreen-btn:hover,
.fullscreen-btn2:hover,
.fullscreen-btn3:hover {
    background: rgba(0, 0, 0, .85);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.fullscreen-btn  { right: 25px; bottom: 15px; }   /* 全屏 */
.fullscreen-btn3 { left: 10px;  top: 15px; }      /* 特效开 */
.fullscreen-btn2 { left: 10px;  top: 60px; }      /* 特效关 */

/* ---- 特效开/关 选中态：必须一眼看出当前是「开」还是「关」 ---- */
.fullscreen-btn3.is-active,
.fullscreen-btn2.is-active {
    background: rgba(0, 229, 255, .16);
    border-color: rgba(0, 229, 255, .85);
    color: #8bf2ff;
    box-shadow: 0 0 14px rgba(0, 229, 255, .35), inset 0 0 14px rgba(0, 229, 255, .12);
    text-shadow: 0 0 8px rgba(0, 229, 255, .6);
}
.fullscreen-btn3.is-active::before,
.fullscreen-btn2.is-active::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 8px #00e5ff;
    vertical-align: middle;
}
.fullscreen-btn3.is-active:hover,
.fullscreen-btn2.is-active:hover {
    background: rgba(0, 229, 255, .26);
}

/* ---- 响应式 ---- */
@media (max-width: 991px) {
    .api-label2 { display: none; }
}
@media (max-width: 767px) {
    #container2.map-container { height: 170px; }
    .fullscreen-btn, .fullscreen-btn2, .fullscreen-btn3 { font-size: 12px; padding: 7px 14px; }
    .fullscreen-btn  { right: 12px; bottom: 12px; }
    .fullscreen-btn3 { left: 8px;  top: 12px; }
    .fullscreen-btn2 { left: 8px;  top: 52px; }
    .bottom-label { width: auto; max-width: 58%; font-size: 12px; padding: 7px 12px; }
    .tk-scan-image-wrapper img { max-height: 70%; max-width: 78%; }
}

/* =========================================================
   站内全屏「今日调用地域图」覆盖层
   点顶部「全屏」在本站内展开，不跳第三方页面
   ========================================================= */
body.ykdh-tb-map-on { overflow: hidden; }

.ykdh-tb-mapfull {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    z-index: 999999;
    background: #f0f2f5;
}
.ykdh-tb-mapfull[hidden] { display: none !important; }
.ykdh-tb-mapfull .ykdh-tb-map { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }

/* ---- 顶部标题 ---- */
.ykdh-tb-mapfull .ykdh-tb-maplabel {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    font-size: 16px; line-height: 1; color: #fff; white-space: nowrap;
    padding: 10px 30px; z-index: 999;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}

/* ---- 底部统计 ---- */
.ykdh-tb-mapfull .ykdh-tb-mapbottom {
    position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
    width: 50%; text-align: center;
    font-size: 16px; line-height: 1; color: #fff;
    padding: 10px 30px; z-index: 999;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}

/* ---- 更新倒计时 ---- */
.ykdh-tb-mapfull .ykdh-tb-mapcountdown {
    position: absolute; top: 20px; left: 30px;
    font-size: 16px; line-height: 1; color: #fff;
    padding: 8px 20px; z-index: 999;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}

/* ---- 右下角署名 ---- */
.ykdh-tb-mapfull .ykdh-tb-mapname {
    position: absolute; bottom: 20px; right: 30px;
    font-size: 12px; color: #666; z-index: 999;
}

/* ---- 关闭按钮 ---- */
.ykdh-tb-mapfull .ykdh-tb-mapclose {
    position: absolute; top: 20px; right: 30px;
    font-size: 14px; line-height: 1; color: #fff;
    padding: 10px 22px; z-index: 1001;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    cursor: pointer; user-select: none;
    transition: background .2s, transform .2s;
}
.ykdh-tb-mapfull .ykdh-tb-mapclose:hover {
    background: rgba(0, 0, 0, .85);
    transform: translateY(-2px);
}

/* ---- 加载中 / 空数据提示 ---- */
.ykdh-tb-mapfull .ykdh-tb-maploading {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #fff; background: rgba(0, 0, 0, .8);
    padding: 15px 40px; border-radius: 8px;
    font-size: 16px; z-index: 1000; text-align: center;
}
.ykdh-tb-mapfull .ykdh-tb-maploading-tip {
    display: block; margin-top: 6px; font-size: 12px; opacity: .75;
}

/* ---- 移动端 ---- */
@media (max-width: 767px) {
    .ykdh-tb-mapfull .ykdh-tb-maplabel {
        font-size: 12px; padding: 7px 12px; max-width: 70%;
        white-space: normal; text-align: center; line-height: 1.4;
    }
    .ykdh-tb-mapfull .ykdh-tb-mapcountdown { font-size: 12px; padding: 6px 12px; top: 12px; left: 12px; }
    .ykdh-tb-mapfull .ykdh-tb-mapclose { font-size: 12px; padding: 7px 14px; top: 12px; right: 12px; }
    .ykdh-tb-mapfull .ykdh-tb-mapbottom { width: auto; max-width: 88%; font-size: 12px; padding: 7px 12px; bottom: 60px; }
}
