:root {
  --paper: #f4f1e9;
  --paper-light: #fbfaf6;
  --ink: #17201e;
  --ink-soft: #53605b;
  --line: rgba(23, 32, 30, 0.14);
  --orange: #f05d2f;
  --orange-dark: #c7431d;
  --mint: #bfdfd1;
  --green: #173f36;
  --green-light: #21594c;
  --white: #fffefa;
  --shadow: 0 24px 70px rgba(27, 41, 36, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 5%, rgba(191, 223, 209, 0.42), transparent 27rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  color: white;
  background: var(--green);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

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

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  display: block;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: 0.16em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.main-nav {
  display: flex;
  gap: 38px;
}

.main-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--orange);
  transition: right 180ms ease;
}

.main-nav a:hover::after {
  right: 0;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 650;
}

.header-badge span {
  width: 7px;
  height: 7px;
  background: #36a877;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(54, 168, 119, 0.14);
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  min-height: 670px;
  margin: 0 auto;
  padding: 94px 0 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(350px, 0.72fr);
  align-items: center;
  gap: 90px;
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb-one {
  width: 260px;
  height: 260px;
  right: 70px;
  top: 108px;
  background: rgba(191, 223, 209, 0.5);
}

.hero-orb-two {
  width: 85px;
  height: 85px;
  right: 397px;
  bottom: 110px;
  border: 18px solid rgba(240, 93, 47, 0.13);
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-light);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
}

