.xcc-page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 30px 42px;
  color: #17212b;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.xcc-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 30px 34px;
  border: 1px solid #dbe6e8;
  border-radius: 20px;
  background: linear-gradient(125deg, #fff 0%, #f3fbfb 100%);
  box-shadow: 0 16px 40px rgba(26, 67, 73, 0.08);
}
.xcc-heading h1 {
  margin: 4px 0 8px;
  font-size: 34px;
  line-height: 1.2;
}
.xcc-heading p {
  margin: 0;
  color: #607486;
  font-size: 15px;
  line-height: 1.7;
}
.xcc-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #21878b;
}
.xcc-security {
  white-space: nowrap;
  color: #16825d;
  font-size: 13px;
  font-weight: 700;
}
.xcc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}
.xcc-filters button {
  border: 1px solid #dbe4e9;
  border-radius: 999px;
  background: #fff;
  color: #536575;
  padding: 9px 17px;
  font-weight: 700;
  cursor: pointer;
}
.xcc-filters button.active,
.xcc-filters button:hover {
  border-color: #258b90;
  background: #e8f6f6;
  color: #126f74;
}
.xcc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.xcc-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #dde6eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 54, 73, 0.06);
}
.xcc-card.is-featured {
  border-color: #69bdc0;
  box-shadow:
    inset 0 3px #258b90,
    0 12px 28px rgba(31, 54, 73, 0.08);
}
.xcc-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
}
.xcc-logo {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 13px;
  background: #122631;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}
.xcc-card h2 {
  margin: 5px 0 0;
  font-size: 22px;
}
.xcc-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}
.xcc-badges span,
.xcc-badges b,
.xcc-badges em {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.xcc-badges span {
  background: #edf1f5;
  color: #5c6c79;
}
.xcc-badges b {
  background: #e3f7e9;
  color: #197246;
}
.xcc-badges em {
  background: #fff4cf;
  color: #9a6b00;
}
.xcc-card > p {
  flex: 1;
  margin: 18px 0;
  color: #5c6e7c;
  line-height: 1.65;
}
.xcc-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.xcc-card-actions select {
  grid-column: 1/-1;
  width: 100%;
  border: 1px solid #d8e2e7;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: #283845;
}
.xcc-primary,
.xcc-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.xcc-primary {
  border: 1px solid #258b90;
  background: #258b90;
  color: #fff;
}
.xcc-secondary {
  border: 1px solid #cddcdf;
  background: #fff;
  color: #207c81;
}
.xcc-footnote {
  margin: 20px 2px 0;
  color: #788997;
  font-size: 12px;
}
.xcc-loading,
.xcc-error,
.xcc-empty {
  margin: 40px auto;
  padding: 26px;
  border: 1px solid #dfe7eb;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  color: #607486;
}
.xcc-error {
  color: #bd3030;
}
.xcc-backdrop {
  position: fixed;
  z-index: 10080;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 20, 29, 0.62);
}
.xcc-modal {
  position: relative;
  width: min(440px, 100%);
  padding: 30px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}
