/*自动旋转,放手机界面是横版  由于我之前很多div的宽高全用的vh,且很多子界面没同步,暂时先不用 */
/*@media screen and (orientation: portrait) {*/
    /*#hengban {*/
    /*    !* 核心步骤：宽高互换 *!*/
    /*    width: 100vh !important;  !* 宽度 = 手机的屏幕高度 *!*/
    /*    height: 100vw !important; !* 高度 = 手机的屏幕宽度 *!*/

    /*    !* 核心步骤：旋转 *!*/
    /*    transform: rotate(9                                                                                                                                                                                                                                                                                      0deg);*/
    /*    transform-origin: top left; !* 旋转轴心设在左上角 *!*/

    /*    !* 核心步骤：移位 *!*/
    /*    !* 旋转后会跑偏，必须把它移到屏幕的最右侧 *!*/
    /*    position: fixed;*/
    /*    top: 0;*/
    /*    left: 100%;*/

    /*    !* 解决“vw”单位导致的显示不全问题 *!*/
    /*    max-width: none !important;*/
    /*    overflow-y: scroll !important; !* 允许内部滚动 *!*/
    /*    overflow-x: hidden !important;*/
    /*}*/


/*}*/


body {
    margin: 0;
    -webkit-touch-callout: none; /* 禁用长按时的菜单 */
    -webkit-text-size-adjust: none; /* 禁用字体缩放 */
}


/**
   横向布局 设置比例：    等用框架Bootstrap的  row wow fadeIn 下的 col-md-8 mb-2
   但是和他的有一个区别 , 他的可以自动撑满屏幕换行翻页,比如联赛中用他的更好
    */
.flex-container {
    display: flex;
    /*flex-wrap: wrap; !* 允许换行 *!*/
}

/*@media (max-width: 600px) {*/
/*    !* 分辨率低于600则行排列 *!*/
/*    .flex-container {*/
/*        flex-direction: column;*/
/*    }*/
/*}*/

.flex-item {
    flex-basis: 0; /* 不基于内容大小 */
    flex-grow: 1; /* 允许flex项增长填满空间 */
}

.flex-item-1 {
    flex-grow: 1; /* 两侧的div按2的比例增长 */
}

.flex-item-2 {
    flex-grow: 2; /* 中间的div按8的比例增长 */
}

.flex-item-3 {
    flex-grow: 3; /* 中间的div按8的比例增长 */
}

.flex-item-4 {
    flex-grow: 4; /* 中间的div按8的比例增长 */
}

