:root {
  --blue: #1a73e8;
  --blue-dark: #1558b0;
  --blue-soft: #e8f0fe;
  --ink: #202124;
  --muted: #5f6368;
  --line: #e4e8ef;
  --surface: #fff;
  --canvas: #f8fafd;
  --green: #168a55;
  --amber: #c56b08;
  --red: #d93025;
  --shadow: 0 12px 38px rgba(60, 64, 67, .11), 0 2px 8px rgba(60, 64, 67, .07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); color: var(--ink); font-family: Inter, "Google Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 7%, rgba(66, 133, 244, .09), transparent 24rem), radial-gradient(circle at 88% 18%, rgba(52, 168, 83, .055), transparent 22rem), var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; border-bottom: 1px solid rgba(218, 220, 224, .8); background: rgba(255,255,255,.78); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -.02em; }
.brand-domain { margin-left: -5px; padding: 4px 8px; border: 1px solid #cbdcf8; border-radius: 7px; color: var(--blue); background: #f4f8ff; font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .015em; }
.brand-domain--hero { align-self: center; margin-left: -3px; padding: 5px 10px; border-radius: 9px; font-size: 12px; }
.brand--small { font-size: 18px; }
.brand--hero { justify-content: center; font-size: clamp(32px, 5vw, 48px); }
.brand-mark { width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(8deg); }
.brand-mark i { display: block; border-radius: 9px 4px 8px 4px; }
.brand-mark i:nth-child(1) { background: #4285f4; }
.brand-mark i:nth-child(2) { background: #ea4335; }
.brand-mark i:nth-child(3) { background: #fbbc04; }
.brand-mark i:nth-child(4) { background: #34a853; }
.brand--hero .brand-mark { width: 48px; height: 48px; gap: 4px; }
.local-badge { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; }
.local-badge span { width: 8px; height: 8px; border-radius: 50%; background: #34a853; box-shadow: 0 0 0 4px rgba(52,168,83,.12); }

main { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.hero { text-align: center; padding: 70px 0 34px; }
.hero h1 { margin: 24px 0 8px; font-size: clamp(27px, 4vw, 40px); line-height: 1.2; letter-spacing: -.045em; font-weight: 650; }
.lead { margin: 0 auto 34px; color: var(--muted); font-size: 16px; }
.search-panel { text-align: left; }
.check-picker { margin: 24px 0 0; padding: 24px 26px 22px; border: 1px solid rgba(218,220,224,.9); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 4px 18px rgba(60,64,67,.05); }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.picker-title { font-size: 15px; font-weight: 650; }
.quick-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.quick-actions button { border: 0; color: var(--blue); background: transparent; border-radius: 8px; padding: 6px 9px; font-size: 13px; }
.quick-actions button:hover { background: var(--blue-soft); }
.check-groups { display: grid; gap: 18px; }
.check-group { display: grid; grid-template-columns: 84px 1fr; align-items: start; gap: 16px; }
.group-label { padding-top: 12px; color: #80868b; font-size: 12px; font-weight: 650; letter-spacing: .06em; }
.check-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.check-grid--media { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.check-chip { min-width: 0; min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .18s, box-shadow .18s, background .18s; cursor: pointer; }
.check-chip:hover { border-color: #b7c9e8; box-shadow: 0 2px 7px rgba(60,64,67,.08); }
.check-chip:has(input:checked) { border-color: #8ab4f8; background: #f5f9ff; box-shadow: inset 0 0 0 1px rgba(26,115,232,.1); }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { width: 19px; height: 19px; flex: 0 0 auto; border: 2px solid #9aa0a6; border-radius: 5px; position: relative; background: #fff; }
.check-chip input:checked + .custom-check { background: var(--blue); border-color: var(--blue); }
.check-chip input:checked + .custom-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-chip input:focus-visible + .custom-check { outline: 3px solid rgba(26,115,232,.25); outline-offset: 2px; }
.check-chip b, .check-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-chip b { font-size: 13px; font-weight: 650; }
.check-chip small { margin-top: 4px; color: #80868b; font-size: 11px; }

.search-box { min-height: 72px; display: flex; align-items: center; gap: 14px; padding: 6px 7px 6px 22px; border: 1px solid #dfe1e5; border-radius: 36px; background: var(--surface); box-shadow: 0 3px 10px rgba(60,64,67,.12); transition: box-shadow .2s, border-color .2s; }
.search-box:focus-within { border-color: transparent; box-shadow: var(--shadow), 0 0 0 2px rgba(26,115,232,.22); }
.search-icon { width: 22px; flex: 0 0 auto; fill: none; stroke: #9aa0a6; stroke-width: 1.8; stroke-linecap: round; }
.search-box input { min-width: 0; flex: 1; height: 54px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.search-box input::placeholder { color: #9aa0a6; }
.icon-button { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #80868b; }
.icon-button:hover { background: #f1f3f4; }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.primary-button { min-width: 150px; height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 29px; background: var(--blue); color: #fff; font-weight: 650; box-shadow: 0 4px 12px rgba(26,115,232,.25); transition: background .18s, transform .18s, box-shadow .18s; }
.primary-button:hover { background: var(--blue-dark); box-shadow: 0 6px 18px rgba(26,115,232,.3); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .68; transform: none; }
.primary-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.input-meta { display: flex; align-items: center; gap: 8px; padding: 11px 24px 0; color: #80868b; font-size: 12px; }
.privacy { margin-left: auto; display: flex; align-items: center; gap: 5px; color: #5f7c68; }
.privacy svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-error { margin: 12px 20px 0; padding: 11px 14px; border-radius: 10px; color: #a50e0e; background: #fce8e6; font-size: 13px; }

.progress-card { margin: 26px 0 10px; padding: 22px 26px; display: flex; align-items: center; gap: 18px; border: 1px solid #dbe7fb; border-radius: 18px; background: #f4f8ff; }
.progress-card b { font-size: 15px; }
.progress-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.progress-card time { margin-left: auto; color: var(--blue); font-variant-numeric: tabular-nums; font-weight: 650; }
.pulse-mark { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(26,115,232,.12); }
.pulse-mark span { width: 4px; height: 14px; border-radius: 4px; background: var(--blue); animation: pulse 1s ease-in-out infinite; }
.pulse-mark span:nth-child(2) { animation-delay: .15s; }
.pulse-mark span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%,100% { transform: scaleY(.5); opacity: .45; } 50% { transform: scaleY(1.2); opacity: 1; } }

.results { padding: 46px 0 20px; animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.result-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.result-heading h2 { margin: 5px 0 0; font-size: 25px; letter-spacing: -.03em; }
.duration { color: var(--muted); font-size: 13px; }
.identity-card { display: grid; grid-template-columns: 1.25fr 2fr; align-items: center; gap: 26px; padding: 26px 28px; border-radius: 22px; color: #fff; background: linear-gradient(118deg, #1769d2, #4285f4 58%, #5c9bf2); box-shadow: 0 12px 28px rgba(26,115,232,.2); }
.ip-main span { display: block; margin-bottom: 7px; color: rgba(255,255,255,.75); font-size: 12px; }
.ip-main strong { display: block; overflow-wrap: anywhere; font-size: clamp(25px, 4vw, 39px); letter-spacing: -.04em; }
.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.24); }
.identity-grid div { min-width: 0; }
.identity-grid dt { margin-bottom: 4px; color: rgba(255,255,255,.68); font-size: 11px; }
.identity-grid dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 550; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.result-card { min-height: 175px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 3px 12px rgba(60,64,67,.055); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 650; }
.source-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.status-pill { border-radius: 999px; padding: 5px 8px; font-size: 11px; font-weight: 650; }
.level-low { color: #0d652d; background: #e6f4ea; }
.level-medium { color: #9a5b00; background: #fef7e0; }
.level-high, .level-critical { color: #a50e0e; background: #fce8e6; }
.level-unknown { color: #5f6368; background: #f1f3f4; }
.score-row { display: flex; align-items: end; gap: 5px; margin: 23px 0 14px; }
.score-row strong { font-size: 42px; line-height: .9; letter-spacing: -.05em; }
.score-row span { color: #9aa0a6; font-size: 13px; }
.service-state { margin: 25px 0 12px; font-size: 28px; font-weight: 680; letter-spacing: -.04em; }
.card-meta { min-height: 33px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.card-meta b { color: var(--ink); font-weight: 600; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.detail-tags span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; padding: 4px 6px; color: #5f6368; background: #f1f3f4; font-size: 10px; }
.interpretation { display: flex; align-items: flex-start; gap: 11px; margin: 18px 0 0; padding: 16px 18px; border: 1px solid #e6ebf2; border-radius: 14px; color: var(--muted); background: #fff; }
.interpretation svg { width: 20px; flex: 0 0 auto; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; }
.interpretation p { margin: 0; font-size: 12px; line-height: 1.65; }
.interpretation b { color: var(--ink); }

footer { width: min(1120px, calc(100% - 36px)); margin: 50px auto 0; padding: 22px 0 32px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #9aa0a6; font-size: 11px; }

@media (max-width: 880px) {
  .check-grid, .check-grid--media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-card { grid-template-columns: 1fr; }
  .identity-grid { padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.24); }
}

@media (max-width: 620px) {
  .topbar { height: 56px; padding: 0 18px; }
  .brand--small > span:last-of-type { display: none; }
  .brand--small .brand-domain { margin-left: -8px; }
  .hero { padding-top: 48px; }
  .brand--hero { font-size: 34px; }
  .brand--hero .brand-mark { width: 40px; height: 40px; }
  .picker-head { align-items: flex-start; flex-direction: column; }
  .quick-actions { justify-content: flex-start; }
  .check-group { grid-template-columns: 1fr; gap: 8px; }
  .group-label { padding-top: 0; }
  .check-grid, .check-grid--media { grid-template-columns: 1fr 1fr; }
  .check-picker { padding: 20px 16px; border-radius: 20px; }
  .search-box { padding-left: 16px; gap: 8px; border-radius: 28px; }
  .search-icon { display: none; }
  .primary-button { min-width: 54px; width: 54px; height: 54px; }
  .primary-button span { display: none; }
  .input-meta { align-items: flex-start; flex-wrap: wrap; padding-inline: 10px; }
  .input-meta .dot { display: none; }
  .privacy { width: 100%; margin: 2px 0 0; }
  .result-grid { grid-template-columns: 1fr; }
  .identity-grid { grid-template-columns: 1fr; gap: 13px; }
  .result-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  footer { flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