.xcc-modal h2 {
  margin: 7px 0;
  font-size: 24px;
}
.xcc-modal p {
  color: #71818d;
}
.xcc-modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 25px;
  cursor: pointer;
}
.xcc-qr {
  margin: 18px auto;
  padding: 14px;
  width: 286px;
  max-width: 90%;
  border: 1px solid #e0e7eb;
  border-radius: 14px;
  background: #fff;
}
.xcc-qr img {
  display: block;
  width: 100%;
  height: auto;
}
.xcc-modal-download {
  width: 100%;
  box-sizing: border-box;
}
.xcc-normal-host {
  position: fixed;
  z-index: 1500;
  top: 64px;
  right: 0;
  bottom: 0;
  left: 240px;
  overflow: auto;
  background: #f4f7f9;
}
.distributor-mode .xcc-normal-host {
  display: none;
}
.dist-content > .xcc-host .xcc-page {
  padding: 0;
}
.dist-content > .xcc-host .xcc-heading {
  margin-top: 0;
}
.dist-content > .xcc-host .xcc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.xcc-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.xcc-card-actions select {
  grid-column: auto;
}
.xcc-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
@media (max-width: 1100px) {
  .xcc-grid,
  .dist-content > .xcc-host .xcc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xcc-normal-host {
    left: 0;
    top: 60px;
    bottom: 64px;
  }
  .xcc-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .xcc-security {
    white-space: normal;
  }
}
@media (max-width: 680px) {
  .xcc-page {
    padding: 12px 10px 28px;
  }
  .xcc-heading {
    padding: 20px;
    border-radius: 14px;
  }
  .xcc-heading h1 {
    font-size: 27px;
  }
  .xcc-grid,
  .dist-content > .xcc-host .xcc-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .xcc-card {
    min-height: 0;
    padding: 17px;
    border-radius: 14px;
  }
  .xcc-filters {
    margin: 12px 0;
    gap: 6px;
  }
  .xcc-filters button {
    padding: 7px 11px;
  }
  .xcc-backdrop {
    padding: 10px;
  }
  .xcc-modal {
    padding: 25px 18px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f7f9;
  color: #17212b;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #e8b55c;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.site-header {
  max-width: 1480px;
  margin: auto;
  min-height: 98px;
  padding: 24px 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #182d37;
  font-weight: 800;
  font-size: 21px;
}
.brand-symbol {
  display: grid;
  place-items: center;
  background: #21878b;
  color: white;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 27px;
}
.brand small {
  display: block;
  font-size: 11px;
  color: #72838b;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-top: 3px;
}
.header-note {
  font-size: 13px;
  color: #788997;
}
.site-footer {
  max-width: 1420px;
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid #e0e8eb;
  display: flex;
  justify-content: space-between;
  color: #788997;
  font-size: 12px;
  gap: 20px;
}
.xcc-page {
  padding-top: 24px;
}
.xcc-grid .xcc-empty,
.xcc-grid .xcc-error,
.xcc-grid .xcc-loading {
  grid-column: 1/-1;
  width: 100%;
}
.xcc-card {
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.xcc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px #1f364914;
}
.xcc-card-actions select {
  min-height: 44px;
}
.xcc-primary,
.xcc-secondary {
  font-size: 14px;
  min-height: 44px;
}
.qr-dialog {
  width: min(400px, calc(100% - 30px));
  border: 1px solid #dbe6e8;
  border-radius: 20px;
  padding: 34px 24px;
  text-align: center;
  color: #17212b;
  box-shadow: 0 24px 80px #07141d44;
}
.qr-dialog::backdrop {
  background: #07141d99;
}
.qr-dialog h2 {
  font-size: 22px;
  margin: 12px 0;
}
.qr-dialog p {
  color: #71818d;
  font-size: 14px;
}
.qr-dialog canvas {
  display: block;
  width: 256px;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
}
.qr-dialog a {
  display: flex;
}
.dialog-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 28px;
  padding: 4px 10px;
}
.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;
}
.skip {
  position: absolute;
  left: 20px;
  top: -80px;
  background: white;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.admin-main {
  max-width: 1300px;
  padding: 24px 30px 60px;
  margin: auto;
}
.text-link {
  color: #207c81;
  text-decoration: none;
  font-size: 14px;
}
.notice:empty {
  display: none;
}
.notice {
  padding: 14px 18px;
  background: #e3f7e9;
  border: 1px solid #a5d1b3;
  border-radius: 10px;
  color: #197246;
}
.notice.error {
  background: #fff0ed;
  color: #aa302d;
  border-color: #f2c5bf;
}
.login-panel {
  max-width: 460px;
  background: white;
  padding: 38px;
  border: 1px solid #dbe6e8;
  border-radius: 20px;
  margin: 60px auto;
  box-shadow: 0 18px 60px #1f36490b;
}
.login-panel h1 {
  font-size: 27px;
  margin-bottom: 12px;
}
.login-panel p,
.admin-heading p,
.hint {
  color: #71818d;
  line-height: 1.7;
  font-size: 14px;
}
.login-panel form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #4a5e6c;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  border: 1px solid #cddcdf;
  border-radius: 9px;
  background: white;
  padding: 11px 13px;
  color: #17212b;
  min-width: 0;
  width: 100%;
}
input[readonly] {
  background: #eef2f5;
  color: #71818d;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
input[type="checkbox"] {
  accent-color: #21878b;
  width: 18px;
  height: 18px;
}
.admin-heading,
.editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.admin-heading h1 {
  font-size: 30px;
  margin: 8px 0;
}
.admin-heading p {
  max-width: 700px;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.admin-tools {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  margin: 28px 0;
}
.admin-tools > label:first-child {
  flex: 1;
}
.admin-tools > .check {
  padding-bottom: 12px;
}
.admin-list {
  display: grid;
  gap: 12px;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: white;
  border: 1px solid #dbe6e8;
  border-radius: 14px;
  padding: 18px 22px;
}
.row-detail {
  flex: 1;
  min-width: 0;
}
.row-detail h2 {
  font-size: 18px;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.row-detail p {
  color: #71818d;
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
}
.row-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.danger {
  color: #ac3a36;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.pill {
  font-size: 11px;
  font-weight: 600;
  background: #fff4cf;
  color: #9a6b00;
  border-radius: 5px;
  padding: 3px 7px;
}
.editor {
  background: white;
  padding: 30px;
  border: 1px solid #dbe6e8;
  border-radius: 18px;
}
.editor-heading {
  margin-bottom: 24px;
}
.editor-heading h2 {
  margin: 6px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
}
.platform-field {
  border: 1px solid #dbe6e8;
  border-radius: 12px;
  margin: 18px 0;
  padding: 15px 20px 22px;
}
.platform-field legend {
  padding: 0 8px;
}
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #dbe6e8;
  color: #71818d;
  font-size: 13px;
}
.xcc-footnote {
  line-height: 1.7;
}
.xcc-logo {
  user-select: none;
}
@media (max-width: 800px) {
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-row {
    flex-wrap: wrap;
  }
  .row-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .site-footer {
    margin: 0 20px;
  }
  .header-note {
    display: none;
  }
  .admin-tools {
    flex-wrap: wrap;
  }
  .admin-tools > label:first-child {
    flex-basis: 100%;
  }
}
@media (max-width: 680px) {
  .site-header {
    min-height: 85px;
    padding: 20px 16px 8px;
  }
  .brand {
    font-size: 19px;
  }
  .site-footer {
    font-size: 11px;
  }
  .admin-main {
    padding: 14px 12px 40px;
  }
  .login-panel {
    margin: 30px auto;
    padding: 26px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .editor {
    padding: 18px;
  }
  .platform-field {
    padding: 12px;
  }
  .save-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .save-bar button {
    width: 100%;
  }
  .admin-row {
    padding: 16px;
  }
  .admin-heading h1 {
    font-size: 26px;
  }
  .xcc-heading p {
    font-size: 14px;
  }
  .xcc-card > p {
    font-size: 14px;
  }
}

/* Keep every download control visible in the single-column catalog. */
#catalog.xcc-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
#catalog .xcc-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 18px;
  min-height: 0;
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: none;
}
#catalog .xcc-card:hover {
  transform: none;
  border-color: #9bc4c7;
  box-shadow: none;
}
#catalog .xcc-card-head {
  min-width: 0;
  gap: 14px;
}
.xcc-list-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
#catalog h2 {
  font-size: 18px;
  margin: 0;
  overflow-wrap: anywhere;
}
#catalog .xcc-card-actions {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  width: 100%;
  max-width: 440px;
  justify-self: end;
}
@media (max-width: 800px) {
  #catalog .xcc-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  #catalog .xcc-card-actions {
    max-width: none;
  }
  #catalog .xcc-card-head {
    gap: 10px;
  }
  #catalog .xcc-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 18px;
    border-radius: 10px;
  }
  #catalog h2 {
    font-size: 16px;
  }
}

