@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@500;700&family=ZCOOL+QingKe+HuangYou&display=swap");

:root {
  --bg: #0a0a0c;
  --bg-deep: #050507;
  --panel: #151418;
  --panel-2: #1f1f24;
  --text: #f3efe4;
  --muted: #b1a89a;
  --accent: #b88a3d;
  --accent-2: #e6c77b;
  --line: rgba(230, 199, 123, 0.2);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg-deep);
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-image: linear-gradient(135deg, rgba(5, 5, 7, 0.7), rgba(5, 5, 7, 0.7)),
    radial-gradient(circle at 10% 10%, rgba(184, 138, 61, 0.12), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(90, 40, 25, 0.16), transparent 55%),
    url("https://image.gamersky.com/webimg13/db/nioh3wiki/wikibg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: var(--text);
  min-height: 100vh;
}

.mobile-topbar {
  display: none;
}

.app-nav {
  height: 88px;
  padding-top: 44px;
  background: linear-gradient(180deg, #2b2a2f 0%, #232228 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: none;
}

.app-nav-inner {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f3efe4;
  font-weight: 600;
  letter-spacing: 2px;
}

body.in-app .app-nav {
  display: block;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.page-nav {
  height: 88px;
  padding-top: 44px;
  background: #665d4c;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  width: 100%;
  overflow: hidden;
  margin: 0 0 16px 0;
}

.page-nav-inner {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.page-nav-logo {
  height: 18px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.15));
}

@media (min-width: 1024px) {
  .page-nav {
    display: none;
  }
}

.site-header {
  position: relative;
  padding: 28px 28px 32px;
  background: linear-gradient(120deg, rgba(21, 20, 24, 0.95), rgba(10, 9, 12, 0.9));
  border: 1px solid rgba(230, 199, 123, 0.28);
  box-shadow: var(--shadow);
  border-radius: 18px;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.28;
  pointer-events: none;
}

.back-home {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  color: #e6d6a8;
  border: 1px solid rgba(230, 199, 123, 0.45);
  background: rgba(15, 14, 18, 0.6);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.back-home:hover {
  color: #f1e3b7;
  border-color: rgba(230, 199, 123, 0.8);
  transform: translateY(-1px);
}

.title-wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--accent-2);
}

h1 {
  font-family: "Noto Serif SC", "ZCOOL QingKe HuangYou", "Noto Sans SC", serif;
  font-size: 46px;
  margin-top: 8px;
  letter-spacing: 2px;
  position: relative;
}

h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
}

.subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.search-bar {
  margin-top: 16px;
  width: 100%;
  height: 38px;
  background: #d2cdc6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: none;
}

.search-icon {
  font-size: 16px;
  color: #6b6762;
}

.search-bar input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #4a4743;
}

.search-bar input::placeholder {
  color: #6f6b66;
}

.content {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.block {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.3;
  pointer-events: none;
}

.coming-soon {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(10, 9, 12, 0.78);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: auto;
}

.coming-soon span {
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid rgba(210, 170, 95, 0.6);
  color: #f1e1b8;
  font-weight: 700;
  letter-spacing: 4px;
  background: rgba(25, 22, 18, 0.9);
  text-shadow: 0 0 10px rgba(241, 210, 134, 0.35);
}

.block-head h2 {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: 22px;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.block-head::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 12px;
  background-image: linear-gradient(90deg, rgba(230, 199, 123, 0.9), rgba(230, 199, 123, 0.2), transparent);
  box-shadow: 0 0 10px rgba(230, 199, 123, 0.25);
}

.block-head p {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}

.sub-block {
  margin-top: 16px;
  padding: 14px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(20, 19, 23, 0.6);
}

.sub-block:first-of-type {
  margin-top: 18px;
}

.sub-title {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--accent-2);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(230, 199, 123, 0.25);
}

.sub-block .grid {
  margin-top: 0;
}

