/* =========================================================================
   落公索引 · DIRECTORY SYSTEM
   一白一黑两副面孔，共用同一套骨架：
   超大拉丁标题 / 编辑式条目行 / 三位编号 / 信号橙 / 悬停浮卡。
   页面 <body class="theme-paper"> 或 <body class="theme-ink"> 切换明暗。
   ========================================================================= */

:root {
  --accent: #e8451c;
  --font-sans: "Helvetica Neue", "Inter", "Arial", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --font-serif-cn: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", "STSong", "SimSun", serif;
  --font-serif: "Times New Roman", "Times", var(--font-serif-cn);
  --font-mono: "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-paper {
  color-scheme: light;
  --bg: #f5f1e8;
  --fg: #12100a;
  --fg-2: #342f25;
  --muted: #5e574a;
  --line: rgba(18, 16, 10, 0.12);
  --line-strong: rgba(18, 16, 10, 0.28);
  --line-row: rgba(18, 16, 10, 0.1);
  --hover-bg: #12100a;
  --hover-fg: #f5f1e8;
  --hover-muted: rgba(245, 241, 232, 0.66);
  --accent: #e8451c;
  --panel: rgba(18, 16, 10, 0.035);
  --peek-bg: #12100a;
  --peek-fg: #f5f1e8;
  --group-num-opacity: 0.16;
}

body.theme-ink {
  color-scheme: dark;
  --bg: #0d0b08;
  --fg: #f3efe5;
  --fg-2: #cbc4b6;
  --muted: #948c7e;
  --line: rgba(243, 239, 229, 0.12);
  --line-strong: rgba(243, 239, 229, 0.28);
  --line-row: rgba(243, 239, 229, 0.075);
  --hover-bg: rgba(243, 239, 229, 0.055);
  --hover-fg: #f3efe5;
  --hover-muted: #b3aa9b;
  --accent: #e8451c;
  --panel: rgba(243, 239, 229, 0.035);
  --peek-bg: #f3efe5;
  --peek-fg: #0d0b08;
  --group-num-opacity: 0.26;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: inherit;
}

/* 纸纹 / 噪点：和首页同一份内联 SVG */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.theme-paper .grain {
  opacity: 0.14;
  mix-blend-mode: multiply;
}

