@font-face {
  font-family: "Ma Shan Zheng";
  src: url("fonts/ma-shan-zheng.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #090f1c;
  --band: #0c1423;
  --surface: #111c2d;
  --text: #f0ebe1;
  --soft: #b2bdce;
  --muted: #a9b6ca;
  --gold: #e6c58c;
  --gold-dark: #21180e;
  --line: #27354b;
  --warm-line: #65553b;
  --success: #a2ddc1;
  --error: #ffc1b9;
  --serif: "Songti SC","SimSun",serif;
  --body: "PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
  --nav-height: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }
body {
  margin: 0;
  padding-top: var(--nav-height);
  color: var(--text);
  background: var(--bg);
  font: 15px/1.75 var(--body);
}
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
h2, h3, h4 { line-height: 1.35; }
h2 { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 43px); letter-spacing: .055em; }
h3 { font-size: 21px; }
h4 { font-size: 15px; }
p, dd { overflow-wrap: anywhere; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: fixed; z-index: 20; top: 8px; left: 12px; padding: 8px 16px; background: var(--bg); clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  background: #090f1cf7;
  border-bottom: 1px solid #51432e;
}
.nav-shell {
  max-width: 1312px;
  height: var(--nav-height);
  margin: auto;
  padding-inline: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--gold); font: 700 21px/1.05 var(--serif); white-space: nowrap; }
