@charset "utf-8";
/* 流派展示模块样式 */

.factions-container {
    width: 1920px;
    height: 1000px;
    position: relative;
    /* background: url(../images/bj_02.jpg) no-repeat center; */
    background-position: 0px 0px;
    margin-top: 0px;
    z-index: 3;
    left: 50%;
    margin-left: -960px;
}

.factions-title {
    width: 648px;
    height: 106px;
    text-indent: -99em;
    overflow: hidden;
    margin: auto auto 10px;
    background: url(../images/bg_title.png) left top no-repeat;
    position: absolute;
    z-index: 5;
    margin-bottom: 0px;
    background-position: 0px -954px; /* 使用新的标题背景位置 */
    margin-left: 636px;
    top: 20px;
}

.factions-content {
    position: absolute;
    z-index: 4;
    padding-top: 100px;
    left: 50%;
    margin-left: -600px;
    width: 1200px;
    height: 600px;
}

.faction-group {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

.faction-item {
    position: relative;
    text-align: center;
    width: 350px;
    height: 500px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #70693b;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(112, 105, 59, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faction-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(112, 105, 59, 0.8);
}

.faction-header {
    position: relative;
    margin-bottom: 30px;
}

.faction-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    position: relative;
    cursor: pointer;
}

.faction-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #70693b;
    transition: border-color 0.3s ease;
}

.faction-avatar:hover img {
    border-color: #ffcc00;
}

.faction-name {
    color: #ffcc00;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.faction-description {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.faction-rating {
    color: #ffcc00;
    font-size: 16px;
    margin-bottom: 20px;
}

.faction-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-item {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.skill-item img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid #70693b;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.skill-item:hover img {
    border-color: #ffcc00;
    transform: scale(1.1);
}

/* 悬浮提示框样式 */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #70693b;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #70693b;
}

/* 流派详细信息提示框 */
.faction-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ffcc00;
    font-size: 16px;
    line-height: 1.6;
    width: 300px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.faction-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.faction-tooltip .tooltip-title {
    color: #ffcc00;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.faction-tooltip .tooltip-content {
    text-align: left;
}

.faction-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #ffcc00;
}

/* 背景装饰 */
.factions-bg {
    width: 897px;
    height: 1018px;
    background: url(../images/rw02.png) no-repeat left top;
    animation: light_1 3s linear infinite;
    position: absolute;
    z-index: 3;
    margin-top: 0px;
    margin-left: 0px;
}

.factions-mask {
    /* width: 1920px; */
    /* height: 1000px; */
    /* background: url(../images/mkbg02.png) no-repeat; */
    at; */
    position: absolute;
    left: 50%;
    margin-left: -960px;
    margin-top: 100px;
    z-index: 2;
}