:root {
  --ink: #142b36;
  --muted: #667d87;
  --teal: #10ab91;
  --blue: #299ce3;
  --line: #e2ecef;
  --wash: #f6fafb;
  --mint: #edfaf5;
  --amber: #92651b;
  --danger: #b64b49;
  --radius: 18px;
  --display: "Bahnschrift", "Microsoft YaHei", sans-serif;
  --body: "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--body); background: #fff; font-size: 14px; line-height: 1.65; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid #67cbbd; outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
input { color: var(--ink); }
input[type="checkbox"] { accent-color: var(--teal); }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.shell { max-width: 1120px; margin: auto; padding: 0 30px; }
.skip-link { position: fixed; z-index: 5; left: 16px; top: -100px; background: #fff; border: 2px solid var(--teal); border-radius: 8px; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.bar { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.93); }
.nav { min-height: 78px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.5px; white-space: nowrap; }
.brand-icon { background: linear-gradient(145deg,var(--blue),var(--teal)); width: 34px; height: 37px; display: grid; place-items: center; color: white; border-radius: 10px; font-size: 17px; border: 3px solid #cdeee7; }
.links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-btn { border: 0; background: none; color: var(--muted); padding: 14px 0; font-size: 13px; white-space: nowrap; }
.nav-btn.active { color: #108c78; font-weight: 700; }
.tiny-tag { font-family: var(--display); font-size: 10px; letter-spacing: 1px; color: #667b84; background: #f1f5f6; padding: 6px 9px; border-radius: 6px; white-space: nowrap; }
.notice { background: #fffbef; border-bottom: 1px solid #f3ecd7; color: #867043; text-align: center; padding: 8px 16px; font-size: 11px; }
.notice strong { color: #856222; font-weight: 500; }
.hero { padding: 56px 0 35px; position: relative; background: radial-gradient(ellipse at 58% 0%,#e8f6ff 0%,transparent 57%),radial-gradient(ellipse at 14% 12%,#effbf5 0%,transparent 60%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2; background-image: radial-gradient(#98cec3 .7px,transparent .7px); background-size: 22px 22px; mask-image: linear-gradient(#000,transparent 75%); }
.hero .shell { position: relative; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 3px; font-size: 10px; color: #5b8184; text-align: center; margin-bottom: 12px; }
h1 { font-family: var(--display); text-align: center; font-size: 44px; line-height: 1.25; letter-spacing: -1.8px; margin: 0; font-weight: 800; }
h1 span { color: var(--teal); }
.sub { text-align: center; color: var(--muted); margin: 15px 0 37px; font-size: 13px; }
.workspace { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 55px; padding: 10px 60px 22px; }
.ring-wrap { position: relative; display: grid; place-items: center; min-height: 310px; }
.orbit { width: 265px; height: 265px; display: grid; place-items: center; border: 1px solid #e6f3f0; border-radius: 50%; position: relative; }
.orbit::before { content: ""; position: absolute; inset: 11px; border: 1px dashed #cbe7e0; border-radius: 50%; }
.meter { --score-angle: 0deg; --meter-start: #19bc9c; --meter-end: #329edc; height: 217px; width: 217px; border-radius: 50%; background: conic-gradient(from -110deg,var(--meter-start) 0deg,var(--meter-end) var(--score-angle),#e9f1f4 var(--score-angle) 360deg); padding: 11px; transform: rotate(-3deg); position: relative; }
.meter-inner { height: 100%; width: 100%; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(3deg); }
.meter-title { font-size: 11px; color: var(--muted); letter-spacing: 2px; }
.meter-value { font-family: var(--display); font-size: 67px; line-height: 1.13; letter-spacing: -3px; font-weight: 600; }
.meter-value small { font-family: var(--mono); font-size: 13px; letter-spacing: 0; color: #7f949d; font-weight: 400; }
.ring-caption { position: absolute; bottom: 0; max-width: 320px; text-align: center; color: #718994; font-size: 10px; letter-spacing: .5px; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 10px; border: 1px solid transparent; border-radius: 20px; padding: 3px 10px; line-height: 1.5; white-space: normal; }
.badge::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.badge.success { color: #157b66; background: var(--mint); border-color: #d2eee4; }
.badge.warning { color: var(--amber); background: #fcf7e9; border-color: #efe4c9; }
.badge.danger { color: var(--danger); background: #fff1f0; border-color: #f2d9d7; }
.badge.neutral { color: #627c86; background: #f0f5f7; border-color: #e2ebee; }
#score-label { max-width: 170px; margin-top: 5px; text-align: center; }
.switch { display: flex; background: #eef4f5; border: 1px solid #e5eef0; padding: 4px; border-radius: 11px; gap: 4px; max-width: 330px; margin-bottom: 21px; }
.mode { flex: 1; border: 0; background: none; border-radius: 8px; color: var(--muted); padding: 9px 12px; font-size: 12px; }
.mode.active { background: white; color: #148d7b; box-shadow: 0 1px 5px #1b596610; }
.query { min-width: 0; }
.query-title { font-size: 18px; margin: 0 0 6px; }
.query-help { color: var(--muted); font-size: 12px; margin: 0 0 17px; min-height: 39px; }
.field-label { display: block; font-size: 11px; color: #5d7b87; margin-bottom: 6px; }
.search { display: flex; align-items: center; border: 1px solid #cddfe4; border-radius: 13px; background: #fff; padding: 7px 8px 7px 15px; gap: 10px; }
.search:focus-within { border-color: #54bba8; box-shadow: 0 0 0 3px #10ab9112; }
.search-symbol { color: #7899a5; }
.search input { width: 100%; min-width: 0; padding: 5px 0; border: 0; background: transparent; color: #365764; font-family: var(--mono); font-size: 14px; }
.search input::placeholder { font-family: var(--body); color: #8a9fa8; font-size: 12px; }
.search input:focus-visible { outline-offset: 1px; border-radius: 2px; }
.primary { border: 0; background: linear-gradient(110deg,#248fd3,#0c9b83); color: #fff; border-radius: 9px; padding: 12px 16px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.primary:hover:not(:disabled) { filter: brightness(.96); }
.under-search { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: #708b97; font-size: 10px; margin: 10px 2px; }
.ipv { color: #527f90; font-family: var(--mono); font-size: 10px; letter-spacing: .7px; white-space: nowrap; }
.auth-option { display: inline-flex; align-items: center; gap: 7px; color: #69818c; font-size: 11px; cursor: pointer; }
.auth-option input { width: 14px; height: 14px; margin: 0; }
.key-field { margin-top: 14px; }
.key-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.key-label .field-label { margin: 0; }
.credential-input { display: block; width: 100%; border: 1px solid #cddfe4; border-radius: 9px; background: #fff; font-family: var(--mono); font-size: 13px; padding: 10px 13px; }
.field-help { margin: 7px 0 0; color: #738a96; font-size: 10px; line-height: 1.7; }
.text-button { border: 0; background: none; padding: 4px 2px; color: #487c8c; font-size: 10px; }
.text-button:hover, .text-link:hover, .footer-links a:hover { color: #087e6b; text-decoration: underline; }
.form-error { color: #a54342; background: #fff2ef; border-left: 3px solid #d68c7d; padding: 10px 12px; margin: 12px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.task-progress { margin-top: 15px; border: 1px solid #d8e9ed; background: #f6fbfc; padding: 12px 14px; border-radius: 10px; }
.progress-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #467b88; }
.progress-top .text-button { margin-left: auto; flex: none; }
.activity-dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; animation: pulse 1.4s ease infinite; flex: none; }
.task-progress p { font-size: 10px; color: #6a8692; margin: 6px 0 0; }
.task-progress .task-id { font-family: var(--mono); overflow-wrap: anywhere; }
.check-status { color: #517782; font-size: 11px; margin: 9px 0 0; min-height: 0; }
.check-status:empty { display: none; }
.dimensions { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px 12px; margin: 23px 0 0; }
.dimension { font-size: 10px; color: #667f89; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.glyph { width: 24px; height: 24px; border-radius: 7px; color: #278d7f; background: #eaf6f3; display: grid; place-items: center; font-size: 12px; font-family: var(--mono); flex: none; }
.result { padding-top: 34px; padding-bottom: 45px; }
.section-heading { display: flex; align-items: flex-end; gap: 14px; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { font-size: 19px; margin: 0; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.timestamp { color: #708791; font-size: 10px; white-space: nowrap; }
.report-notice { border: 1px solid #efe5cb; background: #fffbf1; color: #866524; padding: 12px 15px; border-radius: 10px; font-size: 11px; margin-bottom: 18px; }
.report-notice.danger { color: #a04442; background: #fff4f2; border-color: #efd7d2; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 23px 25px; }
.card h3 { font-size: 14px; margin: 0 0 19px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card h3 small { font-size: 10px; color: #758c96; font-weight: 400; text-align: right; }
.identity { grid-column: 1/-1; display: grid; grid-template-columns: 1.15fr 2fr; gap: 28px; align-items: center; background: linear-gradient(120deg,#fcfefe,#f7fbfd); }
.ip-name { font-family: var(--mono); font-size: 23px; font-weight: 700; letter-spacing: -.3px; overflow-wrap: anywhere; }
.identity .desc { font-size: 11px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.identity-state { margin-top: 9px; }
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px 20px; margin: 0; }
.kv { min-width: 0; }
.kv dt { color: #708791; font-size: 10px; margin-bottom: 4px; }
.kv dd { margin: 0; font-weight: 500; font-size: 12px; overflow-wrap: anywhere; }
.source-item { border-top: 1px solid #edf3f5; padding: 11px 0; }
.source-item:first-child { border-top: 0; padding-top: 0; }
.source-item:last-child { padding-bottom: 0; }
.source-row { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.source-name { flex: 1; min-width: 0; font-family: var(--display); letter-spacing: .2px; overflow-wrap: anywhere; }
.vendor-score { color: #52798a; font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.source-row .badge { border-radius: 5px; font-size: 9px; flex: none; padding: 3px 7px; }
.source-basis { font-size: 10px; color: #748995; margin: 5px 0 0; overflow-wrap: anywhere; }
.source-note { color: #718791; font-size: 10px; margin: 13px 0 0; line-height: 1.8; }
.empty-state { color: #7b929d; font-size: 11px; margin: 4px 0 18px; padding: 15px 0; }
.tags { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.risk-tag { border: 1px solid #e3edef; border-radius: 9px; background: #f6fafb; padding: 13px 11px; font-size: 10px; color: #738a95; min-width: 0; }
.risk-tag b { display: block; font-size: 12px; color: #647e88; margin-top: 5px; font-weight: 500; overflow-wrap: anywhere; }
.risk-tag.success { background: #f8fcfa; border-color: #e1efe8; }
.risk-tag.success b { color: #157f6b; }
.risk-tag.warning { background: #fcfbf7; border-color: #eee8d7; }
.risk-tag.warning b { color: var(--amber); }
.risk-tag.danger { background: #fff7f5; border-color: #f1dfda; }
.risk-tag.danger b { color: var(--danger); }
.data-details { margin-top: 10px; }
.data-details summary { font-size: 10px; color: #567f8b; cursor: pointer; padding: 4px 0; }
.data-details pre { font-family: var(--mono); font-size: 10px; line-height: 1.7; color: #52707e; background: #f5f9fa; border-radius: 6px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; margin: 7px 0 0; }
.blacklist-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f4f5; font-size: 10px; }
.blacklist-row .blacklist-name { font-family: var(--mono); min-width: 0; overflow-wrap: anywhere; }
.blacklist-row .badge { font-size: 9px; flex: none; }
.service-card, .scoring-card { grid-column: 1/-1; }
.service-card { background: #fcfdfe; }
.service-heading { display: flex; align-items: center; gap: 20px; }
.service-icon { display: grid; place-items: center; flex: none; background: #ecf3f8; border-radius: 12px; width: 42px; height: 42px; color: #548da9; font-size: 19px; }
.service-heading > div:nth-child(2) { flex: 1; min-width: 0; }
.service-heading h3 { justify-content: flex-start; margin: 0 0 3px; font-size: 13px; flex-wrap: wrap; }
.service-heading p { font-size: 11px; color: var(--muted); margin: 0; }
.outline { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d4e4e9; border-radius: 8px; background: white; color: #467383; padding: 9px 14px; font-size: 11px; white-space: nowrap; }
.outline:hover { background: #f1f9f7; border-color: #b7ddd3; }
.service-heading > .outline { margin-left: auto; }
.services { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 21px; }
.service-item { border: 1px solid #e2ecef; background: #fff; border-radius: 10px; padding: 14px; min-width: 0; }
.service-name { font-size: 12px; margin: 0 0 8px; overflow-wrap: anywhere; }
.service-item .badge { font-size: 9px; border-radius: 5px; }
.service-item .source-basis { margin-top: 8px; }
.score-reasons { color: #587883; font-size: 11px; margin: 12px 0 0; padding-left: 18px; }
.score-reasons li { padding: 3px 0; overflow-wrap: anywhere; }
.scoring-card h3 { margin-bottom: 0; }
.bottom-band { margin-top: 26px; border-top: 1px solid var(--line); padding: 25px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bottom-band h3 { font-size: 14px; margin: 0 0 4px; }
.bottom-band p { font-size: 11px; color: var(--muted); margin: 0; }
.endpoint { border: 0; font-family: var(--mono); color: #387e85; font-size: 12px; padding: 12px 15px; background: #f0f8f6; border-radius: 8px; white-space: nowrap; }
footer { border-top: 1px solid var(--line); padding: 23px 0; color: #718892; font-size: 10px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.footer-links button { border: 0; background: none; padding: 0; color: #587c8a; font-size: 10px; }
.aux { max-width: 990px; margin: auto; padding: 45px 30px 60px; }
.aux h1 { text-align: left; font-size: 34px; letter-spacing: -1px; }
.aux .sub { text-align: left; margin-bottom: 26px; }
.aux .label { font-family: var(--display); color: #108c78; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.api-grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: start; gap: 22px; }
.api-side { border: 1px solid var(--line); border-radius: 15px; padding: 24px; font-size: 12px; }
.api-side h2 { font-size: 16px; margin: 0 0 24px; }
.api-side h3 { font-size: 13px; margin: 0 0 8px; }
.api-side p { color: var(--muted); font-size: 11px; margin: 0 0 20px; }
.doc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.text-link { color: #4a7c8c; font-size: 11px; }
.api-examples { min-width: 0; }
.code-block + .code-block { margin-top: 22px; }
.code-block h3 { font-size: 12px; color: #467986; margin: 0 0 9px; font-weight: 500; }
.code { border: 1px solid #dfe9ed; background: #f5fafb; border-radius: 15px; padding: 20px; margin: 0; font-family: var(--mono); font-size: 11px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; color: #416070; }
.code code { font: inherit; }
.api-notice { margin-top: 23px; padding: 15px 20px; border-left: 3px solid #71c5b5; background: #f3faf7; color: #527c70; font-size: 11px; }
.boundary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.boundary-cards .card h2 { font-size: 14px; margin: 0 0 12px; }
.boundary-cards p { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.noscript { text-align: center; padding: 20px; background: #fffbef; color: #867043; }

@keyframes reveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { opacity: .35; } }
.hero .workspace { animation: reveal .6s ease both; }
.result .grid { animation: reveal .65s .12s ease both; }

@media (max-width: 1000px) {
  .workspace { padding-right: 20px; padding-left: 20px; gap: 28px; }
  .dimension { gap: 5px; }
  .dimensions { gap: 14px 8px; }
}
@media (max-width: 780px) {
  .shell { padding-right: 20px; padding-left: 20px; }
  .nav { min-height: 69px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand-icon { width: 30px; height: 33px; font-size: 14px; }
  .links { gap: 16px; }
  .nav-btn { font-size: 11px; }
  .tiny-tag { display: none; }
  .notice { font-size: 10px; }
  .hero { padding-top: 34px; }
  h1 { font-size: 34px; }
  .sub { font-size: 11px; margin-bottom: 18px; }
  .workspace { grid-template-columns: 1fr; gap: 22px; padding: 0 9px 12px; }
  .ring-wrap { min-height: 246px; }
  .orbit { height: 221px; width: 221px; }
  .meter { height: 180px; width: 180px; padding: 9px; }
  .meter-value { font-size: 56px; }
  .ring-caption { bottom: -2px; }
  .query { max-width: 480px; width: 100%; margin: auto; }
  .switch { max-width: none; }
  .query-help { min-height: 0; }
  .search input, .credential-input { font-size: 16px; }
  .dimensions { gap: 12px 6px; }
  .dimension { font-size: 9px; gap: 6px; }
  .glyph { width: 20px; height: 20px; font-size: 10px; }
  .result { padding-top: 24px; padding-bottom: 30px; }
  .grid { grid-template-columns: 1fr; }
  .identity { grid-column: auto; grid-template-columns: 1fr; gap: 18px; }
  .info-grid { grid-template-columns: repeat(3,1fr); gap: 13px 10px; }
  .card { padding: 19px 20px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 17px; }
  .timestamp { font-size: 9px; }
  .service-card, .scoring-card { grid-column: auto; }
  .service-heading { flex-wrap: wrap; gap: 13px; }
  .service-heading > .outline { margin-left: 55px; }
  .services { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bottom-band { flex-direction: column; align-items: flex-start; }
  .endpoint { font-size: 11px; }
  .footer-inner { flex-direction: column; gap: 12px; }
  .aux { padding: 32px 20px 45px; }
  .aux h1 { font-size: 28px; }
  .api-grid, .boundary-cards { grid-template-columns: 1fr; }
  .code { font-size: 10px; padding: 18px; }
}
@media (max-width: 420px) {
  .shell { padding-right: 16px; padding-left: 16px; }
  .nav { gap: 6px; }
  .brand { gap: 7px; font-size: 16px; }
  .links { gap: 12px; }
  .nav-btn { font-size: 10px; }
  .brand-icon { width: 27px; height: 30px; }
  .eyebrow { letter-spacing: 2px; font-size: 9px; }
  h1 { font-size: 31px; }
  .workspace { padding-right: 0; padding-left: 0; }
  .search { gap: 7px; padding-left: 10px; }
  .search input { font-size: 16px; }
  .primary { padding: 12px 11px; font-size: 11px; }
  .dimensions { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .dimension { gap: 4px; font-size: 9px; }
  .glyph { width: 18px; height: 18px; }
  .tags { gap: 7px; }
  .risk-tag { padding: 11px 9px; }
  .section-heading { flex-wrap: wrap; gap: 7px; }
  .info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .source-row { gap: 8px; }
  .services { grid-template-columns: 1fr; }
  .service-heading h3 { gap: 8px; }
  .footer-links { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