/* Native radio controls keep platform filtering available even without JavaScript. */
#filters label {
  display: block;
  border: 1px solid #dbe4e9;
  border-radius: 999px;
  background: #fff;
  color: #536575;
  padding: 9px 17px;
  font-weight: 700;
  cursor: pointer;
}
#catalog .platform-panel {
  display: none;
  gap: 12px;
  min-width: 0;
}
#platform-android:checked ~ #catalog [data-platform="android"] {
  display: grid;
}
#platform-android:checked ~ #filters label[for="platform-android"] {
  border-color: #258b90;
  background: #e8f6f6;
  color: #126f74;
}
#platform-android:focus-visible ~ #filters label[for="platform-android"] {
  outline: 3px solid #e8b55c;
  outline-offset: 3px;
}
#platform-ios:checked ~ #catalog [data-platform="ios"] {
  display: grid;
}
#platform-ios:checked ~ #filters label[for="platform-ios"] {
  border-color: #258b90;
  background: #e8f6f6;
  color: #126f74;
}
#platform-ios:focus-visible ~ #filters label[for="platform-ios"] {
  outline: 3px solid #e8b55c;
  outline-offset: 3px;
}
#platform-windows:checked ~ #catalog [data-platform="windows"] {
  display: grid;
}
#platform-windows:checked ~ #filters label[for="platform-windows"] {
  border-color: #258b90;
  background: #e8f6f6;
  color: #126f74;
}
#platform-windows:focus-visible ~ #filters label[for="platform-windows"] {
  outline: 3px solid #e8b55c;
  outline-offset: 3px;
}
#platform-macos:checked ~ #catalog [data-platform="macos"] {
  display: grid;
}
#platform-macos:checked ~ #filters label[for="platform-macos"] {
  border-color: #258b90;
  background: #e8f6f6;
  color: #126f74;
}
#platform-macos:focus-visible ~ #filters label[for="platform-macos"] {
  outline: 3px solid #e8b55c;
  outline-offset: 3px;
}
#platform-linux:checked ~ #catalog [data-platform="linux"] {
  display: grid;
}
#platform-linux:checked ~ #filters label[for="platform-linux"] {
  border-color: #258b90;
  background: #e8f6f6;
  color: #126f74;
}
#platform-linux:focus-visible ~ #filters label[for="platform-linux"] {
  outline: 3px solid #e8b55c;
  outline-offset: 3px;
}
@media (max-width: 680px) {
  #filters label {
    padding: 7px 11px;
  }
}