.flex-item-5 {
    flex-grow: 5; /* 中间的div按8的比例增长 */
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.flex-item-6 {
    flex-grow: 6; /* 中间的div按8的比例增长 */
}

.flex-item-7 {
    flex-grow: 7; /* 中间的div按8的比例增长 */
}

.flex-item-8 {
    flex-grow: 8; /* 中间的div按8的比例增长 */
}

.flex-item-9 {
    flex-grow: 9; /* 中间的div按8的比例增长 */
}

.flex-item-10 {
    flex-grow: 10; /* 中间的div按8的比例增长 */
}

.mb1 {
    margin-bottom: 5px; /* 下间距 */
}

.mb2 {
    margin-bottom: 10px;
}

.mb3 {
    margin-bottom: 15px;
}

.mb4 {
    margin-bottom: 20px;
}

.top1 {
    margin-top: 5px; /* 上间距 */
}

.top2 {
    margin-top: 10px; /* 上间距 */
}

.top3 {
    margin-top: 15px; /* 上间距 */
}

.top4 {
    margin-top: 20px; /* 上间距 */
}

.button_my {
    background-image: url('../../images/button/button_blue.webp'); /* 设置背景图  默认蓝色 */
    background-size: contain; /* cover背景图覆盖整个按钮,由于放大后不能完整显示我改成contain */
    background-repeat: no-repeat; /* 防止背景图像重复 */
    background-position: center center; /* 背景图像居中 */
    color: white; /* 设置按钮文本颜色 */
    border: none; /* 移除边框 */
    padding: 0px 0px; /* 按钮内边距 */
    text-align: center; /* 文本居中 */
    display: flex;
    font-size: 12px; /* 文本大小 */
    font-weight: 700; /* 文字加粗 */
    /*margin: 0px 0px; !* 外边距  margin:0 auto;是填充全部未使用的地方*!*/
    cursor: pointer; /* 鼠标悬停时显示手形图标 */
    width: 90px;
    height: 30px;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    transition: all 0.3s ease; /* 平滑过渡效果 */

}

.button_my_grey {
    background-image: url('../../images/button/button_grey.webp'); /* 设置背景图  灰色 */
    background-size: contain; /* cover背景图覆盖整个按钮,由于放大后不能完整显示我改成contain */
    background-repeat: no-repeat; /* 防止背景图像重复 */
    background-position: center center; /* 背景图像居中 */
    color: white; /* 设置按钮文本颜色 */
    border: none; /* 移除边框 */
    padding: 0px 0px; /* 按钮内边距 */
    text-align: center; /* 文本居中 */
    display: flex;
    font-size: 12px; /* 文本大小 */
    font-weight: 700; /* 文字加粗 */
    /*margin: 0px 0px; !* 外边距  margin:0 auto;是填充全部未使用的地方*!*/
    cursor: pointer; /* 鼠标悬停时显示手形图标 */
    width: 90px;
    height: 30px;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    transition: all 0.3s ease; /* 平滑过渡效果 */

}

.button_title_blue {
    background-image: url('../../images/button/button_blue.webp'); /* 设置背景图  默认蓝色 */
    background-size: cover; /* cover背景图覆盖整个按钮,由于放大后不能完整显示我改成contain */
    text-align: center; /* 文本居中 */
    font-size: 16px; /* 文本大小 */
    font-weight: 600; /* 文字加粗 */
    /*margin: 0px 0px; !* 外边距  margin:0 auto;是填充全部未使用的地方*!*/
    cursor: pointer; /* 鼠标悬停时显示手形图标 */
    width: 107px;
    height: 30px;
    /*justify-content: center; !* 水平居中 *!*/
    /*align-items: center; !* 垂直居中 *!*/
    /*transition: all 0.3s ease; !* 平滑过渡效果 *!*/

}

.button_title_grey {
    background-image: url('../../images/button/button_grey.webp'); /* 设置背景图  灰色 */
    background-size: cover; /* cover背景图覆盖整个按钮,由于放大后不能完整显示我改成contain */
    text-align: center; /* 文本居中 */
    font-size: 16px; /* 文本大小 */
    font-weight: 600; /* 文字加粗 */
    /*margin: 0px 0px; !* 外边距  margin:0 auto;是填充全部未使用的地方*!*/
    cursor: pointer; /* 鼠标悬停时显示手形图标 */
    width: 107px;
    height: 30px;
    /*justify-content: center; !* 水平居中 *!*/
    /*align-items: center; !* 垂直居中 *!*/
    /*transition: all 0.3s ease; !* 平滑过渡效果 *!*/

}

.button_green {
    background-image: url('../../images/button/button_green.webp'); /* 设置绿色背景图 */
}

.button_grey {
    background-image: url('../../images/button/button_grey.webp'); /* 设置灰色背景图 */
}

.button_yellow {
    background-image: url('../../images/button/button_yellow.webp'); /* 设置黄色背景图 */
}

.button_purple {
    background-image: url('../../images/button/button_purple.webp'); /* 设置紫色背景图 */
}

.no-select { /*禁止选择文本*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* 黄色的错误提示 */
#errorContainer {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 300000;
    text-align: center;
    display: flex;
    flex-direction: column-reverse; /* 新错误显示在最下面 */
    align-items: center;
    pointer-events: none; /* 确保错误容器不会阻止点击事件 */


}
.errorPopup {
    background-color: rgba(0, 0, 0, 0.3);
    color: #f6d70a;
    padding: 20px;
    margin: 5px 0;
    border-radius: 8px;
    display: block;
    font-size: 24px;
    font-weight: bold;
    animation: fadeOut 1s ease-out 4.5s forwards; /* 同步使用两个动画 */
    pointer-events: auto; /* 确保错误提示本身可以响应点击事件 */


}
/* fadeOut 动画 */
@keyframes fadeOut {
    /*to {*/
    /*    opacity: 0;*/
    /*    transform: translateY(-20px);*/
    /*}*/

    0% {
        opacity: 1; /* 起始不透明 */
    }
    50% {
        opacity: 0.5; /* 中间半透明 */
    }
    100% {
        opacity: 0; /* 最终完全透明 */

    }
}



/* 自定义的 Tippy.js 主题类 */
.tippy-box[data-theme~='light'] {
    background-color: #f9f9f9;
    color: #333;
    border: 1px solid #ddd;
}

/* 自定义的 Tippy.js 主题类 */
.tippy-box[data-theme~='dark'] {
    /*background-color: #333;*/
    /*color: #f9f9f9;*/
    /*border: 1px solid #666;*/

    background: linear-gradient(145deg, #010006b3, #041d41d6);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: #fff;

}

/*.action-btn {*/
/*    margin-top: 8px;*/
/*    padding: 4px 12px;*/
/*    background: #007bff;*/
/*    color: white;*/
/*    border: none;*/
/*    border-radius: 15px;*/
/*    cursor: pointer;*/
/*}*/
/*.action-btn:hover {*/
/*    background: #0056b3;*/
/*}*/

/**
返回按钮  这类标题按钮我全部用的150px*150px的图片
 */
.back{
    /*margin-left: auto; !* 将元素推到最右侧 *!*/
    text-align: center;
    /*background: rgba(255, 255, 255, 0.1); !* 半透明背景 *!*/
    border-radius: 10px;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);*/
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 1 1 auto; /* 自动调整宽度 */
    /*max-width: 15vh; !* 最大宽度 *!*/
    display: flex;

}
.back-card{
    /*margin-top: 0.5vh;*/
    /*font-size: 3vh;*/
    /*color: #ffc107;*/
    text-align: center;
    display: flex;
    flex-direction: column;
    /*height: 6vh;*/
    /*width: 6vh;*/
    /*font-weight: 600;*/
}
.backHeadDiv{/* 因为不同头像大小不同,用这个包括了好居中 */
    width: 6vh;
    min-width: 50px;
}
.backHeadDiv:hover {
    transform: scale(1.1); /* 鼠标悬停时放大 */
}
.backHeadDiv img {
    width: auto;
    height: 6vh;
    border-radius: 30%;
    margin: 0 auto;/* 可以居中效果 */
    display: block;/* 可以居中效果 */
    max-height: 130px;
    min-height: 40px;
}

/**
让设置过 display: flex; 的子元素右对其
 */
.right{
    margin-left: auto;
}
/**
让设置过 display: flex; 的子元素左对其
 */
.left{
    margin-right: auto;
}

/* 灰白状态 */
.noUseButton{
    filter: grayscale(100%); /* 灰度化 */
    /*opacity: 0.5; !* 调整透明度 *!*/
    /*pointer-events: none; !* 禁止交互 *!*/
}
/* 灰白状态  鼠标失效 */
.noUseButton2{
    filter: grayscale(100%); /* 灰度化 */
    /*opacity: 0.5; !* 调整透明度 *!*/
    pointer-events: none; /* 禁止交互 */
}

/* 移除所有按钮的默认焦点轮廓  因为会有白色选中边框影响美观*/
button:focus {
    outline: none;
}


/*巅峰名人堂:红色*/
.player-name5{
    color: #bb0000;
}
/*名人堂:橙色*/
.player-name4{
    color: #f1a605;
}
/*全明星:紫色*/
.player-name3{
    color: #8e3cf2;
}
/*主力:蓝色*/
.player-name2{
    color: #0c95e3;
}
/*替补:绿色*/
.player-name1{
    color: rgba(93, 225, 93, 0.89);
}
/*70-替补:灰色*/
/*.player-name0{*/
/*    color: #c1c8cc;*/
/*}*/

/* 开关 */
.switch { position: relative; display: inline-block; width: 34px; height: 18px; transform: skewX(-10deg); }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #444; transition: .4s; border: 1px solid #666; }
.slider:before { position: absolute; content: ""; height: 12px; width: 12px; left: 2px; bottom: 2px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: #0b69c5; border-color: #050939; }
input:checked + .slider:before { transform: translateX(16px); }

/*复制的球员属性*/
.copyPlayer{
    color: #9c27b0 !important; /* 紫色 */
    cursor: pointer;
    text-decoration: underline dotted;
    font-weight: 600;
    padding: 3px 3px;
    border-radius: 3px;
    background: rgb(22 43 199 / 21%);
    transition: all 0.2s;
}

/* Tippy 容器基础样式 */
.player-tooltip-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 8px;
    /*max-width: 350px;*/
    line-height: 1.5;
    color: #eee;
    width: 280px; /* 固定宽度，防止过宽 */
}

/* 标题栏样式 */
.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #555;
    padding-bottom: 6px;
    margin-bottom: 8px;
}



