:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #182334;
  background: #f5f7fa;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 3% 0%, rgba(215, 228, 255, .58), transparent 32%),
    radial-gradient(circle at 100% 12%, rgba(223, 243, 239, .48), transparent 30%),
    #f5f7fa;
}

.shell { max-width: 1320px; margin: 0 auto; padding: 0 30px 32px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
  border-bottom: 1px solid #e1e7ef;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.brand-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #3055ce;
  box-shadow: 0 5px 12px rgba(48, 85, 206, .17);
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.brand-divider { width: 1px; height: 17px; margin: 0 3px; background: #cdd6e3; }
.brand-subtitle { color: #718096; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.top-note {
  flex: none;
  border: 1px solid #dce5ed;
  border-radius: 100px;
  background: rgba(255, 255, 255, .75);
  padding: 7px 12px;
  color: #66758c;
  font-size: 12px;
  font-weight: 600;
}

.hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 0 16px; }
.hero-copy { max-width: 770px; }
.eyebrow { color: #3158bf; font-size: 11px; font-weight: 800; letter-spacing: 1.1px; }
.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #168a64;
  box-shadow: 0 0 0 4px #ddf3e9;
  vertical-align: 1px;
}
.hero h1 { margin: 9px 0 6px; font-size: clamp(28px, 3.3vw, 36px); line-height: 1.25; letter-spacing: -.8px; }
.hero p { margin: 0; color: #5f6f84; font-size: 14px; line-height: 1.7; }
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid #dbe6f7;
  border-radius: 12px;
  background: #f0f5ff;
  padding: 13px 16px;
  color: #52657e;
  font-size: 12px;
  line-height: 1.7;
}
.notice-icon { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #dce8ff; color: #3159bd; font-size: 14px; }
.notice strong { margin-right: 7px; color: #284a9b; font-weight: 800; }
.public-usage { background: #f7fafc; border-color: #dbe4eb; color: #52657e; overflow-wrap: anywhere; }

.columns { display: grid; grid-template-columns: minmax(345px, 440px) minmax(0, 1fr); align-items: start; gap: 20px; }
.card { min-width: 0; border: 1px solid #dfe6ee; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(26, 44, 72, .045); }
.setup, .results { padding: 21px; }
.results { min-height: 550px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.section-heading h2 { margin: 7px 0 0; font-size: 21px; line-height: 1.3; letter-spacing: -.35px; }
.count, .job-state { flex: none; border-radius: 100px; background: #eef2f7; padding: 7px 11px; color: #55667e; font-size: 12px; font-weight: 700; white-space: nowrap; }
.job-state[data-state="检测中"] { background: #e9f0ff; color: #315dcc; }
.job-state[data-state="已完成"] { background: #e5f6ee; color: #14805a; }
.job-state[data-state="已取消"] { background: #edf1f5; color: #63738a; }
.simple-hint { margin: 0 0 14px; color: #6b7b91; font-size: 12px; line-height: 1.7; }

.platform-list { display: flex; flex-direction: column; gap: 14px; }
.platform-card { min-width: 0; border: 1px solid #e0e7f0; border-radius: 12px; background: #fafcff; padding: 14px; }
.platform-card.selected-platform { border-color: #7695e4; background: #f5f8ff; box-shadow: 0 0 0 2px rgba(70, 105, 202, .09); }
.platform-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.platform-index { color: #243d73; font-size: 14px; }
.platform-actions { display: flex; align-items: center; gap: 8px; }
.public-platform-choice { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; color: #3159bf; font-size: 11px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.public-platform-choice[hidden] { display: none; }
.platform-card .run-platform-radio { flex: none; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: #3159cf; }
.platform-heading .button { min-height: 30px; padding: 4px 10px; font-size: 11px; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 0 7px; color: #34455d; font-size: 13px; font-weight: 750; }
.field-label span { color: #8390a3; font-size: 11px; font-weight: 500; text-align: right; }
.field-hint { margin: 9px 0 14px; color: #7d8da2; font-size: 12px; line-height: 1.55; }

textarea, input, select { outline: none; color: #182b43; }
textarea, .platform-card input, .field-grid input, .field-grid select, .login input {
  width: 100%;
  border: 1px solid #d5dfeb;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { display: block; min-height: 72px; resize: vertical; padding: 10px 12px; line-height: 1.6; overflow-wrap: anywhere; }
.entry-urls { min-height: 78px; }
.platform-card input, .field-grid input, .field-grid select, .login input { height: 42px; padding: 0 11px; }
textarea::placeholder, input::placeholder { color: #9aa7b7; }
textarea:focus, input:focus, select:focus { border-color: #5d7bd3; box-shadow: 0 0 0 3px rgba(93, 123, 211, .13); }
.platform-two, .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.platform-two { margin-top: 16px; }
.platform-two label, .field-grid label, .login label { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #42546c; font-size: 12px; font-weight: 700; line-height: 1.4; }
.platform-two small { color: #8090a4; font-size: 11px; font-weight: 400; line-height: 1.5; }
.platform-card .field-grid, .advanced .field-grid { margin-top: 16px; }

details summary { position: relative; display: flex; align-items: center; gap: 7px; padding-right: 19px; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  position: absolute;
  right: 2px;
  top: calc(50% - 4px);
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform .15s;
}
details[open] > summary::after { transform: rotate(225deg); }
details summary:focus-visible { border-radius: 3px; outline: 3px solid #9eb2f0; outline-offset: 4px; }
.platform-extra { border-top: 1px solid #e1e8f0; margin-top: 13px; padding-top: 12px; }
.platform-extra summary { color: #3b5a8b; font-size: 12px; font-weight: 750; }
.platform-extra summary span { color: #8a9ab0; font-size: 11px; font-weight: 500; }
.platform-extra .platform-extra { margin-top: 18px; }
.popup-config .field-grid { margin-top: 13px; }
.checkbox-option { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; color: #34455d; font-size: 12px; font-weight: 750; line-height: 1.4; cursor: pointer; }
.checkbox-option input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #3159cf; }
.checkbox-option small { display: block; margin-top: 4px; color: #7d8da2; font-size: 11px; font-weight: 400; line-height: 1.5; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.button:hover:not(:disabled):not(.disabled) { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid #aebff2; outline-offset: 2px; }
.button:disabled, .button.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.button.primary { background: #3159cf; color: #fff; box-shadow: 0 7px 16px rgba(49, 89, 207, .19); }
.button.primary:hover { background: #274cad; }
.button.secondary, .button.ghost { border-color: #d7e0ea; background: #fff; color: #40546e; }
.button.secondary:hover, .button.ghost:hover { background: #f5f8fc; border-color: #cbd7e5; }
.button.text-button { min-height: 34px; padding: 6px 2px; color: #667991; background: transparent; }
.button.text-button:hover { color: #3159bf; }
.public-run-hint { margin: 12px 0 0; border: 1px solid #dbe6f7; border-radius: 9px; background: #f2f6ff; padding: 10px 12px; color: #31559c; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.public-run-hint.over-limit { border-color: #efc5c8; background: #fff3f3; color: #a43d47; }
.setup-actions { display: grid; gap: 9px; margin-top: 14px; }
.start { width: 100%; min-height: 46px; font-size: 14px; }
.start > span[aria-hidden] { font-size: 17px; font-weight: 400; }
.add-platform { width: 100%; }
.preset-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; margin-top: 10px; }
.preset-status { color: #74849a; font-size: 11px; line-height: 1.5; }
.preset-row .button { min-height: 30px; padding: 4px 0; font-size: 11px; }
.message { margin: 10px 0 0; color: #be3f4c; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.message:empty { display: none; }
.advanced { border-top: 1px solid #e4eaf2; margin-top: 20px; padding-top: 18px; }
.advanced summary { flex-wrap: wrap; color: #355689; }
.summary-title { font-size: 12px; font-weight: 800; }
.summary-note { color: #8493a6; font-size: 11px; font-weight: 500; }
.warning { margin: 14px 0 0; border: 1px solid #f1dbb2; border-radius: 9px; background: #fff9eb; padding: 11px 12px; color: #805c25; font-size: 12px; line-height: 1.6; }

.progress-line { height: 8px; margin-top: 22px; overflow: hidden; border-radius: 100px; background: #edf1f6; }
.progress-line > div { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #436bd7, #249f9b); transition: width .25s; }
.progress-meta { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 19px; color: #76869b; font-size: 12px; }
.progress-meta strong { color: #40536c; font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 20px 26px; border-top: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; padding: 16px 0; }
.toolbar-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.toolbar-label { flex-basis: 100%; color: #8593a5; font-size: 11px; font-weight: 700; }
.toolbar-help { flex-basis: 100%; color: #8593a5; font-size: 11px; line-height: 1.6; }
.toolbar .button { min-height: 34px; padding: 6px 10px; }
.toolbar .text-button { padding-left: 0; padding-right: 0; }
.maintenance { display: flex; justify-content: flex-end; border-top: 1px solid #edf1f5; margin-top: 10px; padding-top: 10px; }
.maintenance .button { font-size: 11px; }
.platform-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 20px; }
.summary-card { min-width: 0; border: 1px solid #dfe8f3; border-radius: 10px; background: #f8fbff; padding: 12px 13px; }
.summary-card strong { color: #28446e; font-size: 13px; }
.summary-card p { margin: 7px 0 0; color: #617590; font-size: 11px; line-height: 1.6; }
.empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 270px; padding: 30px 14px; text-align: center; }
.empty > span { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border: 1px solid #dce6f1; border-radius: 16px; background: #f4f8fd; color: #718ebf; font-size: 31px; font-weight: 300; }
.empty strong { color: #455a76; font-size: 15px; }
.empty p { max-width: 380px; margin: 8px 0 0; color: #8493a7; font-size: 12px; line-height: 1.65; }

.result-list { display: flex; flex-direction: column; gap: 11px; padding-top: 20px; }
.result-card { min-width: 0; border: 1px solid #e0e8f0; border-radius: 11px; background: #fff; padding: 15px 16px; }
.result-card:has(.status[data-state="失败"]) { border-left: 3px solid #d6606b; }
.result-card:has(.status[data-state="需人工确认"]) { border-left: 3px solid #dda33d; }
.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.url-preview { flex: 1; min-width: 0; overflow: hidden; color: #243750; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.status { flex: none; border-radius: 100px; padding: 5px 9px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status[data-state="排队"], .status[data-state="已取消"], .status[data-state="跳过"] { background: #edf1f5; color: #63738a; }
.status[data-state="检测中"] { background: #e9f0ff; color: #315dcc; }
.status[data-state="成功"] { background: #e5f6ee; color: #14805a; }
.status[data-state="失败"] { background: #fdecee; color: #b63e4b; }
.status[data-state="需人工确认"] { background: #fff2d9; color: #986514; }
.status[data-state="未覆盖"] { background: #f0eafb; color: #7553a3; }
.result-kind { margin-top: 5px; color: #73849a; font-size: 11px; font-weight: 700; }
.result-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 11px; color: #7a899d; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.result-reason { margin-top: 10px; color: #4e617c; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.url-details { border-top: 1px solid #edf1f5; margin-top: 13px; padding-top: 10px; }
.url-details summary { display: inline-flex; padding-right: 19px; color: #3761ac; font-size: 11px; font-weight: 700; }
.url-details dl { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px 12px; margin: 13px 0 0; font-size: 11px; line-height: 1.55; }
.url-details dt { color: #8392a6; }
.url-details dd { min-width: 0; margin: 0; color: #435670; overflow-wrap: anywhere; word-break: break-word; }
.url-details code { font: inherit; }
.source-list { margin: 7px 0 0; padding-left: 17px; }
.source-list li { margin: 5px 0; overflow-wrap: anywhere; }
.popup-observation { margin: 10px 0; border-left: 3px solid #e2a044; border-radius: 0 6px 6px 0; background: #fff9ed; padding: 9px 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.screenshot-link { display: inline-flex; margin-top: 9px; color: #315bbc; font-size: 11px; text-decoration: none; }
.screenshot-link:hover { text-decoration: underline; }

footer { max-width: 1000px; margin: 0 auto; padding: 26px 8px 0; color: #8795a8; font-size: 11px; line-height: 1.7; text-align: center; }
.login { max-width: 430px; margin: 88px auto; padding: 30px; }
.login h1 { margin: 12px 0 9px; font-size: 28px; letter-spacing: -.5px; }
.login .muted { margin: 0 0 24px; color: #64758b; font-size: 13px; line-height: 1.7; }
.login form { display: flex; flex-direction: column; gap: 17px; }
.login input { margin-top: 3px; }
.login .button { min-height: 44px; margin-top: 4px; font-size: 14px; }

@media (max-width: 980px) {
  .columns { grid-template-columns: 1fr; }
  .results { min-height: 450px; }
}
@media (max-width: 600px) {
  .shell { padding: 0 14px 24px; }
  .topbar { min-height: 62px; }
  .top-note { display: none; }
  .hero { padding: 27px 0 18px; }
  .hero h1 { font-size: 29px; }
  .hero p { font-size: 13px; }
  .notice { padding: 12px 13px; font-size: 12px; }
  .card { border-radius: 13px; }
  .setup, .results { padding: 18px; }
  .platform-card { padding: 14px; }
  .platform-two, .field-grid { grid-template-columns: 1fr; gap: 12px; }
  .toolbar { gap: 16px; }
  .toolbar-group { width: 100%; }
  .toolbar .button { flex: 1 1 auto; }
  .toolbar .text-button { flex-basis: 100%; justify-content: flex-start; }
  .maintenance { justify-content: flex-start; }
  .empty { min-height: 230px; }
}
@media (max-width: 390px) {
  .brand-subtitle, .brand-divider { display: none; }
  .section-heading h2 { font-size: 19px; }
  .field-label span { max-width: 48%; }
  .url-details dl { grid-template-columns: 64px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
