:root {
  --paper: #f7f8f8;
  --white: #ffffff;
  --ink: #20242b;
  --muted: #5b6470;
  --line: #d9dde3;
  --red: #9b0000;
  --cyan: #17a7c7;
  --green: #1f8c68;
  --gold: #c49a4a;
  --dark: #1f252d;
  --hero-image: url("./assets/hallbar-hero-20260616.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 44px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 221, 227, 0.7);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 16px;
  font-weight: 800;
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--red);
  background: rgba(155, 0, 0, 0.07);
}

.hero {
  min-height: 680px;
  height: 82vh;
  max-height: 820px;
  display: grid;
  align-items: center;
  padding: 104px 6vw 76px;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.56) 68%, rgba(255, 255, 255, 0.2)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  border-bottom: 10px solid var(--red);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
}

.hero-content {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 930px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--red);
  font-size: 22px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 58px;
  line-height: 1.16;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 25px;
  overflow-wrap: anywhere;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-meta span {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(32, 36, 43, 0.12);
  border-left: 4px solid var(--cyan);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 800;
}

.hero-actions,
.poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-register,
.qr-panel,
.register-qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(32, 36, 43, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(32, 36, 43, 0.1);
}

.hero-register img,
.qr-panel img,
.register-qr-card img {
  width: 86px;
  height: 86px;
  border-radius: 4px;
  background: var(--white);
}

.hero-register strong,
.hero-register span,
.qr-panel strong,
.qr-panel span,
.register-qr-card span {
  display: block;
}

.hero-register strong,
.qr-panel strong {
  margin-bottom: 6px;
  color: var(--red);
  font-size: 18px;
}

.hero-register span,
.qr-panel span {
  max-width: 250px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.button,
.copy-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--red);
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.secondary,
.copy-button {
  color: var(--red);
  background: var(--white);
}

.button:hover,
.copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(32, 36, 43, 0.12);
}

.button.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  min-height: 112px;
  padding: 28px 32px;
  background: var(--white);
}

.fact span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.fact strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.45;
}

.band {
  padding: 88px 6vw;
  background: var(--white);
}

.band-muted {
  background: #eef3f4;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 56px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-title {
  align-self: start;
}

.index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1.22;
}

.section-title h2::before {
  content: "";
  display: block;
  width: 140px;
  height: 6px;
  margin-bottom: 18px;
  background: var(--cyan);
}

.section-copy p {
  max-width: 820px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.9;
}

.topic-board {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}

.topic-board span {
  padding: 12px 16px;
  color: var(--green);
  background: var(--white);
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 900;
}

.topic-board span:nth-child(2n) {
  color: var(--cyan);
}

.topic-board span:nth-child(3n) {
  color: var(--red);
}

.schedule-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-list li {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.schedule-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.schedule-list time {
  color: var(--red);
  font-size: 26px;
  font-weight: 900;
}

.schedule-list h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.schedule-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.band-dark {
  color: var(--white);
  background: var(--dark);
  border-top: 8px solid var(--gold);
}

.audience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: start;
}

.audience-layout h2 {
  margin-bottom: 22px;
  font-size: 36px;
}

.audience-layout p {
  max-width: 760px;
  color: #d8dee6;
  font-size: 20px;
  line-height: 1.85;
}

.contact-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-panel span,
.contact-panel strong,
.contact-panel a {
  display: block;
}

.contact-panel span {
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 900;
}

.contact-panel strong {
  margin-bottom: 8px;
  font-size: 28px;
}

.contact-panel a {
  margin-bottom: 20px;
  color: #eef4f8;
  overflow-wrap: anywhere;
}

.copy-button {
  width: 100%;
}

.poster-band {
  background: #f1f4f5;
}

.poster-grid {
  align-items: start;
}

.section-note {
  margin: 24px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.poster-frame {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(32, 36, 43, 0.13);
}

.poster-frame img {
  width: 100%;
  border-radius: 4px;
}

.qr-panel {
  align-items: flex-start;
  width: 100%;
  margin-top: 22px;
  background: var(--white);
}

.register-page {
  background: #eef3f4;
}

.register-main {
  min-height: calc(100vh - 120px);
  padding-top: 68px;
}

.register-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 86px 6vw 54px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.74)),
    var(--hero-image) center / cover;
  border-bottom: 8px solid var(--red);
}

.register-copy {
  width: min(820px, 100%);
}

.register-copy h1 {
  margin-bottom: 18px;
  font-size: 46px;
}

.register-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
}

