:root {
  --ink: #18152c;
  --muted: #6f7184;
  --line: #dde1ec;
  --paper: #fbfbfe;
  --violet: #38275e;
  --blue: #0d7ea8;
  --rose: #df3f9b;
  --amber: #f4b03e;
  --green: #16866b;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(28, 26, 51, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(56, 39, 94, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(13, 126, 168, 0.12), transparent 38%),
    #f5f7fb;
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  min-height: 100vh;
}

.visual-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 100vh;
  padding: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 15%, rgba(223, 63, 155, 0.22), transparent 30%),
    linear-gradient(160deg, #211735 0%, #38275e 58%, #153b4e 100%);
}

.visual-panel::after {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand {
  position: relative;
  z-index: 1;
}

.brand img,
.logo-link img {
  display: block;
  width: min(230px, 54vw);
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.18));
}

.poster {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(78vh, 85%);
  max-width: 700px;
  height: auto;
  margin: 16px 0 24px;
  border-radius: 6px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.timeline-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.timeline-strip span {
  display: flex;
  flex-direction: column;
  min-height: 76px;
  padding: 14px 12px;
  background: rgba(24, 21, 44, 0.36);
  font-size: 14px;
  letter-spacing: 0;
}

.timeline-strip strong {
  margin-bottom: 6px;
  color: #ffd781;
  font-size: 18px;
}

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 76px);
}

.form-heading {
  max-width: 640px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

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

.form-heading h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.14;
  letter-spacing: 0;
}

.form-heading p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.registration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 720px);
  padding: 26px;
  border: 1px solid rgba(221, 225, 236, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

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

.registration-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.registration-form label:nth-of-type(4) {
  grid-column: 1 / -1;
}

.registration-form span,
.registration-form legend {
  color: #34324d;
  font-size: 15px;
  font-weight: 700;
}

.registration-form input,
.registration-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.registration-form input:focus,
.registration-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(13, 126, 168, 0.13);
}

.registration-form small {
  min-height: 18px;
  color: #b4234c;
  font-size: 12px;
}

.registration-form fieldset {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
}

.stage-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.stage-options label {
  display: flex;
  min-height: 46px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.stage-options input {
  width: 16px;
  height: 16px;
  accent-color: var(--rose);
}

.primary-button {
  grid-column: 1 / -1;
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--blue) 54%, var(--rose));
  box-shadow: 0 16px 36px rgba(56, 39, 94, 0.25);
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.primary-button:not(:disabled):hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: #b4234c;
}

.guide-body {
  background: #f3f5f9;
}

.guide-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(110deg, #211735, #38275e 56%, #0d596f);
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.guide-header h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: 0;
}

.guide-header .eyebrow {
  color: #ffd781;
}

.official-site-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(255, 215, 129, 0.66);
  border-radius: 6px;
  color: #1f1732;
  background: #ffd781;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  font-weight: 800;
  text-decoration: none;
}

.official-site-link:hover {
  filter: brightness(1.05);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.pdf-section,
.guide-side > section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(28, 26, 51, 0.08);
}

.pdf-section {
  overflow: hidden;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.section-title h2,
.guide-side h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.download-link {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.pdf-pages {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(56, 39, 94, 0.05), transparent 34%),
    #f8f9fc;
}

.pdf-pages canvas,
.pdf-loading-preview {
  display: block;
  width: min(720px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 16px 42px rgba(28, 26, 51, 0.16);
}

.pdf-error {
  margin: 0;
  padding: 18px;
  border: 1px solid #f0c0ce;
  border-radius: 6px;
  background: #fff6f8;
  color: #9f1d45;
  text-align: center;
}

.guide-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guide-side > section {
  padding: 20px;
}

.notice-box p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.download-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-box h2 {
  margin-bottom: 4px;
}

.download-box a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.download-box a:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.download-box span {
  line-height: 1.4;
}

.download-box strong {
  flex: 0 0 auto;
  color: var(--rose);
  font-size: 13px;
}

.milestone-box ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.milestone-box li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-left: 4px solid var(--amber);
  background: #faf8f2;
}

.milestone-box time {
  color: var(--violet);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .shell,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: auto;
  }

  .poster {
    width: min(460px, 82%);
  }

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

  .guide-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-box {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1081px) {
  .shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .visual-panel {
    height: 100dvh;
    min-height: 0;
    padding: clamp(18px, 3vh, 34px);
  }

  .poster {
    flex: 1 1 auto;
    width: auto;
    max-width: min(85%, 620px);
    max-height: calc(100dvh - 220px);
    min-height: 0;
    margin: clamp(8px, 2vh, 18px) 0;
    object-fit: contain;
  }

  .timeline-strip span {
    min-height: clamp(58px, 8vh, 76px);
    padding: clamp(9px, 1.4vh, 14px) 12px;
  }

  .timeline-strip strong {
    font-size: clamp(16px, 2vh, 18px);
  }

  .form-panel {
    justify-content: flex-start;
    max-height: 100dvh;
    padding-top: clamp(20px, 5vh, 76px);
    padding-bottom: clamp(20px, 5vh, 76px);
    overflow: auto;
  }
}

@media (max-width: 720px) {
  .visual-panel,
  .form-panel,
  .guide-layout {
    padding: 18px;
  }

  .visual-panel::after {
    inset: 9px;
  }

  .timeline-strip,
  .registration-form,
  .stage-options,
  .guide-side {
    grid-template-columns: 1fr;
  }

  .registration-form {
    padding: 18px;
  }

  .guide-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-link {
    width: 100%;
    text-align: center;
  }

  .pdf-pages {
    padding: 12px;
  }
}
