This commit is contained in:
2026-08-01 21:08:18 +08:00
parent e1e1a3d608
commit 8d535d579d
8 changed files with 1174 additions and 471 deletions
+458
View File
@@ -0,0 +1,458 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>{{ roleName | default("角色") }} - 成就查询</title>
<style>
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
padding: 32px;
font-family:
"Microsoft YaHei",
"PingFang SC",
Arial,
sans-serif;
color: #e9eef9;
background:
radial-gradient(
circle at top left,
rgba(83, 111, 255, 0.16),
transparent 34%
),
radial-gradient(
circle at top right,
rgba(174, 91, 255, 0.13),
transparent 28%
),
linear-gradient(
145deg,
#101522 0%,
#151b2b 48%,
#0e1320 100%
);
}
.page-container {
width: 100%;
max-width: 1180px;
margin: 0 auto;
}
.page-header {
position: relative;
overflow: hidden;
margin-bottom: 24px;
padding: 28px 32px;
border: 1px solid rgba(138, 161, 255, 0.22);
border-radius: 18px;
background:
linear-gradient(
135deg,
rgba(45, 59, 94, 0.92),
rgba(29, 37, 62, 0.92)
);
box-shadow:
0 18px 40px rgba(0, 0, 0, 0.25),
inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.page-header::before {
content: "";
position: absolute;
top: -80px;
right: -40px;
width: 260px;
height: 260px;
border-radius: 50%;
background: rgba(107, 126, 255, 0.12);
filter: blur(2px);
}
.page-header::after {
content: "";
position: absolute;
right: 36px;
bottom: -65px;
width: 150px;
height: 150px;
border: 1px solid rgba(177, 132, 255, 0.14);
border-radius: 50%;
}
.header-content {
position: relative;
z-index: 1;
}
.header-label {
margin-bottom: 9px;
color: #98a7d9;
font-size: 14px;
font-weight: 600;
letter-spacing: 3px;
}
.role-name {
margin: 0;
color: #ffffff;
font-size: 34px;
font-weight: 800;
line-height: 1.3;
letter-spacing: 1px;
text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}
.header-line {
width: 58px;
height: 4px;
margin-top: 17px;
border-radius: 999px;
background: linear-gradient(
90deg,
#6d8cff,
#ae72ff
);
box-shadow: 0 0 14px rgba(112, 137, 255, 0.5);
}
.achievement-list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
.achievement-card {
position: relative;
overflow: hidden;
min-width: 0;
padding: 21px 22px;
border: 1px solid rgba(130, 149, 207, 0.18);
border-radius: 16px;
background:
linear-gradient(
145deg,
rgba(32, 40, 65, 0.97),
rgba(24, 30, 50, 0.97)
);
box-shadow:
0 12px 28px rgba(0, 0, 0, 0.2),
inset 0 1px 0 rgba(255, 255, 255, 0.035);
break-inside: avoid;
}
.achievement-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: linear-gradient(
180deg,
#6c89ff,
#a66dff
);
}
.achievement-card.finished::before {
background: linear-gradient(
180deg,
#4be0ad,
#44a9ff
);
}
.card-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 15px;
}
.title-area {
min-width: 0;
}
.achievement-name {
margin: 0 0 8px 0;
color: #ffffff;
font-size: 20px;
font-weight: 750;
line-height: 1.45;
word-break: break-word;
}
.category-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.category-tag {
display: inline-flex;
align-items: center;
min-height: 26px;
padding: 4px 10px;
border: 1px solid rgba(114, 139, 230, 0.24);
border-radius: 999px;
color: #b9c6ed;
background: rgba(92, 115, 192, 0.11);
font-size: 12px;
font-weight: 600;
line-height: 1.3;
}
.category-tag.detail {
color: #d1bbf4;
border-color: rgba(168, 114, 230, 0.24);
background: rgba(156, 92, 203, 0.1);
}
.status-area {
display: flex;
flex-shrink: 0;
flex-direction: column;
align-items: flex-end;
gap: 8px;
}
.status-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 72px;
padding: 6px 11px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
white-space: nowrap;
}
.status-finished {
color: #7ff0c9;
border: 1px solid rgba(71, 219, 166, 0.28);
background: rgba(53, 190, 143, 0.12);
}
.status-unfinished {
color: #ffbcbd;
border: 1px solid rgba(255, 116, 116, 0.25);
background: rgba(218, 75, 75, 0.11);
}
.favorite-badge {
display: inline-flex;
align-items: center;
gap: 5px;
color: #f4c969;
font-size: 12px;
font-weight: 650;
white-space: nowrap;
}
.not-favorite {
color: #707b9d;
}
.description {
min-height: 46px;
margin: 0 0 18px 0;
color: #aab5d1;
font-size: 14px;
line-height: 1.75;
word-break: break-word;
}
.card-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding-top: 14px;
border-top: 1px solid rgba(130, 149, 207, 0.13);
}
.point-label {
color: #76819e;
font-size: 13px;
}
.point-value {
display: flex;
align-items: baseline;
gap: 5px;
color: #f4ce73;
font-weight: 800;
}
.point-number {
font-size: 22px;
line-height: 1;
}
.point-unit {
font-size: 12px;
font-weight: 600;
}
.empty-state {
grid-column: 1 / -1;
padding: 60px 20px;
border: 1px dashed rgba(135, 153, 207, 0.24);
border-radius: 16px;
color: #8d98b6;
background: rgba(27, 34, 55, 0.75);
text-align: center;
font-size: 16px;
}
@media (max-width: 850px) {
body {
padding: 20px;
}
.achievement-list {
grid-template-columns: 1fr;
}
.role-name {
font-size: 29px;
}
}
@media (max-width: 520px) {
body {
padding: 14px;
}
.page-header {
padding: 23px 20px;
}
.achievement-card {
padding: 18px;
}
.card-header {
flex-direction: column;
}
.status-area {
flex-direction: row;
align-items: center;
}
}
</style>
</head>
<body>
<main class="page-container">
<header class="page-header">
<div class="header-content">
<div class="header-label">角色成就查询</div>
<h1 class="role-name">
{{ roleName | default("未知角色", true) }}
</h1>
<div class="header-line"></div>
</div>
</header>
<section class="achievement-list">
{% if data %}
{% for item in data %}
<article
class="
achievement-card
{% if item.isFinished %}
finished
{% endif %}
"
>
<div class="card-header">
<div class="title-area">
<h2 class="achievement-name">
{{ item.name | default("未知成就", true) }}
</h2>
<div class="category-row">
<span class="category-tag">
{{ item.subClass | default("未分类", true) }}
</span>
<span class="category-tag detail">
{{ item.detail | default("暂无细分", true) }}
</span>
</div>
</div>
<div class="status-area">
{% if item.isFinished %}
<span class="status-badge status-finished">
已完成
</span>
{% else %}
<span class="status-badge status-unfinished">
未完成
</span>
{% endif %}
{% if item.isFav %}
<span class="favorite-badge">
★ 已收藏
</span>
{% else %}
<span class="favorite-badge not-favorite">
☆ 未收藏
</span>
{% endif %}
</div>
</div>
<p class="description">
{{ item.desc | default("暂无成就说明", true) }}
</p>
<div class="card-footer">
<span class="point-label">
成就点数
</span>
<span class="point-value">
<span class="point-number">
{{ item.rewardPoint | default(0, true) }}
</span>
<span class="point-unit">
</span>
</span>
</div>
</article>
{% endfor %}
{% else %}
<div class="empty-state">
暂未查询到成就数据
</div>
{% endif %}
</section>
</main>
</body>
</html>