:root {
  --ink: #171b22;
  --muted: #656c79;
  --line: #e1e3e8;
  --gold: #8e6927;
  --gold-light: #f8f2e6;
  --paper: #fcfaf6;
  --green: #28794d;
  --orange: #ac591b;
  --radius: 8px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 46px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid #cfd3dc;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}
button:hover,
.button:hover {
  border-color: var(--gold);
  background: var(--gold-light);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button.primary,
.button.primary {
  background: #d2ae65;
  border-color: #d2ae65;
  color: #242116;
}
button.primary:hover,
.button.primary:hover {
  background: #cdb06c;
  border-color: #cdb06c;
}
input,
select,
textarea {
  border: 1px solid #cfd3dc;
  border-radius: 5px;
  padding: 11px 13px;
  width: 100%;
  background: white;
  color: var(--ink);
  min-height: 46px;
}
input::placeholder,
textarea::placeholder {
  color: #828794;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
input[type="checkbox"] {
  width: 24px;
  min-height: 24px;
  height: 24px;
  accent-color: var(--gold);
}
label {
  display: block;
  font-weight: 600;
  margin: 16px 0 7px;
}
fieldset {
  padding: 20px 0;
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
legend {
  font-weight: 700;
  font-size: 18px;
  padding-right: 12px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}
h2 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 14px;
}
h3 {
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 16px;
}
p {
  margin-bottom: 12px;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
:focus-visible {
  outline: 3px solid #a78235;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}
.narrow {
  max-width: 900px;
}
.site-header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  min-height: 92px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: 1px;
}
.brand img {
  object-fit: contain;
  border-radius: 4px;
}
.header-inner nav {
  display: flex;
  gap: 38px;
  align-items: center;
}
.header-inner nav a {
  padding: 27px 0 24px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.header-inner nav a:hover,
.header-inner nav a.active {
  color: var(--gold);
  border-bottom-color: #c4a154;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 86px;
}
.hero h1 {
  font-size: clamp(36px, 4.3vw, 56px);
  line-height: 1.35;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2.3px;
  font-weight: 700;
  margin-bottom: 13px;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 28px;
}
.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 9px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.actions .button {
  min-width: 170px;
}
.section {
  padding-top: 50px;
  padding-bottom: 44px;
}
.section-heading {
  text-align: center;
  margin-bottom: 30px;
}
.section-heading p {
  color: var(--muted);
}
.section-heading h2 {
  margin-bottom: 8px;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 25px;
  padding: 30px;
  align-items: flex-start;
}
.service-icon {
  font-size: 27px;
  line-height: 1.3;
  font-weight: 350;
  color: #b48c3e;
  border: 1px solid #eadfc8;
  border-radius: 6px;
  padding: 10px 9px;
  flex: none;
}
.check-list {
  color: #5a606c;
  font-size: 15px;
}
.check-list li {
  position: relative;
  padding-left: 25px;
  margin-top: 9px;
}
.check-list li:before {
  content: "✓";
  display: grid;
  place-items: center;
  position: absolute;
  top: 4px;
  left: 0;
  background: #dec58d;
  color: #fff;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.check-list details {
  font-size: 13px;
  margin-top: 3px;
}
.check-list summary {
  cursor: pointer;
  color: #7a632f;
  min-height: 30px;
  padding: 3px 0;
}
.check-list details p {
  margin: 3px 0 12px;
  line-height: 1.85;
}
.about {
  background: #f7f8fa;
  text-align: center;
  padding: 46px 0;
}
.about p:last-child {
  line-height: 2;
  color: var(--muted);
  margin-bottom: 0;
}
.gold-rule {
  width: 40px;
  height: 3px;
  background: #d6b574;
  margin: 14px auto 18px;
}
.contact-card {
  max-width: 840px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
}
.contact-card p {
  margin: 3px 0;
}
.contact-card strong {
  font-weight: 600;
}
.contact-mark {
  border-right: 1px solid var(--line);
  padding-right: 30px;
  color: #8b702f;
  font-size: 28px;
}
.contact-card button {
  margin-left: auto;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #fafbfc;
  color: var(--muted);
  padding: 23px;
  text-align: center;
  font-size: 14px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
  line-height: 1.8;
}
.center {
  text-align: center;
}
.feedback {
  min-height: 26px;
  color: #83591f;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.feedback:empty {
  margin: 0;
  min-height: 0;
}
.feedback:not(:empty) {
  margin-top: 16px;
  margin-bottom: 16px;
}
.feedback.error {
  color: #a13f27;
}
.feedback.success {
  color: var(--green);
}
.selectable {
  user-select: all;
}
.page-intro {
  text-align: center;
  padding: 58px 0 28px;
}
.page-intro p:not(.eyebrow) {
  font-size: 19px;
  color: var(--muted);
}
.query-main {
  padding-bottom: 66px;
  min-height: calc(100vh - 164px);
}
.query-form {
  max-width: 880px;
  display: flex;
  margin: 10px auto 32px;
}
.query-form input {
  border-radius: 6px 0 0 6px;
  min-height: 62px;
  font-size: 18px;
  padding: 14px 20px;
}
.query-form button {
  border-radius: 0 6px 6px 0;
  flex-shrink: 0;
  min-width: 150px;
  font-size: 18px;
}
.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.result-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
}
.result-heading h2 {
  font-size: 27px;
  overflow-wrap: anywhere;
  margin: 0;
}
.result-heading .current {
  background: var(--gold-light);
  color: #846425;
  padding: 5px 14px;
  border-radius: 5px;
  font-size: 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.updated {
  font-size: 14px;
  color: var(--muted);
  margin: 13px 0 0;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 36px 0 26px;
}
.stage {
  text-align: center;
  min-width: 0;
  position: relative;
}
.stage:after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--line);
  top: 22px;
  left: calc(50% + 31px);
  width: calc(100% - 46px);
}
.stage:last-child:after {
  display: none;
}
.stage-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  background: #eef0f3;
  color: #737984;
}
.stage h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.status {
  font-size: 14px;
  font-weight: 600;
}
.stage.done .stage-icon {
  background: var(--green);
  color: white;
}
.done .status {
  color: var(--green);
}
.stage.active .stage-icon {
  background: #9e7b30;
  color: white;
}
.active .status {
  color: #846425;
}
.stage.attention .stage-icon {
  background: #b36b29;
  color: white;
}
.attention .status {
  color: var(--orange);
}
.stage.pending .status {
  color: #6c717d;
}
.overall-note {
  padding: 18px 22px;
  background: #fcf7eb;
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
}
.note-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.note-list h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.note-item {
  margin-top: 14px;
}
.note-item p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #5a606c;
  margin: 5px 0;
}
.flow-hint {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-main {
  display: grid;
  place-items: start center;
  padding: 60px 24px;
  background: #fafbfc;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.auth-card h1 {
  font-size: 27px;
}
.full {
  width: 100%;
  margin-top: 24px;
}
.link-button {
  padding: 10px 0;
  min-height: 44px;
  background: none;
  border: 0;
  border-radius: 0;
  font-weight: 400;
  white-space: nowrap;
}
.link-button:hover {
  background: none;
  color: var(--gold);
}
.admin-body {
  background: #fafbfc;
}
.admin-body .wrap {
  width: calc(100% - 48px);
  max-width: none;
}
.admin-body .brand {
  font-size: 23px;
}
.admin-body .header-inner {
  min-height: 78px;
}
.admin-body .header-inner nav {
  gap: 26px;
}
.admin-body .header-inner nav a {
  padding: 20px 0 17px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  flex: 1;
}
.admin-sidebar {
  padding: 30px 12px;
  border-right: 1px solid var(--line);
  background: #f8f9fb;
}
.admin-sidebar a {
  display: block;
  padding: 13px 18px;
  margin-bottom: 8px;
  border-radius: 4px;
  color: var(--muted);
}
.admin-sidebar .selected {
  background: #f4ebd7;
  color: #79591e;
  border-left: 3px solid #a87f31;
  font-weight: 600;
}
.admin-main {
  padding: 34px;
  min-width: 0;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.title-row h1 {
  font-size: 29px;
  margin: 0;
}
.title-row h2 {
  font-size: 22px;
  margin: 0;
}
.title-row .eyebrow {
  margin-bottom: 6px;
}
.filters {
  display: flex;
  gap: 15px;
  max-width: 820px;
  margin-bottom: 24px;
}
.filters input {
  flex: 1;
  min-width: 0;
}
.filters select {
  max-width: 230px;
}
.game-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  overflow: hidden;
}
.table-head,
.game-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.25fr) minmax(150px, 1.6fr) 100px 90px;
  gap: 22px;
  align-items: center;
  padding: 16px 22px;
}
.table-head {
  background: #f0f2f5;
  font-size: 14px;
  font-weight: 600;
}
.game-row {
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.game-row .game-name {
  font-weight: 650;
  overflow-wrap: anywhere;
}
.game-row .current {
  overflow-wrap: anywhere;
  color: #786035;
}
.game-row button {
  min-height: 42px;
  padding: 7px 18px;
}
.badge-visible {
  color: var(--green);
}
.badge-hidden {
  color: #995020;
}
.empty-state {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  font-size: 13px;
}
.pagination button {
  font-size: 13px;
  min-height: 40px;
  padding: 7px 15px;
}
.pagination button:disabled {
  cursor: default;
}
.editor {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  scroll-margin-top: 20px;
}
.editor-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.editor-top label {
  margin-top: 0;
}
.switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 10px 0;
}
.stage-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stage-editor {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fcfcfd;
  min-width: 0;
}
.stage-editor label {
  margin-top: 0;
  font-size: 14px;
}
.stage-editor .note-label {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.stage-editor textarea {
  font-size: 13px;
  padding: 8px 10px;
}
.end {
  justify-content: flex-end;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 8px;
}

@media (min-width: 1450px) {
  .hero {
    padding-top: 94px;
    padding-bottom: 100px;
  }
}
@media (max-width: 1000px) {
  .header-inner nav {
    gap: 22px;
  }
  .brand {
    font-size: 23px;
  }
  .hero {
    grid-template-columns: 1fr 230px;
    gap: 30px;
  }
  .service-card {
    padding: 24px;
    gap: 18px;
  }
  .admin-layout {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .admin-main {
    padding: 26px;
  }
  .admin-body .header-inner nav {
    gap: 18px;
  }
  .admin-body .brand {
    font-size: 20px;
  }
  .stage-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-head,
  .game-row {
    gap: 14px;
    padding: 14px;
    grid-template-columns: minmax(100px, 1fr) minmax(100px, 1.2fr) 75px 70px;
  }
  .game-row button {
    padding: 7px 12px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header-inner {
    display: block;
    min-height: 0;
    padding-top: 16px;
  }
  .brand {
    font-size: 23px;
    gap: 12px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .header-inner nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 13px;
  }
  .header-inner nav a {
    padding: 13px 0 12px;
  }
  .hero {
    grid-template-columns: 1fr 145px;
    gap: 22px;
    padding-top: 44px;
    padding-bottom: 48px;
  }
  .hero h1 {
    font-size: 33px;
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
  }
  .hero .actions {
    gap: 10px;
  }
  .hero .button {
    min-width: 0;
    min-height: 44px;
    font-size: 14px;
    padding: 10px 18px;
  }
  .hero-logo {
    width: 145px;
  }
  .section {
    padding-top: 34px;
    padding-bottom: 32px;
  }
  h2 {
    font-size: 26px;
  }
  .section-heading p {
    font-size: 14px;
  }
  .service-grid {
    gap: 14px;
  }
  .service-card {
    padding: 22px 18px;
    display: block;
  }
  .service-icon {
    display: inline-block;
    font-size: 20px;
    padding: 5px 9px;
    margin-bottom: 15px;
  }
  .service-card h3 {
    font-size: 18px;
  }
  .check-list {
    font-size: 14px;
  }
  .about {
    padding: 32px 0;
  }
  .about p:last-child {
    font-size: 14px;
  }
  .contact-card {
    padding: 22px;
    gap: 18px;
  }
  .contact-mark {
    display: none;
  }
  .contact-card button {
    font-size: 14px;
    padding: 10px 16px;
  }
  .page-intro {
    padding-top: 40px;
  }
  .page-intro h1 {
    font-size: 30px;
  }
  .page-intro p:not(.eyebrow) {
    font-size: 16px;
  }
  .query-form {
    margin-top: 0;
  }
  .query-form input {
    font-size: 16px;
    padding: 12px;
    min-height: 54px;
    min-width: 0;
  }
  .query-form button {
    min-width: 100px;
    font-size: 16px;
    padding: 12px;
  }
  .result-card {
    padding: 24px 20px;
  }
  .result-heading h2 {
    font-size: 23px;
  }
  .timeline {
    display: block;
    margin: 28px 0;
  }
  .stage {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 17px;
    text-align: left;
    min-height: 89px;
    padding-bottom: 24px;
  }
  .stage-icon {
    grid-row: 1/3;
    grid-column: 1;
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 20px;
  }
  .stage h3 {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    font-size: 16px;
  }
  .stage .status {
    grid-row: 2;
    grid-column: 2;
  }
  .stage:after {
    width: 2px;
    height: calc(100% - 51px);
    left: 19px;
    top: 46px;
  }
  .stage:last-child {
    padding-bottom: 0;
    min-height: 40px;
  }
  .overall-note {
    padding: 16px;
    font-size: 14px;
  }
  .query-main {
    min-height: calc(100vh - 196px);
    padding-bottom: 38px;
  }
  .auth-main {
    padding: 32px 18px;
  }
  .auth-card {
    padding: 26px;
  }
  .admin-layout {
    display: block;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-body .wrap {
    width: calc(100% - 32px);
  }
  .admin-body .header-inner {
    padding-bottom: 0;
  }
  .admin-body .header-inner nav {
    gap: 12px;
    font-size: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
  }
  .admin-body .header-inner nav a {
    padding: 13px 0 10px;
  }
  .admin-body .link-button {
    font-size: 12px;
  }
  .admin-main {
    padding: 24px 16px;
  }
  .title-row {
    gap: 12px;
    margin-bottom: 22px;
  }
  .title-row h1 {
    font-size: 24px;
  }
  .title-row button {
    font-size: 14px;
    padding: 10px 15px;
  }
  .filters {
    gap: 10px;
    flex-wrap: wrap;
  }
  .filters input {
    flex-basis: 100%;
  }
  .filters select {
    max-width: none;
    flex: 1;
  }
  .table-head {
    display: none;
  }
  .game-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding: 18px;
  }
  .game-row .game-name {
    font-size: 16px;
    grid-row: 1;
    grid-column: 1;
  }
  .game-row .current {
    grid-row: 2;
    grid-column: 1;
  }
  .game-row .visibility {
    grid-row: 3;
    grid-column: 1;
  }
  .game-row button {
    grid-column: 2;
    grid-row: 1/4;
    min-width: 70px;
  }
  .editor {
    padding: 20px 16px;
  }
  .editor .title-row {
    display: block;
  }
  .editor .title-row span {
    display: block;
    margin-top: 8px;
  }
  .editor-top {
    display: block;
  }
  .editor-top .switch-label {
    margin: 12px 0 0;
  }
  .stage-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stage-editor {
    padding: 12px;
  }
  .stage-editor select {
    font-size: 13px;
    padding: 10px 7px;
  }
  .stage-editor label {
    font-size: 13px;
  }
  .pagination {
    justify-content: center;
  }
  .site-footer {
    font-size: 13px;
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    display: block;
    position: relative;
  }
  .hero-logo {
    display: none;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero-sub {
    font-size: 15px;
    max-width: 320px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    display: flex;
    gap: 20px;
    padding: 23px;
  }
  .service-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .contact-card {
    display: block;
    text-align: center;
  }
  .contact-card button {
    margin: 16px 0 0;
    width: 100%;
  }
  .section-heading p {
    line-height: 1.9;
  }
  .stage-edit-grid {
    grid-template-columns: 1fr;
  }
  .query-form button {
    min-width: 96px;
    padding: 12px 10px;
  }
  .title-row h1 {
    font-size: 23px;
  }
  .auth-card h1 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.timeline {
  padding: 0;
  list-style: none;
}

.discard-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  width: min(460px, calc(100% - 36px));
  color: var(--ink);
}
.discard-dialog h2 {
  font-size: 23px;
}
.discard-dialog::backdrop {
  background: rgba(20, 25, 35, 0.3);
}
