:root {
  --ink: #123a60;
  --ink-strong: #0d2f51;
  --muted: #57728d;
  --muted-soft: #738ba1;
  --line: #dbe8f4;
  --line-soft: #e9f2fa;
  --blue-050: #f6fbff;
  --blue-100: #eef7ff;
  --accent: #1b6bb4;
  --accent-dark: #14558f;
  --accent-pale: #e8f3ff;
  --radius: 13px;
  --shadow: 0 1px 2px rgba(20, 60, 100, .04), 0 10px 28px rgba(28, 82, 130, .05);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
select,
input {
  font-family: inherit;
}

.shell {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 14px clamp(12px, 2.4vw, 20px) 28px;
}

.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;
}

/* Tabs */

.tabbar {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  appearance: none;
  border: 0;
  border-radius: 8px 8px 0 0;
  padding: 10px 17px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}

.tab:hover {
  color: var(--accent);
  background: var(--blue-050);
}

.tab[aria-selected="true"] {
  color: var(--ink-strong);
}

.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: -1px;
  left: 13px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}

.tab:focus-visible {
  outline: 2px solid #79b4e6;
  outline-offset: 2px;
}

/* Demo notice */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid #efdcb4;
  border-radius: 9px;
  background: #fffaf0;
  color: #745622;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.notice[hidden] {
  display: none;
}

.notice::before {
  content: "i";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1px solid #d8b978;
  border-radius: 50%;
  color: #856326;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  line-height: 14px;
  text-align: center;
}

/* Status and empty states */

.state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfdff, #f5faff);
  color: var(--muted);
  text-align: center;
}

.state-box h2 {
  margin: 0 0 6px;
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}

.state-box p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
}

.state-box .btn {
  margin-top: 14px;
}

.state-icon {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid #c9e1f3;
  border-radius: 12px;
  background: #fff;
  color: #73a3c9;
  box-shadow: 0 4px 12px rgba(31, 95, 148, .06);
}

.state-icon::before,
.state-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.state-icon::before {
  top: 12px;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
}

.state-icon::after {
  top: 20px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.state-icon.is-error {
  border-color: #efd6d6;
  color: #bb6a6a;
  background: #fffafa;
}

.state-icon.is-error::before {
  top: 11px;
  height: 14px;
}

.state-icon.is-error::after {
  top: 29px;
  width: 3px;
  height: 3px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.spinner {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border: 2px solid #d4e8f8;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Software card */

.software-card {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.software-card:last-child {
  margin-bottom: 0;
}

/* Banner */

.banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 22px);
  min-height: 156px;
  padding: 20px clamp(16px, 2.6vw, 24px) 24px;
  overflow: hidden;
  border-bottom: 1px solid #d5e7f8;
  background: linear-gradient(112deg, #f8fcff 0%, #edf7ff 48%, #dcecfb 100%);
}

.banner::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 230px 150px at 87% -12%, rgba(255, 255, 255, .98), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 190px 110px at 8% 115%, rgba(175, 215, 245, .45), rgba(175, 215, 245, 0) 70%);
}

.banner-wave {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 52px;
  pointer-events: none;
}

.banner-media {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 124px;
  align-items: center;
  justify-content: center;
  width: 124px;
  min-height: 116px;
}

.banner-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 124px;
  max-height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(29, 76, 120, .18));
}

.box-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 116px;
  padding: 9px 7px;
  border: 1px dashed #b7d6ee;
  border-radius: 10px;
  background: rgba(255, 255, 255, .48);
  color: #6a90b2;
  text-align: center;
}

.box-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: .82;
}

.box-placeholder span {
  font-size: 10.5px;
  line-height: 1.45;
}

.banner-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-bottom: 2px;
}

.banner-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 18px;
  margin-bottom: 6px;
}

.meta-category {
  color: #3e77a8;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .1em;
}

.demo-badge {
  padding: 1px 6px;
  border: 1px solid #efdcaf;
  border-radius: 4px;
  background: #fff7e7;
  color: #79581f;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.software-name {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 650;
  letter-spacing: .005em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.software-desc {
  max-width: 570px;
  margin: 8px 0 0;
  color: #4c6d8b;
  font-size: 12.8px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* Version lines */

.version-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: stretch;
}

.version-row + .version-row {
  border-top: 1px solid var(--line);
}

.version-controls {
  min-width: 0;
  padding: 16px clamp(16px, 2.3vw, 22px) 18px;
  border-right: 1px solid var(--line);
}

.log-panel {
  min-width: 0;
  padding: 15px 16px 16px;
  background: #fbfdff;
}

.line-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 19px;
  margin-bottom: 10px;
}

.line-name {
  color: #1c5588;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .02em;
}

.line-name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 2px;
  background: #4b95d2;
  transform: translateY(-1px);
}

.line-demo {
  color: #84652f;
  font-size: 10px;
  line-height: 1.5;
}

/* Latest download */

.latest-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #dcebf8;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f3f9ff);
}

.latest-info {
  min-width: 0;
}

.meta-label {
  display: block;
  color: #7190aa;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
}

.latest-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin-top: 2px;
}

.latest-date {
  color: #153e65;
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  line-height: 1.4;
}

