<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>角色面板</title>
</head>

<body>
    <div class="grid-container" id="container">
        <div class="grid-row-1">
            <!-- 左侧角色头像区域 -->
            <div class="grid-row-1-1">
                <div class="avatar-overlay"></div>
                <span class="icon rarity-icon" style="top: 15px;">
                    <img src="../../../images/avatar-rarity/{{ avatar.rarity }}.png" alt="">
                </span>
                <span class="icon profession-icon" style="top: 80px;">
                    <img src="../../../images/avatar_profession/{{ avatar.avatar_profession }}.png" alt="">
                </span>
                <span class="icon element-icon" style="top: 145px;">
                    {% if avatar.id==1091 %}
                    <img src="../../../images/element_type/1091.png" alt="雅">
                    {% elif avatar.id==1371 %}
                    <img src="../../../images/element_type/1371.png" alt="仪玄">
                    {% else %}
                    <img src="../../../images/element_type/{{avatar.element_type }}.png" alt="其他">
                    {% endif %}
                </span>
                <span class="avatar-rank">{{ avatar.rank }}</span>
            </div>
            <!-- 属性面板 -->
            <div class="grid-row-1-2">
                {% for propertie in avatar.properties %}
                <div class="grid-row-1-2-item">
                    <span class="property-name">{{propertie.property_name}}</span>
                    <span class="property-value">{{propertie.final_val}}</span>
                </div>
                {% endfor %}
            </div>
        </div>

        <div class="grid-row-2">
            <!-- 角色名称和等级 -->
            <div class="grid-row-2-1">
                <div class="grid-row-2-1-1">
                    <!-- 阵营图标 -->
                    <div class="group-icon-wrapper">
                        <img src="../../../images/group_icon_path/{{ avatar.group_icon_path }}" alt="">
                    </div>
                </div>
                <div class="grid-row-2-1-2">
                    <div class="uid">UID: {{ uid }}</div>
                    <div class="avatar-name">{{avatar.full_name_mi18n}}</div>
                    <div class="avatar-level">Lv {{avatar.level}}</div>
                </div>
            </div>

            <!-- 技能图标区域 -->
            <div class="grid-row-2-2">
                <div class="skill-block">
                    <div class="skill-icon">
                        <img src="../../../images/skills/普通攻击.png" alt="" />
                    </div>
                    <span class="skill-label">
                        普攻
                        {% for skill in avatar.skills %}
                        {% if skill.skill_type== 0 %}
                        <span class="skill-level">{{skill.level}}</span>
                        {% endif %}
                        {% endfor %}
                    </span>
                </div>
                <div class="skill-block">
                    <div class="skill-icon">
                        <img src="../../../images/skills/闪避.png" alt="" />
                    </div>
                    <span class="skill-label">
                        闪避
                        {% for skill in avatar.skills %}
                        {% if skill.skill_type== 2 %}
                        <span class="skill-level">{{skill.level}}</span>
                        {% endif %}
                        {% endfor %}
                    </span>
                </div>
                <div class="skill-block">
                    <div class="skill-icon">
                        <img src="../../../images/skills/支援技.png" alt="" />
                    </div>
                    <span class="skill-label">
                        支援
                        {% for skill in avatar.skills %}
                        {% if skill.skill_type== 6 %}
                        <span class="skill-level">{{skill.level}}</span>
                        {% endif %}
                        {% endfor %}
                    </span>
                </div>
                <div class="skill-block">
                    <div class="skill-icon">
                        <img src="../../../images/skills/强化e.png" alt="" />
                    </div>
                    <span class="skill-label">
                        战技
                        {% for skill in avatar.skills %}
                        {% if skill.skill_type== 1 %}
                        <span class="skill-level">{{skill.level}}</span>
                        {% endif %}
                        {% endfor %}
                    </span>
                </div>
                <div class="skill-block">
                    <div class="skill-icon">
                        <img src="../../../images/skills/终结技.png" alt="" />
                    </div>
                    <span class="skill-label">
                        终结
                        {% for skill in avatar.skills %}
                        {% if skill.skill_type== 3 %}
                        <span class="skill-level">{{skill.level}}</span>
                        {% endif %}
                        {% endfor %}
                    </span>
                </div>
                <div class="skill-block">
                    <div class="skill-icon">
                        <img src="../../../images/skills/核心技.png" alt="" />
                    </div>
                    <span class="skill-label">
                        核心
                        {% for skill in avatar.skills %}
                        {% if skill.skill_type== 5 %}
                        <span class="skill-level">{{skill.level}}</span>
                        {% endif %}
                        {% endfor %}
                    </span>
                </div>
            </div>
        </div>

        <div class="grid-row-3">
            <div class="grid-row-3-1">
                <div class="weapon-icon">
                    <img src="{{ weapon.icon }}" alt="武器图片" />
                </div>
                <div class="weapon-info">
                    {% if weapon.rarity == "S" %}
                    <div class="weapon-name S">{{weapon.name}}</div>
                    {% elif weapon.rarity == "A" %}
                    <div class="weapon-name A">{{weapon.name}}</div>
                    {% elif weapon.rarity == "B" %}
                    <div class="weapon-name B">{{weapon.name}}</div>
                    {% endif %}
                    <div class="weapon-refine">精炼 {{weapon.star}}</div>
                    <div class="weapon-level">Lv {{weapon.level}}</div>
                </div>
            </div>
            <div class="grid-row-3-2">
                <div class="rank-box">
                    <div class="enhancement-title">有效词条强化命中</div>
                    <div class="highlight">
                        {% set ns = namespace(total=0) %}
                        {% for equip in equips %}
                        {% for propertie in equip.properties %}
                        {% if propertie.valid %}
                        {% set ns.total = ns.total + propertie.add %}
                        {% endif %}
                        {% endfor %}
                        {% endfor %}
                        <span class="enhancement-value">{{ ns.total }}</span>

                        {% if ns.total < 10 %} <span class="enhancement-rank-B">B</span>
                            {% elif 10 <=ns.total < 20 %} <span class="enhancement-rank-A">A</span>
                                {% elif 20 <=ns.total %} <span class="enhancement-rank-S">S</span>
                                    {% endif %}


                    </div>
                </div>
            </div>
        </div>

        <div class="grid-row-4">
            {% for equip in equips %}
            <div class="equip-item">
                <div class="equip-item-1">
                    <span class="equip-name">{{equip.name}}</span>
                    <span class="equip-icon">
                        <img src="../../../images/equip-icon/{{ equip.icon }}" />
                    </span>
                    <span class="equip-rank-icon">
                        {% if equip.rarity=="S" %}
                        <img src="../../../images/equipment-icon/S.png" />
                        {% elif equip.rarity=="A" %}
                        <img src="../../../images/equipment-icon/A.png" />
                        {% elif equip.rarity=="B" %}
                        <img src="../../../images/equipment-icon/B.png" />
                        {% endif %}
                    </span>
                    <span class="equip-level">Lv{{equip.level}}</span>
                </div>

                <div class="equip-item-2">
                    <div class="equip-main-properties">
                        <div class="main-properties-name">{{ equip.main_properties[0].property_name }}</div>
                        <div class="main-properties-value">{{ equip.main_properties[0].base }}</div>
                    </div>
                    {% for propertie in equip.properties %}
                    <div class="equip-properties">
                        <div class="properties-name">{{ propertie.property_name }}</div>
                        {% if propertie.add > 0 %}
                        {% if propertie.valid %}
                        <div class="enhancement-add valid">+{{ propertie.add }}</div>
                        {% else %}
                        <div class="enhancement-add not-valid">+{{ propertie.add }}</div>
                        {% endif %}
                        {% endif %}
                        <div class="properties-value">{{ propertie.base }}</div>
                    </div>
                    {% endfor %}
                </div>
            </div>
            {% endfor %}
        </div>
    </div>

    <style>
        @font-face {
            font-family: 'Orbitron';
            font-style: normal;
            font-weight: 400;
            font-display: swap;
            src: url(../../../font.woff2) format('woff2');
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }

        /* latin */
        @font-face {
            font-family: 'Orbitron';
            font-style: normal;
            font-weight: 700;
            font-display: swap;
            src: url(../../../font.woff2) format('woff2');
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }

        /* latin */
        @font-face {
            font-family: 'Orbitron';
            font-style: normal;
            font-weight: 900;
            font-display: swap;
            src: url(../../../font.woff2) format('woff2');
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }

        * {
            box-sizing: border-box;
        }

        body {
            width: 100%;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 30%, #16213e 70%, #0f0f23 100%);
            font-family: 'Orbitron', monospace;
            overflow-x: auto;
        }

        .grid-container {
            display: grid;
            grid-template-columns: 1000px;
            grid-template-rows: 400px 140px 110px 725px;
            gap: 25px;
            background: linear-gradient(135deg, rgba(45, 52, 54, 0.95) 0%, rgba(99, 110, 114, 0.3) 50%, rgba(45, 52, 54, 0.95) 100%);
            border: 2px solid #00d4aa;
            border-radius: 20px;
            padding: 25px;
            box-shadow:
                0 0 50px rgba(0, 212, 170, 0.3),
                inset 0 0 50px rgba(0, 212, 170, 0.1);
            backdrop-filter: blur(10px);
            animation: containerGlow 3s ease-in-out infinite alternate;
        }

        @keyframes containerGlow {
            from {
                box-shadow: 0 0 50px rgba(0, 212, 170, 0.3), inset 0 0 50px rgba(0, 212, 170, 0.1);
            }

            to {
                box-shadow: 0 0 80px rgba(0, 212, 170, 0.5), inset 0 0 80px rgba(0, 212, 170, 0.2);
            }
        }

        /* 第一行：角色头像和属性 */
        .grid-row-1 {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 25px;
        }

        .grid-row-1-1 {
            background-size: cover;
            background-position: center;
            background-image: url('../../../images/vertical_painting/{{ vertical_painting }}');
            background-repeat: no-repeat;
            border-radius: 15px;
            position: relative;
            border: 2px solid rgba(255, 255, 255, 0.2);
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .avatar-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg,
                    rgba(0, 0, 0, 0.3) 0%,
                    rgba(0, 212, 170, 0.1) 30%,
                    rgba(255, 255, 255, 0.05) 70%,
                    rgba(0, 0, 0, 0.4) 100%);
        }

        .icon {
            position: absolute;
            left: 15px;
            z-index: 10;
            transition: all 0.3s ease;
        }

        .icon:hover {
            transform: scale(1.1) rotate(5deg);
        }

        .icon img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }

        .icon img:hover {
            border-color: #00d4aa;
            box-shadow: 0 0 20px rgba(0, 212, 170, 0.6);
        }

        .avatar-rank {
            position: absolute;
            right: 15px;
            top: 15px;
            font-size: 24px;
            font-weight: 900;
            color: #00d4aa;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 212, 170, 0.2));
            padding: 8px 15px;
            border-radius: 20px;
            border: 2px solid #00d4aa;
            box-shadow: 0 0 20px rgba(0, 212, 170, 0.4);
            text-shadow: 0 0 10px rgba(0, 212, 170, 0.8);
        }

        .grid-row-1-2 {
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-content: start;
            gap: 15px;
            padding: 20px;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 212, 170, 0.1));
            backdrop-filter: blur(5px);
        }

        .grid-row-1-2-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(255, 255, 255, 0.05));
            padding: 12px 16px;
            border-radius: 10px;
            border: 1px solid rgba(0, 212, 170, 0.3);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .grid-row-1-2-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .grid-row-1-2-item:hover::before {
            left: 100%;
        }

        .grid-row-1-2-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
        }

        .property-name {
            color: #ffffff;
            font-weight: 500;
            font-size: 14px;
        }

        .property-value {
            color: #00d4aa;
            font-weight: 700;
            font-size: 16px;
            text-shadow: 0 0 8px rgba(0, 212, 170, 0.5);
        }

        /* 第二行：角色信息和技能 */
        .grid-row-2 {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 25px;
        }

        .grid-row-2-1 {
            display: grid;
            grid-template-columns: 1fr 2fr;
            border: 2px solid rgba(255, 193, 7, 0.5);
            border-radius: 15px;
            background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(0, 0, 0, 0.3));
            overflow: hidden;
            position: relative;
        }

        .grid-row-2-1-1 {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px;
        }

        .group-icon-wrapper {
            position: relative;
        }

        .group-icon-wrapper img {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            border: 3px solid rgba(255, 193, 7, 0.5);
            box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
            transition: all 0.3s ease;
        }

        .group-icon-wrapper:hover img {
            transform: scale(1.05);
            border-color: #ffc107;
            box-shadow: 0 0 30px rgba(255, 193, 7, 0.6);
        }

        .grid-row-2-1-2 {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 15px;
            color: #ffffff;
        }

        .uid {
            font-size: 12px;
            color: #aaa;
            margin-bottom: 5px;
            font-family: 'Courier New', monospace;
        }

        .avatar-name {
            font-size: 24px;
            font-weight: 700;
            color: #ffc107;
            margin-bottom: 8px;
            text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
        }

        .avatar-level {
            font-size: 18px;
            color: #00d4aa;
            font-weight: 600;
        }

        .grid-row-2-2 {
            border: 2px solid rgba(255, 193, 7, 0.5);
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            border-radius: 15px;
            background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(0, 0, 0, 0.3));
            gap: 8px;
            padding: 15px;
        }

        .skill-block {
            background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(255, 255, 255, 0.05));
            border: 1px solid rgba(0, 212, 170, 0.3);
            border-radius: 12px;
            padding: 12px 8px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .skill-block:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
            border-color: #00d4aa;
        }

        .skill-icon {
            margin-bottom: 8px;
            display: flex;
            justify-content: center;
        }

        .skill-icon img {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .skill-block:hover .skill-icon img {
            transform: scale(1.1);
            filter: brightness(1.2);
        }

        .skill-label {
            font-size: 11px;
            color: #ddd;
            font-weight: 500;
            display: block;
        }

        .skill-level {
            color: #00d4aa;
            font-weight: 700;
            font-size: 14px;
            display: block;
            margin-top: 2px;
            text-shadow: 0 0 5px rgba(0, 212, 170, 0.5);
        }

        /* 第三行：武器和强化信息 */
        .grid-row-3 {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 25px;
        }

        .grid-row-3-1 {
            display: grid;
            grid-template-columns: 1fr 2fr;
            border: 2px solid rgba(138, 43, 226, 0.5);
            border-radius: 15px;
            background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 0, 0, 0.3));
            padding: 15px;
        }

        .weapon-icon {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .weapon-icon img {
            width: 70px;
            height: 70px;
            border-radius: 10px;
            border: 2px solid rgba(138, 43, 226, 0.5);
            box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
            transition: all 0.3s ease;
        }

        .weapon-icon img:hover {
            transform: scale(1.05) rotate(2deg);
            border-color: #8a2be2;
            box-shadow: 0 0 30px rgba(138, 43, 226, 0.6);
        }

        .weapon-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
        }

        .weapon-name {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .weapon-name.S {
            color: #ff6b35;
            text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
        }

        .weapon-name.A {
            color: #8a2be2;
            text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
        }

        .weapon-name.B {
            color: #4169e1;
            text-shadow: 0 0 10px rgba(65, 105, 225, 0.5);
        }

        .weapon-refine,
        .weapon-level {
            color: #ffffff;
            font-size: 14px;
            font-weight: 500;
        }

        .grid-row-3-2 {
            border: 2px solid rgba(255, 20, 147, 0.5);
            border-radius: 15px;
            background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(0, 0, 0, 0.3));
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .rank-box {
            text-align: center;
            color: #ffffff;
            position: relative;
        }

        .enhancement-title {
            font-size: 14px;
            margin-bottom: 10px;
            color: #ddd;
        }

        .highlight {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .enhancement-value {
            font-size: 32px;
            font-weight: 900;
            color: #ff1493;
            text-shadow: 0 0 15px rgba(255, 20, 147, 0.8);
        }

        .enhancement-rank-S {
            position: absolute;
            right: 15px;
            bottom: 15px;
            font-size: 24px;
            font-weight: 700;
            color: #e8320a;
            background: linear-gradient(135deg, #e8320a, #00d4aa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .enhancement-rank-A {
            position: absolute;
            right: 15px;
            bottom: 15px;
            font-size: 24px;
            font-weight: 700;
            color: #4409d9;
            background: linear-gradient(135deg, #4409d9, #00d4aa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .enhancement-rank-B {
            position: absolute;
            right: 15px;
            bottom: 15px;
            font-size: 24px;
            font-weight: 700;
            color: #0a9fee;
            background: linear-gradient(135deg, #0a9fee, #00d4aa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* 第四行：装备 */
        .grid-row-4 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 20px;
        }

        .equip-item {
            border: 2px solid rgba(0, 212, 170, 0.4);
            border-radius: 15px;
            background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(0, 0, 0, 0.4));
            display: grid;
            grid-template-rows: 100px 1fr;
            gap: 15px;
            padding: 15px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .equip-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
            border-color: #00d4aa;
        }

        .equip-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.1), transparent);
            transition: left 0.8s ease;
        }

        .equip-item:hover::before {
            left: 100%;
        }

        .equip-item-1 {
            position: relative;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 212, 170, 0.05));
            border-radius: 10px;
            border: 1px solid rgba(0, 212, 170, 0.2);
        }

        .equip-name {
            position: absolute;
            top: 15px;
            left: 15px;
            font-size: 16px;
            color: #ffc107;
            font-weight: 600;
            text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
        }

        .equip-icon {
            position: absolute;
            top: 15px;
            right: 15px;
        }

        .equip-icon img {
            width: 45px;
            height: 45px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .equip-icon img:hover {
            transform: scale(1.1);
            border-color: #00d4aa;
        }

        .equip-rank-icon {
            position: absolute;
            top: 50px;
            left: 15px;
        }

        .equip-rank-icon img {
            width: 20px;
            height: 20px;
        }

        .equip-level {
            position: absolute;
            top: 50px;
            left: 45px;
            font-size: 16px;
            color: #ffffff;
            font-weight: 600;
        }

        .equip-item-2 {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .equip-main-properties {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 212, 170, 0.1));
            border-radius: 8px;
            border: 1px solid rgba(0, 212, 170, 0.3);
        }

        .main-properties-name {
            font-size: 14px;
            font-weight: 600;
            color: #ffffff;
        }

        .main-properties-value {
            font-size: 16px;
            font-weight: 700;
            color: #00d4aa;
            text-shadow: 0 0 8px rgba(0, 212, 170, 0.5);
        }

        .equip-properties {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 12px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2));
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .properties-name {
            font-size: 12px;
            color: #ccc;
        }

        .properties-value {
            font-size: 14px;
            color: #ffffff;
            font-weight: 500;
        }

        .enhancement-add {
            font-size: 12px;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 4px;
            margin: 0 5px;
        }

        .enhancement-add.valid {
            background: linear-gradient(135deg, #ffc107, #ff8f00);
            color: #000;
            text-shadow: none;
            box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
        }

        .enhancement-add.not-valid {
            background: linear-gradient(135deg, #6c757d, #495057);
            color: #fff;
            opacity: 0.7;
        }

        /* 响应式设计 */
        @media (max-width: 1100px) {
            .grid-container {
                grid-template-columns: 90vw;
                max-width: 90vw;
            }
        }

        @media (max-width: 768px) {
            body {
                padding: 10px;
            }

            .grid-container {
                grid-template-columns: 95vw;
                grid-template-rows: auto auto auto auto;
                gap: 20px;
                padding: 15px;
            }

            .grid-row-1 {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .grid-row-2 {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .grid-row-2-2 {
                grid-template-columns: repeat(3, 1fr);
                grid-template-rows: repeat(2, 1fr);
            }

            .grid-row-3 {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .grid-row-4 {
                grid-template-columns: 1fr;
                grid-template-rows: repeat(6, 1fr);
            }

            .grid-row-1-2 {
                grid-template-columns: 1fr;
            }

            .avatar-name {
                font-size: 20px;
            }

            .avatar-level {
                font-size: 16px;
            }

            .enhancement-value {
                font-size: 24px;
            }
        }

        /* 动画效果 */
        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .grid-row-1-2-item,
        .skill-block,
        .equip-item {
            animation: slideIn 0.6s ease-out;
        }

        .grid-row-1-2-item:nth-child(odd) {
            animation-delay: 0.1s;
        }

        .grid-row-1-2-item:nth-child(even) {
            animation-delay: 0.2s;
        }

        .skill-block:nth-child(1) {
            animation-delay: 0.1s;
        }

        .skill-block:nth-child(2) {
            animation-delay: 0.15s;
        }

        .skill-block:nth-child(3) {
            animation-delay: 0.2s;
        }

        .skill-block:nth-child(4) {
            animation-delay: 0.25s;
        }

        .skill-block:nth-child(5) {
            animation-delay: 0.3s;
        }

        .skill-block:nth-child(6) {
            animation-delay: 0.35s;
        }

        .equip-item:nth-child(1) {
            animation-delay: 0.1s;
        }

        .equip-item:nth-child(2) {
            animation-delay: 0.15s;
        }

        .equip-item:nth-child(3) {
            animation-delay: 0.2s;
        }

        .equip-item:nth-child(4) {
            animation-delay: 0.25s;
        }

        .equip-item:nth-child(5) {
            animation-delay: 0.3s;
        }

        .equip-item:nth-child(6) {
            animation-delay: 0.35s;
        }

        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #00d4aa, #0099cc);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #00ffcc, #00bbee);
        }

        /* 加载动画 */
        @keyframes shimmer {
            0% {
                background-position: -1000px 0;
            }

            100% {
                background-position: 1000px 0;
            }
        }

        .loading {
            animation: shimmer 2s infinite;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.2), transparent);
            background-size: 1000px 100%;
        }
    </style>
</body>

</html>