:root {
  --db-ink: #111820;
  --db-ink-soft: #24303c;
  --db-paper: #f2f3ef;
  --db-card: rgba(255, 255, 255, 0.78);
  --db-line: rgba(17, 24, 32, 0.11);
  --db-blue: #2c67d8;
  --db-blue-soft: #e9f0ff;
  --db-green: #2f855d;
  --db-orange: #d57d3e;
  --db-muted: #6f7881;
}

.data-index-page,
.device-matrix-page {
  min-height: 100vh;
  color: var(--db-ink);
  background:
    radial-gradient(circle at 85% 0%, rgba(44, 103, 216, 0.09), transparent 28%),
    linear-gradient(rgba(17, 24, 32, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, 0.025) 1px, transparent 1px),
    var(--db-paper);
  background-size: auto, 38px 38px, 38px 38px, auto;
}

.data-site-header,
.data-site-footer,
.data-index-shell,
.device-matrix-shell {
  width: min(1240px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.data-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid var(--db-line);
}

.data-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--db-ink);
}

.data-wordmark > span,
.data-wordmark strong,
.data-wordmark small { display: block; }
.data-wordmark strong { font-size: 11px; letter-spacing: 0.08em; }
.data-wordmark small { margin-top: 3px; color: #939aa1; font-size: 6px; letter-spacing: 0.17em; }

.data-site-header nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 9px;
}

.data-site-header nav a { color: #737b84; transition: color 160ms ease; }
.data-site-header nav a:hover,
.data-site-header nav a[aria-current="page"] { color: var(--db-blue); }

.data-index-shell { padding: 44px 0 94px; }

.official-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  min-height: 370px;
  padding: 38px 0 49px;
  border-bottom: 1px solid var(--db-line);
}

