      --bg: #020617;
      --bg-elevated: #0f172a;
      --text: #f0f9ff;
      --text-muted: #94a3b8;
      --text-soft: #94a3b8;
      --accent-cyan: #0ea5e9;
      --accent-blue: #3b82f6;
      --border: rgba(14, 165, 233, 0.08);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    html, body { min-height: 100%; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      background: #020617;
      color: var(--text);
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* ── 导航 ── */
    .top-nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 48px; height: 68px;
      background: rgba(15, 23, 42, 0.85);
      backdrop-filter: blur(20px) saturate(1.4);
      border-bottom: 1px solid var(--border);
    }
    .nav-brand {
      display: flex; align-items: center; gap: 12px;
      font-size: 20px; font-weight: 800; letter-spacing: 2px;
      text-decoration: none;
      color: #f0f9ff;
      filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.1));
    }
    .nav-logo {
      width: 36px; height: 36px; flex-shrink: 0;
      animation: logoPulse 4s ease-in-out infinite;
      transition: transform .35s ease;
    }
    @keyframes logoPulse {
      0%, 100% { filter: drop-shadow(0 0 4px rgba(0, 242, 255, 0.25)); }
      50% { filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5)); }
    }
    .nav-brand:hover .nav-logo {
      filter: drop-shadow(0 0 14px rgba(0, 242, 255, 0.7));
      transform: scale(1.06);
    }
    .nav-links {
      display: flex; align-items: center; gap: 36px;
      list-style: none;
    }
    .nav-links a {
      color: var(--text-muted); text-decoration: none; font-size: 14px;
      font-weight: 600; letter-spacing: .5px; transition: color .25s;
      position: relative;
    }
    .nav-links a::after {
      content: ""; position: absolute; bottom: -6px; left: 0;
      width: 0; height: 2px; border-radius: 2px;
      background: var(--accent-cyan);
      transition: width .3s;
    }
    .nav-links a:hover, .nav-links a.active {
      color: var(--text);
    }
    .nav-links a:hover::after, .nav-links a.active::after {
      width: 100%;
    }
    .nav-login {
      padding: 8px 20px; border-radius: 10px;
      border: 1px solid rgba(14, 165, 233, 0.4);
      background: rgba(14, 165, 233, 0.12);
      color: var(--accent-cyan); font-size: 13px; font-weight: 700;
      text-decoration: none; letter-spacing: .5px;
      transition: all .25s;
    }
    .nav-login:hover {
      background: rgba(14, 165, 233, 0.25);
      border-color: var(--accent-cyan);
      box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
    }

    .download-page { flex: 1 0 auto; width: 100%; max-width: 960px; margin: 0 auto; padding: 92px 24px 56px; }

    /* ── 下载页 Hero ── */
    .hero-section {
      text-align: center; margin-bottom: 24px;
    }
    .section-label {
      font-size: 11px; font-weight: 700; letter-spacing: 4px; color: var(--accent-cyan);
      margin-bottom: 12px; text-transform: uppercase;
    }
    .hero-section h1 {
      font-size: clamp(28px, 4vw, 44px); font-weight: 300; letter-spacing: 4px; margin-bottom: 10px;
    }
    .hero-section h1 strong {
      font-weight: 800; color: #f0f9ff;
    }
    .hero-section p {
      color: var(--text-muted); font-size: 15px; line-height: 1.7;
      max-width: 600px; margin: 0 auto;
    }

    /* ── 软件选择 Tab ── */
    .software-tabs {
      display: flex; gap: 12px; justify-content: center;
      margin-bottom: 32px;
    }
    .software-tab {
      padding: 10px 24px; border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(14, 165, 233, 0.02);
      color: var(--text-muted); font-size: 13px; font-weight: 600;
      cursor: pointer; transition: all .3s;
      letter-spacing: 1px;
    }
    .software-tab:hover {
      border-color: rgba(14, 165, 233, 0.4);
      color: var(--text);
    }
    .software-tab.active {
      border-color: rgba(14, 165, 233, 0.45);
      background: rgba(14, 165, 233, 0.12);
      color: var(--accent-cyan);
    }
    .version-list.hidden { display: none; }

    .skill-download-panel {
      margin-bottom: 24px; padding: 28px 32px; border-radius: 20px;
      border: 1px solid rgba(74, 215, 243, .28);
      background: linear-gradient(145deg, rgba(8, 47, 73, .42), rgba(15, 23, 42, .96));
      box-shadow: 0 18px 48px rgba(2, 6, 23, .28);
    }
    .skill-download-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
    .skill-download-head h2 { margin:0 0 8px; font-size:22px; color:#f0f9ff; letter-spacing:1px; }
    .skill-download-head p { max-width:720px; color:var(--text-muted); font-size:14px; line-height:1.8; }
    .skill-release-meta { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
    .skill-release-meta span {
      padding:6px 10px; border-radius:8px; background:rgba(14,165,233,.08);
      border:1px solid rgba(14,165,233,.16); color:#bae6fd; font-size:12px;
    }
    .skill-flow { margin:18px 0 0 20px; color:var(--text-soft); font-size:14px; line-height:1.85; }
    .skill-hash { color:var(--text-muted); font-size:11px; word-break:break-all; }
    .workbuddy-release { margin-top:22px; padding-top:20px; border-top:1px solid rgba(14,165,233,.16); }
    .workbuddy-install { margin-top:12px; color:var(--text-muted); font-size:13px; line-height:1.7; }
    .workbuddy-install code { color:#bae6fd; background:rgba(14,165,233,.08); padding:2px 6px; border-radius:5px; }

    /* ── 版本列表 ── */
    .version-list { display: flex; flex-direction: column; gap: 20px; }

    .version-card {
      padding: 32px; border-radius: 20px;
      border: 1px solid var(--border);
      background: #0f172a;
      backdrop-filter: blur(16px);
      transition: all .4s cubic-bezier(0.23, 1, 0.32, 1);
      position: relative; overflow: hidden;
    }
    .version-card::before {
      content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
      width: 40%; height: 1px;
      background: rgba(14, 165, 233, 0.35);
      opacity: .35; transition: all .5s ease;
    }
    .version-card:hover {
      border-color: rgba(14, 165, 233, 0.08);
      transform: translateY(-4px);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(59, 130, 246, 0.1);
    }
    .version-card:hover::before { opacity: .8; width: 70%; }

    .version-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
    .version-title {
      margin: 0 0 10px; font-size: 20px; font-weight: 700; letter-spacing: 2px;
      color: #f0f9ff;
    }
    .version-meta {
      display: flex; gap: 16px; flex-wrap: wrap;
      color: var(--text-muted); font-size: 13px; letter-spacing: .3px;
    }
    .version-meta span { position: relative; }
    .version-meta span:not(:last-child)::after {
      content: ""; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
      width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); opacity: .5;
    }

    .badge {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 12px; border-radius: 999px;
      background: rgba(14, 165, 233, 0.12);
      border: 1px solid rgba(14, 165, 233, 0.3);
      color: var(--accent-cyan); font-size: 11px; font-weight: 700;
      letter-spacing: 1px;
    }

    .changelog {
      margin: 24px 0 0; color: var(--text-soft); line-height: 2;
      border-top: 1px solid var(--border); padding-top: 20px;
      font-size: 14px;
      white-space: pre-wrap;
      word-wrap: break-word;
    }

    .download-actions { display: flex; flex-direction:column; gap: 10px; margin-top: 20px; }
    .cloud-download-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
    .download-button {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 12px 28px; border-radius: 12px;
      background: rgba(14, 165, 233, 0.12);
      border: 1px solid rgba(14, 165, 233, 0.4);
      color: var(--text); font-size: 13px; font-weight: 600;
      text-decoration: none; letter-spacing: 1.5px;
      transition: all .4s cubic-bezier(0.23, 1, 0.32, 1);
      cursor: pointer;
    }
    .download-button:hover {
      background: rgba(14, 165, 233, 0.2);
      border-color: rgba(14, 165, 233, 0.7);
      box-shadow: 0 0 30px rgba(14, 165, 233, 0.18);
      transform: translateY(-2px);
    }
    .download-button.recommended {
      background: linear-gradient(135deg, rgba(14,165,233,.28), rgba(59,130,246,.2));
      border-color: rgba(56,189,248,.75);
      box-shadow: 0 0 28px rgba(14,165,233,.14);
    }
    .download-button.secondary {
      background: transparent;
      border-color: var(--border);
      color: var(--text-soft);
    }
    .share-password {
      display:inline-flex; align-items:center; gap:8px; padding:10px 15px; border-radius:12px;
      background:rgba(251,191,36,.08); border:1px solid rgba(251,191,36,.25);
      color:#fde68a; font-size:13px; letter-spacing:.6px;
      cursor:pointer; user-select:none; transition:all .2s ease;
    }
    .share-password:hover, .share-password:focus-visible {
      background:rgba(251,191,36,.14);
      border-color:rgba(251,191,36,.45);
      outline:none;
    }
    .share-password.copied {
      background:rgba(34,197,94,.12);
      border-color:rgba(34,197,94,.45);
      color:#bbf7d0;
    }
    .copy-hint {
      color:rgba(253,230,138,.68);
      font-size:11px;
      letter-spacing:.2px;
    }
    .disabled-link {
      display: inline-flex; align-items: center; justify-content: center;
      padding: 12px 28px; border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(14, 165, 233, 0.02);
      color: var(--text-muted); text-decoration: none;
      font-size: 13px; font-weight: 500; letter-spacing: 1px;
    }

    .empty {
      text-align: center; padding: 80px 24px;
      border: 1px solid var(--border); border-radius: 20px;
      background: #0f172a;
      color: var(--text-muted); font-size: 15px;
    }

    /* ── 页脚 ── */
    .site-footer {
      flex-shrink: 0;
      padding: 24px;
      border-top: 1px solid var(--border);
      background: var(--record-footer-bg, #030712);
      text-align: center;
    }
    .site-footer p {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-wrap: nowrap;
      color: var(--record-footer-color, #030712);
      font-size: 12px;
      letter-spacing: 0;
      margin: 0;
      max-width: 100%;
      overflow-x: auto;
      white-space: nowrap;
    }
    .site-footer a { color: var(--record-footer-color, #030712); text-decoration: none; }
    .site-footer a:hover { color: var(--record-footer-color, #030712); }
    .gongan-record {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      color: inherit;
      text-decoration: none;
      font-size: inherit;
      flex: 0 0 auto;
      white-space: nowrap;
    }
    .gongan-record img {
      width: 14px;
      height: 14px;
      display: inline-block;
      flex: 0 0 auto;
      object-fit: contain;
      vertical-align: -2px;
    }
    .gongan-record .gongan-badge {
      width: 14px;
      height: 14px;
      display: inline-block;
      flex: 0 0 auto;
      vertical-align: -2px;
      background-color: var(--badge-color, currentColor);
      -webkit-mask: url("/static/gongan.png") no-repeat center / contain;
      mask: url("/static/gongan.png") no-repeat center / contain;
    }

    @media (max-width: 760px) {
      .top-nav { padding: 0 20px; }
      .download-page { padding-top: 84px; }
      .nav-links { gap: 20px; }
      .nav-links a { font-size: 13px; }
      .version-head { flex-direction: column; align-items: flex-start; }
      .version-meta { gap: 10px; }
      .skill-download-panel { padding:24px 20px; }
      .skill-download-head { flex-direction:column; }
    }
  </style>
.ai-release-health{margin:0 0 24px;padding:16px 18px;border:1px solid rgba(251,191,36,.45);border-left:4px solid #fbbf24;border-radius:10px;background:rgba(120,74,0,.14);color:#dceeff;display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center}.ai-release-health strong{color:#fff}.ai-release-health p{flex-basis:100%;margin:2px 0 0;color:#9fb7cb}.ai-health-item{padding:4px 9px;border-radius:999px;font-size:13px}.ai-health-item.available{color:#7ee7b8;background:rgba(16,185,129,.14)}.ai-health-item.missing{color:#ffd478;background:rgba(245,158,11,.16)}
