/* ============================================================
   玩家生涯页样式（复用 style.css 的设计变量）
   ============================================================ */

.pl-hero {
  padding: 118px 0 26px;
  background:
    repeating-linear-gradient(180deg, rgba(90, 62, 32, .05) 0 2px, transparent 2px 4px),
    var(--paper-tint);
  border-bottom: 3px solid rgba(26, 26, 26, .12);
}
.pl-hero h1 {
  font-size: 34px; font-weight: normal; letter-spacing: 4px; text-align: center;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .12);
}
.pl-sub { text-align: center; color: var(--ink-dim); font-size: 13.5px; margin-top: 8px; }
.pl-tip {
  max-width: 760px; margin: 18px auto 0;
  background: rgba(29, 184, 196, .09);
  border: 2px dashed rgba(14, 122, 131, .4);
  padding: 11px 15px;
  font-size: 12.5px; color: #0e5a60; line-height: 1.85;
}

.pl-main { padding: 34px 0 60px; display: flex; flex-direction: column; gap: 32px; }
.pl-h2 {
  font-size: 20px; font-weight: normal; letter-spacing: 2px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.pl-hint { font-size: 12.5px; color: var(--ink-dim); font-weight: normal; }
.pl-sub2 {
  font-size: 14px; font-weight: normal; color: var(--ink-dim);
  margin: 18px 0 9px; padding-top: 12px;
  border-top: 3px solid rgba(26, 26, 26, .1);
}
.pl-empty { color: var(--ink-dim); font-size: 13px; }

/* ---------- 时长榜 ---------- */
.pl-leaderboard { display: flex; flex-direction: column; gap: 7px; }
.pl-rank {
  display: flex; align-items: center; gap: 12px;
  font-family: inherit; font-size: 14px; text-align: left;
  background: #fff; border: 3px solid var(--border);
  box-shadow: var(--shadow-hard);
  padding: 9px 14px; cursor: pointer;
  color: var(--ink);
}
.pl-rank:hover { background: rgba(90, 168, 52, .06); }
.pl-rank-no {
  flex: none; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; background: #9a9a9a;
  border: 2px solid var(--border);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .4);
}
.pl-rank:nth-child(1) .pl-rank-no { background: var(--yellow); color: #3a2a15; text-shadow: none; }
.pl-rank:nth-child(2) .pl-rank-no { background: #b8c0c8; color: #2b2620; text-shadow: none; }
.pl-rank:nth-child(3) .pl-rank-no { background: #c68a4e; }
.pl-rank-name { flex: 1; min-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-rank-bar { width: 140px; height: 10px; flex: none; background: #e4ded0; border: 2px solid rgba(26,26,26,.25); }
.pl-rank-bar i { display: block; height: 100%; background: var(--green); }
.pl-rank-hour { flex: none; color: var(--ink-dim); font-size: 12.5px; min-width: 84px; text-align: right; }

/* ---------- 搜索 + 目录 ---------- */
.pl-search-wrap { margin-bottom: 12px; }
.pl-search {
  width: 100%; max-width: 340px;
  font-family: inherit; font-size: 14px;
  padding: 9px 12px; background: var(--paper);
  border: 3px solid var(--border); color: var(--ink);
}
.pl-search:focus { outline: none; background: #fff; }

.pl-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chip {
  display: flex; flex-direction: column; gap: 2px;
  font-family: inherit; text-align: left; cursor: pointer;
  background: #fff; border: 3px solid var(--border);
  box-shadow: var(--shadow-hard);
  padding: 9px 13px; min-width: 168px;
  color: var(--ink);
}
.pl-chip:hover { background: rgba(90, 168, 52, .06); }
.pl-chip.active { background: rgba(90, 168, 52, .13); box-shadow: var(--shadow-hard), 0 0 0 3px rgba(90,168,52,.4); }
.pl-chip b { font-weight: normal; font-size: 14.5px; }
.pl-chip span { color: var(--ink-dim); font-size: 11.5px; }

/* ---------- 详情面板 ---------- */
.pl-detail {
  background: #fff;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-hard), 6px 6px 0 rgba(0, 0, 0, .08);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.pl-detail[hidden] { display: none; }
.pl-detail-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 3px solid rgba(26, 26, 26, .12);
  position: relative;
}
.pl-detail-icon {
  width: 34px; height: 34px; flex: none;
  border: 3px solid var(--border); box-shadow: var(--shadow-hard);
  image-rendering: pixelated;
}
.pl-detail-head b { display: block; font-weight: normal; font-size: 19px; }
.pl-detail-head span { display: block; color: var(--ink-dim); font-size: 12.5px; margin-top: 2px; }
.pl-detail-close {
  position: absolute; top: 0; right: 0;
  font-family: inherit; font-size: 20px; line-height: 1;
  width: 30px; height: 30px; cursor: pointer;
  background: var(--paper); border: 3px solid var(--border);
  color: var(--ink);
}
.pl-detail-close:hover { background: var(--red); color: #fff; }

.pl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pl-stat {
  background: #8b8b8b;
  border: 3px solid #373737;
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, .3), inset -3px -3px 0 rgba(255, 255, 255, .28);
  padding: 11px 13px;
}
.pl-stat span { display: block; color: #e2e2e2; font-size: 11.5px; text-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.pl-stat b {
  display: block; color: #fff; font-weight: normal; font-size: 18px;
  margin-top: 3px; text-shadow: 2px 2px 0 rgba(0, 0, 0, .45);
}

.pl-servers { display: flex; flex-direction: column; gap: 6px; }
.pl-server {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  background: var(--paper); border: 2px solid rgba(26, 26, 26, .2);
  padding: 8px 12px; font-size: 13.5px;
}
.pl-server span { color: var(--ink-dim); font-size: 12px; flex: none; }

.pl-events { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pl-ev { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pl-ev-badge {
  flex: none; font-size: 11.5px; color: #fff; padding: 0 8px;
  border: 2px solid var(--border);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .4);
}
.ev-join { background: var(--green); }
.ev-leave { background: #9a9a9a; }
.pl-ev-time { color: var(--ink-dim); font-size: 12.5px; flex: none; min-width: 92px; }
.pl-ev-server { color: var(--ink-dim); font-size: 12.5px; }

@media (max-width: 860px) {
  .pl-stats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pl-hero { padding: 104px 0 22px; }
  .pl-hero h1 { font-size: 26px; letter-spacing: 2px; }
  .pl-rank-bar { width: 70px; }
  .pl-search { max-width: 100%; }
}
