:root {
  font-family: "Segoe UI Variable Text", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: #172b55;
  background: #fff7fa;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 12%, rgba(244, 169, 196, .28), transparent 34rem),
    #fff8fb;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1420px, calc(100vw - 48px));
  min-height: min(900px, calc(100vh - 48px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(520px, .95fr);
  overflow: hidden;
  border: 1px solid rgba(202, 137, 163, .26);
  border-radius: 28px;
  background: rgba(255, 252, 253, .94);
  box-shadow: 0 32px 90px rgba(100, 42, 69, .14);
}

.visual {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #fae2ea;
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 251, .02) 45%, rgba(255, 242, 247, .96) 100%),
    linear-gradient(90deg, transparent 70%, rgba(255, 250, 252, .34));
  pointer-events: none;
}

.visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) contrast(.98);
}

.brand {
  position: absolute;
  z-index: 2;
  top: 46px;
  left: 50px;
  display: grid;
  gap: 2px;
  color: #132f65;
}

.brand-mark {
  font-size: 58px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -.07em;
}

.brand-caption {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .24em;
}

.visual-copy {
  position: absolute;
  z-index: 2;
  left: 50px;
  right: 50px;
  bottom: 48px;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  background: rgba(255, 252, 253, .72);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 9px;
  color: #b84e77;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .18em;
}

.visual-copy h1 {
  margin: 0;
  color: #173464;
  font-family: "STSong", "SimSun", "Songti SC", serif;
  font-size: clamp(26px, 2.2vw, 38px);
  font-weight: 650;
  line-height: 1.38;
}

.visual-copy > p:last-child {
  margin: 16px 0 0;
  color: #7f5a6b;
  font-size: 14px;
}

.content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 22px;
  padding: 54px 58px 34px;
}

.content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.content-header h2 {
  margin: 0;
  color: #132e62;
  font-family: "STSong", "SimSun", "Songti SC", serif;
  font-size: clamp(34px, 3vw, 50px);
  line-height: 1.12;
  font-weight: 650;
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: #807079;
  font-size: 13px;
  white-space: nowrap;
}

.online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #df6f9a;
  box-shadow: 0 0 0 5px rgba(223, 111, 154, .12);
}

.notice-card,
.download-card,
.changelog-card {
  border: 1px solid rgba(211, 169, 185, .42);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
}

.notice-card,
.changelog-card {
  padding: 22px 24px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #27375c;
  font-size: 13px;
  font-weight: 740;
  letter-spacing: .08em;
}

.version {
  padding: 5px 10px;
  border-radius: 999px;
  color: #a24167;
  background: #fde8ef;
  font-weight: 700;
  letter-spacing: 0;
}

.announcement {
  min-height: 48px;
  margin: 14px 0 0;
  color: #715767;
  line-height: 1.75;
  white-space: pre-wrap;
}

.download-card {
  padding: 25px 24px 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 243, 248, .96));
}

.download-card label {
  display: block;
  margin-bottom: 10px;
  color: #6b5662;
  font-size: 13px;
  font-weight: 650;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  gap: 10px;
}

input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #e5ced8;
  border-radius: 12px;
  outline: none;
  color: #17305e;
  background: rgba(255, 255, 255, .95);
  letter-spacing: .035em;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus {
  border-color: #dc789f;
  box-shadow: 0 0 0 4px rgba(220, 120, 159, .12);
}

.input-row button {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #e17ca4, #c65380);
  box-shadow: 0 10px 24px rgba(190, 73, 117, .22);
  cursor: pointer;
  font-weight: 720;
  transition: transform .18s ease, filter .18s ease;
}

.input-row button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.input-row button:disabled {
  cursor: wait;
  opacity: .62;
}

.hint {
  margin: 12px 0 0;
  color: #9a7a89;
  font-size: 12px;
}

.status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #aa456d;
  font-size: 13px;
}

.status.success {
  color: #a43f68;
}

.text-button {
  border: 0;
  padding: 4px 0;
  color: #b44f77;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

pre {
  max-height: 190px;
  margin: 15px 0 0;
  overflow: auto;
  color: #6d5965;
  font: 14px/1.72 "Segoe UI Variable Text", "Microsoft YaHei UI", sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
}

pre[hidden] {
  display: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 6px;
  color: #ab909c;
  font-size: 11px;
}

@media (max-width: 980px) {
  .shell {
    width: min(760px, calc(100vw - 24px));
    grid-template-columns: 1fr;
    margin: 12px auto;
  }

  .visual {
    min-height: 390px;
  }

  .visual-copy {
    left: 26px;
    right: 26px;
    bottom: 24px;
  }

  .content {
    padding: 38px 28px 28px;
  }
}

@media (max-width: 620px) {
  .shell {
    border-radius: 18px;
  }

  .visual {
    min-height: 330px;
  }

  .brand {
    top: 26px;
    left: 28px;
  }

  .brand-mark {
    font-size: 44px;
  }

  .visual-copy {
    padding: 20px;
  }

  .content-header {
    display: block;
  }

  .online {
    margin-top: 14px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .input-row button {
    height: 50px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
