:root {
  --bg: #07080c;
  --ink: #0c0e14;
  --card: #141821;
  --text: #e8e2d4;
  --muted: #8a8376;
  --gold: #c4a36a;
  --ember: #8a2e2e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Songti SC", "STSong", "SimSun", "PingFang SC", "Microsoft YaHei", serif;
}

body {
  display: flex;
  justify-content: center;
}

.app {
  width: min(480px, 100%);
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(138, 46, 46, 0.22), transparent 42%),
    linear-gradient(180deg, #10131c 0%, #0a0c12 38%, #07080c 100%);
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.55);
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 16px 28px;
  color: var(--text);
  border-bottom: 1px solid rgba(196, 163, 106, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 30%, rgba(196, 163, 106, 0.16), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(138, 46, 46, 0.28), transparent 32%),
    repeating-linear-gradient(-18deg, transparent 0 18px, rgba(255, 255, 255, 0.015) 18px 19px);
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 8, 12, 0.55));
  pointer-events: none;
}

.hero-badge,
.hero h1 {
  position: relative;
  z-index: 1;
}

.hero-badge {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #b44545, #6d1f1f 62%, #3d1010);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f3e6d0;
  box-shadow:
    0 0 0 1px rgba(196, 163, 106, 0.45),
    0 8px 18px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-shadow: 0 0 18px rgba(196, 163, 106, 0.28);
}

main {
  padding: 12px 10px 28px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card {
  overflow: hidden;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid rgba(196, 163, 106, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #1a1e28;
}

.photo::before {
  content: "";
  display: block;
  padding-top: 133.333%;
}

.photo img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  -webkit-filter: saturate(0.78) contrast(1.06);
  filter: saturate(0.78) contrast(1.06);
}

.photo::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 38%, transparent 42%, rgba(7, 8, 12, 0.55) 100%),
    linear-gradient(180deg, transparent 58%, rgba(10, 12, 18, 0.7));
  pointer-events: none;
}

.photo.empty {
  color: #6e675c;
  font-size: 13px;
  background: linear-gradient(180deg, #1c212c, #12151c);
}

.photo.empty span {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.body {
  padding: 9px 9px 11px;
  background: linear-gradient(180deg, rgba(20, 24, 33, 0.96), #10141c);
}

.name {
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.08em;
  color: #f0eadc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brief {
  margin: 6px 0 0;
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pager {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
}

.pager a,
.pager span {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  background: #171b24;
  color: #b7ae9e;
  border: 1px solid rgba(196, 163, 106, 0.16);
  text-decoration: none;
  font-size: 12px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.pager a.cur {
  background: #3c2418;
  color: #f0d9a8;
  border-color: rgba(196, 163, 106, 0.55);
  box-shadow: 0 0 12px rgba(196, 163, 106, 0.18);
  font-weight: 700;
}

.pager span {
  background: transparent;
  border: 0;
  color: #6e675c;
}

.empty-page {
  grid-column: 1 / -1;
  padding: 48px 12px;
  text-align: center;
  color: var(--muted);
}
