/*=== 自定义全屏属性弹窗   === */
/*1. 背景遮罩 (比抽卡界面更高一层)*/
.custom-modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 半透明黑背景 */
    z-index: 200000; /* 必须比抽卡界面(9999)高 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 2. 弹窗主体 */
.custom-modal-box {
    background: #1e1e1e; /* 深灰背景 */
    border: 1px solid rgb(94 94 99); /* 灰色边框 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 15px;

    width: 360px;       /* 固定宽度 */
    max-height: 400px;  /* 最大高度 */

    overflow-y: auto;   /* 开启滚动 */
    overflow-x: hidden;

    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    transform: scale(0.9);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* 3. 弹窗内的文字样式 (让原有的html显示正常) */
.custom-modal-box b { color: #ffd700; } /* 加粗字体变金 */
.custom-modal-box span { display: inline-block; }

/* === 4. 滚动条美化 (只针对这个弹窗) === */
.custom-modal-box::-webkit-scrollbar {
    width: 6px;
}
.custom-modal-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.custom-modal-box::-webkit-scrollbar-thumb {
    background: #5a616778; /* 灰色滑块 */
    border-radius: 3px;
}
.custom-modal-box::-webkit-scrollbar-thumb:hover {
    background: #5a6167d9;
}

/* =========================================
      自定义弹出选择框  篮球经理 UI 风格 CSS
        ========================================= */
:root {
    --bm-blue: #1a2b4b;      /* 球队深蓝-标题栏 */
    --bm-orange: #f37021;    /* 篮球橙-确认按钮 */
    --bm-orange-h: #d15b14;  /* 橙色悬停 */
    --bm-gray: #ecf0f1;      /* 背景灰 */
    --bm-text: black;      /* 正文黑色 */
    --bm-border: #bdc3c7;    /* 边框颜色 */
}

/* 遮罩层 - 使用Flex布局实现绝对居中 */
#mb_box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    background-color: rgba(0, 0, 0, 0.7); /* 深色背景更显专注 */
    backdrop-filter: blur(2px);           /* 轻微模糊背景 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 弹窗主体 - 类似战术板或数据面板的风格 */
#mb_con {
    position: relative; /* 相对定位，不再需要JS计算位置 */
    width: 380px;
    max-width: 90%;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 4px; /* 较小的圆角，显得更严谨 */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

/* 标题栏 - 模拟记分牌或球队Header */
#mb_tit {
    display: block;
    height: 44px;
    line-height: 44px;
    padding: 0 15px;
    background-color: var(--bm-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase; /* 大写英文更有运动感 */
    border-bottom: 2px solid var(--bm-orange); /* 底部橙色线条装饰 */
    letter-spacing: 1px;
}

/* 关闭按钮 X */
#mb_ico {
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: color 0.2s;
}
#mb_ico:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

/* 内容区域 */
#mb_msg {
    padding: 25px 20px;
    color: var(--bm-text);
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 输入框和下拉框通用样式 - 扁平化数据录入风格 */
#dropdown, #textInput, #textInput2 {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--bm-border);
    background-color: #f9f9f9;
    color: #333;
    font-size: 14px;
    outline: none;
    box-sizing: border-box; /* 关键：防止宽度溢出 */
    transition: border-color 0.2s;
    margin-top: 5px; /* 与文字拉开一点距离 */
}

#dropdown:focus, #textInput:focus, #textInput2:focus {
    border-color: var(--bm-blue);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(26, 43, 75, 0.1);
}

/* 按钮区域 */
#mb_btnbox {
    padding: 0 20px 20px 20px;
    text-align: right;
    background-color: #fff;
}

/* 按钮通用样式 */
.bm-btn {
    height: 34px;
    padding: 0 20px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.2s;
}

/* 确定按钮 - 橙色高亮 */
#mb_btn_ok {
    background-color: var(--bm-orange);
    color: white;
}
#mb_btn_ok:hover {
    background-color: var(--bm-orange-h);
}

/* 取消按钮 - 灰色 */
#mb_btn_no {
    background-color: #e0e0e0;
    color: #555;
    margin-left: 10px;
}
#mb_btn_no:hover {
    background-color: #d0d0d0;
    color: #000;
}

/* 简单动画 */
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 演示页面的背景，实际使用不需要复制 */
body.demo-bg {
    background: #eef2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}
.demo-btn {
    padding: 10px 20px; margin: 5px; font-size: 16px; cursor: pointer;
    background: #fff; border: 1px solid #ccc;
}