.latest-version {
  color: #6b849c;
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

/* History */

.history-block {
  margin-top: 12px;
}

.history-label {
  display: block;
  margin-bottom: 6px;
  color: #5d7892;
  font-size: 11.5px;
  font-weight: 600;
}

.history-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #5e87a8;
  border-bottom: 1.5px solid #5e87a8;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.history-select {
  width: 100%;
  height: 33px;
  padding: 0 31px 0 10px;
  border: 1px solid #caddf0;
  border-radius: 7px;
  appearance: none;
  background: #fff;
  color: #244b6e;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  text-overflow: ellipsis;
}

.history-select:hover:not(:disabled) {
  border-color: #a9cde9;
}

.history-select:focus-visible {
  outline: 2px solid #83bae8;
  outline-offset: 1px;
}

.history-select:disabled {
  background: #f8fbfe;
  color: #8aa0b3;
  cursor: not-allowed;
}

.version-empty {
  padding: 28px 18px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn-primary {
  border-color: var(--accent-dark);
  background: linear-gradient(180deg, #247bc3, #155f9f);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 70, 115, .18), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.btn-primary:hover {
  border-color: #0f4d83;
  background: linear-gradient(180deg, #1f70b4, #114f87);
}

.btn-secondary {
  border-color: #bdd9ef;
  background: #fff;
  color: #195f9b;
}

.btn-secondary:hover {
  border-color: #96c4e7;
  background: #f2f9ff;
}

.btn:focus-visible {
  outline: 2px solid #79b4e6;
  outline-offset: 2px;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  border-color: #dfe9f2;
  background: #f2f6fa;
  color: #91a5b7;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* Changelog */

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
  margin-bottom: 8px;
}

.log-title {
  color: #244e74;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .02em;
}

.log-count {
  color: #8097ab;
  font-size: 10.5px;
  white-space: nowrap;
}

.log-scroll {
  position: relative;
  height: 202px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e0ecf7;
  border-radius: 9px;
  background: #fff;
  scrollbar-color: #b8d4ea transparent;
  scrollbar-width: thin;
}

.log-scroll::-webkit-scrollbar {
  width: 8px;
}

.log-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.log-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 8px;
  background: #b8d4ea;
}

.log-scroll:focus-visible {
  outline: 2px solid #83bae8;
  outline-offset: 1px;
}

.log-list {
  margin: 0;
  padding: 2px 0;
  list-style: none;
}

.log-entry {
  padding: 9px 12px 10px;
  border-bottom: 1px solid #edf4fa;
  scroll-margin: 8px;
}

.log-entry:last-child {
  border-bottom: 0;
}

.log-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.log-date {
  color: #214c73;
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.log-version {
  color: #7a91a5;
  font-size: 10.5px;
  overflow-wrap: anywhere;
}

.latest-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border: 1px solid #c9e2f9;
  border-radius: 4px;
  background: #e7f2ff;
  color: #1b649f;
  font-size: 9.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.log-notes {
  margin: 5px 0 0;
  padding-left: 14px;
  color: #526e87;
  font-size: 11.5px;
  line-height: 1.62;
}

.log-notes li {
  margin: 1px 0;
  overflow-wrap: anywhere;
}

.log-notes li::marker {
  color: #8bb8da;
}

.log-note-empty {
  margin: 5px 0 0;
  color: #8aa0b3;
  font-size: 11.5px;
}

.log-entry.is-highlighted {
  background: linear-gradient(90deg, #eaf5ff, #f7fbff);
  box-shadow: inset 3px 0 0 #2f80c5;
  animation: log-highlight 1.7s ease;
}

@keyframes log-highlight {
  0% { background: #d8edff; }
  100% { background: linear-gradient(90deg, #eaf5ff, #f7fbff); }
}

/* Responsive */

@media (max-width: 680px) {
  .shell {
    padding: 10px 12px 22px;
  }

  .tab {
    flex: 1 1 0;
    padding: 9px 8px 11px;
    font-size: 13.5px;
    white-space: nowrap;
  }

  .banner {
    gap: 14px;
    min-height: 0;
    padding: 15px 14px 20px;
  }

  .banner-media {
    flex-basis: 94px;
    width: 94px;
    min-height: 96px;
  }

  .banner-media img {
    max-width: 94px;
    max-height: 112px;
  }

  .box-placeholder {
    min-height: 96px;
    padding: 7px 5px;
  }

  .box-placeholder svg {
    width: 32px;
    height: 32px;
  }

  .software-desc {
    margin-top: 6px;
    font-size: 12.2px;
    line-height: 1.65;
  }

  .version-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .version-controls {
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .log-panel {
    padding: 13px 14px 14px;
  }

  .log-scroll {
    height: 190px;
  }

  .latest-date {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .banner {
    align-items: flex-start;
  }

  .banner-media {
    flex-basis: 78px;
    width: 78px;
    min-height: 82px;
  }

  .banner-media img {
    max-width: 78px;
    max-height: 96px;
  }

  .box-placeholder {
    min-height: 82px;
  }

  .box-placeholder svg {
    width: 27px;
    height: 27px;
  }

  .box-placeholder span {
    font-size: 9.5px;
  }

  .banner-meta {
    margin-bottom: 5px;
  }

  .btn {
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
