:root {
  --bg: #f3eee6;
  --surface: #ffffff;
  --ink: #1a1614;
  --muted: #4a4540;
  --line: #cfc6b8;
  --gold: #c9a227;
  --gold-bar: #d4ba0c;
  --gold-deep: #8a7010;
  --gold-wash: rgba(90, 58, 8, 0.28);
  --magenta: #c4005a;
  --magenta-line: #fc006a;
  --cta-width: 480px;
  --body-size: 16px;
  --h1-size: 30px;
  --h2-size: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1 {
  font-size: 30px;
  line-height: 1.25;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
}

a {
  color: var(--gold-deep);
}

a:hover {
  color: var(--magenta);
}

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
}

.w {
  width: min(1000px, calc(100% - 24px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--surface);
  padding: 8px 12px;
}

.top1 {
  background: var(--surface);
  font-family: "STKaiti", "KaiTi", "Songti SC", cursive, serif;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.logo {
  width: 148px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  background: var(--surface);
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 40px;
  object-fit: contain;
}

.search {
  flex: 1;
  display: flex;
  border: 1px solid #a8a09f;
  border-radius: 5px;
  padding: 4px 6px;
  background: var(--surface);
  min-height: 44px;
}

.search input {
  flex: 1;
  border: 0;
  min-width: 0;
  font-size: 16px;
  font-family: "STKaiti", "KaiTi", cursive, serif;
  background: transparent;
  color: var(--ink);
}

.search input::placeholder {
  color: #6b6560;
}

.search button {
  color: var(--ink);
  background: var(--gold-bar);
  border: 0;
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 16px;
  font-family: "STKaiti", "KaiTi", cursive, serif;
  min-height: 36px;
  cursor: pointer;
}

.top-links {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.top-links a {
  padding: 8px 12px;
  border: 1px solid var(--magenta-line);
  border-radius: 15px;
  color: #c4002a;
  font-weight: 700;
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.top-links a:hover,
.top-links a[aria-current="page"] {
  background: #fff3f7;
  color: var(--magenta);
}

.fgx {
  height: 1px;
  width: 100%;
  background: var(--magenta-line);
}

.icon-nav {
  display: flex;
  flex-wrap: wrap;
  margin: 8px auto 0;
  padding: 8px 0 12px;
  background: var(--gold-bar);
  border-radius: 10px;
  text-align: center;
}

.icon-nav a {
  width: 10%;
  min-height: 88px;
  padding: 8px 4px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.icon-nav a:hover,
.icon-nav a[aria-current="page"] {
  color: var(--ink);
  background: #f4e7a3;
  border-radius: 8px;
}

.tile {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f4e7a3;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 18px;
  font-weight: 700;
}

.notice,
.cities {
  background: var(--gold-bar);
  color: var(--ink);
  border-radius: 10px;
  margin-top: 8px;
  padding: 12px 16px;
}

.notice p,
.cities p {
  margin: 0 0 6px;
}

.notice p:last-child,
.cities p:last-child {
  margin-bottom: 0;
}

.notice strong {
  font-weight: 700;
}

.city-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
}

.city-row:first-child {
  margin-top: 0;
}

.city-row .lab {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
}

.chip {
  appearance: none;
  border: 0;
  background: #f4e7a3;
  color: var(--ink);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 700;
  min-height: 36px;
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible {
  background: #fff8d2;
}

.hint {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
}

.hint.is-on {
  display: block;
}

.hero {
  margin: 18px auto 8px;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: var(--h1-size);
  line-height: 1.25;
  font-weight: 700;
}

.lead,
.prose p {
  margin: 0 0 14px;
}

.title2 {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 16px auto 10px;
}

.title2 .mark {
  width: 10px;
  height: 22px;
  background: var(--gold-bar);
  border-radius: 2px;
}

.title2 h2,
.prose h2,
.qa h2 {
  margin: 0;
  font-size: var(--h2-size);
  line-height: 1.25;
  font-family: "STKaiti", "KaiTi", serif;
}

h3,
.qa h3,
.card h3,
.prose h3 {
  font-size: 18px;
  line-height: 1.3;
}

.cards {
  display: flex;
  flex-wrap: wrap;
}

.card {
  width: 24%;
  margin: 0 1.33% 12px 0;
  background: var(--surface);
  padding: 8px;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.card:nth-child(4n) {
  margin-right: 0;
}

.card:hover {
  color: var(--ink);
}

.thumb {
  position: relative;
  height: 168px;
  border-radius: 5px;
  overflow: hidden;
  background: #efe6cf;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  right: 0;
  background: var(--gold-bar);
  color: var(--ink);
  padding: 3px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
}

.card h3 {
  margin: 8px 0 4px;
  font-size: 18px;
  text-align: center;
}

.card p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  min-height: 3.2em;
}

.card .go {
  margin: 0 auto 6px;
  width: max(42%, 96px);
  background: var(--gold-bar);
  color: var(--ink);
  text-align: center;
  border-radius: 5px;
  padding: 6px 8px;
  font-weight: 700;
}

.card .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.board {
  margin: 8px auto 0;
}

.board img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--gold-bar);
}

.qa {
  background: var(--surface);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 auto 16px;
}

.qa h3 {
  margin: 16px 0 6px;
  font-size: 18px;
}

.qa h3:first-child {
  margin-top: 0;
}

.prose {
  background: var(--surface);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 0 auto 16px;
}

.prose h2 {
  margin: 22px 0 10px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.prose li {
  margin: 0 0 6px;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 14px;
}

.pair article,
.stack article,
.ledger,
.note {
  background: #faf6ee;
  border-radius: 8px;
  padding: 12px 14px;
}

.stack {
  display: grid;
  gap: 12px;
}

.ledger dt {
  font-weight: 700;
  margin-top: 10px;
}

.ledger dt:first-child {
  margin-top: 0;
}

.ledger dd {
  margin: 4px 0 0;
}

.links-inline a {
  margin-right: 12px;
}

.site-footer {
  margin-top: 28px;
  padding: 22px 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-family: "STKaiti", "KaiTi", serif;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0;
}

.site-footer small {
  display: block;
  margin-top: 8px;
}

.site-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cta-width);
  max-width: 40vw;
  min-width: 400px;
  min-height: 56px;
  padding: 12px 36px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 8px 20px rgba(80, 58, 8, 0.18);
}

.site-cta span {
  position: relative;
  z-index: 1;
}

.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 150% at 28% 48%, var(--gold-wash) 0%, transparent 70%);
  opacity: 0;
  animation: goldbar-seep 2.9s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  pointer-events: none;
}