body.theme-ink .grain {
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.shell {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

/* ============================ 顶栏 ============================ */

.topbar {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 17px;
  padding-bottom: 17px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
}

.brand-cn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.brand-en {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.18em;
}

.crumb {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

.crumb-idx {
  color: var(--fg);
}

.jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.jump:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.brand:focus-visible,
.jump:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ============================ 页头 ============================ */

.hero {
  padding: clamp(40px, 6.6vw, 92px) 0 clamp(22px, 3vw, 34px);
}

.kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 clamp(18px, 3.2vw, 38px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 0.7s var(--ease) 0.05s both;
}

.kicker-marker {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--accent);
}

.display {
  margin: 0;
}

.display-en {
  display: block;
  margin: 0 -0.045em 0 0;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.84;
  font-size: clamp(3rem, 11.8vw, 11.6rem);
  color: var(--fg);
  animation: lineIn 1.05s var(--ease) 0.1s both;
}

.display-cn {
  display: flex;
  align-items: flex-start;
  gap: 0.06em;
  margin: clamp(12px, 1.8vw, 22px) 0 0 clamp(0px, 6vw, 140px);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5.4vw, 4.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--fg);
  animation: lineIn 0.9s var(--ease) 0.24s both;
}

.display-cn .serif {
  font-family: var(--font-serif-cn);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.display-cn .dot {
  color: var(--accent);
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px 56px;
  margin-top: clamp(26px, 4.2vw, 50px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
  animation: rise 0.8s var(--ease) 0.38s both;
}

.lede {
  margin: 0;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
  text-wrap: pretty;
}

.lede strong {
  color: var(--fg);
  font-weight: 500;
}

.figures {
  display: flex;
  gap: clamp(22px, 4vw, 58px);
  margin: 0;
}

.figures > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.figures dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.figures dd {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ============================ 筛选条 ============================ */

.console {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}

.console-in {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  padding-top: 11px;
  padding-bottom: 9px;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 300px;
  min-width: 0;
  padding: 5px 2px 7px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.18s ease;
}

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

.search-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.search input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.search kbd {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 1px 5px;
}

.clear {
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.clear:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 8px 10px 9px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease;
}

.tab .tab-n {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tab:hover {
  color: var(--fg);
}

.tab[aria-pressed="true"] {
  color: var(--fg);
}

.tab[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.count {
  margin: 0 0 0 auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ============================ 索引分组 ============================ */

.index {
  padding-top: clamp(4px, 1vw, 10px);
}

.group {
  padding: clamp(24px, 3.2vw, 40px) 0 clamp(30px, 4.2vw, 52px);
  border-top: 1px solid var(--line);
}

.group:first-child {
  border-top: 0;
}

.group-head {
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 1.8vw, 22px);
  margin-bottom: clamp(10px, 1.4vw, 16px);
}

/* 组编号：装饰性水印，用伪元素画，不进正文可读文本 */
.group-head::before {
  content: attr(data-num);
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 0.72;
  letter-spacing: -0.04em;
  color: var(--fg);
  opacity: var(--group-num-opacity);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.group-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.group-title h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.group-en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.group-rule {
  flex: 1;
  height: 1px;
  margin-bottom: 5px;
  background: linear-gradient(90deg, var(--line-strong), var(--line));
}

.group-count {
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ============================ 条目行 ============================ */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-row);
}

.row-wrap {
  border-bottom: 1px solid var(--line-row);
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.row-wrap.is-in {
  opacity: 1;
  transform: none;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 20px;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  padding: clamp(16px, 1.8vw, 22px) clamp(4px, 0.8vw, 12px);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.24s var(--ease);
}

.row:hover,
.row:focus-visible {
  background: var(--hover-bg);
  color: var(--hover-fg);
  outline: none;
}

.row:hover::before,
.row:focus-visible::before {
  transform: scaleY(1);
}

.row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.row-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.22s ease;
}

.row:hover .row-num,
.row:focus-visible .row-num {
  color: var(--accent);
}

.row-main {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(150px, 0.95fr) minmax(220px, 1.9fr);
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  min-width: 0;
}

.row-name {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 0.24s var(--ease);
}

.row:hover .row-name,
.row:focus-visible .row-name {
  transform: translateX(5px);
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.row-domain {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.row-tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 1px 5px;
  white-space: nowrap;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.row-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.row:hover .row-domain,
.row:hover .row-desc,
.row:focus-visible .row-domain,
.row:focus-visible .row-desc {
  color: var(--hover-muted);
}

.row:hover .row-tag,
.row:focus-visible .row-tag {
  color: var(--hover-fg);
  border-color: var(--hover-muted);
}

.row-arrow {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.22s ease, transform 0.24s var(--ease);
}

.row:hover .row-arrow,
.row:focus-visible .row-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* ============================ 悬停浮卡 ============================ */

.peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 228px;
  height: 158px;
  padding: 13px 15px 15px;
  background: var(--peek-bg);
  color: var(--peek-fg);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-500px, -500px, 0) rotate(-3deg) scale(0.94);
  transition: opacity 0.18s ease, transform 0.3s var(--ease);
  will-change: transform, opacity;
}

.peek.is-on {
  opacity: 1;
}

.peek-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.62;
}

.peek-dot {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  opacity: 1;
}

.peek-mark {
  align-self: flex-start;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 92px;
  line-height: 0.76;
  letter-spacing: -0.03em;
}

.peek-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0.62;
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .peek {
    display: flex;
  }
}

/* ============================ 空状态 ============================ */

.empty {
  padding: clamp(70px, 12vw, 170px) 0;
}

.empty-title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.empty-hint {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================ 页脚 ============================ */

.foot {
  margin-top: clamp(70px, 10vw, 130px);
  border-top: 1px solid var(--line-strong);
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(30px, 5vw, 58px) 0 clamp(24px, 3.4vw, 38px);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
}

.foot-brand .cn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.foot-brand .en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.foot-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

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

.foot-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================ 动效 ============================ */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lineIn {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 -10% 0);
    transform: none;
  }
}

/* ============================ 响应式 ============================ */

@media (max-width: 1100px) {
  .row-main {
    grid-template-columns: minmax(120px, 1fr) minmax(130px, 0.9fr) minmax(180px, 1.6fr);
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .crumb {
    display: none;
  }

  .hero-foot {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .console-in {
    flex-wrap: wrap;
    gap: 4px 18px;
    padding-top: 8px;
    padding-bottom: 4px;
  }

  .search {
    flex: 1 1 100%;
    order: 1;
    padding-bottom: 6px;
  }

  .tabs {
    order: 2;
    flex: 1 1 auto;
    margin-left: -10px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  }

  .count {
    order: 3;
    font-size: 9px;
  }

  .row {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    align-items: start;
    padding: 14px 2px;
    gap: 10px;
  }

  .row-main {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .row-name {
    white-space: normal;
  }

  .row-desc {
    white-space: normal;
  }

  .row-arrow {
    margin-top: 4px;
  }

  .row::before {
    width: 2px;
  }

  .group-head {
    align-items: center;
    gap: 12px;
  }

  .group-head::before {
    font-size: 2.1rem;
    line-height: 0.8;
  }

  .group-rule {
    margin-bottom: 0;
  }

  .foot-top {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-en {
    display: none;
  }

  .display-cn {
    margin-left: 0;
  }

  /* 手机端：三块数字压成一行等宽小字，首屏仍留得下第一条内容 */
  .figures {
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  .figures > div {
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
  }

  .figures dt {
    font-size: 8.5px;
    letter-spacing: 0.14em;
  }

  .figures dd {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .hero {
    padding-top: clamp(32px, 8vw, 44px);
  }

  .kicker {
    margin-bottom: 18px;
  }

  .group-count {
    display: none;
  }

  .row-meta {
    flex-wrap: wrap;
  }

  .foot-brand .cn {
    letter-spacing: -0.01em;
  }
}

@media (hover: none) {
  .row:hover {
    background: transparent;
    color: inherit;
  }

  .row:hover::before {
    transform: scaleY(0);
  }

  .row:hover .row-num,
  .row:hover .row-domain,
  .row:hover .row-desc,
  .row:hover .row-tag,
  .row:hover .row-arrow {
    color: var(--muted);
    border-color: var(--line-strong);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .row-wrap {
    opacity: 1;
    transform: none;
  }
}
