/* Bing 风格：全屏壁纸 + 居中搜索条 */
:root {
  color-scheme: only light;
  --ink: #1b1b1b;
  --muted: rgba(255,255,255,0.86);
  --muted-dark: #5c5c5c;
  --card: rgba(255,255,255,0.92);
  --line: rgba(255,255,255,0.35);
  --accent: #111111;
  --ok: #1a7f4b;
  --warn: #9a6700;
  --bad: #c62828;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.home-page {
  min-height: 100vh;
  position: relative;
  background: #0b1220 url("https://api.timecdn.cn/libs/wallpaper/v1/?p=1920x1080") center center / cover no-repeat fixed;
  color: var(--ink);
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 35%, rgba(0,0,0,0.35) 100%);
  z-index: 0;
}

.home-container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(56px, 16vh, 140px) 16px calc(40px + env(safe-area-inset-bottom));
}

.top-space { display: none; }

.logo-marquee {
  overflow: hidden;
  margin: 0 auto 18px;
  padding: 6px 0;
  max-width: 100%;
}

.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  flex: 0 0 auto;
}

.logo-chip {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  background: transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  user-select: none;
  pointer-events: none;
}

.logo-chip img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-track.is-ready {
  animation: logo-scroll 28s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none !important; }
}

.section-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.input-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  margin: 0 0 18px;
  backdrop-filter: none;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-title-row h2,
.block-head h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.chip { display: none; }

.parse-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  overflow: hidden;
  min-height: 48px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.parse-bar:focus-within {
  box-shadow: 0 8px 28px rgba(0,0,0,0.28), 0 0 0 3px rgba(255,255,255,0.35);
}

.parse-bar input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  height: 48px;
}

.parse-bar input[type="text"]::placeholder { color: #9aa0a6; }

.parse-bar .btn.primary {
  flex: 0 0 auto;
  height: 48px;
  min-width: 88px;
  padding: 0 20px;
  border-radius: 0;
  background: #106ebe;
  color: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { opacity: 0.88; }
.btn:disabled { opacity: 0.5; cursor: wait; }

.btn.primary {
  background: #106ebe;
  color: #fff;
}

.btn.ghost {
  background: #f3f3f4;
  color: var(--ink);
  border: 1px solid #e8e8e8;
}

.btn.save {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
  min-width: 58px;
  background: #106ebe;
  color: #fff;
}

.hint {
  min-height: 14px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  text-align: left;
  padding: 0 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.hint.ok { color: #b7f5d0; }
.hint.err { color: #ffc9c9; }

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

.text-btn {
  border: 0;
  background: transparent;
  color: #106ebe;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px;
}

.tasks { display: grid; gap: 8px; }

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f7f8fa;
  border: 1px solid #eceff3;
}

.item-done,
.item-running,
.item-created,
.item-failed {
  background: #f7f8fa;
  border-color: #eceff3;
}

.item-main { flex: 1; min-width: 0; }

.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.item-top strong {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
}

.sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.err {
  margin-top: 4px;
  font-size: 12px;
  color: var(--bad);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f0f0f0;
  color: var(--muted-dark);
}

.tag-created, .tag-running {
  color: var(--warn);
  background: #fff8e8;
}

.tag-done {
  color: var(--ok);
  background: #eef8f1;
}

.tag-failed {
  color: var(--bad);
  background: #fdeeee;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #106ebe;
  box-shadow: 0 0 0 0 rgba(16,110,190,0.35);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(16,110,190,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,110,190,0); }
}

.empty {
  text-align: center;
  color: var(--muted-dark);
  font-size: 13px;
  padding: 24px 8px;
}

.sec-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.sec-lead {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted-dark);
  line-height: 1.5;
}

.faq-card details {
  border-top: 1px solid #eceff3;
  padding: 11px 0;
}

.faq-card details:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.faq-card summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  list-style: none;
}

.faq-card summary::-webkit-details-marker { display: none; }

.faq-card summary::after {
  content: "+";
  float: right;
  color: #8a8a8e;
  font-weight: 500;
}

.faq-card details[open] summary::after { content: "–"; }

.faq-card details p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted-dark);
  line-height: 1.65;
}

.legal-card {
  border: 1px solid rgba(255,255,255,0.55);
  background: var(--card);
}

.legal-body p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted-dark);
  line-height: 1.65;
}

.legal-body p:last-child { margin-bottom: 0; }

.site-foot {
  text-align: center;
  padding: 10px 4px 0;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}


/* client-guide */
.client-guide .guide-lead {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted-dark);
  line-height: 1.6;
}
.client-guide .guide-steps {
  margin: 0 0 14px;
  padding-left: 1.25em;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.7;
}
.client-guide .guide-steps li { margin-bottom: 4px; }
.guide-actions { margin: 0 0 12px; }
.bookmarklet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  cursor: grab;
  user-select: none;
}
.bookmarklet-btn:active { cursor: grabbing; opacity: 0.92; }
.guide-mobile {
  margin: 0;
  font-size: 12px;
  color: var(--muted-dark);
  line-height: 1.55;
}