.site-cta::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--gold-deep);
  opacity: 0.16;
  transform: translateY(-50%) scale(1);
  animation: chip-press 2.9s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes goldbar-seep {
  0%,
  52% {
    opacity: 0;
    transform: scale(0.96);
  }
  64% {
    opacity: 1;
    transform: scale(1);
  }
  84%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes chip-press {
  0%,
  60% {
    opacity: 0.14;
    transform: translateY(-50%) scale(1);
  }
  72% {
    opacity: 0.3;
    transform: translateY(calc(-50% + 2px)) scale(0.96);
  }
  88%,
  100% {
    opacity: 0.14;
    transform: translateY(-50%) scale(1);
  }
}

a.site-cta:hover,
a.site-cta:focus-visible,
a.site-cta:active {
  color: var(--ink);
  background: #b89216;
}

@media (max-width: 900px) {
  .card {
    width: 48.5%;
    margin-right: 3%;
  }

  .card:nth-child(4n) {
    margin-right: 3%;
  }

  .card:nth-child(2n) {
    margin-right: 0;
  }

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

  .icon-nav a {
    width: 20%;
  }
}

@media (max-width: 768px) {
  .site-cta {
    left: 14px;
    right: 14px;
    width: auto;
    max-width: none;
    min-width: 0;
    transform: none;
    font-size: 16px;
    min-height: 54px;
  }

  .hero h1,
  h1 {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .top {
    flex-wrap: wrap;
  }

  .logo {
    width: 28%;
    min-width: 96px;
  }

  .search {
    order: 3;
    flex: 1 1 100%;
    margin: 0;
  }

  .icon-nav a {
    width: 25%;
  }

  .card,
  .card:nth-child(4n),
  .card:nth-child(2n) {
    width: 100%;
    margin-right: 0;
  }

  .thumb {
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before,
  .site-cta::after {
    animation: none;
  }

  .site-cta::before {
    opacity: 0.22;
    transform: scale(1);
  }

  .site-cta::after {
    opacity: 0.22;
    transform: translateY(-50%) scale(1);
  }
}