.brand small { display: block; margin-top: 4px; font: 600 8px/1.3 var(--body); letter-spacing: .16em; }
.brand-mark { display: grid; place-items: center; border: 1px solid #92754f; border-radius: 50%; width: 34px; height: 34px; font: 27px/1 Georgia,serif; }
#site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
#site-nav a { display: block; padding-block: 10px; color: #d4dbe6; text-decoration: none; white-space: nowrap; font-size: 14px; }
#site-nav a:hover, #site-nav a:focus-visible { color: var(--gold); }
.menu-toggle { display: none; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65em;
  padding: 11px 20px;
  min-height: 45px;
  border: 1px solid #dfbf89;
  border-radius: 5px;
  background: linear-gradient(125deg, #f1d6a6, #d6ae70);
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
}
.button:not(:disabled):hover { background: #f8dfb1; }
.button.small { min-height: 38px; padding: 8px 13px; white-space: nowrap; }
.button.outline { background: #111a2cd6; color: var(--gold); border-color: #8c754f; }
.button.outline:not(:disabled):hover { background: #202a3b; }
.button.text-button { background: transparent; border-color: transparent; color: var(--soft); }
.button.text-button:not(:disabled):hover { background: #192438; color: var(--text); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  min-height: clamp(580px, 46.5vw, 830px);
  background: #0c192b;
  text-align: center;
  overflow: hidden;
}
.hero-picture, .hero::before { position: absolute; inset: 0; z-index: -1; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero::before {
  content: "";
  z-index: 0;
  background: radial-gradient(ellipse 54% 48% at 50% 34%, #070d19b5, #070d1933 72%, transparent 100%),
    linear-gradient(180deg, #060b1744, transparent 43%, #090f1c22 78%, var(--bg));
  pointer-events: none;
}
.hero-content { position: relative; width: min(100%, 920px); padding: clamp(50px, 5.1vw, 96px) 20px 95px; align-self: start; }
.hero-kicker { color: #f0d39a; font: 600 12px/1.5 var(--body); letter-spacing: .37em; }
.hero-title {
  font: 400 clamp(86px, 9vw, 165px)/1.06 "Ma Shan Zheng","KaiTi",var(--serif);
  letter-spacing: .035em;
  margin: 10px 0 8px;
  color: #f1d39b;
  background: linear-gradient(180deg, #fff6dc 12%, #f3d9a1 48%, #cf9f58 87%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px #130e11b0) drop-shadow(0 0 14px #e6b97442);
}
.hero-subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: #fff3e0;
  font: 700 clamp(23px, 2.8vw, 46px)/1.4 var(--serif);
  letter-spacing: .13em;
  text-shadow: 0 2px 14px #060b14;
}
.hero-subtitle::before, .hero-subtitle::after { content: ""; width: clamp(20px, 5vw, 70px); height: 1px; background: linear-gradient(90deg, transparent, #e7c184aa); }
.hero-subtitle::after { transform: rotate(180deg); }
.hero-theme { margin-top: 16px; color: #eeeeee; font-size: clamp(15px, 1.38vw, 21px); letter-spacing: .055em; text-shadow: 0 1px 9px #090f1c; }
.hero-tags { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 13px; padding: 5px 14px; margin-top: 21px; border: 1px solid #b2966770; background: #0b1426a6; border-radius: 20px; color: #f4dcb2; font-size: 12px; list-style: none; }
.hero-tags li + li::before { content: "◆"; color: var(--gold); font-size: 7px; margin-right: 13px; vertical-align: 2px; }
.hero-date { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 15px; color: #e0e8f3; font-size: 14px; text-shadow: 0 1px 7px #060913; }
.hero-date time { color: #fae4bc; margin-right: .35em; }
.hero-actions { justify-content: center; margin-top: 21px; }

.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 76px; }
.section-band {
  background: radial-gradient(ellipse at 10% 0, #13213a66, transparent 58%), var(--band);
  border-block: 1px solid #26324790;
}
.section-heading { margin-bottom: 32px; display: flex; align-items: center; gap: 17px; }
.section-heading::before { content: ""; width: 9px; height: 9px; flex: 0 0 auto; border: 1px solid var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px #e5c38e38; }
.section-heading::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, #66533999, #27354b50); }
.about-layout { display: grid; grid-template-columns: .96fr 1.04fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.about-copy h3 { color: var(--soft); font-weight: 500; font-size: 15px; }
.about-copy p:not(.theme-quote), .track > p:not(.track-label), .extra-awards p, .timeline li > p:last-child, .score-bonus p, .download-card p { color: var(--soft); }
.theme-quote { margin-block: 14px 19px; font: 700 clamp(23px, 3vw, 37px)/1.55 var(--serif); color: var(--gold); }
.positions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.positions > div { padding: 16px; border-top: 1px solid #746046; background: #111a2a; }
.positions dt { margin-bottom: 5px; color: var(--gold); font-weight: 700; }
.positions dd, .rules-list dd, .organizations dd { color: var(--soft); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.track { position: relative; padding: clamp(20px, 3vw, 34px); border-top: 2px solid #b19060; background: radial-gradient(ellipse at 5% 0, #483a263e, transparent 60%), var(--surface); }
.track-b { border-top-color: #7293ad; background: radial-gradient(ellipse at 5% 0, #27486352, transparent 60%), var(--surface); }
.track-label { color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.track-b .track-label { color: #b9d9f3; }
.track h3 { font: 700 clamp(25px, 3vw, 33px)/1.42 var(--serif); margin-block: 4px 10px; }
.metrics { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 17px 13px; }
.metrics span { border: 1px solid #65553e; border-radius: 4px; color: #eed3a2; font-size: 13px; padding: 3px 8px; }
.track-b .metrics span { border-color: #45607b; color: #c2d9ec; }
.track h4 { border-top: 1px solid var(--line); padding-top: 17px; margin-block: 18px 9px; }
.checklist { display: grid; gap: 5px; padding: 0 0 0 17px; list-style-type: square; color: var(--soft); }
.checklist li::marker { color: #c4a36c; font-size: .75em; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.timeline li { position: relative; padding: 22px 19px 0 0; border-top: 1px solid var(--warm-line); }
.timeline li::before { position: absolute; top: -5px; left: 0; content: ""; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 5px var(--bg); }
.phase-date { color: var(--gold); font-size: 14px; letter-spacing: .07em; }
.timeline h3 { margin-block: 5px 9px; }
.awards-heading::after { order: 1; }
.prize-total { display: flex; align-items: baseline; gap: 7px; color: var(--gold); order: 2; white-space: nowrap; }
.prize-total strong { font: 400 clamp(32px, 4vw, 52px)/1 Georgia,serif; }
.prize-table { overflow: hidden; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
th, td { padding: 14px clamp(12px, 2.2vw, 28px); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead { background: #1e2636; }
th:first-child { width: 21%; }
tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td strong { color: var(--gold); font-weight: 600; }
table small { display: block; font-weight: 400; color: var(--soft); }
.extra-awards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.extra-awards article { padding: 16px; }
.extra-awards h3 { color: var(--gold); font-size: 16px; margin-bottom: 7px; }
.extra-awards p { font-size: 14px; }
.score-card { padding: 21px clamp(18px, 3vw, 32px); }
.score-card h3 { color: var(--gold); margin-bottom: 9px; }
.score-card h3 span { margin-left: 7px; color: var(--text); font-size: 15px; font-weight: 500; }
.score-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.score-list dd { color: var(--gold); white-space: nowrap; }
.score-list dd strong { font: 400 24px/1.1 Georgia,serif; }
.score-bonus { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 16px 21px; border: 1px solid var(--warm-line); border-radius: 7px; background: #292418; }
.score-bonus > strong { font: 400 40px/1 Georgia,serif; color: var(--gold); }
.score-bonus h3 { font-size: 16px; margin-bottom: 3px; }
.rules-list > div, .organizations > div { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rules-list dt, .organizations dt { font-weight: 700; color: var(--gold); }
.download-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px; }
.file-kind { font: 600 11px/1.2 var(--body); color: var(--gold); vertical-align: middle; }
.document-mark { display: grid; place-items: center; width: 43px; height: 43px; font-size: 26px; color: var(--gold); border: 1px solid var(--warm-line); border-radius: 6px; background: #271f17; }
.download-card p { margin-top: 5px; }

.entry-wrap { max-width: 940px; }
.entry-panel { padding: clamp(18px, 4vw, 42px); }
.steps { display: grid; grid-template-columns: 1fr 1.35fr .72fr; gap: 8px; list-style: none; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.steps li[aria-current="step"] { color: #ffdda3; font-weight: 700; }
.steps span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; border: 1px solid #506078; font: 600 13px/1 var(--body); }
.steps li[aria-current="step"] span { color: var(--gold-dark); background: var(--gold); border-color: var(--gold); }
.steps .passed span { color: var(--success); border-color: #539373; }
.message { margin-top: 12px; color: var(--gold); font-size: 14px; white-space: pre-line; }
.message:empty { display: none; }
.message.error { color: var(--error); }
.message.success { color: var(--success); }
.config-message { margin-bottom: 22px; }
.muted { color: var(--muted); font-size: 13px; }
.form-note { margin-block: 5px 13px; }
.required { color: #ffc5a2; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; }
label { font-size: 14px; color: #e5e9f0; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 5px; padding: 8px 10px; border: 1px solid #42516b; border-radius: 5px; background: #0b1424; color: var(--text); font-size: 16px; }
input:disabled, select:disabled, textarea:disabled { opacity: .65; }
input::placeholder, textarea::placeholder { color: #8e9db1; }
textarea { resize: vertical; }
.form-group { margin-top: 19px; padding: 12px 15px 15px; border: 1px solid var(--line); border-radius: 6px; }
.form-group legend { padding-inline: 6px; color: var(--gold); font-size: 14px; }
.intro-label { display: block; margin-top: 13px; }
.field-count { margin-top: 4px; text-align: right; }
.consent { display: flex; align-items: start; gap: 10px; margin-top: 12px; }
.consent input { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: var(--gold); }
.consent a { display: inline-block; color: var(--gold); font-size: 14px; }
.form-actions { margin-top: 18px; }
#login-form label { display: block; margin-top: 12px; }
#entry-summary { margin-top: 7px; }
.credentials, .upload-record, .package-guide { padding: 14px 16px; margin-top: 13px; border: 1px solid var(--line); border-radius: 6px; background: #0d1727; }
.credentials { border-color: var(--warm-line); }
.credentials dl { display: grid; gap: 4px; }
.credentials dl > div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 6px; }
.credentials dd { font-family: Consolas,monospace; color: var(--gold); }
.credentials p { margin-top: 7px; color: var(--soft); font-size: 13px; }
.success-record { color: var(--success); border-color: #4a806a; }
.upload-record p { margin-top: 4px; }
.package-guide > p + p { margin-top: 4px; }
.package-guide details { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
summary { color: var(--gold); cursor: pointer; }
#upload-checklist h4 { margin-block: 7px; }
.file-picker { margin-top: 16px; }
.file-picker p { margin-top: 6px; }
input[type="file"]::file-selector-button { cursor: pointer; margin-right: 10px; padding: 5px 10px; border: 0; border-radius: 3px; background: #28374d; color: var(--text); font: 14px var(--body); }
progress { display: block; width: 100%; height: 9px; margin-block: 9px 6px; accent-color: var(--gold); }
#upload-filename { overflow-wrap: anywhere; }
#upload-heading:focus, #form-heading:focus, #login-heading:focus { outline: none; }

.site-footer { padding-block: 43px 30px; background: #080d16; }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px 40px; color: var(--soft); font-size: 14px; }
.footer-grid h2 { font: 700 19px/1.4 var(--serif); color: var(--text); margin-bottom: 10px; }
.footer-grid p + p { margin-top: 9px; }
.footer-grid a { color: var(--gold); white-space: nowrap; }
.organizations > div { grid-template-columns: 70px minmax(0, 1fr); padding-block: 8px; }
.footer-note { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 13px; color: var(--gold); }

@media (max-width: 900px) {
  .nav-shell { padding-inline: 20px; gap: 12px; }
  #site-nav { gap: 13px; }
  #site-nav a { font-size: 13px; }
  .extra-awards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --nav-height: 60px; }
  .brand { margin-right: auto; }
  #site-nav { display: none; }
  #site-nav.open {
    position: absolute;
    top: var(--nav-height);
    inset-inline: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
    padding: 8px 20px 14px;
    background: #0d1524;
    border-bottom: 1px solid var(--warm-line);
    box-shadow: 0 12px 24px #02050acc;
  }
  #site-nav a { border-bottom: 1px solid var(--line); min-height: 44px; font-size: 14px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; min-height: 40px; border: 1px solid var(--line); border-radius: 4px; background: #111b2c; color: var(--text); font-size: 13px; white-space: nowrap; }
  .wrap { width: calc(100% - 40px); }
  .section { padding-block: 53px; }
  .section-heading { margin-bottom: 23px; }
  .about-layout, .footer-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 23px; }
}
@media (max-width: 640px) {
  .hero {
    min-height: clamp(570px, 164vw, 690px);
  }
  .hero::before { background: linear-gradient(180deg, #070f1b88, #070f1b50 61%, transparent 74%, var(--bg)); }
  .hero-picture img { object-position: 50% 54%; }
  .hero-content { padding: 61px 12px 135px; }
  .hero-kicker { font-size: 10px; letter-spacing: .25em; }
  .hero-title { font-size: clamp(61px, 19vw, 112px); margin: 14px 0 10px; letter-spacing: .005em; }
  .hero-subtitle { gap: 8px; font-size: clamp(19px, 6vw, 27px); letter-spacing: .06em; }
  .hero-subtitle::before, .hero-subtitle::after { width: 24px; }
  .hero-theme { margin-top: 15px; line-height: 1.6; }
  .hero-theme span:last-child { display: block; }
  .hero-theme .theme-separator { display: none; }
  .hero-tags { margin-top: 16px; font-size: 11px; gap: 0 7px; padding-inline: 9px; }
  .hero-tags li + li::before { margin-right: 7px; }
  .hero-date { display: grid; gap: 1px; margin-top: 13px; font-size: 13px; }
  .date-dot { display: none; }
  .hero-actions { margin-top: 16px; gap: 8px; }
  .hero-actions .button { padding-inline: 12px; font-size: 13px; }
  .two-col { grid-template-columns: 1fr; }
  .extra-awards { gap: 8px; }
  .extra-awards article { padding: 12px; }
  .score-bonus { padding-inline: 13px; gap: 12px; }
  .prize-table { font-size: 13px; }
  th, td { padding: 10px 8px; }
  th:first-child { width: 20%; }
  .rules-list > div { grid-template-columns: 1fr; gap: 3px; }
  .download-card { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px; }
  .download-card .button { grid-column: 2; justify-self: start; }
  .steps { gap: 7px; }
  .steps li { gap: 5px; font-size: 12px; line-height: 1.4; }
  .steps span { height: 20px; width: 20px; flex-basis: 20px; font-size: 11px; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 360px) {
  .nav-shell { padding-inline: 10px; gap: 7px; }
  .brand { font-size: 18px; gap: 6px; }
  .brand-mark { width: 29px; height: 29px; font-size: 23px; }
  .wrap { width: calc(100% - 26px); }
  .prize-total { gap: 4px; font-size: 12px; }
  .extra-awards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

