/* logo-fetcher 首页样式 */
:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; }
  * { box-sizing: border-box; }
  body { margin: 0; min-height: 100vh; display: flex; padding: 40px 16px;
         background: linear-gradient(160deg, #f7f9fc 0%, #eaf0f8 100%); color: #1f2937; }
  .shell { width: 100%; max-width: 900px; margin: auto; background: #fff; padding: 38px 42px 28px;
           border-radius: 18px; box-shadow: 0 18px 50px rgba(15, 23, 42, .09); }
  header { text-align: center; margin-bottom: 26px; }
  h1 { margin: 0 0 10px; font-size: 26px; letter-spacing: .3px; color: #111827; }
  .subtitle { margin: 0; font-size: 14px; line-height: 1.7; color: #6b7280; }
  form.search { display: flex; gap: 10px; }
  .input-wrap { flex: 1; position: relative; }
  .search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
                 color: #9ca3af; font-size: 19px; pointer-events: none; }
  input { width: 100%; padding: 13px 16px 13px 42px; border: 1px solid #d7dee8; border-radius: 10px;
          font-size: 15px; color: #1f2937; background: #fbfcfe; outline: none; transition: border-color .2s, box-shadow .2s; }
  input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); background: #fff; }
  button.primary { padding: 13px 28px; border: 0; border-radius: 10px; background: #2563eb; color: #fff;
                   font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
  button.primary:hover:not(:disabled) { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37, 99, 235, .25); }
  button.primary:disabled { opacity: .65; cursor: not-allowed; }
  .examples { margin-top: 13px; font-size: 13px; color: #6b7280; }
  .chip { display: inline-block; margin-left: 8px; padding: 3px 10px; border: 1px solid #dbe4f0;
          border-radius: 999px; color: #2563eb; cursor: pointer; transition: background .2s, border-color .2s; }
  .chip:hover { background: #eff6ff; border-color: #93c5fd; }
  .status { margin-top: 18px; min-height: 22px; font-size: 14px; color: #6b7280; }
  .status.loading { color: #2563eb; display: flex; align-items: center; gap: 9px; }
  .status.success { color: #059669; }
  .status.error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca;
                  padding: 11px 14px; border-radius: 10px; }
  .spinner { width: 15px; height: 15px; border: 2px solid #bfdbfe; border-top-color: #2563eb;
             border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .meta { margin-top: 6px; font-size: 13px; color: #6b7280; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 16px; }
  .card { border: 1px solid #e6eaf0; border-radius: 14px; overflow: hidden; background: #fff;
          display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
  .card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, .10); border-color: #c7d7f5; }
  .preview { height: 132px; display: flex; align-items: center; justify-content: center;
             background: #f8fafc; border-bottom: 1px solid #eef0f4; cursor: zoom-in; padding: 12px; }
  .preview img { max-width: 100%; max-height: 106px; object-fit: contain; }
  .fallback { font-size: 12px; color: #9ca3af; text-align: center; }
  .body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .badge { align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: #eff6ff;
           color: #2563eb; font-size: 11px; font-weight: 600; letter-spacing: .2px; }
  .url { font-size: 12px; line-height: 1.55; color: #475569; word-break: break-all; flex: 1; }
  .copy { padding: 7px 0; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff;
          color: #2563eb; font-size: 12px; cursor: pointer; transition: background .2s, border-color .2s; }
  .copy:hover { background: #eff6ff; border-color: #93c5fd; }
  .empty { margin-top: 18px; padding: 38px 20px; text-align: center; color: #6b7280; font-size: 14px;
           background: #f8fafc; border: 1px dashed #dbe2ea; border-radius: 14px; }
  .footnote { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #eef0f4;
              text-align: center; font-size: 12px; color: #94a3b8; }
  .overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
             background: rgba(15, 23, 42, .62); padding: 24px; z-index: 50; }
  .overlay.show { display: flex; }
  .overlay img { max-width: 90vw; max-height: 78vh; object-fit: contain; background: #fff;
                 border-radius: 10px; padding: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
  .close { position: fixed; top: 22px; right: 26px; padding: 8px 16px; border: 0; border-radius: 8px;
           background: rgba(255, 255, 255, .92); color: #1f2937; font-size: 13px; cursor: pointer; }
  @media (max-width: 640px) {
    body { padding: 18px 12px; }
    .shell { padding: 24px 18px 20px; border-radius: 14px; }
    h1 { font-size: 21px; }
    form.search { flex-direction: column; }
    button.primary { width: 100%; }
    input { font-size: 16px; }
    .grid { grid-template-columns: 1fr; }
  }
