/* ============================================================
   IP 检测 · 样式表
   浅色为默认主题，data-theme="dark" 覆盖为深色。
   设计取向：留白充足、层次靠描边和极轻阴影、不堆装饰。
   ============================================================ */

/* ---------------- 设计变量 ---------------- */

:root {
  color-scheme: light;

  --bg: #f7f8fa;
  --bg-blur: rgba(247, 248, 250, 0.82);
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: #eceff4;
  --border: #e5e8ee;
  --border-strong: #d6dbe4;
  --text: #101828;
  --text-2: #475467;
  --text-3: #8b97a8;
  --accent: #2f6fed;
  --accent-hover: #1d4ed8;
  --accent-soft: #ecf1fe;
  --accent-line: rgba(47, 111, 237, 0.28);
  --track: #eaeef4;

  --tone-safe: #0b8f4d;
  --tone-safe-bg: #e7f6ee;
  --tone-low: #3d8b32;
  --tone-low-bg: #ecf6e8;
  --tone-medium: #b87500;
  --tone-medium-bg: #fdf4e3;
  --tone-high: #d1541b;
  --tone-high-bg: #fdeee6;
  --tone-critical: #c9302a;
  --tone-critical-bg: #fdecea;

  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-pop: 0 8px 24px -8px rgba(16, 24, 40, 0.14);

  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas,
    "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b0d11;
  --bg-blur: rgba(11, 13, 17, 0.8);
  --surface: #14171d;
  --surface-2: #1a1e26;
  --surface-3: #232833;
  --border: #252a34;
  --border-strong: #333945;
  --text: #edf1f7;
  --text-2: #a4afc0;
  --text-3: #6e798b;
  --accent: #5b8cff;
  --accent-hover: #7aa2ff;
  --accent-soft: #17233d;
  --accent-line: rgba(91, 140, 255, 0.32);
  --track: #232833;

  --tone-safe: #35d07f;
  --tone-safe-bg: rgba(53, 208, 127, 0.12);
  --tone-low: #7ad46a;
  --tone-low-bg: rgba(122, 212, 106, 0.12);
  --tone-medium: #f0b429;
  --tone-medium-bg: rgba(240, 180, 41, 0.12);
  --tone-high: #ff8f52;
  --tone-high-bg: rgba(255, 143, 82, 0.12);
  --tone-critical: #ff6b62;
  --tone-critical-bg: rgba(255, 107, 98, 0.12);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 10px 28px -10px rgba(0, 0, 0, 0.7);
}

/* ---------------- 基础 ---------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.22s ease, color 0.22s ease;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

button {
  font: inherit;
  color: inherit;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* 作者样式里的 display 会盖掉浏览器对 [hidden] 的默认处理，必须显式声明 */
[hidden] {
  display: none !important;
}

.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;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------- 页面骨架 ---------------- */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  margin: 0 -24px;
  padding: 0 24px;
  background: var(--bg-blur);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}

.topbar.is-stuck {
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  flex: none;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}

.theme-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.theme-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.theme-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* 浅色下显示月亮（点击进入深色），深色下显示太阳。
   选择器要带上 .theme-btn，否则会被 .theme-btn svg 的 display 覆盖。 */
.theme-btn svg.icon-sun {
  display: none;
}

[data-theme="dark"] .theme-btn svg.icon-sun {
  display: block;
}

[data-theme="dark"] .theme-btn svg.icon-moon {
  display: none;
}

/* ---------------- 导语 ---------------- */

.lede {
  margin: 22px 0 30px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 60ch;
}

/* ---------------- 区块 ---------------- */

.block {
  margin-bottom: 34px;
}

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

.block-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.block-head .block-title {
  margin: 0;
}

.text-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.text-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.text-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* 竖排堆叠 —— 明确不使用左右并排布局 */
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.7;
}

.hint.is-error {
  color: var(--tone-critical);
}

/* ---------------- 出口 IP 卡 ---------------- */

