/*
Theme Name: LabSource
Theme URI: https://example.com/labsource
Author: 检验知源团队
Description: LabSource medical laboratory knowledge platform theme
Version: 1.2.0
Requires at least: 6.0
Text Domain: labsource
*/

:root {
  --lab-bg: #00101d;
  --lab-bg-2: #031b31;
  --lab-panel: rgba(11, 39, 64, 0.78);
  --lab-panel-strong: rgba(15, 55, 88, 0.86);
  --lab-line: rgba(42, 179, 255, 0.22);
  --lab-cyan: #21eef2;
  --lab-cyan-2: #42d4ff;
  --lab-blue: #1595ff;
  --lab-orange: #ff6b22;
  --lab-green: #00d48e;
  --lab-magenta: #e540c8;
  --lab-text: #f2fbff;
  --lab-muted: #9cb9cb;
  --lab-shell: min(1240px, calc(100vw - 88px));
  --lab-radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--lab-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% 6%, rgba(12, 117, 190, 0.22), transparent 34rem),
    linear-gradient(180deg, #00182c 0%, #00101d 38%, #001a30 100%);
  color: var(--lab-text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

body.admin-bar .lab-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lab-shell {
  width: var(--lab-shell);
  margin: 0 auto;
}

.lab-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 13, 25, 0.86);
  border-bottom: 1px solid rgba(36, 223, 239, 0.12);
  backdrop-filter: blur(16px);
}

.lab-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.lab-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  flex: 0 0 auto;
}

.lab-brand-mark {
  width: 58px;
  height: 64px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 230, 239, 0.32));
}

.lab-brand-wordmark {
  display: grid;
  gap: 5px;
  justify-items: center;
  text-align: center;
}

.lab-brand-wordmark strong {
  color: #f7fdff;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.lab-brand-wordmark small {
  color: #dff7ff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  width: 100%;
}

.lab-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #f4fbff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.lab-nav a {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.lab-nav a:hover,
.lab-nav a:focus-visible {
  color: var(--lab-cyan);
  border-bottom-color: rgba(33, 238, 242, 0.7);
}

.lab-search {
  width: 210px;
  flex: 0 0 auto;
}

.lab-search input {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: rgba(23, 48, 74, 0.92);
  color: #e9f8ff;
  padding: 0 14px;
  font-size: 13px;
}

.lab-search input::placeholder {
  color: #7f98aa;
}

.lab-login {
  min-width: 82px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lab-cyan);
  border-radius: 999px;
  color: #f1ffff;
  font-size: 13px;
  font-weight: 800;
}

.lab-home {
  overflow: hidden;
}

.lab-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(58, 162, 255, 0.12);
}

.lab-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 13, 25, 0.72) 0%, rgba(0, 19, 35, 0.36) 48%, rgba(0, 13, 25, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 14, 26, 0.08), rgba(0, 15, 28, 0.76)),
    var(--lab-hero-bg-image, url("assets/labsource-hero-science.png")) center / cover no-repeat;
  opacity: 0.98;
}

.lab-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 510px;
  gap: 58px;
  align-items: center;
}

.lab-kicker {
  margin: 0 0 18px;
  color: #eef9ff;
  font-size: 15px;
  font-weight: 800;
}

.lab-hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 48px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.42);
}

.lab-hero-copy h1 span {
  color: var(--lab-cyan);
}

.lab-hero-lead {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: #eff9ff;
  font-size: 18px;
  line-height: 1.78;
  font-weight: 700;
}

.lab-hero-lead span {
  display: block;
}

