:root { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #26364d; background: #f3f7fc; font-synthesis: none; }
    * { box-sizing: border-box; }
    body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(ellipse at 50% 0%, #e4eeff, transparent 65%); }
    main { width: min(100%, 560px); }
    .brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-bottom: 36px; font-size: 18px; font-weight: 650; letter-spacing: 1px; text-align: center; }
    .logo { display: block; width: 94px; height: auto; object-fit: contain; filter: drop-shadow(0 5px 9px #1a67d51a); }
    .lines { display: grid; gap: 12px; }
    .line { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 84px; padding: 18px 20px; background: #fff; border: 1px solid #e5ecf5; border-radius: 18px; box-shadow: 0 4px 18px #264b7810; transition: border-color .18s, box-shadow .18s; }
    .line:hover { border-color: #cadcf0; box-shadow: 0 6px 22px #264b7814; }
    .line.best { border-color: transparent; background: #fbfdff; box-shadow: 0 0 8px #55dfff50, 0 0 22px #9a7cff25; }
    .line.best::before { content: ""; position: absolute; inset: -1px; padding: 2px; border-radius: inherit; pointer-events: none; background: linear-gradient(110deg, #36dcff, #7a8aff, #db7bff, #7a8aff, #36dcff); background-size: 250% 100%; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; animation: neon-flow 6s linear infinite; }
    .index { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e7edf5; border-radius: 10px; background: #fff; color: #91a2b8; font-size: 12px; font-variant-numeric: tabular-nums; }
    .best .index { color: #2877dc; border-color: #d6e7ff; background: #e7f1ff; }
    .info { min-width: 0; }
    .name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 16px; font-weight: 600; white-space: nowrap; }
    .badge { padding: 3px 6px; border-radius: 4px; background: #dfecff; color: #2877dc; font-size: 12px; font-weight: 500; }
    .status { min-width: 66px; color: #5b6e88; font-size: 14px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .status.ok { color: #25896b; }
    .status.failed { color: #8e6550; }
    .enter { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 96px; min-height: 44px; padding: 11px 16px; border: 1px solid #dce8f7; border-radius: 12px; background: #edf4ff; color: #3b6496; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
    .enter-icon { display: grid; place-items: center; flex: none; width: 18px; height: 18px; color: #6285b2; }
    .enter-icon svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
    .enter:hover { background: #e3eeff; border-color: #c5d9f3; box-shadow: 0 3px 10px #477bb712; transform: translateY(-1px); }
    .enter:hover svg { transform: translateX(2px); }
    .enter:active { transform: translateY(0); background: #dce9fb; box-shadow: none; }
    footer { padding-top: 26px; text-align: center; }
    #retry { display: inline-flex; align-items: center; justify-content: center; min-width: 104px; min-height: 40px; padding: 8px 22px; border: 0; border-radius: 999px; background: #e7edf599; color: #53657c; box-shadow: inset 0 1px 0 #ffffff80; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: .6px; cursor: pointer; transition: background .18s, color .18s; }
    #retry:hover:not(:disabled) { background: #e1e9f3; color: #536880; }
    #retry:active:not(:disabled) { background: #dbe5f1; }
    #retry:disabled { cursor: default; color: #7b8a9d; background: #e7edf560; }
    a:focus-visible, button:focus-visible { outline: 3px solid #8bb9f5; outline-offset: 3px; }
    footer p, noscript p { margin: 16px 0 0; color: #5b6e88; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
    #detect-summary { color: #435b78; font-size: 15px; }
    [hidden] { display: none !important; }
    @keyframes neon-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
    @media (max-width: 540px) {
      body { padding: 28px 18px; }
      .brand { gap: 10px; margin-bottom: 32px; font-size: 17px; }
      .logo { width: 86px; }
      .line { grid-template-columns: 26px minmax(45px, 1fr) auto auto; gap: 8px; min-height: 70px; padding: 14px 11px; border-radius: 12px; }
      .index { width: 26px; height: 30px; border-radius: 8px; font-size: 11px; }
      .name { gap: 4px; font-size: 15px; }
      .enter { min-width: 78px; min-height: 42px; padding: 10px 12px; gap: 8px; font-size: 14px; }
      .enter-icon, .enter-icon svg { width: 16px; height: 16px; }
      .status { min-width: 0; font-size: 14px; }
      footer { padding-top: 24px; }
    }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
    .enter[aria-disabled="true"]{opacity:.45;pointer-events:none;cursor:wait}
    /* Download-only palette; the main site's line selector keeps its theme. */
    body[data-line-kind="download"] { color-scheme: dark; color: #f3ecff; background: radial-gradient(ellipse at 15% 0%, #392057 0, transparent 52%), radial-gradient(ellipse at 100% 75%, #261739 0, transparent 48%), linear-gradient(155deg, #160c25 0, #0f0c18 56%, #180f26 100%); }
    body[data-line-kind="download"] .brand { color: #f3ecff; }
    body[data-line-kind="download"] .logo { filter: drop-shadow(0 6px 16px #ae8af329); }
    body[data-line-kind="download"] .line { background: #241b33; border-color: #40304f; border-radius: 14px; box-shadow: 0 8px 20px #00000021; }
    body[data-line-kind="download"] .line:hover { border-color: #80639f; box-shadow: 0 8px 24px #00000029; }
    body[data-line-kind="download"] .line.best { background: #30213f; border-color: #a57cdb; box-shadow: 0 6px 20px #9f6fde14; }
    body[data-line-kind="download"] .line.best::before { content: none; animation: none; }
    body[data-line-kind="download"] .index { border-color: #4a385e; border-radius: 9px; background: #31233f; color: #c6b1da; }
    body[data-line-kind="download"] .best .index { color: #ead6ff; border-color: #8960b1; background: #523365; }
    body[data-line-kind="download"] .name { color: #f3ecff; }
    body[data-line-kind="download"] .badge { background: #54336c; color: #edd7ff; }
    body[data-line-kind="download"] .status { color: #baaccb; }
    body[data-line-kind="download"] .status.ok { color: #8ddabe; }
    body[data-line-kind="download"] .status.failed { color: #e5b3b8; }
    body[data-line-kind="download"] .enter { min-width: 88px; min-height: 44px; padding: 10px 14px; gap: 8px; border: 1px solid #b6a1cf66; border-radius: 10px; background: transparent; color: #e9e0f1; font-weight: 550; box-shadow: none; transition: background .18s, border-color .18s; }
    body[data-line-kind="download"] .enter-icon { color: currentColor; }
    body[data-line-kind="download"] .enter-icon svg { stroke-width: 1.8; }
    body[data-line-kind="download"] .enter:hover { border-color: #cdbce180; background: #ffffff06; box-shadow: none; transform: none; }
    body[data-line-kind="download"] .enter:active { background: #ffffff0a; box-shadow: none; }
    @media (max-width: 540px) {
      body[data-line-kind="download"] .enter { min-width: 78px; padding: 10px 12px; gap: 6px; }
    }
    body[data-line-kind="download"] #retry { border: 1px solid #4b375f; border-radius: 12px; background: #2c1e3b; color: #d4bfed; box-shadow: none; }
    body[data-line-kind="download"] #retry:hover:not(:disabled) { background: #3c2a4f; color: #ebdaff; }
    body[data-line-kind="download"] #retry:active:not(:disabled) { background: #45305b; }
    body[data-line-kind="download"] #retry:disabled { color: #a494b7; background: #241a31; }
    body[data-line-kind="download"] footer p, body[data-line-kind="download"] noscript p { color: #c8bad8; }
    body[data-line-kind="download"] #detect-summary { color: #dbc8ef; }
    body[data-line-kind="download"] a:focus-visible,
    body[data-line-kind="download"] button:focus-visible { outline-color: #ac8bd8; }
    body[data-line-kind="download"] .opening-status { display: none; }
    body[data-line-kind="download"][data-auto-opening] .lines,
    body[data-line-kind="download"][data-auto-opening] footer { display: none; }
    body[data-line-kind="download"][data-auto-opening] .opening-status { display: block; margin: 0; color: #dbc8ef; font-size: 14px; line-height: 1.8; text-align: center; }