.exit-card {
  padding: 16px 18px;
  transition: border-color 0.16s ease;
}

.exit-card:hover {
  border-color: var(--border-strong);
}

.exit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.exit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}

.exit-card[data-state="ok"] .exit-dot {
  background: var(--tone-safe);
  box-shadow: 0 0 0 3px var(--tone-safe-bg);
}

.exit-card[data-state="fail"] .exit-dot {
  background: var(--tone-critical);
  box-shadow: 0 0 0 3px var(--tone-critical-bg);
}

.exit-kind {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.exit-state {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-3);
}

.exit-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exit-flag {
  flex: none;
  display: flex;
}

.exit-flag:empty {
  display: none;
}

.exit-text {
  flex: 1;
  min-width: 0;
}

.exit-ip {
  margin: 0;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  word-break: break-all;
  line-height: 1.4;
}

.exit-ip.is-empty {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-3);
}

.exit-loc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-2);
  word-break: break-word;
}

.exit-loc .sep {
  color: var(--text-3);
  margin: 0 5px;
}

.exit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.exit-chips:empty {
  display: none;
}

/* ---------------- 搜索 ---------------- */

.search {
  display: flex;
  gap: 10px;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--text-3);
  pointer-events: none;
  transition: color 0.16s ease;
}

.search-field:focus-within .search-icon {
  color: var(--accent);
}

#ip-input {
  width: 100%;
  padding: 13px 16px 13px 41px;
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

#ip-input::placeholder {
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 14px;
}

#ip-input:hover {
  border-color: var(--border-strong);
}

#ip-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

#search-btn {
  flex: none;
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

#search-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

#search-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------------- 报告 · 头部主卡 ---------------- */

.report {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero {
  padding: 22px;
}

.hero-loc {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flag-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}

/* 宽度自适应而不是固定比例：固定尺寸 + object-fit: cover 会把
   国旗裁掉一部分（中国国旗的星星在左上角，裁完就成一块红布了）。 */
.flag {
  display: block;
  height: 18px;
  width: auto;
}

.flag-lg {
  height: 30px;
  width: auto;
  border-radius: 4px;
}

.flag-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 18px;
  padding: 0 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: var(--surface-3);
  border-radius: 3px;
  line-height: 1;
}

.flag-lg + .flag-fallback,
.flag-wrap .flag-lg ~ .flag-fallback {
  height: 30px;
  min-width: 42px;
  font-size: 12px;
}

.hero-loc-text {
  min-width: 0;
}

.hero-country {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero-country small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 7px;
  letter-spacing: 0;
  font-family: var(--mono);
}

.hero-region {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--text-2);
  word-break: break-word;
}

.hero-ip {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  word-break: break-all;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

/* ---------------- 徽标 ---------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
  flex: none;
}

.chip.no-dot::before {
  display: none;
}

.chip.is-good {
  color: var(--tone-safe);
  background: var(--tone-safe-bg);
  border-color: transparent;
}

.chip.is-warn {
  color: var(--tone-medium);
  background: var(--tone-medium-bg);
  border-color: transparent;
}

.chip.is-bad {
  color: var(--tone-critical);
  background: var(--tone-critical-bg);
  border-color: transparent;
}

.chip.is-tiny {
  font-size: 11.5px;
  padding: 2px 8px;
}

/* ---------------- 风控值 ---------------- */

.risk {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.risk-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.risk-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.risk-num {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--tone, var(--text));
  font-variant-numeric: tabular-nums;
}

.risk-num small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 2px;
  letter-spacing: 0;
}

.risk-level {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tone, var(--text-2));
  background: var(--tone-bg, var(--surface-2));
}

.risk-track {
  position: relative;
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.risk-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--tone, var(--text-3));
  transition: width 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.risk-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--text-3);
}

/* ---------------- 分区 ---------------- */

.section {
  padding: 20px 22px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-note {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
}

/* 键值网格 */

.kv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 15px 26px;
  margin: 0;
}

.kv-item {
  min-width: 0;
}

