<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<style>
    * {
        padding: 0;
        margin: 0;
    }

    {%if data['userInfo']['avatar']['colorName']['status']==2 %}
        .mirage-text {
            background: {{ data['userInfo']['avatar']['colorName']['data'] }};
            color: transparent;
            -webkit-background-clip: text;
            animation: ran-7e872de5 10s linear infinite;
        }
    {% endif %}

    .main-content, body {
        width: 1500px;
        font-size: 30px;
        font-family: "Microsoft YaHei", serif;
        font-weight: bold;
        background-size: contain;
        /*background: url("https://shinoaki.com/110554439_p0.jpg") no-repeat;*/
    }

    .page-header {
        border-radius: 36px;
        height: 300px;
        margin: 50px 50px 30px;
        display: flex;
        justify-content: flex-start;
    {%if data['userInfo']['avatar']['banner']['status']==2 %}
        background: url("{{data['userInfo']['avatar']['banner']['data']}}") no-repeat;
    {% endif %}
        background-position: center;
        background-size: 100%;
    }

    .avatar-header {
        filter: drop-shadow(9px 9px 12px rgba(0, 0, 0, 0.3));
        border-radius: 36px;
        height: 93%;
        width: 260px;
        margin-left: 10px;
        margin-top: 10px;
    {%if data['userInfo']['avatar']['avatar']['status']==2 %}
        background: url("{{data['userInfo']['avatar']['avatar']['data']}}") no-repeat;
    {% else %}
        background: url("{{data['userInfo']['dogTag']}}") no-repeat;
    {% endif %}
        background-position: center;
        background-size: 100%;
    }

    .ship-header {
        margin: -10px 400px 20px;
        text-align: center;
        font-size: 55px;
        font-weight: bold;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: break-all;
        overflow: hidden;
    }

    .chart-box {
        margin: 0 80px;
        margin-top: 30px;
        background-color: #F2F2F2;
        height: 400px;
        display: flex;
        border-radius: 16px;
    }

    .chart-bar {
        flex: 6;
    }

    .chart-pie {
        flex: 4;
    }

    .page-box {
        width: 1500px;
        display: flex;
        flex-direction: column;
    }
    .ranking {
		display: flex;
		justify-content: space-around;
		align-content: space-around;
		height: 60px;
		line-height: 40px;
		font-weight: bold;
		margin-bottom: 15px;
	}

	.ranking_border {
		margin-top: 10px;
		height: 40px;
		border-radius: 28px;
		padding: 4px 20px;
		background-color: #F2F2F2;
	}

    .masking-header {
        display: flex;
        justify-content: flex-start;
        height: 280px;
        width: auto;
        margin-top: 10px;
        margin-left: 10px;
        gap: 15px;
        border-radius: 36px;
        background: linear-gradient(to right, rgba(250, 250, 250, 0.75) 600px,rgba(250, 250, 250, 0));
    }

    .clan-user-server {
        margin: 20px;
        text-align: left;
        font-size: 20px;
        display: flex;
        flex-direction: column;
        font-weight: bold;
        flex-grow: 1;
        justify-content: center;
    {% if data['userInfo']['avatar']['sign']['status'] != 2 %}
        gap: 20px;
    {% endif %}

    }

    .user-info {
        font-weight: bolder;
        line-height: 30px;
        font-size: 45px;
    }

    .user-sign-time {
        margin-top: 30px;
        font-family: "Microsoft YaHei UI Light", serif;
    }

    .user-server {
        margin-top: 5px;
        font-family: "Microsoft YaHei UI Light", serif;
    }

    .server-style {
        font-weight: bold;
    }

    .user-signature {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 30px;
        gap: 10px;
        width: auto;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 36px;
        margin-top: 30px;
    }

    .pr {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        line-height: 80px;
        font-size: 35px;
        border-radius: 26px;
        margin-left: 50px;
        margin-right: 50px;
    }

    .recnet-time {
        text-align: center;
        font-weight: normal;
        margin-top: 20px;
    }

    .overview-change {
        display: flex;
        margin-top: 30px;
        padding: 0 80px;
        height: 450px;
    }

    .overview-change-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        margin: 0 20px;
    }

    .item-top {
        flex: 5;
        border-radius: 16px;
    }

    .item-bottom {
        display: flex;
        flex: 4;
        margin-top: 20px;
    }

    .bottom-mini-item-left {
        margin-right: 10px;
    }

    .bottom-mini-item-right {
        margin-left: 10px;
    }

    .bottom-mini-item-left,
    .bottom-mini-item-right {
        display: flex;
        flex-direction: column;
        border-radius: 16px;
        flex: 1;
    }

    .one-background-color {
        /*background: #FAFAFAD9 85%;*/
        background-color: #F2F2F2;
    }

    .two-background-color {
        /*background: rgba(217, 217, 217, 0.7);*/
        background-color: #D9D9D9;
    }

    .item-top {
        display: flex;
        flex-direction: column;
    }

    .item-top div {
        height: 120px;
        text-align: center;
        font-size: 60px;
    }

    .item-top-top {
        color: #606266;
        font-weight: normal;
        line-height: 150px;
    }

    .item-top-bottom {
        line-height: 90px;
    }


    .mini-item-top {
        color: #606266;
        font-weight: normal;
        line-height: 135px;
    }

    .mini-item-bottom {
        line-height: 45px;
    }

    .bottom-mini-item-left div,
    .bottom-mini-item-right div {
        height: 95px;
        text-align: center;
        font-size: 35px;
    }

    .information-header {
        margin: 0 400px;
        margin-top: 30px;
        height: 60px;
        line-height: 60px;
        border-radius: 16px;
        /*background: rgba(217, 217, 217, 0.7);*/
        text-align: center;
    }

    .information-body {
        margin: 0 100px;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        /*background-color: #F2F2F2;*/
        border-radius: 16px;
    }

    .information-col {
        height: 60px;
        display: flex;
        line-height: 60px;
    }

    .information-col-item {
        flex: 1;
        text-align: center;
    }

    .information-table-header {
        color: #606266;
    }

    .information-type {
        color: #909399;
    }

    .random-header {
        margin: 0 400px;
        margin-top: 30px;
        height: 60px;
        line-height: 60px;
        border-radius: 16px;
        /*background-color: #D9D9D9;*/
        text-align: center;
    }

    .random-data-col {
        display: flex;
        height: 90px;
    }


    .random-table-header .random-col-item {
        line-height: 60px;
    }

    .footer {
        margin-top: 30px;
        text-align: center;
        font-weight: bold;
        font-size: 24px;
        color: #909399;
        margin-bottom: 20px;
    }

    .rank-data-col {
        display: flex;
        height: 90px;
    }

    .frag-data {
        display: flex;
        margin: 30px 90px;
    }

    .frag-data-col {
        display: flex;
        flex: 1;
        margin-bottom: 20px;
    }

    .frag-item {
        flex: 1;
        text-align: center;
        /*background-color: #F2F2F2;*/
        border-radius: 16px;
        margin: 0 10px;
    }

    .frag-key, .frag-value {
        height: 100px;
        font-size: 35px;
    }

    .frag-key {
        color: #606266;
        font-weight: normal;
        line-height: 120px;
    }

    .frag-value {
        line-height: 80px;
    }
