:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --border: #e6eaf2;
  --text: #16202f;
  --muted: #7b8798;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .07);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--accent); text-decoration: none; }

.wrap { max-width: 860px; margin: 0 auto; padding: 40px 18px 70px; }

.hero { text-align: center; margin-bottom: 26px; }
.hero .logo { height: 42px; margin-bottom: 10px; }
.hero h1 { margin: 0 0 6px; font-size: 27px; letter-spacing: -.4px; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; }

.notice {
  background: #fff8ea; border: 1px solid #f5e2b8; color: #8a5a00;
  padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px;
}

.searcher {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow); display: flex; gap: 10px;
}
.searcher input {
  flex: 1; border: none; outline: none; padding: 10px 12px; font: inherit; background: transparent; color: var(--text);
}
.searcher .btn {
  flex: none; padding: 10px 22px; border-radius: 10px; border: none; font: inherit; font-weight: 600;
  background: var(--accent); color: #fff; cursor: pointer;
}
.searcher .btn:hover { background: #1d4ed8; }
.searcher .btn:disabled { opacity: .6; cursor: not-allowed; }

.tips { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.tips b { color: #55617a; font-weight: 600; }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-top: 18px; overflow: hidden;
}
.card .head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card .head h3 { margin: 0; font-size: 15px; }
.card .body { padding: 16px 18px; }

.result-media { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
@media (max-width: 680px) { .result-media { grid-template-columns: 1fr; } }
.cover { width: 100%; border-radius: 10px; background: #f1f4f9; display: block; object-fit: cover; aspect-ratio: 3/4; }
.video-box video, .video-box img { width: 100%; border-radius: 10px; background: #000; display: block; }

.meta-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #eef1f6; }
.author-name { font-weight: 600; }
.title { font-size: 16px; font-weight: 600; margin: 0 0 6px; line-height: 1.5; }
.desc { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; white-space: pre-wrap; }

.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.stats span { background: #f3f6fb; color: #4a5568; border-radius: 20px; padding: 3px 11px; font-size: 12.5px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.actions .btn {
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border); background: #fff;
  color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer;
}
.actions .btn:hover { background: #f5f8fe; }
.actions .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.actions .btn.primary:hover { background: #1d4ed8; }

.images { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.images img { width: 100%; border-radius: 9px; background: #f1f4f9; display: block; aspect-ratio: 1; object-fit: cover; }
.images a { display: block; }

.urls { margin-top: 14px; }
.urls .u { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.urls .u .link { flex: 1; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urls .u .btn { padding: 5px 10px; font-size: 12px; border-radius: 7px; border: 1px solid var(--border); background: #fff; cursor: pointer; }

.err { background: #fff2f2; border: 1px solid #f6cfcf; color: #a32020; padding: 14px 16px; border-radius: 12px; font-size: 14px; }

.history { display: flex; flex-direction: column; gap: 8px; }
.history .item { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.history .item .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.history .item .p { color: var(--muted); flex: none; font-size: 12px; }
.history .item .x { color: var(--muted); cursor: pointer; flex: none; }

.footer { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 34px; line-height: 1.9; }
.footer a { color: var(--muted); }

.loading { display: inline-block; width: 15px; height: 15px; border: 2px solid #dbe3f0; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.ad { margin-top: 18px; }