.eyebrow span::after {
  content: "";
  width: 25px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(58px, 6.2vw, 88px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-lead {
  max-width: 620px;
  margin: 27px 0 32px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.search-box {
  position: relative;
  width: min(670px, 100%);
  height: 74px;
  display: flex;
  align-items: center;
  padding: 7px;
  background: var(--white);
  border: 1px solid rgba(23, 32, 30, 0.09);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(41, 52, 47, 0.13);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.search-box:focus-within {
  border-color: rgba(240, 93, 47, 0.45);
  box-shadow: 0 20px 58px rgba(41, 52, 47, 0.16), 0 0 0 4px rgba(240, 93, 47, 0.08);
}

.search-icon {
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.search-icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
}

.search-box input::placeholder {
  color: #8e9691;
}

.search-box button,
.request-form button {
  height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: var(--orange);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: background 160ms ease, transform 160ms ease;
}

.search-box button:hover,
.request-form button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.search-box button span,
.request-form button span {
  margin-left: 11px;
  font-size: 19px;
}

.search-hint {
  margin: 14px 0 0 4px;
  color: #727c77;
  font-size: 12px;
}

.quick-searches {
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.quick-searches button,
.quick-searches a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.quick-searches button:hover,
.quick-searches a:hover {
  color: var(--orange-dark);
  border-color: rgba(240, 93, 47, 0.35);
}

.evidence-preview {
  position: relative;
  width: 100%;
  max-width: 405px;
  margin-left: auto;
  padding: 20px;
  background: rgba(255, 254, 250, 0.88);
  border: 1px solid rgba(23, 32, 30, 0.11);
  border-radius: 23px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transform: rotate(1.4deg);
}

.evidence-preview::before {
  content: "官网证据";
  position: absolute;
  right: -23px;
  top: 75px;
  padding: 7px 13px;
  color: white;
  background: var(--orange);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  transform: rotate(7deg);
  box-shadow: 0 8px 20px rgba(240, 93, 47, 0.25);
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  color: #7f8883;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  display: block;
  background: #ced2ce;
  border-radius: 50%;
}

.window-dots i:first-child {
  background: var(--orange);
}

.preview-device {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 27px 16px 23px;
}

.device-illustration {
  width: 105px;
  height: 125px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8eee9, #d3e2db);
  border-radius: 53px 53px 20px 20px;
}

.device-illustration svg {
  width: 76px;
  fill: rgba(255, 255, 255, 0.75);
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.preview-device p,
.preview-result p {
  margin: 0 0 4px;
  color: #7c8580;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-device h2 {
  margin: 0 0 9px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #27745f;
  font-size: 10px;
  font-weight: 700;
}

.verified-pill b {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  color: white;
  background: #3aa27f;
  border-radius: 50%;
  font-size: 9px;
}

.preview-result {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px;
  background: #eef2ed;
  border-radius: 14px;
}

.filter-mini {
  width: 62px;
  height: 62px;
  display: flex;
  justify-content: center;
  gap: 3px;
  padding: 11px;
  background: var(--green);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.filter-mini span {
  width: 4px;
  display: block;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 4px;
}

.preview-result strong {
  font-size: 13px;
  line-height: 1.35;
}

.preview-proof {
  position: relative;
  padding: 20px 5px 3px;
}

.preview-proof > span {
  position: absolute;
  right: 2px;
  top: 17px;
  color: #9aa19d;
  font-family: Georgia, serif;
  font-size: 29px;
  font-style: italic;
}

.preview-proof p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.preview-proof p b {
  width: 8px;
  height: 8px;
  background: #3aa27f;
  border-radius: 50%;
}

.preview-proof small {
  display: block;
  margin: 4px 0 0 16px;
  color: #8a928e;
  font-size: 9px;
}

.stat-strip {
  min-height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(35px, 6vw, 90px);
  padding: 25px max(24px, calc((100% - 1180px) / 2));
  color: white;
  background: var(--green);
}

.stat-strip div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.stat-strip strong {
  color: var(--mint);
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 500;
}

.stat-strip div span,
.stat-strip p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.stat-strip p {
  margin-left: auto;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-strip p span {
  display: block;
  margin-bottom: 3px;
  color: var(--mint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.results-section {
  width: min(1180px, calc(100% - 48px));
  min-height: 580px;
  margin: 0 auto;
  padding: 100px 0 120px;
  scroll-margin-top: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.section-heading h2,
.method-intro h2,
.request-section h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(37px, 4vw, 55px);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-heading p:last-child {
  max-width: 410px;
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 14px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.popular-card {
  min-height: 170px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.5);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  text-decoration: none;
}

.popular-card:hover {
  background: var(--white);
  box-shadow: 0 17px 45px rgba(31, 44, 39, 0.09);
  transform: translateY(-4px);
}

.popular-card > span {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.popular-card strong {
  margin-top: 10px;
  font-family: Georgia, serif;
  font-size: 33px;
  font-weight: 500;
}

.popular-card small {
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 11px;
}

.popular-card small i {
  color: var(--orange);
  font-size: 18px;
  font-style: normal;
}

.result-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(23, 32, 30, 0.1);
  border-radius: 18px;
  box-shadow: 0 17px 45px rgba(31, 44, 39, 0.07);
}

.card-top,
.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-token {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #28745f;
  font-size: 10px;
  font-weight: 750;
}

.official-badge i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: white;
  background: #3aa27f;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
}

.model-line {
  margin: 26px 0 18px;
}

.model-line span,
.compatible-label,
.source-row div > span {
  display: block;
  margin-bottom: 4px;
  color: #858d89;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.model-line h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.model-line h3 a {
  text-decoration: none;
}

.model-line h3 a:hover {
  color: var(--orange-dark);
}

.compatible-block {
  padding: 19px;
  background: #eef2ed;
  border-radius: 12px;
}

.compatible-block > strong,
.compatible-block > small {
  display: block;
}

.compatible-block > strong {
  font-size: 16px;
}

.compatible-block > strong a,
.detail-filter-card h2 a {
  text-decoration: none;
}

.compatible-block > strong a:hover,
.detail-filter-card h2 a:hover {
  color: var(--orange-dark);
}

.compatible-block > small {
  margin-top: 3px;
  color: #68716d;
  font-size: 10px;
}

.part-number {
  margin-top: 13px;
  display: inline-flex;
  gap: 6px;
  padding-top: 10px;
  color: var(--ink-soft);
  border-top: 1px solid rgba(23, 32, 30, 0.1);
  font-size: 10px;
}

.part-number b {
  color: var(--ink);
  letter-spacing: 0.05em;
}

.part-number.muted {
  color: #7f8883;
}

.result-note {
  min-height: 50px;
  margin: 17px 2px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.source-row {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.source-row div strong,
.source-row div small {
  display: block;
}

.source-row div strong {
  font-size: 11px;
}

.source-row div small {
  margin-top: 2px;
  color: #89908d;
  font-size: 9px;
}

.source-row > a {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.source-row > a:hover {
  text-decoration: underline;
}

.empty-grid {
  display: block;
}

.empty-state {
  min-height: 210px;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 34px;
  color: white;
  background: var(--green);
  border-radius: 18px;
}

.empty-mark {
  width: 85px;
  height: 85px;
  flex: 0 0 85px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--mint);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 47px;
}

.empty-state h3 {
  margin: 0 0 7px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.empty-state p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.empty-state button {
  margin-left: auto;
  padding: 14px 18px;
  color: var(--green);
  background: var(--mint);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.method-section {
  min-height: 630px;
  padding: 110px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 100px;
  color: white;
  background:
    radial-gradient(circle at 7% 90%, rgba(191, 223, 209, 0.13), transparent 24rem),
    var(--green);
}

.eyebrow.light {
  color: var(--mint);
}

.method-intro h2 {
  font-size: clamp(45px, 4.6vw, 65px);
}

.method-intro > p:not(.eyebrow) {
  max-width: 460px;
  margin: 26px 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.8;
}

.method-intro > a {
  display: inline-flex;
  gap: 12px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.method-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.step-number {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 17px;
}

.method-steps h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.method-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.request-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 100px;
  scroll-margin-top: 20px;
}

.request-section > div > p:last-child {
  max-width: 460px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.request-form {
  padding: 34px;
  background: var(--white);
  border: 1px solid rgba(23, 32, 30, 0.1);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.request-form label,
.request-form label > span {
  display: block;
}

.request-form label + label {
  margin-top: 18px;
}

.request-form label > span {
  margin: 0 0 7px 2px;
  font-size: 11px;
  font-weight: 750;
}

.request-form label small {
  color: #8f9693;
  font-weight: 500;
}

.request-form input {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #faf9f5;
  font-size: 14px;
}

.request-form input:focus {
  border-color: rgba(240, 93, 47, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 93, 47, 0.08);
}

.request-form button {
  width: 100%;
  margin-top: 24px;
}

.request-form button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-note {
  margin: 12px 0 0;
  color: #8b928f;
  font-size: 9px;
  text-align: center;
}

footer {
  min-height: 150px;
  padding: 35px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  flex: 0 0 auto;
}

footer > p {
  color: var(--ink-soft);
  font-family: Georgia, "Songti SC", serif;
  font-size: 14px;
}

footer > div {
  margin-left: auto;
  display: flex;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 10px;
}

footer > div a {
  text-decoration: none;
}

footer > div a:hover {
  color: var(--orange-dark);
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  color: white;
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 12px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Device detail pages */

.catalog-section,
.search-main,
.directory-main,
.content-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.catalog-section {
  padding: 20px 0 110px;
}

.brand-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.brand-directory a {
  min-height: 145px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.55);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand-directory a:hover {
  box-shadow: 0 17px 45px rgba(31, 44, 39, 0.08);
  transform: translateY(-3px);
}

.brand-directory span {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-directory strong {
  margin-top: auto;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.brand-directory small {
  color: var(--ink-soft);
}

.success-message {
  width: fit-content;
  padding: 10px 13px;
  color: #22634f !important;
  background: #ddf1e8;
  border-radius: 8px;
  font-weight: 700;
}

.search-main {
  padding: 45px 0 110px;
}

.search-hero {
  max-width: 850px;
  padding: 75px 0 65px;
}

.search-hero h1,
.directory-hero h1,
.content-main h1 {
  margin: 12px 0 30px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.search-results {
  padding: 55px 0;
  border-top: 1px solid var(--line);
}

.inline-button {
  display: inline-flex;
  padding: 13px 18px;
  color: white;
  background: var(--orange);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.answer-summary {
  max-width: 760px;
  margin: 38px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.filter-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.filter-heading h1 {
  max-width: 760px;
  margin: 5px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(43px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.detail-brand-name,
.filter-english-name {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.filter-english-name {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0;
}

.primary-part {
  width: fit-content;
  margin: 30px 0 0;
  padding: 10px 14px;
  background: #eef2ed;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.primary-part strong {
  margin-left: 7px;
  color: var(--ink);
  font-size: 14px;
}

.device-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.device-directory article {
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.device-directory h2 {
  margin: 4px 0;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 500;
}

.device-directory h2 a,
.source-evidence a {
  text-decoration: none;
}

.device-directory h2 a:hover,
.source-evidence a:hover {
  color: var(--orange-dark);
}

.device-directory div > span,
.device-directory small {
  color: var(--ink-soft);
  font-size: 10px;
}

.device-directory p,
.device-directory small {
  grid-column: 1 / -1;
  margin: 0;
}

.device-directory p {
  color: var(--ink-soft);
  font-size: 12px;
}

.entity-facts,
.source-evidence {
  margin: 25px 0 40px;
  padding: 34px;
  background: rgba(255, 254, 250, 0.65);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.entity-facts h2,
.source-evidence h2 {
  margin: 0 0 22px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 29px;
  font-weight: 500;
}

.entity-facts dl {
  margin: 0;
}

.entity-facts dl > div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  border-top: 1px solid var(--line);
}

.entity-facts dt {
  color: var(--ink-soft);
  font-size: 11px;
}

.entity-facts dd {
  margin: 0;
  font-size: 12px;
}

.source-evidence {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 55px;
}

.source-evidence p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 12px;
}

.source-evidence > div:last-child {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.source-evidence span,
.source-evidence small {
  color: var(--ink-soft);
  font-size: 10px;
}

.source-evidence a {
  margin-top: auto;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 750;
}

.directory-main {
  padding: 45px 0 110px;
}

.directory-hero {
  padding: 80px 0 65px;
  border-bottom: 1px solid var(--line);
}

.directory-hero h1 {
  margin-bottom: 18px;
}

.directory-hero > p:last-child {
  max-width: 680px;
  color: var(--ink-soft);
}

.directory-section {
  padding: 65px 0 20px;
}

.filter-directory,
.model-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.filter-directory a,
.model-directory a {
  min-height: 165px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.filter-directory a:hover,
.model-directory a:hover {
  box-shadow: 0 15px 35px rgba(31, 44, 39, 0.08);
  transform: translateY(-3px);
}

.filter-directory span,
.model-directory span {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.filter-directory strong,
.model-directory strong {
  margin: 12px 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
  font-weight: 500;
}

.model-directory strong {
  font-size: 30px;
}

.filter-directory small,
.model-directory small {
  margin-top: auto;
  color: var(--ink-soft);
}

.filter-directory i {
  margin-top: 8px;
  color: var(--orange-dark);
  font-size: 10px;
  font-style: normal;
}

.content-main {
  padding: 45px 0 110px;
}

.content-main article {
  max-width: 820px;
  padding: 80px 0;
}

.content-main h1 {
  margin-bottom: 32px;
}

.content-lead {
  font-size: 18px;
  line-height: 1.8;
}

.content-main h2 {
  margin: 48px 0 12px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  font-weight: 500;
}

.content-main article > p,
.content-main li {
  color: var(--ink-soft);
  line-height: 1.9;
}

.content-callout {
  margin-top: 45px;
  padding: 22px;
  color: white !important;
  background: var(--green);
  border-radius: 12px;
}

.not-found {
  min-height: 65vh;
}

.not-found-actions {
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.not-found-actions > a:last-child {
  color: var(--ink-soft);
  font-size: 12px;
}

.detail-page {
  background:
    radial-gradient(circle at 86% 8%, rgba(191, 223, 209, 0.5), transparent 27rem),
    var(--paper);
}

.back-home {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.back-home:hover {
  color: var(--orange-dark);
}

.detail-main {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 45px 0 110px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  color: #858d89;
  font-size: 11px;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs strong {
  color: var(--ink);
}

.detail-hero {
  padding: 90px 0 65px;
  border-bottom: 1px solid var(--line);
}

.detail-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.detail-title-row > div:first-child > p {
  margin: 0 0 4px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.detail-title-row h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(70px, 10vw, 118px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.detail-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  background: rgba(255, 254, 250, 0.65);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.detail-trust > b {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: white;
  background: #3aa27f;
  border-radius: 50%;
}

.detail-trust span,
.detail-trust strong,
.detail-trust small {
  display: block;
}

.detail-trust strong {
  font-size: 11px;
}

.detail-trust small {
  color: #858d89;
  font-size: 9px;
}

.detail-results {
  padding: 65px 0 40px;
}

.detail-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.detail-section-heading h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 37px;
  font-weight: 500;
}

.detail-section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.detail-filter-list {
  display: grid;
  gap: 18px;
}

.detail-filter-card {
  padding: 34px;
  background: var(--white);
  border: 1px solid rgba(23, 32, 30, 0.1);
  border-radius: 18px;
  box-shadow: 0 17px 45px rgba(31, 44, 39, 0.07);
}

.detail-filter-heading,
.detail-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.detail-filter-heading > span {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.detail-filter-heading > b {
  color: #28745f;
  font-size: 10px;
}

.detail-filter-card h2 {
  margin: 23px 0 4px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  font-weight: 550;
}

.detail-filter-en {
  margin: 0;
  color: #747d78;
  font-size: 11px;
}

.detail-part {
  width: fit-content;
  margin: 21px 0;
  padding: 9px 12px;
  background: #eef2ed;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 10px;
}

.detail-part strong {
  margin-left: 5px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.detail-part.muted {
  color: #747d78;
}

.detail-note {
  max-width: 700px;
  margin: 0 0 27px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.detail-source {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-source div > span,
.detail-source div > strong,
.detail-source div > small {
  display: block;
}

.detail-source div > span {
  color: #858d89;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.detail-source div > strong {
  margin-top: 3px;
  font-size: 11px;
}

.detail-source div > small {
  color: #858d89;
  font-size: 9px;
}

.detail-source > a {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.detail-source > a:hover {
  text-decoration: underline;
}

.detail-warning {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 30px;
  padding: 28px 32px;
  color: white;
  background: var(--green);
  border-radius: 15px;
}

.detail-warning strong {
  color: var(--mint);
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
  font-weight: 500;
}

.detail-warning p {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 960px) {
	.brand-directory,
	.filter-directory,
	.model-directory {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.device-directory {
		grid-template-columns: 1fr;
	}

	.source-evidence {
		grid-template-columns: 1fr;
	}

	.source-evidence > div:last-child {
		min-height: 120px;
		padding: 24px 0 0;
		border-left: 0;
		border-top: 1px solid var(--line);
	}

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

  .hero-content {
    max-width: 760px;
  }

  .evidence-preview {
    max-width: 600px;
    margin: 0 auto;
    transform: none;
  }

  .stat-strip {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px 45px;
  }

  .stat-strip p {
    width: 100%;
    margin: 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .method-section,
  .request-section {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .method-intro {
    max-width: 650px;
  }
}

@media (max-width: 740px) {
	.site-header,
	.hero,
	.results-section,
	.request-section,
	.catalog-section,
	.search-main,
	.directory-main,
	.content-main {
    width: min(100% - 30px, 1180px);
  }

  .site-header {
    height: 76px;
  }

  .main-nav {
    display: none;
  }

  .header-badge {
    padding: 7px 9px;
    font-size: 10px;
  }

  .detail-page .header-badge {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 65px 0 75px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 65px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .search-box {
    height: auto;
    padding: 7px;
    flex-wrap: wrap;
  }

  .search-icon {
    flex-basis: 42px;
  }

  .search-box input {
    height: 55px;
    font-size: 15px;
  }

  .search-box button {
    width: 100%;
  }

  .evidence-preview::before {
    right: -7px;
  }

  .stat-strip {
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .stat-strip div {
    width: calc(50% - 23px);
    display: grid;
    gap: 0;
  }

  .stat-strip div:nth-child(3) {
    width: 100%;
  }

  .results-section {
    padding: 75px 0 85px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p:last-child {
    margin-top: 16px;
  }

	.result-grid,
	.compact-grid,
	.brand-directory,
	.filter-directory,
	.model-directory {
		grid-template-columns: 1fr;
	}

	.search-hero,
	.directory-hero,
	.content-main article {
		padding-top: 55px;
	}

	.filter-heading {
		display: block;
	}

	.filter-heading .detail-trust {
		margin-top: 28px;
	}

	.device-directory article {
		grid-template-columns: 1fr;
	}

	.device-directory .official-badge,
	.device-directory p,
	.device-directory small {
		grid-column: 1;
	}

	.entity-facts,
	.source-evidence {
		padding: 23px;
	}

	.entity-facts dl > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

  .popular-card {
    min-height: 145px;
  }

  .empty-state {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .empty-state button {
    width: 100%;
    margin: 0;
  }

  .method-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .request-section {
    padding: 80px 0;
  }

  .request-form {
    padding: 22px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  footer > p {
    margin: 0;
  }

  footer > div {
    margin: 0;
    flex-wrap: wrap;
  }

  .detail-main {
    width: min(100% - 30px, 980px);
    padding-top: 30px;
  }

  .detail-hero {
    padding: 65px 0 45px;
  }

  .detail-title-row {
    display: block;
  }

  .detail-title-row h1 {
    font-size: 72px;
  }

  .detail-trust {
    width: fit-content;
    margin-top: 30px;
  }

  .detail-filter-card {
    padding: 23px;
  }

  .detail-source {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-warning {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Go management console */

.admin-body {
  min-height: 100vh;
  background: #ece9e0;
}

.admin-login {
  width: min(430px, calc(100% - 32px));
  margin: 9vh auto;
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.admin-login > img {
  width: 52px;
  height: 52px;
}

.admin-login > p,
.admin-welcome > div > p,
.admin-panel-title p {
  margin: 20px 0 8px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.admin-login h1 {
  margin: 0 0 28px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 34px;
  font-weight: 500;
}

.admin-login form label {
  display: block;
  margin: 16px 0;
  font-size: 11px;
  font-weight: 750;
}

.admin-login input {
  width: 100%;
  height: 50px;
  margin-top: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
}

.admin-login input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240, 93, 47, 0.08);
}

.admin-login button {
  width: 100%;
  height: 50px;
  margin: 8px 0 20px;
  color: white;
  background: var(--orange);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 750;
}

.admin-login > a {
  color: var(--ink-soft);
  font-size: 11px;
  text-decoration: none;
}

.admin-error {
  padding: 10px 12px;
  color: #9d3219;
  background: #ffebe5;
  border-radius: 7px;
  font-size: 11px;
}

.admin-header {
  height: 76px;
  padding: 0 max(24px, calc((100% - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green);
}

.admin-header > a,
.admin-header > div,
.admin-header form {
  display: flex;
  align-items: center;
}

.admin-header > a {
  gap: 10px;
  color: white;
  text-decoration: none;
}

.admin-header img {
  width: 38px;
  height: 38px;
}

.admin-header span,
.admin-header b,
.admin-header small {
  display: block;
}

.admin-header b {
  letter-spacing: 0.12em;
}

.admin-header small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.admin-header > div {
  gap: 20px;
}

.admin-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-header nav a {
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.64);
  border-radius: 7px;
  font-size: 10px;
  text-decoration: none;
}

.admin-header nav a:hover,
.admin-header nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.admin-header > div > a,
.admin-header button {
  color: rgba(255, 255, 255, 0.74);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  text-decoration: none;
}

.admin-main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 65px 0 100px;
}

.admin-welcome {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 45px;
}

.admin-welcome h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(38px, 4vw, 55px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.admin-stats-six {
  grid-template-columns: repeat(3, 1fr);
}

.admin-stats article {
  min-height: 115px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-stats article.alert {
  color: white;
  background: var(--orange);
  border-color: var(--orange);
}

.admin-stats strong {
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: 500;
}

.admin-stats span {
  color: var(--ink-soft);
  font-size: 10px;
}

.admin-stats .alert span {
  color: rgba(255, 255, 255, 0.75);
}

.admin-panel {
  margin-top: 22px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 23px;
}

.admin-panel-title p {
  margin: 0 0 3px;
}

.admin-panel-title h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 27px;
  font-weight: 500;
}

.admin-panel-title > span {
  color: var(--ink-soft);
  font-size: 10px;
}

.admin-title-link {
  color: var(--orange-dark);
  font-size: 10px;
  text-decoration: none;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.admin-panel th,
.admin-panel td {
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-panel th {
  color: #858d89;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.admin-panel td:nth-child(2) {
  max-width: 300px;
  color: var(--ink-soft);
}

.request-status {
  display: inline-block;
  padding: 5px 8px;
  color: #8f4a25;
  background: #ffeadf;
  border-radius: 999px;
  white-space: nowrap;
}

.request-status.resolved {
  color: #22634f;
  background: #ddf1e8;
}

.request-status.rejected {
  color: #656c68;
  background: #eaedeb;
}

.request-status.in_review {
  color: #6d5a1f;
  background: #f4edce;
}

.status-form {
  display: flex;
  gap: 6px;
}

.status-form select,
.status-form button {
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 10px;
}

.status-form button {
  padding: 0 10px;
  color: white;
  background: var(--green);
  cursor: pointer;
}

.admin-empty {
  padding: 55px 20px;
  color: var(--ink-soft);
  background: #f5f4ef;
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.source-list article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.source-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.source-list strong,
.source-list a,
.source-list p,
.source-list time {
  font-size: 10px;
}

.source-list a {
  color: var(--orange-dark);
  text-decoration: none;
}

.source-list p {
  margin: 10px 0 2px;
  color: var(--ink-soft);
}

.source-list time,
.muted {
  color: #969c99;
}

.admin-footnote {
  margin: 18px 0 0;
  color: #8c9390;
  font-size: 9px;
  line-height: 1.7;
}

.admin-page-heading {
  margin-bottom: 28px;
}

.admin-page-heading p,
.visitor-hero p {
  margin: 0 0 7px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.admin-page-heading h1,
.visitor-hero h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.admin-page-heading span,
.visitor-hero > div > span {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 11px;
}

.traffic-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.traffic-stats article {
  min-height: 105px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.traffic-stats span,
.visitor-summary span,
.visitor-timeline-summary span {
  color: var(--ink-soft);
  font-size: 9px;
}

.traffic-stats strong,
.visitor-summary strong {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 500;
}

.visit-filter-panel {
  padding: 20px;
}

.visit-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 180px auto auto;
  align-items: end;
  gap: 10px;
}

.visit-filters label span {
  display: block;
  margin-bottom: 6px;
  color: #747c78;
  font-size: 9px;
}

.visit-filters input,
.visit-filters select,
.visit-filters button {
  width: 100%;
  height: 39px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: 10px;
}

.visit-filters button {
  padding: 0 17px;
  color: white;
  background: var(--green);
  border-color: var(--green);
  cursor: pointer;
  white-space: nowrap;
}

.visit-filters > a {
  height: 39px;
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.traffic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  align-items: start;
  gap: 18px;
}

.traffic-log-panel,
.top-pages-panel {
  margin-top: 18px;
}

.visit-table td {
  vertical-align: top;
}

.visit-table td:nth-child(2) {
  max-width: 210px;
  color: var(--ink);
}

.visit-table td:nth-child(3) {
  max-width: 320px;
}

.visit-table td:nth-child(4) {
  max-width: 250px;
}

.visit-table td:last-child {
  white-space: nowrap;
}

.visit-table small {
  max-width: 280px;
  margin-top: 5px;
  display: block;
  overflow: hidden;
  color: #909692;
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-link,
.page-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.page-link {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.query-text,
.referrer-text {
  display: block;
  overflow: hidden;
  color: #888f8b;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-badge {
  margin-left: 5px;
  padding: 2px 5px;
  color: #785d16;
  background: #f4edce;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.http-status {
  display: inline-block;
  min-width: 34px;
  padding: 4px 6px;
  color: #22634f;
  background: #ddf1e8;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.http-status.status-3xx {
  color: #68591f;
  background: #f4edce;
}

.http-status.status-4xx,
.http-status.status-5xx {
  color: #9d3219;
  background: #ffebe5;
}

.admin-pagination {
  min-height: 35px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-pagination a {
  padding: 8px 11px;
  color: var(--green);
  background: #eef2ef;
  border-radius: 7px;
  font-size: 10px;
  text-decoration: none;
}

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

.top-pages li {
  padding: 11px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.top-pages a {
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-pages strong {
  color: var(--orange-dark);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}

.admin-empty.compact {
  padding: 30px 10px;
}

.admin-breadcrumb {
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 10px;
}

.admin-breadcrumb a {
  color: var(--orange-dark);
  text-decoration: none;
}

.visitor-hero {
  padding: 28px 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  color: white;
  background: var(--green);
  border-radius: 16px;
}

.visitor-hero p,
.visitor-hero > div > span {
  color: rgba(255, 255, 255, 0.62);
}

.visitor-hero h1 {
  overflow-wrap: anywhere;
}

.visitor-summary {
  min-width: 390px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.visitor-summary article {
  min-height: 90px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 9px;
}

.visitor-summary span {
  color: rgba(255, 255, 255, 0.6);
}

.visitor-timeline-summary {
  margin: 12px 0 22px;
  padding: 17px 25px;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.visitor-timeline-summary div:last-child {
  text-align: right;
}

.visitor-timeline-summary span,
.visitor-timeline-summary strong {
  display: block;
}

.visitor-timeline-summary strong {
  margin-top: 4px;
  font-size: 11px;
}

.visitor-timeline-summary i {
  height: 1px;
  background: var(--line);
}

.visitor-event-list {
  display: grid;
  gap: 10px;
}

.visitor-event-list article {
  padding: 18px;
  display: grid;
  grid-template-columns: 155px minmax(210px, 0.7fr) minmax(300px, 1.3fr);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.visitor-event-time time,
.visitor-event-time span {
  display: block;
}

.visitor-event-time time {
  margin-bottom: 9px;
  font-size: 10px;
}

.visitor-event-main > a {
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.visitor-event-main > a small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 400;
}

.visitor-event-main p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.visitor-event-list dl {
  margin: 0;
  display: grid;
  gap: 7px;
}

.visitor-event-list dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
}

.visitor-event-list dt,
.visitor-event-list dd {
  margin: 0;
  font-size: 9px;
  line-height: 1.45;
}

.visitor-event-list dt {
  color: #939a96;
}

.visitor-event-list dd {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .admin-welcome {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .traffic-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .visit-filters {
    grid-template-columns: 1fr 1fr;
  }

  .visit-filters label:first-child {
    grid-column: 1 / -1;
  }

  .traffic-layout {
    grid-template-columns: 1fr;
  }

  .visitor-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .visitor-summary {
    min-width: 0;
  }

  .visitor-event-list article {
    grid-template-columns: 120px 1fr;
  }

  .visitor-event-list dl {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .admin-main {
    width: min(100% - 28px, 1240px);
    padding-top: 45px;
  }

  .admin-header {
    padding: 0 14px;
  }

  .admin-header > div > a {
    display: none;
  }

  .admin-header > div {
    gap: 8px;
  }

  .admin-header nav a {
    padding: 7px;
  }

  .admin-panel {
    padding: 20px;
  }

  .source-list {
    grid-template-columns: 1fr;
  }

  .traffic-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .visit-filters {
    grid-template-columns: 1fr;
  }

  .visit-filters label:first-child {
    grid-column: auto;
  }

  .visitor-summary {
    grid-template-columns: 1fr;
  }

  .visitor-timeline-summary {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .visitor-timeline-summary div:last-child {
    text-align: left;
  }

  .visitor-event-list article {
    grid-template-columns: 1fr;
  }

  .visitor-event-list dl {
    grid-column: auto;
  }
}