/* 按钮样式 */
.info-modal-btn {
    cursor: pointer;
    padding: 3px 10px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background 0.2s;
}
.info-modal-btn:hover {
    background: #357abd;
}

/* 分组样式 */
.tooltip-category {
    margin-bottom: 10px;
}

.category-title {
    font-weight: bold;
    color: #ffcc00; /* 金色标题 */
    font-size: 13px;
    margin-bottom: 3px;
    /*border-left: 3px solid #ffcc00;*/
    /*padding-left: 6px;*/
}

.category-items {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 强制两列布局 */
    gap: 4px;
    font-size: 12px;
}

.item-span {
    /*white-space: nowrap;*/
    /*overflow: hidden;*/
    /*text-overflow: ellipsis;*/
    color:#ccc;
}
.item-span.full-width {
    grid-column: span 2;   /* 横跨两列 */
    white-space: normal;    /* 允许自然换行 */
    word-break: break-all;  /* 强制断句 */
    line-height: 1.4;       /* 增加行高方便阅读 */
    margin-top: 2px;        /* 稍微拉开一点间距 */
}
/* 技能标签容器 */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}
/* 技能标签样式 */
.skill-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    cursor: help; /* 鼠标变成问号，提示可看描述 */
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
    white-space: nowrap;
}
/* 技能特殊样式 */
.skill-item {
    display: block;
    width: 100%;
    color: #a0eaff;
    font-style: italic;
    margin-bottom: 2px;
}


/* 技能颜色 */
.tag-skill-1  { background-color: #606365; color: #ffffff;font-weight: bold; }
.tag-skill-2  { background-color: #28a745; color: #ffffff;font-weight: bold; }
.tag-skill-3  { background-color: #2a5f9f; color: #ffffff;font-weight: bold; }
.tag-skill-4  { background-color: #9939a9; color: #ffffff;font-weight: bold; }
.tag-skill-5  { background-color: #895f20; color: #ffffff;font-weight: bold; }


.skill-tag:hover {
    filter: contrast(1.2) brightness(1.2);
    box-shadow: 0 0 5px rgba(255,255,255,0.3);
}

/* 标题样式 */
.skills-title {
    color: #bbb;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
/* 【核心】描述文字显示区域 */
.skill-desc-notice {
    color: #ffeb3b; /* 使用醒目的黄色 */
    font-size: 11px;
    margin-left: 8px;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s ease; /* 淡入淡出效果 */
    /* 允许换行 */
    white-space: normal;      /* 允许正常换行 */
    word-break: break-all;    /* 强制在单词内断行，防止长文本撑开容器 */
    line-height: 1.3;         /* 设置合适的行高 */
    display: inline-block;
    flex: 1;                  /* 占据剩余所有宽度 */
}
