    :root {
      --bg: #eef3fb;
      --card: #ffffff;
      --text: #152a49;
      --muted: #4b6286;
      --primary: #3d67a0;
      --primary-deep: #193762;
      --secondary: #dbe6f7;
      --border: #c7d5ea;
      --ok: #2a4f82;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      background: radial-gradient(circle at top right, #dbe7fa 0%, var(--bg) 50%);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .corner-logo {
      width: 84px;
      height: 84px;
      border: 1px solid var(--border);
      border-radius: 2px;
      background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 14px rgba(25, 55, 98, 0.12);
      transform: scale(1);
      transform-origin: center center;
      transition: transform 0.18s ease, box-shadow 0.18s ease;
      flex: 0 0 auto;
      text-decoration: none;
      color: inherit;
    }

    .corner-logo:hover {
      transform: scale(1.04);
      box-shadow: 0 8px 18px rgba(25, 55, 98, 0.18);
    }

    .corner-logo svg {
      width: 54px;
      height: 54px;
      display: block;
    }

    .wrap {
      position: relative;
      width: min(980px, 100%);
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 4px;
      box-shadow: 0 10px 30px rgba(25, 55, 98, 0.12);
      padding: 20px;
    }

    h1 {
      margin: 0 0 6px;
      font-size: 30px;
    }

    .sub {
      margin: 0 0 14px;
      color: var(--muted);
      font-size: 14px;
    }

    .hero {
      border: 1px solid var(--border);
      background: linear-gradient(135deg, #f7faff 0%, #e8f0fc 100%);
      border-radius: 2px;
      padding: 16px 18px;
      margin-bottom: 14px;
    }

    .hero-inner {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .hero-content {
      min-width: 0;
    }

    .hero p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    h2 {
      margin: 18px 0 10px;
      font-size: 18px;
    }

    .downloads {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin-bottom: 14px;
    }

    .repo-card {
      border: 1px solid var(--border);
      border-radius: 2px;
      background: #f7faff;
      padding: 12px;
      display: grid;
      grid-template-columns: minmax(260px, 1fr) auto;
      gap: 12px;
      align-items: center;
    }

    .repo-card a {
      color: #1f3f6d;
      font-weight: 600;
      text-decoration: none;
    }

    .repo-card a:hover {
      text-decoration: underline;
    }

    .repo-meta {
      margin-top: 6px;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.5;
    }

    .asset-groups {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-end;
    }

    .platform-btn {
      border: 1px solid var(--border);
      border-radius: 2px;
      background: #edf3fb;
      color: #1f3f6d;
      height: 36px;
      min-width: 56px;
      padding: 0 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 700;
    }

    .platform-btn:hover {
      background: #c5d7f2;
    }

    .platform-icon {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .repo-left {
      min-width: 0;
    }

    .repo-links {
      margin-top: 6px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .modal-mask {
      position: fixed;
      inset: 0;
      background: rgba(10, 25, 50, 0.45);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 50;
    }

    .modal-panel {
      width: min(760px, 100%);
      max-height: 80vh;
      overflow: auto;
      border: 1px solid var(--border);
      background: #ffffff;
      border-radius: 4px;
      padding: 14px;
      box-shadow: 0 16px 36px rgba(25, 55, 98, 0.25);
    }

    .modal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }

    .modal-title {
      margin: 0;
      font-size: 16px;
    }

    .modal-list {
      display: grid;
      gap: 8px;
    }

    .modal-item {
      display: block;
      border: 1px solid #9fb9df;
      background: #edf3fb;
      border-radius: 2px;
      padding: 8px 10px;
      font-size: 13px;
      color: #1f3f6d;
      text-decoration: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .modal-item:hover {
      background: #dfe9f8;
    }

    .row {
      display: grid;
      grid-template-columns: repeat(4, auto);
      gap: 10px;
      margin-bottom: 14px;
      justify-content: start;
    }

    input[type="text"] {
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 2px;
      padding: 12px;
      font-size: 14px;
      outline: none;
    }

    input[type="text"]:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(61, 103, 160, 0.22);
    }

    button {
      border: 1px solid #2d568e;
      border-radius: 2px;
      background: var(--primary);
      color: #ffffff;
      padding: 0 14px;
      font-size: 14px;
      cursor: pointer;
      height: 42px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      transition: background 0.15s ease, transform 0.1s ease;
    }

    button.secondary {
      background: var(--secondary);
      border-color: #9fb9df;
      color: #17355f;
    }

    button.download {
      background: #e4ecfa;
      border-color: #9fb9df;
      color: #17355f;
    }

    button:hover {
      background: var(--primary-deep);
      color: #fff;
    }

    button.secondary:hover,
    button.download:hover {
      background: #c5d7f2;
      color: #0f2f58;
    }

    button:active {
      transform: translateY(1px);
    }

    button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    textarea {
      width: 100%;
      min-height: 220px;
      border: 1px solid var(--border);
      border-radius: 2px;
      padding: 12px;
      resize: vertical;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
      font-size: 13px;
      line-height: 1.5;
    }

    .input-multi {
      margin-bottom: 12px;
    }

    .input-multi textarea {
      min-height: 130px;
    }

    .input-extra {
      margin-bottom: 12px;
    }

    .link-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      align-items: center;
      margin-top: 10px;
    }

    .tips {
      margin-top: 8px;
      color: var(--muted);
      font-size: 13px;
    }

    .install-box {
      margin-top: 18px;
      border: 1px solid var(--border);
      border-radius: 2px;
      background: #f7faff;
      padding: 12px;
    }

    .install-title {
      margin: 0 0 8px;
      font-size: 16px;
    }

    .code-wrap {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      align-items: center;
    }

    .code-line {
      margin: 0;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 2px;
      background: #edf3fb;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
      font-size: 13px;
      overflow-x: auto;
      white-space: nowrap;
    }

    .qr-box {
      margin-top: 14px;
      border: 1px solid var(--border);
      border-radius: 2px;
      background: #f7faff;
      padding: 12px;
    }

    .qr-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .qr-card {
      border: 1px solid var(--border);
      border-radius: 2px;
      background: #ffffff;
      padding: 10px;
    }

    .qr-card-title {
      margin: 0 0 8px;
      font-size: 14px;
      color: var(--muted);
    }

    .hidden {
      display: none;
    }

    .qr-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }

    .qr-title {
      margin: 0;
      font-size: 16px;
    }

    .qr-image-wrap {
      width: 220px;
      height: 220px;
      border: 1px solid var(--border);
      border-radius: 2px;
      background: #edf3fb;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .qr-image-wrap img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .qr-placeholder {
      color: var(--muted);
      font-size: 13px;
      text-align: center;
      padding: 0 12px;
    }

    .ok {
      color: var(--ok);
    }

    .site-footer {
      margin-top: 18px;
      border-top: 1px solid var(--border);
      padding-top: 12px;
    }

    .footer-title {
      margin: 0 0 8px;
      font-size: 14px;
      color: var(--muted);
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .footer-link {
      display: inline-flex;
      align-items: center;
      padding: 6px 10px;
      border: 1px solid #9fb9df;
      border-radius: 2px;
      background: #dfe9f8;
      color: #1f3f6d;
      text-decoration: none;
      font-size: 13px;
      font-weight: 600;
    }

    .footer-link:hover {
      background: #c5d7f2;
      color: #0f2f58;
    }

    @media (max-width: 760px) {
      .repo-card {
        grid-template-columns: 1fr;
      }

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

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

      .asset-groups {
        justify-content: flex-start;
      }

      .qr-grid {
        grid-template-columns: 1fr;
      }

      .hero-inner {
        align-items: flex-start;
      }

      .corner-logo {
        width: 68px;
        height: 68px;
        border-radius: 2px;
      }

      .corner-logo svg {
        width: 44px;
        height: 44px;
      }

      .code-wrap {
        grid-template-columns: 1fr;
      }

      button {
        height: 42px;
      }
    }

    svg.icon {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: square;
      stroke-linejoin: miter;
      flex: 0 0 auto;
    }

    .toast-container {
      position: fixed;
      top: 16px;
      right: 16px;
      z-index: 9999;
      display: grid;
      gap: 8px;
      pointer-events: none;
    }

    .toast-item {
      min-width: 180px;
      max-width: 320px;
      border: 1px solid #9fb9df;
      background: #e9f1ff;
      color: #153058;
      border-radius: 2px;
      padding: 10px 12px;
      font-size: 13px;
      box-shadow: 0 8px 20px rgba(25, 55, 98, 0.14);
      opacity: 0;
      transform: translateY(-6px);
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .toast-item.show {
      opacity: 1;
      transform: translateY(0);
    }

    .toast-item.error {
      border-color: #d9a5a5;
      background: #fff0f0;
      color: #6f1c1c;
    }