</style>
<body>
<div class="main-content">
    <div class="page-box">
        <div class="page-header">
            <div class="masking-header">
                <div class="avatar-header"></div>
                <div class="clan-user-server">
                    <div class="user-info ">
                        {#                    是否有工会#}
                        {% if data['userInfo']['clanInfo']['tag'] %}
                            <span style="color: {{ data['userInfo']['clanInfo']['color'] }};">[{{ data['userInfo']['clanInfo']['tag'] }}]</span>
                        {% endif %}
                        <span class="mirage-text">{{ data['userInfo']['userName'] }}</span></div>
                    <div class="user-sign-time">注册时间: <span
                            class="server-style">{{ time.strftime('%Y-%m-%d %H:%M',time.localtime(int(abs(data['userInfo']['accountCreateTime'])))) }}</span>
                    </div>
                    <div class="user-server">服务器: <span class="server server-style">{{ data['userInfo']['serverCn'] }}</span></div>
                    {% if data['userInfo']['avatar']['sign']['status'] == 2 %}
                        <div class="user-signature">
                            {{ data['userInfo']['avatar']['sign']['data'] }}
                        </div>
                    {% endif %}
                </div>
            </div>
        </div>

        <div class="ship-header">
             <span
                     style="
                             background: url('{{ data['shipInfo']['countryImage'] }}')
                             no-repeat;
                             background-size: contain;
                             background-position: center;
                             margin-left: 10px;
                             padding: 40px;
                             margin-right: 10px;
                             "
             ></span>
            <span
                    style="
                            background: url('{{ data['shipInfo']['shipTypeImage'] }}')
                            no-repeat;
                            background-size: contain;
                            background-position: center;
                            padding: 40px;
                            margin-right: 10px;
                            "
            ></span>
            <span style="margin-right: 20px">{{ data['shipInfo']['levelStr'] }}</span>
            <img class="ship-box"
                 src="{{ data['shipInfo']['imgSmall'] }}"
                 style="background-size: contain;background-position: 50% 30%;width: 120px;height: 100%;">
            
                {{ data['shipInfo']['nameCn'] }}
            
        </div>


        <div class="pr">
            {% if data['typeInfo']['PVP']['battle'] %}
                <span class="pr-number">{{ data['typeInfo']['PVP']['prInfo']['value'] }}&nbsp;&nbsp;&nbsp;&nbsp;<span
                        class="pr-text">{{ data['typeInfo']['PVP']['prInfo']['name'] }}</span></span>
            {% else %}
                <span class="pr-number">{{ data['typeInfo']['RANK_SOLO']['prInfo']['value'] }}&nbsp;&nbsp;&nbsp;&nbsp;<span
                        class="pr-text">{{ data['typeInfo']['RANK_SOLO']['prInfo']['name'] }}</span></span>
            {% endif %}
        </div>
        {% if data['typeInfo']['PVP']['battleInfo']['lastBattleTime'] > 0 %}
            <div class="recnet-time"><span>最后战斗时间：</span>
                <span>{{ time.strftime('%Y-%m-%d %H:%M',time.localtime(int(abs(data['typeInfo']['PVP']['battleInfo']['lastBattleTime'])))) }}</span>
            </div>
        {% else %}
            <div class="recnet-time"><span>最后战斗时间：</span>
                <span>N/A</span>
            </div>
        {% endif %}

        {% if data['shipRank'] %}
			<div class="ranking">
				<div class="ranking_border"><span
					style="color: #606266;">排名</span>&nbsp;&nbsp;<span>{{data['shipRank']}}</span>
				</div>
			</div>
		{% endif %}

        <div class="information-body">
            <div class="information-col information-table-header two-background-color" style="border-radius: 16px">
                <div class="information-col-item">排名</div>
                <div class="information-col-item">场均</div>
                <div class="information-col-item">胜率</div>
                <div class="information-col-item">PR</div>

            </div>
            <div class="information-col one-background-color">
                <div class="information-col-item information-type">
                    {% if data['rank'] > 0 %}
                        {{ data['rank'] }}
                    {% else %}
                        N/A
                    {% endif %}
                </div>
                <div class="information-col-item change-avgdmg">{{ data['dwpData']['damage'] }}</div>
                <div class="information-col-item change-win">{{ data['dwpData']['wins'] }}</div>
                <div class="information-col-item change-pr">{{ data['dwpData']['pr'] }}</div>
            </div>
        </div>

        {% if data['typeInfo']['PVP']['battle'] %}
            <div class="overview-change">
                <div class="overview-change-item left-item">
                    <div class="left-item-top item-top one-background-color">
                        <div class="overview-count-title item-top-top">场次</div>
                        <div class="overview-count item-top-bottom">{{ data['typeInfo']['PVP']['battleInfo']['battleInfo']['battle'] }}</div>
                    </div>
                    <div class="left-item-bottom item-bottom">
                        <div class="change-avgdmg-box bottom-mini-item-left one-background-color">
                            <div class="mini-item-top">加成经验</div>
                            <div class="mini-item-bottom change-avgdmg">{{ data['typeInfo']['PVP']['battleInfo']['avgInfo']['xp'] }}</div>
                        </div>
                        <div class="change-win-box bottom-mini-item-right one-background-color">
                            <div class="mini-item-top">命中率</div>
                            <div class="mini-item-bottom change-win">{{ data['typeInfo']['PVP']['battleInfo']['hitRatioInfo']['ratioMain'] }}%</div>
                        </div>
                    </div>
                </div>
                <div class="overview-change-item mid-item">
                    <div class="mid-item-top item-top one-background-color">
                        <div class="overview-win-title item-top-top">胜率</div>
                        <div class="overview-win item-top-bottom"
                             style="color: {{ data['typeInfo']['PVP']['battleInfo']['avgInfo']['winsData']['color'] }};">{{ data['typeInfo']['PVP']['battleInfo']['avgInfo']['win'] }}%
                        </div>
                    </div>
                    <div class="mid-item-bottom item-bottom">
                        <div class="change-avgdmg-box bottom-mini-item-left one-background-color">
                            <div class="mini-item-top">侦察</div>
                            <div class="mini-item-bottom change-avgdmg">{{ '%.2f' | format(data['typeInfo']['PVP']['battleInfo']['avgInfo']['shipsSpotted']) }}</div>
                        </div>
                        <div class="change-win-box bottom-mini-item-right one-background-color">
                            <div class="mini-item-top">击落</div>
                            <div class="mini-item-bottom change-win">{{ '%.2f' | format(data['typeInfo']['PVP']['battleInfo']['avgInfo']['planesKilled']) }}</div>
                        </div>
                    </div>
                </div>
                <div class="overview-change-item right-item">
                    <div class="right-item-top item-top one-background-color">
                        <div class="overview-avgdmg-title item-top-top">场均</div>
                        <div class="overview-avgdmg item-top-bottom"
                             style="color: {{ data['typeInfo']['PVP']['battleInfo']['avgInfo']['damageData']['color'] }};">{{ data['typeInfo']['PVP']['battleInfo']['avgInfo']['damage'] }}</div>
                    </div>
                    <div class="right-item-bottom item-bottom">
                        <div class="overview-kd-box bottom-mini-item-left one-background-color">
                            <div class="mini-item-top">击杀</div>
                            <div class="mini-item-bottom">{{ '%.2f' | format(data['typeInfo']['PVP']['battleInfo']['avgInfo']['frags']) }}</div>
                        </div>
                        <div class="overview-hit-box bottom-mini-item-right one-background-color">
                            <div class="mini-item-top">KD</div>
                            <div class="mini-item-bottom">{{ '%.2f' | format(data['typeInfo']['PVP']['battleInfo']['avgInfo']['kd']) }}</div>
                        </div>
                    </div>
                </div>
            </div>
        {% else %}
            <!--否则显示排位-->
            <div class="overview-change">
                <div class="overview-change-item left-item">
                    <div class="left-item-top item-top one-background-color">
                        <div class="overview-count-title item-top-top">场次</div>
                        <div class="overview-count item-top-bottom">{{ data['typeInfo']['RANK_SOLO']['battleInfo']['battleInfo']['battle'] }}</div>
                    </div>
                    <div class="left-item-bottom item-bottom">
                        <div class="change-avgdmg-box bottom-mini-item-left one-background-color">
                            <div class="mini-item-top">加成经验</div>
                            <div class="mini-item-bottom change-avgdmg">{{ data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['xp'] }}</div>
                        </div>
                        <div class="change-win-box bottom-mini-item-right one-background-color">
                            <div class="mini-item-top">命中率</div>
                            <div class="mini-item-bottom change-win">{{ data['typeInfo']['RANK_SOLO']['battleInfo']['hitRatioInfo']['ratioMain'] }}%</div>
                        </div>
                    </div>
                </div>
                <div class="overview-change-item mid-item">
                    <div class="mid-item-top item-top one-background-color">
                        <div class="overview-win-title item-top-top">胜率</div>
                        <div class="overview-win item-top-bottom"
                             style="color: {{ data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['winsData']['color'] }};">{{ data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['win'] }}%
                        </div>
                    </div>
                    <div class="mid-item-bottom item-bottom">
                        <div class="change-avgdmg-box bottom-mini-item-left one-background-color">
                            <div class="mini-item-top">侦察</div>
                            <div class="mini-item-bottom change-avgdmg">{{ '%.2f' | format(data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['shipsSpotted']) }}</div>
                        </div>
                        <div class="change-win-box bottom-mini-item-right one-background-color">
                            <div class="mini-item-top">击落</div>
                            <div class="mini-item-bottom change-win">{{ '%.2f' | format(data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['planesKilled']) }}</div>
                        </div>
                    </div>
                </div>
                <div class="overview-change-item right-item">
                    <div class="right-item-top item-top one-background-color">
                        <div class="overview-avgdmg-title item-top-top">场均</div>
                        <div class="overview-avgdmg item-top-bottom"
                             style="color: {{ data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['damageData']['color'] }};">{{ data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['damage'] }}</div>
                    </div>
                    <div class="right-item-bottom item-bottom">
                        <div class="overview-kd-box bottom-mini-item-left one-background-color">
                            <div class="mini-item-top">击杀</div>
                            <div class="mini-item-bottom">{{ '%.2f' | format(data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['frags']) }}</div>
                        </div>
                        <div class="overview-hit-box bottom-mini-item-right one-background-color">
                            <div class="mini-item-top">KD</div>
                            <div class="mini-item-bottom">{{ '%.2f' | format(data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['kd']) }}</div>
                        </div>
                    </div>
                </div>
            </div>
        {% endif %}

        <div class="random-header two-background-color">战斗类型</div>
        <div class="information-body one-background-color">
            <div class="information-col information-table-header two-background-color" style="border-radius: 16px;">
                <div class="information-col-item">类型</div>
                <div class="information-col-item">场次</div>
                <div class="information-col-item">胜率</div>
                <div class="information-col-item">PR</div>
                <div class="information-col-item">场均</div>
                <div class="information-col-item">击杀</div>
                <div class="information-col-item">命中</div>
            </div>
            {% if data['typeInfo']['PVP_SOLO']['battle'] %}
                <div class="information-col">
                    <div class="information-col-item information-type">单野</div>
                    <div class="information-col-item">{{ data['typeInfo']['PVP_SOLO']['battleInfo']['battleInfo']['battle'] }}</div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['PVP_SOLO']['battleInfo']['avgInfo']['winsData']['color'] }};">{{ data['typeInfo']['PVP_SOLO']['battleInfo']['avgInfo']['win'] }}%
                    </div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['PVP_SOLO']['prInfo']['color'] }};">{{ data['typeInfo']['PVP_SOLO']['prInfo']['value'] }}</div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['PVP_SOLO']['battleInfo']['avgInfo']['damageData']['color'] }};">{{ data['typeInfo']['PVP_SOLO']['battleInfo']['avgInfo']['damage'] }}</div>
                    <div class="information-col-item">{{ '%.2f' | format(data['typeInfo']['PVP_SOLO']['battleInfo']['avgInfo']['frags']) }}</div>
                    <div class="information-col-item">{{ '%.2f' | format(data['typeInfo']['PVP_SOLO']['battleInfo']['hitRatioInfo']['ratioMain']) }}%</div>
                </div>
            {% endif %}

            {% if data['typeInfo']['PVP_DIV2']['battle'] %}
                <div class="information-col">
                    <div class="information-col-item information-type">自行车</div>
                    <div class="information-col-item">{{ data['typeInfo']['PVP_DIV2']['battleInfo']['battleInfo']['battle'] }}</div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['PVP_DIV2']['battleInfo']['avgInfo']['winsData']['color'] }};">{{ data['typeInfo']['PVP_DIV2']['battleInfo']['avgInfo']['win'] }}%
                    </div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['PVP_DIV2']['prInfo']['color'] }};">{{ data['typeInfo']['PVP_DIV2']['prInfo']['value'] }}</div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['PVP_DIV2']['battleInfo']['avgInfo']['damageData']['color'] }};">{{ data['typeInfo']['PVP_DIV2']['battleInfo']['avgInfo']['damage'] }}</div>
                    <div class="information-col-item">{{ '%.2f' | format(data['typeInfo']['PVP_DIV2']['battleInfo']['avgInfo']['frags']) }}</div>
                    <div class="information-col-item">{{ '%.2f' | format(data['typeInfo']['PVP_DIV2']['battleInfo']['hitRatioInfo']['ratioMain']) }}%</div>
                </div>
            {% endif %}

            {% if data['typeInfo']['PVP_DIV3']['battle'] %}
                <div class="information-col">
                    <div class="information-col-item information-type">三轮车</div>
                    <div class="information-col-item">{{ data['typeInfo']['PVP_DIV3']['battleInfo']['battleInfo']['battle'] }}</div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['PVP_DIV3']['battleInfo']['avgInfo']['winsData']['color'] }};">{{ data['typeInfo']['PVP_DIV3']['battleInfo']['avgInfo']['win'] }}%
                    </div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['PVP_DIV3']['prInfo']['color'] }};">{{ data['typeInfo']['PVP_DIV3']['prInfo']['value'] }}</div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['PVP_DIV3']['battleInfo']['avgInfo']['damageData']['color'] }};">{{ data['typeInfo']['PVP_DIV3']['battleInfo']['avgInfo']['damage'] }}</div>
                    <div class="information-col-item">{{ '%.2f' | format(data['typeInfo']['PVP_DIV3']['battleInfo']['avgInfo']['frags']) }}</div>
                    <div class="information-col-item">{{ '%.2f' | format(data['typeInfo']['PVP_DIV3']['battleInfo']['hitRatioInfo']['ratioMain']) }}%</div>
                </div>
            {% endif %}

            {% if data['typeInfo']['RANK_SOLO']['battle'] %}
                <div class="information-col">
                    <div class="information-col-item information-type">排位</div>
                    <div class="information-col-item">{{ data['typeInfo']['RANK_SOLO']['battleInfo']['battleInfo']['battle'] }}</div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['winsData']['color'] }};">{{ data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['win'] }}%
                    </div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['RANK_SOLO']['prInfo']['color'] }};">{{ data['typeInfo']['RANK_SOLO']['prInfo']['value'] }}</div>
                    <div class="information-col-item"
                         style="color: {{ data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['damageData']['color'] }};">{{ data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['damage'] }}</div>
                    <div class="information-col-item">{{ '%.2f' | format(data['typeInfo']['RANK_SOLO']['battleInfo']['avgInfo']['frags']) }}</div>
                    <div class="information-col-item">{{ '%.2f' | format(data['typeInfo']['RANK_SOLO']['battleInfo']['hitRatioInfo']['ratioMain']) }}%</div>
                </div>
            {% endif %}
        </div>
        <div class="random-header two-background-color">随机最高记录</div>
        <div class="frag-data">
            <div class="frag-data-col">
                <div class="frag-item one-background-color">
                    <div class="frag-key">伤害</div>
                    <div class="frag-value">{{ data['typeInfo']['PVP']['battleInfo']['maxInfo']['maxDamageDealt']['value'] }}</div>
                </div>
                <div class="frag-item one-background-color">
                    <div class="frag-key">潜在</div>
                    <div class="frag-value">{{ data['typeInfo']['PVP']['battleInfo']['maxInfo']['maxTotalAgro']['value'] }}</div>
                </div>
                <div class="frag-item one-background-color">
                    <div class="frag-key">侦查</div>
                    <div class="frag-value">{{ data['typeInfo']['PVP']['battleInfo']['maxInfo']['maxScoutingDamage']['value'] }}</div>
                </div>
            </div>
            <div class="frag-data-col">
                <div class="frag-item one-background-color">
                    <div class="frag-key">击杀</div>
                    <div class="frag-value">{{ data['typeInfo']['PVP']['battleInfo']['maxInfo']['maxFrags']['value'] }}</div>
                </div>
                <div class="frag-item one-background-color">
                    <div class="frag-key">飞机数</div>
                    <div class="frag-value">{{ data['typeInfo']['PVP']['battleInfo']['maxInfo']['maxPlanesKilled']['value'] }}</div>
                </div>
                <div class="frag-item one-background-color">
                    <div class="frag-key">经验</div>
                    <div class="frag-value">{{ data['typeInfo']['PVP']['battleInfo']['maxInfo']['maxXp']['value'] }}</div>
                </div>
            </div>
        </div>
        <div class="random-header two-background-color" style="margin-top: -10px">服务器数据</div>
        <div class="information-body">
            <div class="information-col information-table-header two-background-color" style="border-radius: 16px">
                <div class="information-col-item">场均</div>
                <div class="information-col-item">胜率</div>
                <div class="information-col-item">击杀</div>
            </div>
            {% if data['typeInfo']['PVP']['battle'] %}
                <div class="information-col one-background-color">
                    <div class="information-col-item">{{ '%.2f' | format(data['typeInfo']['PVP']['prInfo']['details']['originalServer']['damage']) }}</div>
                    <div class="information-col-item">{{ '%.2f' | format(data['typeInfo']['PVP']['prInfo']['details']['originalServer']['wins']) }}</div>
                    <div class="information-col-item">{{  '%.2f' | format(data['typeInfo']['PVP']['prInfo']['details']['originalServer']['frags']) }}</div>
                </div>
            {% else %}
                <div class="information-col one-background-color">
                    <div class="information-col-item">{{  '%.2f' | format(data['typeInfo']['RANK_SOLO']['prInfo']['details']['originalServer']['damage']) }}</div>
                    <div class="information-col-item">{{  '%.2f' | format(data['typeInfo']['RANK_SOLO']['prInfo']['details']['originalServer']['wins']) }}</div>
                    <div class="information-col-item">{{  '%.2f' | format(data['typeInfo']['RANK_SOLO']['prInfo']['details']['originalServer']['frags']) }}</div>
                </div>
            {% endif %}

        </div>

        <div class="footer">
            <p>频道搜索"战舰世界-yuyuko"即可使用稳定的腾讯官方机器人~</p>
            <p>©github:wows-yuyuko</p>
        </div>
    </div>
