:root {
  --accent: #f26c1c;
  --bg: #101817;
  --panel: rgba(32, 37, 34, 0.42);
  --text: #f2f3ef;
  --secondary: #a6aeaa;
  --border: rgba(230, 235, 230, 0.22);
  --ribbon: #111111;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(70, 80, 76, 0.35), transparent 52%),
    radial-gradient(ellipse at 88% 100%, rgba(80, 50, 20, 0.18), transparent 40%),
    var(--bg);
}

.dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(230, 235, 230, 0.09) 1px, transparent 1px);
  background-size: 16px 16px;
}

.site-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
}

.brand, .back-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 12px;
  height: 12px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 62%, 62% 100%, 0 100%);
}

.brand-en { font-weight: 800; letter-spacing: 0.18em; font-size: 16px; }
.brand-zh, .back-link { font-size: 13px; letter-spacing: 0.18em; color: var(--secondary); }
.back-link:hover { color: var(--accent); }

.page {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto 80px;
}

.hero-title {
  text-align: center;
  margin: 28px 0 84px;
  position: relative;
}

.hero-title .echo {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-46%);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.22;
  white-space: nowrap;
  pointer-events: none;
}

.hero-title h1 {
  position: relative;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.hero-title p {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.42em;
  color: var(--secondary);
}

.hero-title p::before,
.hero-title p::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin: 0 12px;
  background: var(--border);
  vertical-align: middle;
}

.category-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 0 8px 14px;
}

.cat-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  position: relative;
}

.cat-mark::before,
.cat-mark::after {
  content: "";
  position: absolute;
  background: var(--text);
}
.cat-mark::before { left: 13px; top: 6px; width: 2px; height: 16px; }
.cat-mark::after { left: 6px; top: 13px; width: 16px; height: 2px; }

.category-head h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.category-head .sub {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--secondary);
  margin-bottom: 4px;
}

.frame {
  position: relative;
  border: 1px solid var(--border);
  border-top-width: 2px;
  border-top-color: rgba(230, 235, 230, 0.38);
  background: var(--panel);
  padding: 50px 56px 56px;
  min-height: 280px;
}

.watermark {
  position: absolute;
  right: 36px;
  bottom: 10px;
  font-size: 160px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(242, 243, 239, 0.04);
  pointer-events: none;
  line-height: 1;
}

.grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, 126px);
  gap: 16px;
  justify-content: start;
}

.card {
  width: 126px;
  height: 164px;
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: #0b0d0c;
  border: 1px solid rgba(200, 210, 205, 0.22);
  overflow: hidden;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: rgba(230, 235, 230, 0.35);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}
.card::before { top: 4px; left: 4px; border-width: 1px 0 0 1px; }
.card::after { top: 4px; right: 4px; border-width: 1px 1px 0 0; }

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

.ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: var(--ribbon);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 0 8px;
  transition: background-color 0.2s var(--ease);
  z-index: 2;
}

.ribbon .dot {
  width: 0;
  height: 0;
  border-left: 7px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: 0.95;
}

.ribbon span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ribbon .tick {
  margin-left: auto;
  width: 3px;
  height: 14px;
  background: var(--accent);
}

.card:hover .ribbon,
.card:focus-visible .ribbon {
  background: var(--accent);
}

.card:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.site-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  color: rgba(166, 174, 170, 0.6);
  font-size: 12px;
  letter-spacing: 0.16em;
}

@media (max-width: 720px) {
  .site-head, .page { padding-left: 16px; padding-right: 16px; }
  .page { width: auto; }
  .frame { padding: 28px 18px 32px; }
  .grid { grid-template-columns: repeat(auto-fill, 126px); justify-content: center; }
}

.world-card img {
  object-position: 50% 42%;
}

.world-card .ribbon {
  height: 30px;
  padding: 2px 6px 2px 8px;
}

.world-card .ribbon span {
  white-space: normal;
  line-height: 1.2;
  font-size: 11px;
  letter-spacing: 0;
}

.empty {
  color: var(--secondary);
  letter-spacing: 0.2em;
  font-size: 14px;
  padding: 48px 0;
  text-align: center;
  width: 100%;
  grid-column: 1 / -1;
}