.register-qr-card {
  flex-direction: column;
  width: 156px;
  margin-top: 0;
  text-align: center;
}

.register-qr-card img {
  width: 120px;
  height: 120px;
}

.register-qr-card span {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.form-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  width: min(1180px, calc(100% - 12vw));
  margin: 42px auto 70px;
}

.register-form,
.submission-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(32, 36, 43, 0.08);
}

.register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.register-form label,
.register-form fieldset {
  min-width: 0;
}

.register-form label span,
.register-form legend {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 900;
}

.register-form input[type="text"],
.register-form input[type="tel"],
.register-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd6dd;
  border-radius: 6px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
}

.register-form textarea {
  resize: vertical;
}

.register-form input:focus,
.register-form textarea:focus {
  outline: 3px solid rgba(23, 167, 199, 0.22);
  border-color: var(--cyan);
}

.register-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.radio-row span {
  margin: 0;
}

.full-field,
.form-actions {
  grid-column: 1 / -1;
}

.muted-field {
  opacity: 0.72;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.submission-panel h2 {
  margin-bottom: 12px;
  font-size: 25px;
}

.submission-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.submission-panel pre {
  min-height: 220px;
  max-height: 340px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #f7f8f8;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.site-footer {
  padding: 28px 6vw 34px;
  color: #d9dfe6;
  background: #171c22;
  text-align: center;
}

.site-footer p {
  margin: 7px 0;
  font-size: 14px;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-page {
  background: #eef3f4;
}

.admin-main {
  padding-top: 68px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  padding: 76px 6vw 50px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.78)),
    var(--hero-image) center / cover;
  border-bottom: 8px solid var(--red);
}

.admin-hero h1 {
  margin-bottom: 14px;
  font-size: 44px;
}

.admin-hero p:last-child {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  width: min(1240px, calc(100% - 12vw));
  margin: 42px auto 72px;
}

.admin-form,
.admin-help {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(32, 36, 43, 0.08);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.admin-form label span,
.admin-form legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd6dd;
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
}

.color-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-help h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.admin-help p,
.admin-help li {
  color: var(--muted);
  line-height: 1.75;
}

.admin-help code {
  color: var(--red);
  font-weight: 800;
}

.admin-help pre {
  max-height: 430px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8f8;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 24px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: 640px;
    height: auto;
    padding: 120px 24px 58px;
    background-position: 58% center;
  }

  h1 {
    max-width: 620px;
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .facts-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-grid,
  .audience-layout,
  .form-band,
  .register-hero,
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .admin-hero {
    display: block;
  }

  .contact-panel {
    max-width: 430px;
  }

  .register-main {
    padding-top: 0;
  }

  .admin-main {
    padding-top: 0;
  }

  .register-qr-card {
    flex-direction: row;
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    display: block;
  }

  .brand {
    display: block;
    margin-bottom: 10px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .hero {
    min-height: 620px;
    padding: 52px 20px 44px;
    background-position: 65% center;
  }

  .eyebrow {
    font-size: 18px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-meta span {
    width: 100%;
  }

  .button,
  .copy-button {
    width: 100%;
  }

  .hero-register,
  .qr-panel,
  .register-qr-card {
    width: 100%;
  }

  .hero-register img,
  .qr-panel img,
  .register-qr-card img {
    width: 78px;
    height: 78px;
  }

  .facts-strip {
    grid-template-columns: 1fr;
  }

  .band {
    padding: 62px 20px;
  }

  .index {
    font-size: 34px;
  }

  .section-title h2,
  .audience-layout h2 {
    font-size: 28px;
  }

  .section-copy p,
  .audience-layout p {
    font-size: 18px;
  }

  .topic-board span {
    width: 100%;
    font-size: 17px;
  }

  .schedule-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .poster-frame {
    padding: 8px;
  }

  .register-hero {
    padding: 52px 20px 44px;
  }

  .register-copy h1 {
    font-size: 31px;
  }

  .form-band {
    width: calc(100% - 40px);
    margin: 30px auto 50px;
  }

  .register-form,
  .submission-panel {
    padding: 22px;
  }

  .register-form {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    padding: 52px 20px 44px;
  }

  .admin-hero h1 {
    font-size: 31px;
  }

  .admin-grid {
    width: calc(100% - 40px);
    margin: 30px auto 50px;
  }

  .admin-form,
  .admin-help {
    padding: 22px;
  }

  .admin-form,
  .color-fields {
    grid-template-columns: 1fr;
  }
}
