{% extends "_base.html" %}
{% from "_macros.html" import icon, avatar, ribbon %}
{#- 内容对照 bf-manager 网页的 PlayerHeroBanner 与 CareerOverview,排版改成整宽纵向,方便手机看。 -#}
{% block style %}
.hero { position: relative; overflow: hidden; min-height: 400px; background: var(--panel);
clip-path: polygon(0 26px, 26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
background: linear-gradient(90deg, var(--amber-deep), rgba(245,158,11,.2) 60%, transparent); }
.hero.banned::after { background: linear-gradient(90deg, var(--red), rgba(239,68,68,.3) 60%, transparent); }
.portrait { position: absolute; right: 10px; bottom: 0; height: 400px; opacity: .95; }
.hero.banned .portrait, .hero.banned .who { filter: grayscale(1); }
.best { position: absolute; right: 28px; bottom: 22px; z-index: 1; text-align: right;
padding: 8px 14px; background: rgba(0,0,0,.65); }
.best .t { font-size: 17px; color: var(--muted); }
.best .v { font-size: 30px; font-weight: 700; }
.hero-body { position: relative; z-index: 1; padding: 28px 330px 30px 30px; }
.warn { margin-bottom: 16px; padding: 8px 16px; background: #b91c1c; font-weight: 700; font-size: 20px; }
.status { display: flex; flex-wrap: wrap; gap: 10px; font-size: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: rgba(255,255,255,.1); color: var(--soft); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #a1a1aa; }
.chip.on { background: rgba(16,185,129,.22); color: #a7f3d0; }
.chip.on .dot { background: #34d399; }
.ban { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; font-weight: 700; background: rgba(255,255,255,.1); }
.ban img { width: 26px; height: 26px; border-radius: 50%; }
.ban.clean .src { color: #6ee7b7; }
.ban .st { font-weight: 400; color: var(--muted); }
.ban.hit { background: rgba(185,28,28,.55); }
.ban.hit .st { color: #fecaca; font-weight: 900; }
.who { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.who .main { flex: 1; min-width: 0; }
.worn { display: flex; flex: none; gap: 14px; }
.worn .t { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 124px; text-align: center; font-size: 15px; line-height: 1.3; color: var(--soft); }
.worn img { width: 96px; height: 96px; border-radius: 50%; filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); }
.platoon { display: flex; align-items: center; gap: 26px; }
.platoon .body { flex: 1; min-width: 0; }
.platoon .pn { font-size: 30px; font-weight: 700; line-height: 1.3; word-break: break-all; }
.platoon .pn .tag { margin-right: 10px; color: var(--amber); font-family: "Oswald", "SC", sans-serif; }
.platoon .meta2 { display: flex; align-items: center; gap: 14px; margin-top: 4px; font-size: 18px; color: var(--soft); }
.platoon .ok { padding: 0 8px; background: rgba(251,191,36,.16); color: var(--amber-soft); font-size: 16px; line-height: 26px; }
.platoon .desc { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.6; color: var(--soft);
white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.platoon .emblem { width: 150px; height: 150px; flex: none; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.tip { font-size: 19px; line-height: 1.7; color: var(--soft); }
.tip .tags { margin-top: 8px; font-size: 16px; color: var(--muted); }
h1 { margin: 0; font-family: "Oswald", "SC", "WenQuanYi Zen Hei", sans-serif; font-size: 50px; line-height: 1.15; font-weight: 700; word-break: break-all; }
h1 .tag { color: var(--muted); margin-right: 12px; }
.meta { display: flex; align-items: center; gap: 18px; margin-top: 6px; font-size: 19px; color: var(--soft); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.lv { font-family: "Oswald", sans-serif; font-size: 20px; font-weight: 700; padding: 0 8px; border: 2px solid; }
.core { display: flex; align-items: flex-end; gap: 36px; margin-top: 24px; }
.core .kd-t { font-size: 18px; color: var(--amber); letter-spacing: .1em; }
.core .kd { font-family: "Oswald", sans-serif; font-size: 104px; line-height: .95; font-weight: 700; color: var(--amber); margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat({{ kpis|length if wide else 3 if kpis|length > 4 else 2 }}, auto); gap: 10px {{ 48 if wide else 28 if kpis|length > 4 else 36 }}px; padding-bottom: 4px; }
.kpis .v { font-family: "Oswald", sans-serif; font-size: 36px; font-weight: 700; line-height: 1.15; }
section.panel { margin-top: 18px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.cols.single { grid-template-columns: minmax(0, 1fr); }
.cols.single .col + .col > :first-child { margin-top: 18px; }
.col > :first-child { margin-top: 0; }
.splits { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.split .track { display: flex; gap: 4px; height: 14px; margin-top: 10px; }
.split .track i { display: block; }
.split .ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 19px; color: var(--soft); }
.split .ends b { font-family: "Oswald", sans-serif; font-size: 22px; margin-left: 4px; }
.split .ends em { font-style: normal; color: var(--muted); margin: 0 6px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 24px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.tiles .label { display: flex; align-items: center; gap: 8px; }
.tiles .v { font-family: "Oswald", sans-serif; font-size: 36px; font-weight: 700; line-height: 1.2; }
.tiles .v.hot { color: var(--amber-soft); }
.tiles .rate { font-size: 17px; color: var(--muted); margin-left: 8px; font-family: "SC", sans-serif; font-weight: 400; }
.classes { padding: 18px 22px; }
.classes .sh { font-size: 22px; margin-bottom: 10px; }
.cls { display: grid; grid-template-columns: 40px minmax(0, 1fr) 130px 110px 80px; gap: 0 14px; align-items: center;
padding: 4px 6px; font-size: 19px; color: var(--soft); }
.cls.head { font-size: 16px; color: var(--muted); padding-bottom: 6px; }
.cls.head span:nth-child(n+3), .cls .n { text-align: right; }
.cls.row { border-top: 1px solid var(--line); }
.cls.best-row { color: var(--amber-soft); }
.cls .pic { width: 40px; height: 40px; overflow: hidden; background: rgba(255,255,255,.08); }
.cls .pic img { display: block; width: 100%; height: 180%; object-fit: cover; object-position: top; }
.cls .badge { margin-left: 8px; background: var(--amber); color: #000; font-size: 14px; font-weight: 700; line-height: 20px; padding: 0 5px; vertical-align: 2px; }
.cls .share { margin-left: 8px; font-size: 16px; color: var(--muted); }
.cls .n { font-family: "Oswald", sans-serif; font-size: 20px; }
.gear-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.gear-row .panel { margin: 0; }
.gear-item + .gear-item { margin-top: 16px; }
.gear-item .line { display: flex; align-items: center; gap: 14px; }
.gear-item .img { width: 160px; height: 78px; flex: none; display: flex; align-items: center; justify-content: center;
background: #7e7e84; }
.gear-item .img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; }
.gear-item .body { flex: 1; min-width: 0; }
.gear-item .name { font-size: 20px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.gear-item .skin { margin-top: 2px; font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gear-item .k { font-family: "Oswald", sans-serif; font-size: 24px; font-weight: 700; color: var(--amber); }
.gear-item .k small { font-family: "SC", sans-serif; font-size: 17px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.gear-item .bar { margin-top: 6px; height: 6px; }
.empty { padding: 18px 0; text-align: center; font-size: 18px; color: var(--muted); }
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.details .label { font-size: 16px; }
.details .v { font-family: "Oswald", sans-serif; font-size: 25px; font-weight: 500; line-height: 1.2; }
.cls.sub { margin-top: 10px; }
.modes { width: 100%; border-collapse: collapse; font-size: 19px; }
.modes th { padding: 0 0 8px; font-size: 16px; font-weight: 400; color: var(--muted); text-align: right; }
.modes th:first-child, .modes td:first-child { text-align: left; }
.modes td { padding: 7px 0; border-top: 1px solid var(--line); text-align: right; color: var(--soft); }
.modes td:first-child { color: var(--text); }
.modes .d { font-size: 20px; }
.modes td + td, .modes th + th { padding-left: 14px; }
.honors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 18px; }
.ribbons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.rb { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rb .body { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex: 1; min-width: 0; }
.rb .n { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb .c { flex: none; font-size: 20px; color: var(--amber-soft); }
.honors .v { font-family: "Oswald", "SC", sans-serif; font-size: 32px; font-weight: 700; line-height: 1.2; }
.maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.map { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(255,255,255,.06); }
.map img { width: 100%; height: 100%; object-fit: cover; }
.map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 55%, transparent); }
.map .cap { position: absolute; left: 12px; right: 12px; bottom: 8px; z-index: 1; }
.map .n { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map .t { display: flex; justify-content: space-between; font-size: 16px; color: var(--soft); }
{% endblock %}
{% block body %}
{{ b.source }}
{%- if b.state == "hit" %}{{ b.hit_text }}{% elif b.state == "unknown" %}无信息{% endif %}
{% endfor %}
{% if platoon and platoon.tag %}[{{ platoon.tag }}]{% endif %}{{ name }}
{{ t.name }}
| 模式 | 胜 / 负 | 胜率 | 目标得分 |
|---|---|---|---|
| {{ m.name }} | {{ m.record }} | {{ m.rate }} | {{ m.score }} |