:root {
  --bg: #faf6ed;
  --surface: #ffffff;
  --tile: #fff6ee;
  --ink: #3a342e;
  --muted: #5a5048;
  --line: #ead9c4;
  --orange: #f4631e;
  --orange-deep: #b83c10;
  --peach: #f3d2b8;
  --cta-wash: rgba(212, 84, 24, 0.28);
  --cta-saucer: rgba(250, 246, 237, 0.22);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Tahoma, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 96px;
  min-width: 0;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--orange-deep); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

h1 { font-size: 28px; line-height: 1.3; margin: 0 0 12px; font-weight: 700; }
h2 { font-size: 20px; line-height: 1.35; margin: 0 0 10px; font-weight: 700; }
h3 { font-size: 17px; line-height: 1.4; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 12px; overflow-wrap: break-word; }
ul { margin: 0 0 12px; padding-left: 1.2em; }
li { margin: 0 0 6px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 90;
  background: #fff;
  padding: 8px 12px;
}

.wrap {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
}

.toptb {
  background: #f3eee3;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.toptb .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.toptb button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.toptb-note {
  display: none;
  margin: 0;
  color: var(--orange-deep);
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 10px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 129px;
  height: 66px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-deep);
  line-height: 1.3;
}

.login {
  display: grid;
  grid-template-columns: auto 140px auto;
  gap: 6px 8px;
  align-items: center;
  font-size: 14px;
}
.login label { color: var(--muted); }
.login input[type="text"],
.login input[type="password"] {
  width: 140px;
  height: 32px;
  border: 1px solid var(--peach);
  padding: 0 8px;
  font: inherit;
  background: #fff;
}
.login .pn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--orange-deep);
  background: var(--orange);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.login-msg {
  grid-column: 1 / -1;
  display: none;
  margin: 0;
  color: var(--orange-deep);
  font-size: 14px;
}

#nv {
  background: var(--orange);
  min-height: 40px;
}
.nv-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.nv-toggle {
  display: none;
  margin: 4px;
  border: 1px solid rgba(255,255,255,.45);
  background: var(--orange-deep);
  color: #fff;
  font: inherit;
  padding: 8px 12px;
  min-height: 44px;
}
.nv-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nv-list a {
  display: block;
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 16px;
}
.nv-list a:hover,
.nv-list a[aria-current="page"] {
  background: var(--orange-deep);
  text-decoration: none;
  color: #fff;
}

.pairs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 8px;
}
.pair {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 90px;
  padding: 12px;
  background: var(--tile);
  border: 1px solid var(--peach);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}
.pair:hover { text-decoration: none; border-color: var(--orange); }
.pair-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 45%, var(--orange) 0 7px, transparent 8px),
    radial-gradient(circle at 65% 55%, var(--orange-deep) 0 7px, transparent 8px);
  flex-shrink: 0;
}
.pair strong {
  display: block;
  color: var(--orange-deep);
  font-size: 16px;
}
.pair span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.scbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 12px 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.scbar input[type="search"] {
  flex: 1 1 180px;
  min-width: 0;
  border: 0;
  height: 40px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
}
.scbar button[type="submit"] {
  width: 52px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
  color: #666;
}
.hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-left: 1px solid var(--line);
  font-size: 14px;
}
.hot strong { color: var(--ink); }
.chip {
  border: 0;
  background: none;
  color: var(--orange-deep);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.search-note {
  display: none;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  background: #fff8f2;
  color: var(--orange-deep);
  font-size: 14px;
}

.board {
  background: #fff;
  border: 1px solid var(--orange);
  margin: 0 0 14px;
}
.board-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  padding: 8px 10px;
}
.board-h h2,
.board-h h2 a { color: #fff; margin: 0; font-size: 16px; text-decoration: none; }
.fold {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.board-c { padding: 0; }
.row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.row:first-child { border-top: 0; }
.dual {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.dual .word {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.dual .play {
  display: inline-block;
  background: var(--tile);
  color: var(--orange-deep);
  border: 1px solid var(--peach);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 14px;
  font-weight: 700;
}
.row p { margin: 0; color: #555; }
.row a.word { text-decoration: none; }
.row.is-dim { opacity: 0.28; }

.hero-copy,
.prose {
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 18px;
  margin: 0 0 14px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 14px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 14px;
  margin: 0 0 8px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.crumb {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0;
}
.crumb a { color: var(--orange); }

.site-foot {
  margin-top: 24px;
  padding: 18px 0 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 8px;
}
.site-foot .brand-home {
  color: var(--orange-deep);
  font-weight: 700;
}

[data-site-cta="xunfang"] {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, calc(100vw - 32px));
  min-height: 56px;
  padding: 12px 28px;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(244, 99, 30, 0.28);
  overflow: hidden;
  isolation: isolate;
}
[data-site-cta="xunfang"]:hover,
[data-site-cta="xunfang"]:focus-visible {
  color: #fff;
  text-decoration: none;
  background: var(--orange-deep);
}
[data-site-cta="xunfang"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 28% 40%, var(--cta-wash) 0%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: orange-steam-seep 2.9s cubic-bezier(.2, .7, .3, 1) infinite;
}
[data-site-cta="xunfang"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  border-radius: 50%;
  background: var(--cta-saucer);
  pointer-events: none;
  z-index: 0;
  animation: saucer-press 2.9s cubic-bezier(.2, .7, .3, 1) infinite;
  animation-delay: .45s;
}
[data-site-cta="xunfang"] span {
  position: relative;
  z-index: 1;
}

@keyframes orange-steam-seep {
  0%, 58% { opacity: 0; }
  70% { opacity: .28; }
  86%, 100% { opacity: 0; }
}
@keyframes saucer-press {
  0%, 52% { transform: scale(1); }
  64% { transform: scale(.96); }
  78%, 100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  [data-site-cta="xunfang"]::before,
  [data-site-cta="xunfang"]::after {
    animation: none;
  }
  [data-site-cta="xunfang"]::before { opacity: .18; }
  [data-site-cta="xunfang"]::after { transform: scale(1); }
}

@media (max-width: 960px) {
  .pairs { grid-template-columns: repeat(2, 1fr); }
  .login { display: none; }
  .nv-toggle { display: inline-flex; align-items: center; }
  .nv-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  #nv.is-open .nv-list { display: flex; }
  .nv-inner { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .hot { border-left: 0; border-top: 1px solid var(--line); width: 100%; }
  [data-site-cta="xunfang"] {
    width: calc(100vw - 28px);
    min-height: 52px;
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .pairs { grid-template-columns: 1fr; }
  .brand-name { font-size: 16px; }
  h1 { font-size: 24px; }
  body { padding-bottom: 88px; }
}