.lab-hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.lab-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lab-button .dashicons,
.lab-section-head .dashicons {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.lab-button:hover,
.lab-button:focus-visible {
  transform: translateY(-2px);
}

.lab-button-primary {
  background: linear-gradient(90deg, #30f0f0, #43c7ff);
  color: #00182b;
  box-shadow: 0 10px 26px rgba(33, 238, 242, 0.28);
}

.lab-button-ghost {
  border: 1px solid rgba(130, 180, 210, 0.28);
  background: rgba(8, 23, 39, 0.62);
  color: #ffffff;
}

.lab-hero-panel {
  min-height: 330px;
  padding: 38px 34px 28px;
  border: 1px solid rgba(86, 195, 255, 0.78);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 127, 204, 0.08), rgba(10, 42, 76, 0.03)),
    rgba(6, 35, 65, 0.08);
  box-shadow:
    inset 0 0 42px rgba(67, 191, 255, 0.08),
    0 0 24px rgba(53, 169, 255, 0.26);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.lab-hero-panel p {
  margin: 0 0 14px;
  color: #eef9ff;
  font-size: 16px;
  font-weight: 700;
}

.lab-hero-panel h2 {
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lab-hero-panel strong {
  display: block;
  margin-bottom: 26px;
  color: #e9fbff;
  font-size: 16px;
}

.lab-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.lab-feature-grid a {
  min-height: 108px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(72, 183, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(44, 149, 225, 0.09), rgba(11, 57, 102, 0.04)),
    rgba(7, 38, 72, 0.06);
  color: #f3fbff;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(42, 184, 255, 0.06);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.lab-feature-grid span {
  display: grid;
  place-items: center;
  color: var(--lab-cyan);
  width: 32px;
  height: 32px;
  margin-bottom: 7px;
  font-size: 31px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(33, 238, 242, 0.56);
}

.lab-stats {
  margin-top: -1px;
  background: linear-gradient(90deg, rgba(7, 34, 60, 0.74), rgba(15, 58, 94, 0.82), rgba(7, 34, 60, 0.74));
}

.lab-stats-grid {
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
}

.lab-stats-grid div {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: 40px auto;
  align-content: center;
  column-gap: 10px;
}

.lab-stats-grid span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 228, 239, 0.12);
  color: var(--lab-cyan);
  font-size: 22px;
  line-height: 1;
}

.lab-stats-grid strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.lab-stats-grid small {
  display: block;
  margin-top: 4px;
  color: #c1d7e4;
  font-size: 12px;
  font-weight: 700;
}

.lab-section {
  padding: 38px 0 0;
}

.lab-section-head {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lab-section-head.compact {
  min-height: auto;
  margin-bottom: 16px;
}

.lab-section-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lab-section-head a {
  color: var(--lab-cyan);
  font-size: 17px;
  font-weight: 800;
}

.lab-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.lab-update-card,
.lab-category-card,
.lab-panel {
  border: 1px solid rgba(78, 162, 230, 0.26);
  border-radius: var(--lab-radius);
  background:
    linear-gradient(135deg, rgba(17, 57, 90, 0.92), rgba(8, 33, 57, 0.82)),
    radial-gradient(circle at 100% 0%, rgba(33, 238, 242, 0.1), transparent 52%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.lab-update-card {
  min-height: 204px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  align-items: start;
}

.lab-update-icon,
.lab-category-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 800;
}

.lab-update-icon .dashicons,
.lab-category-icon .dashicons {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 38px;
  line-height: 1;
}

.lab-update-icon {
  width: 88px;
  height: 88px;
}

.lab-update-body time {
  color: #b7cfde;
  font-size: 15px;
}

.lab-update-body h3 {
  margin: 8px 0 10px;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lab-update-body {
  min-height: 156px;
  display: flex;
  flex-direction: column;
}

.lab-update-body p {
  margin: 0;
  color: #9db8c8;
  font-size: 16px;
  line-height: 1.68;
}

.lab-card-summary {
  display: flex;
  gap: 8px;
  margin-top: 2px !important;
}

.lab-card-summary span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(120, 201, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 22, 41, 0.34);
  color: #b9d9e8;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.lab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px !important;
}

.lab-tags span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: rgba(33, 238, 242, 0.12);
  color: var(--lab-cyan);
  padding: 0 9px;
  font-size: 14px;
  font-weight: 800;
}

.lab-update-body > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: #f2fbff;
  font-size: 16px;
  font-weight: 800;
}

.lab-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lab-category-card {
  min-height: 142px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  padding: 22px 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lab-category-card:hover,
.lab-category-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(33, 238, 242, 0.5);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32), inset 0 0 24px rgba(33, 238, 242, 0.06);
}