.kv-item.is-wide {
  grid-column: 1 / -1;
}

.kv dt {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 3px;
  line-height: 1.5;
}

.kv dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

.kv dd.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.kv dd.is-muted {
  color: var(--text-3);
}

.kv dd .sub {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 1px;
}

/* ---------------- 风控明细 ---------------- */

.factors {
  list-style: none;
  margin: 0;
  padding: 0;
}

.factor {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.factor:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.factor:first-child {
  padding-top: 0;
}

.factor-delta {
  flex: none;
  min-width: 34px;
  padding-top: 1px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.factor-delta.is-plus {
  color: var(--tone-critical);
}

.factor-body {
  min-width: 0;
}

.factor-label {
  display: block;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

.factor-detail {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.55;
  margin-top: 1px;
  word-break: break-word;
}

/* ---------------- 折叠区 ---------------- */

details.fold {
  border-top: 1px solid var(--border);
}

details.fold > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 22px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.16s ease;
}

details.fold > summary::-webkit-details-marker {
  display: none;
}

details.fold > summary:hover {
  color: var(--text-2);
}

details.fold > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

details.fold[open] > summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.fold-body {
  padding: 0 22px 20px;
}

.reason-group + .reason-group {
  margin-top: 16px;
}

.reason-group h3 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.reason-group ul {
  margin: 0;
  padding-left: 17px;
}

.reason-group li {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  word-break: break-word;
}

.reason-group li::marker {
  color: var(--text-3);
}

/* 原始数据 */

pre.raw {
  margin: 0;
  padding: 14px 16px;
  max-height: 420px;
  overflow: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text-2);
  white-space: pre;
  tab-size: 2;
}

/* ---------------- 数据源状态 ---------------- */

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.src {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-3);
}

.src::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.src.is-ok {
  color: var(--tone-safe);
  border-color: transparent;
  background: var(--tone-safe-bg);
}

.src.is-fail {
  opacity: 0.72;
}

.src.is-skip {
  color: var(--tone-medium);
  border-color: transparent;
  background: var(--tone-medium-bg);
}

/* ---------------- 提示 / 骨架 ---------------- */

.notice {
  padding: 18px 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
}

.notice.is-error {
  border-color: color-mix(in srgb, var(--tone-critical) 35%, var(--border));
  background: var(--tone-critical-bg);
  color: var(--text);
}

.notice.is-error strong {
  color: var(--tone-critical);
}

.sk {
  height: 12px;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    var(--surface-3) 25%,
    var(--surface-2) 37%,
    var(--surface-3) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.sk + .sk {
  margin-top: 10px;
}

.sk-title {
  height: 16px;
  width: 34%;
}

.sk-line {
  width: 72%;
}

.sk-line.short {
  width: 46%;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* ---------------- 页脚 ---------------- */

.foot {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-3);
}

.foot p {
  margin: 0 0 4px;
}

.foot a {
  color: var(--text-2);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}

.foot a:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 640px) {
  .page {
    padding: 0 16px 56px;
  }

  .topbar {
    margin: 0 -16px;
    padding: 0 16px;
    height: 56px;
  }

  .lede {
    margin: 16px 0 24px;
    font-size: 14px;
  }

  .hero {
    padding: 18px;
  }

  .hero-ip {
    font-size: 21px;
    margin-top: 15px;
  }

  .hero-country {
    font-size: 18px;
  }

  .flag-lg {
    height: 26px;
  }

  .risk-num {
    font-size: 28px;
  }

  .section {
    padding: 18px;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  details.fold > summary {
    padding: 14px 18px;
  }

  .fold-body {
    padding: 0 18px 18px;
  }

  .search {
    flex-direction: column;
  }

  #ip-input {
    font-size: 16px; /* 避免 iOS 聚焦缩放 */
  }

  #search-btn {
    width: 100%;
    padding: 13px;
  }

  .exit-ip {
    font-size: 17px;
  }
}

/* ---------------- 无障碍 ---------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