.grid.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px 12px;
  min-height: 64px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #2a2a2f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: #323238;
}

.tile .icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}


.tile .label {
  font-size: 13px;
  letter-spacing: 0.5px;
}

.grid[data-stagger] .tile {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.6s ease forwards;
}

.grid[data-stagger] .tile:nth-child(1) {
  animation-delay: 0.05s;
}

.grid[data-stagger] .tile:nth-child(2) {
  animation-delay: 0.1s;
}

.grid[data-stagger] .tile:nth-child(3) {
  animation-delay: 0.15s;
}

.grid[data-stagger] .tile:nth-child(4) {
  animation-delay: 0.2s;
}

.grid[data-stagger] .tile:nth-child(5) {
  animation-delay: 0.25s;
}

.grid[data-stagger] .tile:nth-child(6) {
  animation-delay: 0.3s;
}

.grid[data-stagger] .tile:nth-child(7) {
  animation-delay: 0.35s;
}

.grid[data-stagger] .tile:nth-child(8) {
  animation-delay: 0.4s;
}

.grid[data-stagger] .tile:nth-child(9) {
  animation-delay: 0.45s;
}

.table-wrap {
  margin-top: 16px;
  background: rgba(14, 13, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.data-table thead th {
  text-align: center;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(21, 20, 24, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.data-table td {
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
}

.nowrap {
  white-space: nowrap;
}

.data-table tbody tr {
  background: rgba(24, 23, 27, 0.85);
  transition: background 0.2s ease;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(20, 19, 23, 0.9);
}

.data-table tbody tr:hover {
  background: rgba(40, 35, 28, 0.9);
}

.data-table tbody td:last-child {
  color: #e9e0cf;
  text-align: left;
}

.data-table .name-col {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.data-table th.name-col {
  text-align: left;
}

.data-table th:last-child {
  text-align: left;
}

.data-table .thumb-cell {
  text-align: center;
  width: 72px;
}

.trait-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #e6dcc6;
}

.trait-list span {
  line-height: 1.2;
}

.soulcore-name {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #f0e7d1;
}

.card-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.character-card {
  text-decoration: none;
  color: var(--text);
  background: rgba(20, 19, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.character-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: rgba(14, 13, 16, 0.8);
  padding: 8px;
  filter: saturate(0.95);
}

.character-name {
  padding: 12px 8px 14px;
  font-size: 15px;
  letter-spacing: 1px;
}

.character-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 199, 123, 0.6);
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 24px;
  align-items: start;
}

.detail-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 12, 0.6);
}

.detail-info h2 {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: 28px;
  margin-bottom: 14px;
  color: var(--accent-2);
}

.detail-text {
  color: #e9e0cf;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(24, 22, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.character-detail-page .detail-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px 18px;
}

.character-detail-page .detail-thumb img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(14, 13, 16, 0.8);
}

.character-detail-page .detail-title {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}

.character-detail-page .detail-meta {
  display: none;
}

.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.armor-header {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
}

.armor-header .detail-title {
  width: auto;
}

.weapon-detail-page .detail-title {
  flex-direction: column;
  align-items: flex-start;
}

.armor-detail-page .detail-title {
  flex-direction: column;
  align-items: flex-start;
}

.detail-title h2 {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: 22px;
  color: var(--text);
}