.lab-category-icon {
  grid-row: span 3;
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.lab-category-icon .dashicons {
  width: 30px;
  height: 30px;
  font-size: 30px;
  line-height: 1;
}

.lab-category-card strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lab-category-card small {
  display: grid;
  gap: 4px;
  color: #b9ceda;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.lab-category-card small span:first-child {
  color: #d6eaf4;
}

.lab-category-card small span:last-child {
  color: rgba(185, 206, 218, 0.82);
}

.lab-category-card em {
  color: var(--lab-cyan);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.lab-bottom-panels {
  padding-bottom: 36px;
}

.lab-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 30px;
}

.lab-panel {
  min-height: 320px;
  padding: 34px;
}

.lab-hot-list,
.lab-news-list,
.lab-member-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-hot-list li + li,
.lab-news-list li + li {
  margin-top: 14px;
}

.lab-hot-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: #f4fbff;
  min-height: 48px;
  border-radius: 12px;
  padding: 6px 10px 6px 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  transition: background 0.18s ease, transform 0.18s ease;
}

.lab-hot-list a:hover,
.lab-hot-list a:focus-visible {
  background: rgba(33, 238, 242, 0.06);
  transform: translateX(3px);
}

.lab-hot-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 107, 34, 0.12);
  color: var(--lab-orange);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.lab-hot-list strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
}

.lab-hot-list small {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(130, 187, 220, 0.1);
  color: #b8d3df;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.lab-news-list {
  position: relative;
}

.lab-news-list::before {
  content: "";
  position: absolute;
  left: 103px;
  top: 11px;
  bottom: 13px;
  width: 1px;
  background: linear-gradient(180deg, rgba(33, 238, 242, 0.44), rgba(33, 238, 242, 0.04));
}

.lab-news-list li {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.lab-news-list li::before {
  content: "";
  position: absolute;
  left: 98px;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lab-cyan);
  box-shadow: 0 0 18px rgba(33, 238, 242, 0.54);
}

.lab-news-list time {
  color: #9fd0e6;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
}

.lab-news-list a {
  display: block;
  color: #e5f7ff;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

.lab-member-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(43, 190, 255, 0.58);
  background:
    radial-gradient(circle at 84% 68%, rgba(67, 199, 255, 0.18), transparent 31%),
    radial-gradient(circle at 92% 92%, rgba(33, 238, 242, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(18, 60, 94, 0.96), rgba(5, 26, 46, 0.94));
  padding: 34px;
}

.lab-member-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(74, 202, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 52%);
  pointer-events: none;
}

.lab-member-panel::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -56px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(33, 238, 242, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 48px rgba(33, 238, 242, 0.08);
  pointer-events: none;
}

.lab-member-copy {
  position: relative;
  z-index: 1;
}

.lab-member-panel h2 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lab-member-panel p {
  margin: 0 0 24px;
  color: #b8d1df;
  font-size: 17px;
  line-height: 1.55;
}

.lab-member-panel ul {
  max-width: 68%;
}

.lab-member-panel li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 32px;
  color: #c8e4ef;
  font-size: 16px;
  line-height: 1.45;
}

.lab-member-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(33, 238, 242, 0.16);
  box-shadow: inset 0 0 0 1px rgba(33, 238, 242, 0.42), 0 0 16px rgba(33, 238, 242, 0.18);
}

.lab-member-panel li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.48em + 4px);
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--lab-cyan);
  border-bottom: 2px solid var(--lab-cyan);
  transform: rotate(-45deg);
}