.data-overline {
  margin: 0 0 15px;
  color: var(--db-blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.data-overline > span {
  display: inline-block;
  width: 22px;
  height: 2px;
  margin: 0 8px 2px 0;
  background: var(--db-blue);
}

.official-hero-copy h1 {
  margin: 0 0 7px;
  color: #9ca3a9;
  font-size: 11px;
  letter-spacing: 0.22em;
}

.official-hero-copy h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(42px, 5.8vw, 76px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.06;
}

.official-hero-copy h2 em { color: var(--db-blue); font-style: normal; }
.official-hero-copy > p:not(.data-overline) { max-width: 720px; margin: 21px 0 0; color: var(--db-muted); font-size: 11px; line-height: 1.85; }
.hero-manifesto { display: block; margin-top: 19px; color: #9aa1a7; font-size: 7px; letter-spacing: 0.17em; }

.archive-status {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 95% 0%, rgba(80, 184, 162, 0.22), transparent 36%),
    #172129;
  box-shadow: 0 28px 70px rgba(25, 35, 44, 0.22);
}

.archive-status::after {
  position: absolute;
  top: -55px;
  right: -35px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.025), 0 0 0 48px rgba(255, 255, 255, 0.015);
  content: "";
}

.archive-status-head { display: flex; align-items: center; justify-content: space-between; color: #7e8b95; font-size: 6px; letter-spacing: 0.18em; }
.archive-status-head i { width: 6px; height: 6px; border-radius: 50%; background: #6dd2a5; box-shadow: 0 0 0 5px rgba(109, 210, 165, 0.1); }
.archive-status > strong { position: relative; display: block; margin-top: 21px; font-family: Georgia, serif; font-size: 56px; font-weight: 500; letter-spacing: -0.06em; line-height: 1; }
.archive-status > p { margin: 7px 0 20px; color: rgba(255, 255, 255, 0.62); font-size: 10px; }
.archive-status dl { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.archive-status dl div + div { padding-left: 11px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.archive-status dt { color: #77848e; font-size: 6px; }
.archive-status dd { margin: 5px 0 0; font-size: 10px; font-weight: 700; }
.archive-status > small { position: relative; display: flex; align-items: center; gap: 7px; margin-top: 14px; color: #87929b; font-size: 6.5px; }
.archive-status > small span { width: 5px; height: 5px; border-radius: 50%; background: #6dd2a5; }

.data-search-stage { padding: 33px 0 27px; border-bottom: 1px solid var(--db-line); }
.data-main-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 62px; padding: 7px 7px 7px 19px; border: 1px solid var(--db-line); border-radius: 17px; background: rgba(255, 255, 255, 0.84); box-shadow: 0 14px 38px rgba(26, 38, 50, 0.06); transition: border-color 180ms ease, box-shadow 180ms ease; }
.data-main-search:focus-within { border-color: rgba(44, 103, 216, 0.45); box-shadow: 0 16px 45px rgba(44, 103, 216, 0.1), 0 0 0 4px rgba(44, 103, 216, 0.055); }
.data-main-search > img { opacity: 0.48; }
.data-main-search input { min-width: 0; height: 46px; padding: 0 14px; border: 0; outline: 0; color: var(--db-ink); background: transparent; font-size: 13px; }
.data-main-search button { height: 46px; padding: 0 18px; border: 0; border-radius: 12px; color: #fff; background: var(--db-ink); cursor: pointer; font-size: 9px; font-weight: 750; transition: background 180ms ease, transform 180ms ease; }
.data-main-search button:hover { background: var(--db-blue); transform: translateX(2px); }
.data-main-search button span { margin-left: 9px; }
.data-search-stage > p { margin: 9px 0 0 4px; color: #969da3; font-size: 7px; }

.data-route-strip { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 15px; border: 1px solid var(--db-line); border-radius: 17px; background: rgba(255, 255, 255, 0.5); }
.data-route-strip a { position: relative; display: grid; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; align-items: center; min-width: 0; min-height: 78px; padding: 13px 15px; color: var(--db-ink); transition: color 170ms ease, background 170ms ease; }
.data-route-strip a + a { border-left: 1px solid var(--db-line); }
.data-route-strip a:hover { color: var(--db-blue); background: #fff; }
.data-route-strip span { grid-row: 1 / 3; color: #a5abb0; font-family: Georgia, serif; font-size: 8px; }
.data-route-strip strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.data-route-strip small { overflow: hidden; margin-top: 4px; color: #92999f; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.data-route-strip b { grid-row: 1 / 3; color: #a6adb3; font-size: 11px; }

.index-matrix-section { padding-top: 78px; }
.system-section { padding-top: 91px; }
.matrix-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--db-line); }
.matrix-heading .data-overline { margin-bottom: 10px; }
.matrix-heading h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -0.05em; }
.matrix-heading > div:last-child { display: flex; align-items: center; gap: 12px; }
.matrix-heading > div:last-child > span { color: #92999f; font-size: 8px; }
.matrix-heading button { min-height: 32px; padding: 0 12px; border: 1px solid var(--db-line); border-radius: 999px; color: #65707a; background: rgba(255, 255, 255, 0.6); cursor: pointer; font-size: 8px; }
.matrix-heading button:hover { border-color: var(--db-blue); color: var(--db-blue); }
.matrix-heading > p { max-width: 370px; margin: 0 0 4px; color: #848c94; font-size: 8px; line-height: 1.7; text-align: right; }

.index-matrix-grid { display: grid; gap: 8px; margin-top: 12px; }
.brand-index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.type-index-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.index-matrix-item { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto 16px; align-items: center; min-height: 63px; padding: 0 13px; border: 1px solid var(--db-line); border-radius: 10px; color: var(--db-ink); background: rgba(255, 255, 255, 0.64); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.index-matrix-item:hover { z-index: 1; border-color: rgba(44, 103, 216, 0.42); background: #fff; box-shadow: 0 14px 30px rgba(34, 48, 63, 0.09); transform: translateY(-3px); }
.matrix-number { color: #9da4aa; font-family: Georgia, serif; font-size: 8px; }
.index-matrix-item > strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.matrix-total { display: inline-flex; align-items: baseline; gap: 3px; color: var(--db-blue); }
.matrix-total b { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.matrix-total small { color: #8d969e; font-size: 7px; }
.index-matrix-item > i { margin-left: 7px; color: #b0b6bb; font-size: 9px; font-style: normal; transition: transform 160ms ease; }
.index-matrix-item:hover > i { color: var(--db-blue); transform: translateX(2px); }

.data-rulebook { display: grid; grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.5fr); gap: 60px; margin-top: 96px; padding: 34px; border: 1px solid var(--db-line); border-radius: 21px; background: rgba(255, 255, 255, 0.58); }
.data-rulebook h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 34px; font-weight: 500; letter-spacing: -0.05em; line-height: 1.2; }
.data-rulebook ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 25px; margin: 0; padding: 0; list-style: none; }
.data-rulebook li { display: grid; grid-template-columns: 29px 1fr; align-content: start; padding: 14px 0; border-bottom: 1px solid var(--db-line); }
.data-rulebook li > span { grid-row: 1 / 3; color: var(--db-blue); font-family: Georgia, serif; font-size: 9px; }
.data-rulebook li strong { font-size: 10px; }
.data-rulebook li p { margin: 5px 0 0; color: #808991; font-size: 8px; line-height: 1.65; }

.data-site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 86px; border-top: 1px solid var(--db-line); color: #92999f; font-size: 8px; }
.data-site-footer div { display: flex; gap: 22px; }
.data-site-footer a { color: #818990; }
.data-site-footer a:hover { color: var(--db-blue); }

/* 设备矩阵 */
.device-matrix-shell { padding: 35px 0 92px; }
.matrix-breadcrumb { display: flex; align-items: center; gap: 9px; color: #969da4; font-size: 8px; }
.matrix-breadcrumb a:hover { color: var(--db-blue); }
.matrix-context-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 34px; padding: 47px 0 30px; border-bottom: 1px solid var(--db-line); }
.matrix-context-hero h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(39px, 5vw, 62px); font-weight: 500; letter-spacing: -0.06em; line-height: 1.08; }
.matrix-context-hero h1 em { color: var(--db-blue); font-style: normal; }
.matrix-context-hero p:not(.data-overline) { max-width: 680px; margin: 15px 0 0; color: var(--db-muted); font-size: 10px; line-height: 1.8; }
.matrix-context-stats { display: grid; grid-template-columns: repeat(2, 110px); border: 1px solid var(--db-line); border-radius: 15px; background: rgba(255, 255, 255, 0.62); }
.matrix-context-stats div { padding: 15px; }
.matrix-context-stats div + div { border-left: 1px solid var(--db-line); }
.matrix-context-stats strong,
.matrix-context-stats small { display: block; }
.matrix-context-stats strong { font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.matrix-context-stats small { margin-top: 4px; color: #92999f; font-size: 7px; }

.matrix-controls { display: grid; grid-template-columns: minmax(280px, 1fr) auto; align-items: center; gap: 13px; margin-top: 22px; padding-bottom: 15px; border-bottom: 1px solid var(--db-line); }
.matrix-search { display: flex; align-items: center; min-height: 47px; padding: 0 15px; border: 1px solid var(--db-line); border-radius: 12px; background: rgba(255, 255, 255, 0.72); }
.matrix-search:focus-within { border-color: rgba(44, 103, 216, 0.45); box-shadow: 0 0 0 4px rgba(44, 103, 216, 0.05); }
.matrix-search img { opacity: 0.45; }
.matrix-search input { min-width: 0; flex: 1; height: 45px; padding: 0 12px; border: 0; outline: 0; background: transparent; font-size: 11px; }
.matrix-filter-group { display: flex; gap: 7px; }
.matrix-filter-group button { min-height: 34px; padding: 0 12px; border: 1px solid var(--db-line); border-radius: 999px; color: #737c84; background: rgba(255, 255, 255, 0.58); cursor: pointer; font-size: 8px; }
.matrix-filter-group button.is-active { border-color: var(--db-ink); color: #fff; background: var(--db-ink); }

.matrix-result-bar { display: flex; align-items: center; justify-content: space-between; min-height: 46px; color: #858e96; font-size: 8px; }
.matrix-result-bar a { color: var(--db-blue); }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.device-card { --device-accent: var(--db-blue); position: relative; overflow: hidden; min-height: 228px; border: 1px solid var(--db-line); border-radius: 16px; background: rgba(255, 255, 255, 0.74); transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease; }
.device-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--device-accent); content: ""; opacity: 0.82; }
.device-card[data-status="offline"] { --device-accent: #a2a8ad; }
.device-card:hover { border-color: rgba(44, 103, 216, 0.28); background: #fff; box-shadow: 0 20px 44px rgba(34, 47, 60, 0.1); transform: translateY(-3px); }
.device-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px 0; }
.device-sequence { color: #9ca3aa; font-family: Georgia, serif; font-size: 8px; }
.device-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: #387356; background: #edf6f0; font-size: 7px; }
.device-state::before { width: 5px; height: 5px; border-radius: 50%; background: #58ab79; content: ""; }
.device-card[data-status="offline"] .device-state { color: #777f86; background: #eef0f1; }
.device-card[data-status="offline"] .device-state::before { background: #a0a6ab; }
.device-card-body { padding: 14px 18px 15px; }
.device-card-body h2 { margin: 0; font-size: 15px; letter-spacing: -0.025em; line-height: 1.4; }
.device-classification { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.device-classification span { padding: 4px 7px; border: 1px solid rgba(44, 103, 216, 0.12); border-radius: 6px; color: #647180; background: var(--db-blue-soft); font-size: 7px; }
.device-meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 14px; border-top: 1px solid var(--db-line); border-bottom: 1px solid var(--db-line); }
.device-meta-row div { min-width: 0; padding: 10px 7px 10px 0; }
.device-meta-row div + div { padding-left: 8px; border-left: 1px solid var(--db-line); }
.device-meta-row small,
.device-meta-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-meta-row small { color: #9ba2a8; font-size: 6px; }
.device-meta-row strong { margin-top: 4px; font-size: 8px; }
.device-card-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; }
.device-card-foot a { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 10px; border: 1px solid var(--db-line); border-radius: 8px; color: #5f6a74; font-size: 8px; font-weight: 700; }
.device-card-foot a:first-child { color: #fff; background: var(--db-ink); }
.device-card-foot a:hover { border-color: var(--db-blue); color: #fff; background: var(--db-blue); }
.matrix-empty { padding: 70px 20px; border: 1px dashed rgba(17, 24, 32, 0.18); border-radius: 17px; background: rgba(255, 255, 255, 0.45); text-align: center; }
.matrix-empty strong { font-size: 16px; }
.matrix-empty p { margin: 8px 0 0; color: var(--db-muted); font-size: 9px; }
.matrix-load-more { display: block; min-width: 240px; min-height: 42px; margin: 20px auto 0; padding: 0 18px; border: 1px solid var(--db-line); border-radius: 999px; color: #66717b; background: rgba(255, 255, 255, 0.7); cursor: pointer; font-size: 8px; }
.matrix-load-more[hidden] { display: none; }
.matrix-load-more:hover { border-color: var(--db-blue); color: var(--db-blue); background: #fff; }

@media (max-width: 1040px) {
  .brand-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .data-route-strip { grid-template-columns: repeat(3, 1fr); }
  .data-route-strip a:nth-child(4) { border-left: 0; border-top: 1px solid var(--db-line); }
  .data-route-strip a:nth-child(5),
  .data-route-strip a:nth-child(6) { border-top: 1px solid var(--db-line); }
}

@media (max-width: 760px) {
  .data-site-header,
  .data-site-footer,
  .data-index-shell,
  .device-matrix-shell { width: calc(100% - 30px); }
  .data-site-header { min-height: 70px; }
  .data-wordmark small { display: none; }
  .data-wordmark > span strong { display: none; }
  .data-site-header nav { gap: 13px; font-size: 8px; }
  .data-site-header nav a:nth-child(2) { display: none; }
  .data-index-shell { padding: 22px 0 70px; }
  .official-hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .official-hero-copy h2 { font-size: 46px; }
  .archive-status { width: 100%; padding: 22px; }
  .archive-status > strong { font-size: 48px; }
  .data-main-search { grid-template-columns: auto minmax(0, 1fr); padding-right: 12px; }
  .data-main-search button { grid-column: 1 / -1; margin-top: 5px; }
  .data-route-strip { grid-template-columns: 1fr 1fr; }
  .data-route-strip a:nth-child(3),
  .data-route-strip a:nth-child(5) { border-left: 0; }
  .data-route-strip a:nth-child(n + 3) { border-top: 1px solid var(--db-line); }
  .matrix-heading { align-items: start; }
  .matrix-heading > div:last-child { display: grid; justify-items: end; }
  .matrix-heading > p { display: none; }
  .brand-index-grid,
  .type-index-grid { grid-template-columns: 1fr 1fr; }
  .index-matrix-item { grid-template-columns: 24px minmax(0, 1fr) auto; min-height: 59px; padding: 0 10px; }
  .index-matrix-item > i { display: none; }
  .index-matrix-item > strong { font-size: 10px; }
  .matrix-total b { font-size: 17px; }
  .data-rulebook { grid-template-columns: 1fr; gap: 23px; margin-top: 70px; padding: 24px 20px; }
  .data-rulebook ol { grid-template-columns: 1fr; }
  .data-site-footer { min-height: 96px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 13px; }
  .matrix-context-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 35px; }
  .matrix-context-hero h1 { font-size: 42px; }
  .matrix-context-stats { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .matrix-controls { grid-template-columns: 1fr; }
  .matrix-filter-group { display: grid; grid-template-columns: repeat(3, 1fr); }
  .matrix-filter-group button { width: 100%; }
  .device-grid { grid-template-columns: 1fr; }
  .device-card { min-height: 0; }
  .device-meta-row { grid-template-columns: repeat(2, 1fr); }
  .device-meta-row div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--db-line); }
  .device-meta-row div:nth-child(4) { border-top: 1px solid var(--db-line); }
}

@media (max-width: 420px) {
  .data-site-header nav a:first-child { display: none; }
  .official-hero-copy h2 { font-size: 40px; }
  .brand-index-grid,
  .type-index-grid { grid-template-columns: 1fr; }
  .matrix-heading h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .index-matrix-item,
  .device-card { transition: none; }
}
