﻿
/* 添加：自定义字体引入（放在文件顶部，:root 之后或文件开头均可） */
@font-face {
    font-family: 'GameXingkai';
    src: url('../font/Slideqiuhong-Regular.ttf') format('truetype'); /* 请确保文件实际路径和文件名正确 */
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 优先显示文本，字体加载后替换，避免 FOIT */
}

/* 全局 CSS 变量（放在文件顶部）*/
:root {
    --btn_bg_q: #36d1dc; /* 按钮背景色（默认） */
    --btn_color_q: #ffffff; /* 按钮文字颜色 */
    --btn_border_q: #2b8ed6; /* 按钮边框颜色 */

    --btn_bg_s: #5b86e5; /* 按钮背景色（选中） */
    --btn_color_s: #ffffff; /* 按钮文字颜色 */
    --btn_border_s: #2b8ed6; /* 按钮边框颜色 */

    --bg_bg_q: #0b0b0b; /* 整体页面背景色 */
    --bg_bg_s: #0b0b0b; /* 整体页面背景色 */
}
.btn {
    border-radius: 5px;
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
    color: white;
}

.input {
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    outline: none;
    padding: 0px 10px;
}

.plane {
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0);
    max-width: 600px;
    position: absolute;
    z-index: 100;
    border-radius: 6px;
}

.alert {
    position: absolute;
    z-index: 200;
}

/* 全局 map 基类：放到 main.css，所有 map 都共享这些基础行为和布局（不包含具体视觉） */
.map {
    width: 100%;
    height: 100%;
    background-color: #c2c4644f; /* 全局不强制背景色，具体地图在各自文件中覆盖 */
    max-width: 600px;
    position: absolute; /* 同一级父级定位 */
    overflow: hidden;
    box-sizing: border-box;
    z-index: 50; /* 全局默认层级，单个 map 可覆盖 */
}

/* 新增：hidden 用于 plane 显隐控制 */
.hidden {
    display: none !important;
}


/* 仅对显式声明 data-btn-zoom="true" 的元素启用按下缩放 */
[data-btn-zoom="true"] {
    transition: transform 120ms cubic-bezier(.2,.9,.2,1), opacity 120ms;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    transform-origin: center center;
}

    [data-btn-zoom="true"]:active,
    [data-btn-zoom="true"].pressed {
        transform: scale(0.92);
    }

/* 全局点击光圈效果：0.5 秒后自动消失 */
.global-click-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.2);
    pointer-events: none;
    z-index: 99999;
    border: 2px solid rgba(255, 240, 180, 0.95);
    box-shadow: 0 0 10px rgba(255, 230, 120, 0.95), 0 0 20px rgba(255, 210, 80, 0.65), inset 0 0 8px rgba(255, 255, 255, 0.8);
    background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(255,240,180,0.28) 35%, rgba(255,220,120,0.06) 70%, rgba(255,220,120,0) 100%);
    animation: global-click-ring-pop 0.5s ease-out forwards;
}

    .global-click-ring::after {
        content: '';
        position: absolute;
        inset: -8px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(255,245,190,0.45) 0%, rgba(255,225,120,0.12) 55%, rgba(255,225,120,0) 100%);
    }

@keyframes global-click-ring-pop {
    0% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(0.2);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3.2);
    }
}

/* 优化：使用 translate3d 并开启渲染优化以减少浮动时模糊 */
@keyframes float-vertical {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float-horizontal {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(-2px);
    }
    100% {
        transform: translateX(0px);
    }
}

/* 可直接附加到按钮上的类：
   --float-range: 浮动幅度（默认 6px）
   --float-speed: 动画周期（默认 3s）
*/
.float-vertical {
    will-change: transform;
    animation-name: float-vertical;
    animation-duration: var(--float-speed, 1s);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

.float-horizontal {
    will-change: transform;
    animation-name: float-horizontal;
    animation-duration: var(--float-speed, 1s);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

.btn-four {
    position: relative;
    width: 40px;
    height: 40px;
    background-image: url('../image/test1/button_back.png');
    /* 关键设置：不平铺 */
    background-repeat: no-repeat;
    /* 让图片覆盖整个视口 */
    background-size: cover;
    /* 图片居中显示 */
    background-position: center;
    background-color: var(--btn_border_q);
    color: var(--btn_color_s);
    border: 1px solid var(--btn_color_q);
    border-radius:6px;
}
    .btn-four span:nth-child(1) {
        position: absolute;
        top: -5px;
        left: 0;
        font-size: 20px;
        font-family: 'GameXingkai',"STXingkai", "华文行楷", "LiSu", serif;
    }
    .btn-four span:nth-child(2) {
        position: absolute;
        bottom: -2px;
        right: 0;
        font-size: 20px;
        font-family: 'GameXingkai',"STXingkai", "华文行楷", "LiSu", serif;
    }

.small-text-border {
    /* 核心边框效果 */
    text-shadow:
    /* 四方向细边框 */
    0.5px 0.5px 0 #000, -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000,
    /* 外发光增强对比 */
    0 0 3px rgba(0,0,0,0.5),
    /* 内发光提高清晰度 */
    0 0 1px rgba(255,255,255,0.3);
}
.small-text-border-gril-name {
    text-shadow: 0.5px 0.5px 0 #efd3117d, -0.5px -0.5px 0 #ffd100, 0.5px -0.5px 0 #fffc00, -0.5px 0.5px 0 #f9ff0e, 0 0 3px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.3);
}
.btn10 {
    position: relative;
    border: none;
    background: transparent;
    color: rgb(11 77 100);
    text-shadow: 3px 3px 4px rgb(65 174 154 / 80%); /* 水平偏移 垂直偏移 模糊半径 颜色 */
}
    .btn10 img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: fill; /* 拉伸填充，可能会变形 */
        z-index: -1;
    }
.btn1 {
    background-image: url('../image/test1/btn1.png');
    background-repeat: no-repeat;
    background-size: 100% 100%; /* 拉伸填满，不裁剪，不留白 */
    background-position: center;
    background-color: transparent;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.btn2 {
    background-image: url('../image/test1/btn2.png');
    background-repeat: no-repeat;
    background-size: 100% 100%; /* 拉伸填满，不裁剪，不留白 */
    background-position: center;
    background-color: transparent;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.btn3 {
    background-image: url('../image/test1/btn3.png');
    background-repeat: no-repeat;
    background-size: 100% 100%; /* 拉伸填满，不裁剪，不留白 */
    background-position: center;
    background-color: transparent;
    color: #f3c7ab;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* 水平偏移 垂直偏移 模糊半径 颜色 */
}

.bg_da {
    background-image: url('../image/ui/bg_da.png');
    background-repeat: no-repeat;
    background-size: 100% 100%; /* 拉伸填满，不裁剪，不留白 */
    background-position: center;
    background-color: transparent;
}
.bg_zhong {
    background-image: url('../image/ui/bg_zhong.png');
    background-repeat: no-repeat;
    background-size: 100% 100%; /* 拉伸填满，不裁剪，不留白 */
    background-position: center;
    background-color: transparent;
}
.bg_xiao1 {
    background-image: url('../image/ui/bg_xiao1.png');
    background-repeat: no-repeat;
    background-size: 100% 100%; /* 拉伸填满，不裁剪，不留白 */
    background-position: center;
    background-color: transparent;
}
.bg_title {
    background-image: url('../image/ui/bg_title.png');
    background-repeat: no-repeat;
    background-size: 100% 100%; /* 拉伸填满，不裁剪，不留白 */
    background-position: center;
    background-color: transparent;
}