.lab-member-panel .lab-button {
  margin-top: 18px;
  min-height: 48px;
  padding: 0 28px;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.lab-diamond {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  color: rgba(103, 220, 255, 0.86);
  font-size: 96px;
  line-height: 1;
  opacity: 0.38;
  text-shadow: 0 0 28px rgba(33, 238, 242, 0.46);
  pointer-events: none;
}

.lab-tone-blue {
  border: 1px solid rgba(0, 159, 255, 0.42);
  background: rgba(0, 112, 255, 0.18);
  color: #1fc7ff;
}

.lab-tone-orange {
  border: 1px solid rgba(255, 107, 34, 0.42);
  background: rgba(255, 107, 34, 0.16);
  color: var(--lab-orange);
}

.lab-tone-green {
  border: 1px solid rgba(0, 212, 142, 0.44);
  background: rgba(0, 212, 142, 0.16);
  color: var(--lab-green);
}

.lab-tone-cyan {
  border: 1px solid rgba(33, 238, 242, 0.4);
  background: rgba(33, 238, 242, 0.12);
  color: var(--lab-cyan);
}

.lab-tone-magenta,
.lab-tone-pink {
  border: 1px solid rgba(229, 64, 200, 0.4);
  background: rgba(229, 64, 200, 0.14);
  color: var(--lab-magenta);
}

.lab-footer {
  margin-top: 0;
  background: linear-gradient(90deg, rgba(9, 37, 63, 0.98), rgba(13, 49, 80, 0.98));
  border-top: 1px solid rgba(84, 183, 255, 0.14);
  padding: 34px 0 18px;
}

.lab-footer-inner {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(420px, 560px) 96px;
  gap: 48px;
  align-items: center;
}

.lab-footer-brand {
  display: grid;
  gap: 18px;
}

.lab-footer-brand-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lab-footer-brand p {
  margin: 0;
  color: #9fb6c5;
  font-size: 17px;
  font-weight: 700;
}

.lab-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 42px;
  color: #f0f8ff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  align-items: center;
}

.lab-footer-follow {
  justify-self: end;
  text-align: center;
}

.lab-qr {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 5px solid #ffffff;
  background: repeating-linear-gradient(45deg, #0a263f 0 6px, #ffffff 6px 12px);
  color: var(--lab-cyan);
  font-weight: 900;
}

.lab-footer-follow p {
  margin: 10px 0 0;
  color: #c9dde8;
  font-size: 12px;
  font-weight: 800;
}

.lab-copyright {
  margin: 28px 0 0;
  color: rgba(200, 221, 234, 0.68);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1060px) {
  :root {
    --lab-shell: min(100vw - 32px, 820px);
  }

  body.admin-bar .lab-header {
    top: 46px;
  }

  .lab-header-inner {
    min-height: auto;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .lab-brand {
    min-width: 190px;
  }

  .lab-brand-mark {
    width: 52px;
    height: 58px;
  }

  .lab-brand-wordmark strong {
    font-size: 25px;
  }

  .lab-brand-wordmark small {
    font-size: 10px;
  }

  .lab-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .lab-search {
    margin-left: auto;
  }

  .lab-hero-inner,
  .lab-latest-grid,
  .lab-panel-grid,
  .lab-footer-inner {
    grid-template-columns: 1fr;
  }

  .lab-footer-follow {
    justify-self: start;
  }

  .lab-hero-inner {
    padding: 34px 0;
  }

  .lab-hero-copy h1 {
    font-size: 42px;
  }

  .lab-hero-lead {
    font-size: 17px;
  }

  .lab-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .lab-brand {
    min-width: auto;
  }

  .lab-brand-mark {
    width: 46px;
    height: 51px;
  }

  .lab-brand-wordmark strong {
    font-size: 22px;
  }

  .lab-brand-wordmark small {
    font-size: 9px;
  }

  .lab-search {
    width: 100%;
    order: 4;
  }

  .lab-login {
    margin-left: auto;
  }

  .lab-hero-copy h1 {
    font-size: 34px;
    line-height: 1.25;
  }

  .lab-hero-panel {
    padding: 24px 18px;
  }

  .lab-hero-panel h2 {
    font-size: 40px;
  }

  .lab-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .lab-section-head h2 {
    font-size: 30px;
  }

  .lab-feature-grid,
  .lab-category-grid,
  .lab-stats-grid {
    grid-template-columns: 1fr;
  }

  .lab-update-card,
  .lab-category-card {
    grid-template-columns: 1fr;
  }

  .lab-news-list li,
  .lab-hot-list a {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .lab-news-list::before,
  .lab-news-list li::before {
    display: none;
  }

  .lab-hot-list small {
    text-align: left;
  }

  .lab-member-panel ul {
    max-width: none;
  }

  .lab-diamond {
    right: 20px;
    bottom: 28px;
    width: 78px;
    height: 78px;
    font-size: 78px;
    opacity: 0.22;
  }

  .lab-footer-nav {
    grid-template-columns: 1fr;
  }
}