</div>
</body>

<script>
    let pr_number = document.querySelector('.pr-number').innerText;
    pr_number = parseInt(pr_number);
    if (pr_number === 0) {
        document.querySelector(".pr").style.background = "linear-gradient(to right, #828282, #FFFFFF)";
    } else if (pr_number < 750) {
        document.querySelector(".pr").style.background = "linear-gradient(to right, #F44336, #FFFFFF)";

    } else if (pr_number < 1100) {
        document.querySelector(".pr").style.background = "linear-gradient(to right, #FF9800, #FFFFFF)";

    } else if (pr_number < 1350) {
        document.querySelector(".pr").style.background = "linear-gradient(to right, #FFC107, #FFFFFF)";
    } else if (pr_number < 1550) {
        document.querySelector(".pr").style.background = "linear-gradient(to right, #8BC34A, #AED581, #689F38)";

    } else if (pr_number < 1750) {
        document.querySelector(".pr").style.background = "linear-gradient(to right, #4CAF50, #81C784, #388E3C)";

    } else if (pr_number < 2100) {
        document.querySelector(".pr").style.background = "linear-gradient(to right, #00BCD4, #B2EBF2)";

    } else if (pr_number < 2450) {
        document.querySelector(".pr").style.background = "linear-gradient(to right, #9C27B0, #BA68C8, #8E24AA)";

    } else {
        document.querySelector(".pr").style.background = "linear-gradient(to right, #673AB7, #9575CD, #D1C4E9)";
    }
</script>
<script>
    // 数据变化动态颜色填充
    let change_avgdmg = document.querySelector(".change-avgdmg").innerText;
    change_avgdmg = parseInt(change_avgdmg);

    let change_win = document.querySelector(".change-win").innerText;
    change_win = change_win.split("%", 1);
    change_win = parseFloat(change_win);

    let change_pr = document.querySelector(".change-pr").innerText;
    change_pr = parseInt(change_pr);

    if (change_avgdmg >= 0) {
        document.querySelector(".change-avgdmg").style.color = "#70AD47";
    } else {
        document.querySelector(".change-avgdmg").style.color = "#FF0000";
    }

    if (change_win >= 0) {
        document.querySelector(".change-win").style.color = "#70AD47";
    } else {
        document.querySelector(".change-win").style.color = "#FF0000";
    }

    if (change_pr >= 0) {
        document.querySelector(".change-pr").style.color = "#70AD47";
    } else {
        document.querySelector(".change-pr").style.color = "#FF0000";
    }
</script>
</html>