.detail-attack {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.detail-attack strong {
  font-size: 20px;
  color: #f3e2b2;
}

.detail-panels {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.detail-panel {
  background: rgba(24, 22, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 18px;
}

.panel-title {
  font-size: 15px;
  color: var(--accent-2);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.detail-stats {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  justify-content: flex-start;
  align-self: flex-start;
}

.detail-stats strong {
  color: #f3e2b2;
  font-size: 16px;
  margin-left: 6px;
}

.detail-stats.side {
  margin-top: 0;
  align-self: center;
  justify-content: flex-end;
}

.effect-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #e9e0cf;
}

.effect-list li {
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}

.effect-list.split li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-left: 0;
}

.effect-list.split li::before {
  display: none;
}

.effect-list.split .value {
  color: #f3e2b2;
  font-weight: 600;
  white-space: nowrap;
}

.effect-list.split .effect-requirement {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.effect-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  position: absolute;
  left: 0;
  top: 7px;
  box-shadow: 0 0 6px rgba(230, 199, 123, 0.6);
}

.trait-list.bulleted {
  list-style: disc;
  padding-left: 18px;
  color: #e9e0cf;
}

.trait-list.bulleted span {
  display: list-item;
  margin-bottom: 6px;
}

.trait-list.bulleted .set-link {
  display: list-item;
  margin-bottom: 6px;
  color: #e9e0cf;
}



.set-effect {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.set-effect-title {
  font-size: 13px;
  color: var(--accent-2);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.set-effect-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e9e0cf;
  font-size: 13px;
}

.set-effect-list .set-tier {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.set-effect-list .set-tier:last-child {
  border-bottom: none;
}

.set-effect-list .tier-title {
  color: var(--muted);
  font-size: 12px;
}

.set-effect-list .tier-effect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.set-effect-list .value {
  color: #f3e2b2;
  font-weight: 600;
  margin-left: 6px;
}

.random-trait {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}


.special-trigger {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #e9e0cf;
}

.special-trigger .value {
  color: #f3e2b2;
  font-weight: 600;
}

.random-link {
  color: #8bb8ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(139, 184, 255, 0.7);
}

.random-link:hover {
  color: #b8d3ff;
  border-bottom-color: rgba(184, 211, 255, 0.9);
}

.random-link.disabled {
  color: var(--muted);
  border-bottom: none;
  pointer-events: none;
  cursor: default;
}

.perf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(20, 19, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e9e0cf;
  font-size: 14px;
}

.perf-row strong {
  color: #f3e2b2;
  font-weight: 600;
}

.perf-row .stats {
  color: #d8cda8;
  font-weight: 600;
}

.performance-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.performance-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(20, 19, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e9e0cf;
  font-size: 13px;
}

.stat-item strong {
  color: #f3e2b2;
  font-weight: 600;
}

.set-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.set-title {
  font-size: 14px;
  color: #f0e7d1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.set-title strong {
  color: var(--accent-2);
  font-weight: 700;
}

.perf-item {
  background: rgba(20, 19, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e9e0cf;
}

.perf-item strong {
  font-size: 18px;
  color: #f3e2b2;
}

@media (max-width: 900px) {
  .detail-card {
    grid-template-columns: 1fr;
  }

  .detail-media img {
    height: 300px;
  }

  .detail-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .armor-header {
    grid-template-columns: 64px 1fr;
  }

  .armor-header .detail-stats.side {
    grid-column: 1 / -1;
    margin-top: 6px;
    justify-content: flex-start;
  }

  .character-detail-page .detail-thumb img {
    width: 130px;
    height: 130px;
  }
}

.search-results {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.result-group h3 {
  font-size: 16px;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 22, 26, 0.85);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.result-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
  background: rgba(10, 10, 12, 0.6);
}

.result-item span {
  font-size: 13px;
  letter-spacing: 0.5px;
}

.result-item:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 199, 123, 0.6);
}

.empty-state {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.thumb-cell {
  width: 80px;
}

.weapon-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 12, 0.6);
}

.name-link {
  color: #6fb1ff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(111, 177, 255, 0.8);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.name-link:hover {
  color: #9ac7ff;
  border-color: rgba(154, 199, 255, 0.95);
}

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

@media (max-width: 700px) {
  .site-header {
    padding: 22px 20px 26px;
  }

  h1 {
    font-size: 34px;
  }

  .page {
    padding: 20px 14px 40px;
  }

  body[data-page="list"] .page,
  body[data-page="detail"] .page,
  body[data-page="gallery"] .page,
  body[data-page="search"] .page {
    padding-top: 108px;
  }

  body[data-page="list"] .back-home,
  body[data-page="detail"] .back-home,
  body[data-page="gallery"] .back-home,
  body[data-page="search"] .back-home {
    display: none;
  }

  body[data-page="list"] .page-nav,
  body[data-page="detail"] .page-nav,
  body[data-page="gallery"] .page-nav,
  body[data-page="search"] .page-nav,
  body[data-page="list"] .appHeader,
  body[data-page="detail"] .appHeader,
  body[data-page="gallery"] .appHeader,
  body[data-page="search"] .appHeader {
    display: none !important;
  }

  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 88px;
    padding-top: 44px;
    background: #665d4c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    z-index: 50;
  }

  .mobile-topbar-inner {
    height: 44px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    width: 100%;
  }

  .mobile-back {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #f3efe4;
    font-size: 0;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-back svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  .mobile-logo {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-logo img {
    height: 18px;
    width: auto;
    display: block;
    opacity: 0.95;
  }

  .mobile-home-link {
    color: #cfc8ba;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
  }

  .search-bar {
    height: 34px;
    padding: 0 10px;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .grid.wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid .tile {
    min-width: 0;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .character-card img {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .detail-thumb img {
    width: 72px;
    height: 72px;
  }

  .character-detail-page .detail-thumb img {
    width: 150px;
    height: 150px;
  }

  .detail-title h2 {
    font-size: 20px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .data-table {
    min-width: 560px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 10px 12px;
  }

  .performance-list,
  .performance-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-detail-page .detail-thumb img {
    width: 130px;
    height: 130px;
  }
}

/*
*  头部导航
*/
.QZnav,
.QZshade,
.QZlogin {
  display: none;
}

.appHeader {
  display: none;
  width: 100%;
  position: relative;
  left: 0px;
  height: 56px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  background-color: #1d1d21;
}

.appHeader .appHeaderContent {
  width: 1100px;
  height: 56px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.appHeader .appHeaderContent .header-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.appHeader .appHeaderContent .youmin-icon {
  width: 104px;
  height: 26px;
  background: url(" https://image.gamersky.com/webimg13/db/diablo4/assets/youmin-icon.png ") no-repeat center / 100%;
}

.appHeader .appHeaderContent .header-right {
  display: flex;
  align-items: center;
}

.appHeader .appHeaderContent .header-right ul {
  display: flex;
  list-style: none;
}

.appHeader .appHeaderContent .header-right ul li a {
  margin-right: 30px;
  font-size: 16px;
  line-height: 56px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.appHeader .appHeaderContent .header-right ul li a:hover {
  color: #fff;
}

.appHeader .appHeaderContent .header-right .login-box {
  border-left: 1px solid #323238;
  display: flex;
  height: 30px;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.appHeader .appHeaderContent .header-right .login-box img {
  display: block;
  margin-left: 30px;
  width: 30px;
  height: 30px;
  border-radius: 15px;
}

.appHeader .appHeaderContent .header-right .login-box span {
  margin-left: 10px;
}

.appHeader .appHeaderContent .header-right .login-box span a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.pcCustomDefinitionCode {
  display: none;
  position: fixed;
  right: 68px;
  bottom: 34px;
  z-index: 600;
  width: 280px;
  height: 550px;
}

.pcCustomDefinitionCode .pcEldenRingCodeData {
  position: absolute;
  left: 50%;
  bottom: 65px;
  transform: translateX(-50%);
  display: block;
  width: 128px;
  height: 128px;
}

.pcCustomDefinitionCode .pcEldenRingCodeClose {
  position: absolute;
  right: 0px;
  top: -36px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: url("//image.gamersky.com/webimg13/db/mapTools/pcEldenRingCodeClose.png") no-repeat center / 100%;
}
