:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #14213d;
  --muted: #6d7890;
  --line: #e4ebf4;
  --blue: #45a7f5;
  --blue-dark: #176db5;
  --mint: #54d7c4;
  --green: #57cc8a;
  --coral: #ff8f70;
  --amber: #f3c85f;
  --shadow: 0 18px 45px rgba(29, 69, 112, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 64px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial,
    sans-serif;
  line-height: 1.5;
  font-size: 16px;
  letter-spacing: 0;
}

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

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(244, 247, 251, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
}

.brand-logo-frame {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(69, 167, 245, 0.18);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 22px rgba(20, 33, 61, 0.08);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--blue-dark);
  font-size: 1.08rem;
  font-weight: 900;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.primary-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #33415c;
  font-size: 0.95rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: #e9f5ff;
  color: var(--blue-dark);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.header-action {
  padding: 0 18px;
  background: #172033;
  color: #fff;
  white-space: nowrap;
}

.button {
  padding: 0 18px;
}

.button:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 25px rgba(69, 167, 245, 0.25);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.button.quiet {
  background: #eef3f8;
  color: var(--muted);
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 16%, rgba(84, 215, 196, 0.22), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(69, 167, 245, 0.22), transparent 30%),
    var(--bg);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-logo-frame {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(69, 167, 245, 0.18);
  border-radius: 50%;
  background: #fff;
}

.login-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand strong {
  color: var(--blue-dark);
  font-size: 1.16rem;
}

.login-brand small,
.login-card p {
  color: var(--muted);
}

.login-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.login-error {
  padding: 10px 12px;
  border: 1px solid rgba(255, 143, 112, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 143, 112, 0.12);
  color: #b94d33;
  font-weight: 700;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  scroll-margin-top: 64px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(350px, 0.76fr);
  gap: 28px;
  min-height: calc(100vh - 72px);
  padding: 68px 0 44px;
  align-items: center;
}

.hero::before {
  position: absolute;
  inset: 18px -6vw auto -6vw;
  z-index: -1;
  height: min(70vh, 620px);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  background:
    radial-gradient(circle at 78% 18%, rgba(243, 200, 95, 0.28), transparent 24%),
    linear-gradient(135deg, #4c9bf4 0%, #56dac2 62%, #f4fbf7 100%);
  content: "";
}

.hero-content {
  max-width: 720px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
}

.global-search {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  max-width: 720px;
  min-height: 62px;
  margin: 30px 0 18px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border: 3px solid #95a2b6;
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 10px;
  height: 3px;
  border-radius: 99px;
  background: #95a2b6;
  transform: rotate(45deg);
  content: "";
}

.global-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.global-search button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #172033;
  color: #fff;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

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

.metric-row > div,
.therapy-card,
.db-form,
.results-card,
.article-card,
.service-card,
.phone-reference {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.metric-row > div {
  padding: 18px;
}

.metric {
  display: block;
  color: var(--blue-dark);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.therapy-card {
  overflow: hidden;
}

.therapy-carousel {
  position: relative;
  overflow: hidden;
  background: #eef7f7;
}

.therapy-track {
  display: flex;
  transition: transform 0.52s ease;
}

.therapy-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  background: #eef7f7;
  overflow: hidden;
}

.therapy-card img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: center;
  background: #eef7f7;
}

.therapy-slide figcaption {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.therapy-dots {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 7px;
}

.therapy-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(23, 109, 181, 0.16);
  cursor: pointer;
}

.therapy-dots button.active {
  width: 24px;
  background: var(--blue-dark);
}

.therapy-card h2 {
  color: #4dbdb6;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.therapy-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
  margin-bottom: 76px;
}

.quick-card {
  min-height: 142px;
  padding: 24px;
  border-radius: var(--radius);
  color: #111827;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.quick-card::after {
  position: absolute;
  right: -28px;
  bottom: -52px;
  width: 160px;
  height: 160px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(45deg);
  content: "";
}

.quick-card span,
.quick-card strong {
  display: block;
  position: relative;
  z-index: 1;
}

.quick-card span {
  margin-bottom: 18px;
  font-size: 1.85rem;
}

.quick-card strong {
  color: rgba(20, 33, 61, 0.62);
  font-size: 1.04rem;
}

.quick-card.blue {
  background: linear-gradient(135deg, #b8d8ff, #6eaaf9);
}

.quick-card.mint {
  background: linear-gradient(135deg, #b8fff0, #4cd8c3);
}

.quick-card.coral {
  background: linear-gradient(135deg, #ffe0c3, #ff9275);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

#learning {
  scroll-margin-top: 68px;
}

#database,
#services {
  scroll-margin-top: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.split-section,
.services-section {
  padding: 72px 0 48px;
}

.database-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.db-form,
.results-card {
  min-width: 0;
  max-width: 100%;
  padding: 22px;
}

.results-card {
  overflow: hidden;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.db-form .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #f2f5f9;
  color: var(--ink);
  outline: 0;
}

input,
select {
  min-height: 46px;
}

textarea {
  min-height: 110px;
  padding-block: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(69, 167, 245, 0.12);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

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

.results-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
}

table {
  width: 100%;
  min-width: 1620px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #53627a;
  font-size: 0.82rem;
  white-space: nowrap;
  text-transform: uppercase;
}

td {
  color: #1d2a44;
  font-size: 0.95rem;
}

.segmented,
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.segmented button,
.chip-row button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #22304a;
  white-space: nowrap;
}

.segmented button.active,
.chip-row button.active {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.article-card {
  position: relative;
  min-height: 210px;
  padding: 22px;
  overflow: hidden;
}

.article-card.important::after,
.article-card.normal::after {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 74px;
  padding: 9px 14px;
  border-bottom-left-radius: var(--radius);
  color: #fff;
  text-align: center;
  font-weight: 800;
  content: attr(data-level);
}

.article-card.important::after {
  background: var(--blue);
}

.article-card.normal::after {
  background: var(--green);
}

.article-card h3 {
  width: calc(100% - 58px);
  min-height: 72px;
  font-size: 1.2rem;
}

.title-link {
  color: inherit;
}

.title-link:hover,
.title-link:focus-visible {
  color: var(--blue-dark);
}

.card-summary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 3px;
  background: #dcefff;
  color: var(--blue-dark);
  font-weight: 700;
}

.article-card[data-category="mRNA"] .tag {
  background: #dff8f0;
  color: #279f79;
}

.article-card[data-category="肿瘤免疫"] .tag {
  background: #fff2d1;
  color: #ad7622;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #8a95a8;
  font-size: 0.9rem;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: start;
}

.service-list {
  display: grid;
  gap: 16px;
}

.service-card {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 22px;
  min-height: 182px;
  padding: 18px;
  align-items: center;
}

.service-art {
  display: grid;
  width: 164px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(84, 215, 196, 0.17), rgba(69, 167, 245, 0.2)),
    #f7fbff;
  overflow: hidden;
}

.service-upload-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.assay-plot,
.apc-art,
.tube-art,
.cell-art,
.mrna-art,
.phla-art,
.protein-art {
  display: block;
  position: relative;
  width: 110px;
  height: 86px;
}

.assay-plot {
  border-left: 2px solid #33415c;
  border-bottom: 2px solid #33415c;
  background:
    radial-gradient(circle at 31% 36%, #4c9bf4 0 3px, transparent 4px),
    radial-gradient(circle at 72% 28%, #54d7c4 0 3px, transparent 4px),
    radial-gradient(circle at 62% 68%, #ff8f70 0 3px, transparent 4px),
    radial-gradient(circle at 42% 58%, #7f8cff 0 3px, transparent 4px);
}

.assay-plot::before,
.assay-plot::after {
  position: absolute;
  background: #8894a7;
  content: "";
}

.assay-plot::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.assay-plot::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}

.apc-art::before {
  position: absolute;
  inset: 16px 50px 16px 0;
  border: 3px solid #30b894;
  border-radius: 52% 44% 48% 58%;
  background: #c7f5df;
  content: "APC";
  display: grid;
  place-items: center;
  color: #1e795f;
  font-weight: 900;
}

.apc-art::after {
  position: absolute;
  right: 0;
  top: 32px;
  width: 34px;
  height: 22px;
  border: 2px solid #f0b840;
  background: #fff4c9;
  content: "";
}

.tube-art::before {
  position: absolute;
  left: 46px;
  top: 10px;
  width: 28px;
  height: 72px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(#fff 0 45%, #f3c85f 46%);
  box-shadow: inset 0 0 0 2px #cdd7e5;
  content: "";
}

.tube-art::after {
  position: absolute;
  left: 14px;
  top: 34px;
  width: 56px;
  height: 10px;
  border-radius: 99px;
  background: #a8b2c2;
  transform: rotate(32deg);
  content: "";
}

.cell-art {
  border-radius: 50%;
  background: radial-gradient(circle at 58% 46%, #fff 0 10%, transparent 11%),
    #74d8a6;
  box-shadow:
    22px 8px 0 -10px #ff8f70,
    52px 18px 0 -12px #45a7f5,
    36px 50px 0 -13px #f3c85f;
}

.mrna-art,
.phla-art,
.protein-art {
  border-radius: 999px;
}

.mrna-art {
  background:
    repeating-linear-gradient(115deg, #45a7f5 0 8px, transparent 8px 18px),
    linear-gradient(90deg, transparent 10%, #54d7c4 10% 90%, transparent 90%);
}

.phla-art {
  background:
    radial-gradient(circle at 28% 48%, #f3c85f 0 12px, transparent 13px),
    radial-gradient(circle at 55% 48%, #45a7f5 0 12px, transparent 13px),
    radial-gradient(circle at 82% 48%, #ff8f70 0 12px, transparent 13px);
}

.protein-art {
  background:
    radial-gradient(circle at 15% 50%, #45a7f5 0 12px, transparent 13px),
    radial-gradient(circle at 38% 35%, #54d7c4 0 12px, transparent 13px),
    radial-gradient(circle at 60% 56%, #f3c85f 0 12px, transparent 13px),
    radial-gradient(circle at 82% 40%, #ff8f70 0 12px, transparent 13px);
}

.service-content h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.service-content p {
  color: var(--muted);
}

.qr-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  justify-self: end;
  width: min(100%, 200px);
}

.qr-card {
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
}

.qr-card strong {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.admin-page {
  background: #eef4fa;
}

.admin-main {
  padding-bottom: 56px;
}

.admin-hero {
  padding: 54px 0 22px;
}

.admin-hero h1 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.admin-hero p {
  max-width: 860px;
  color: var(--muted);
}

.admin-panel {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.admin-count {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-upload {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
}

.admin-textarea {
  min-height: 380px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}

.admin-editor {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 640px;
  overflow: auto;
}

.admin-list button {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.admin-list button.active {
  border-color: var(--blue);
  background: #eaf6ff;
}

.admin-list strong,
.admin-list span {
  display: block;
}

.admin-list strong {
  margin-bottom: 5px;
}

.admin-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.admin-form .full-span,
.admin-form .form-actions {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 46px auto 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.site-footer p {
  margin: 4px 0 0;
}

.site-footer a {
  color: var(--blue-dark);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .database-layout,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 46px;
  }

  .hero-panel {
    align-self: auto;
  }

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

  .qr-panel {
    position: static;
    max-width: 360px;
  }

  .admin-editor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .header-action {
    display: none;
  }

  .brand-logo-frame {
    width: 42px;
    height: 42px;
  }

  .brand-text small {
    display: none;
  }

  .section {
    width: min(100% - 24px, 1180px);
  }

  .hero::before {
    inset-inline: -16px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }

  .global-search {
    grid-template-columns: 24px minmax(0, 1fr);
    padding-right: 16px;
    border-radius: 26px;
  }

  .global-search button {
    grid-column: 1 / -1;
  }

  .hero-actions,
  .form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .metric-row,
  .quick-links,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .therapy-card img {
    height: 300px;
  }

  .inline-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 18px;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-upload {
    grid-template-columns: 1fr;
  }

  .service-art {
    width: 100%;
  }

  .article-card h3 {
    width: 100%;
    padding-right: 58px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Standalone public pages */
.page-home,
.page-sub {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #eef6ff 0%, #f7fbff 36%, #f3f7f2 100%);
}

.primary-nav a.active {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 8px 18px rgba(29, 69, 112, 0.08);
}

.page-home main,
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-home main {
  padding: 46px 0 34px;
}

.home-hero {
  display: grid;
  place-items: center;
  min-height: clamp(480px, 62vh, 620px);
  padding: clamp(46px, 8vw, 88px) clamp(20px, 5vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 255, 0.92)),
    url("assets/tcr-therapy-hero.png") center / cover;
  box-shadow: var(--shadow);
  text-align: center;
}

.home-kicker {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: 0.95;
}

.home-copy {
  width: min(720px, 100%);
  margin: 22px auto 0;
  color: #31435d;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(650px, 100%);
  margin: 30px auto 0;
  padding: 6px;
  border: 1px solid #d7e6f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(29, 69, 112, 0.1);
}

.home-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
}

.home-search button {
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(820px, 100%);
  margin-top: 36px;
}

.home-stats div {
  padding: 16px 14px;
  border: 1px solid #dfeaf4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.home-stats strong,
.home-stats span {
  display: block;
}

.home-stats strong {
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1;
}

.home-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.home-entry-card {
  display: grid;
  min-height: 188px;
  align-content: center;
  gap: 9px;
  padding: 28px;
  border: 1px solid #dfebf5;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(29, 69, 112, 0.09);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.home-entry-card:hover,
.home-entry-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(29, 69, 112, 0.13);
}

.entry-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
}

.entry-icon.blue {
  background: var(--blue);
}

.entry-icon.green {
  background: var(--green);
}

.entry-icon.purple {
  background: #7d7cf2;
}

.home-entry-card strong {
  font-size: 1.22rem;
}

.home-entry-card small {
  color: var(--muted);
  font-weight: 700;
}

.page-shell {
  padding: 42px 0 38px;
}

.page-title {
  padding: 34px 0 22px;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
}

.page-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.page-panel h2 {
  margin: 0 0 8px;
}

.page-panel > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.page-db-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-db-form .form-grid {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
}

.page-db-form .form-actions {
  margin-top: 16px;
}

.page-panel .results-card {
  margin-top: 22px;
  padding: 18px;
  border-color: #dfeaf4;
  box-shadow: none;
}

.page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.page-filters button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #d7e6f4;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.page-filters button.active,
.page-filters button:hover {
  border-color: var(--blue);
  background: #eaf6ff;
  color: var(--blue-dark);
}

.article-list-page,
.service-list-page {
  display: grid;
  gap: 14px;
}

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

.page-card {
  min-width: 0;
  border: 1px solid #dfeaf4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(29, 69, 112, 0.08);
}

.article-list-page .page-card {
  min-height: 220px;
  padding: 22px;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stars {
  color: var(--amber);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.article-list-page h3,
.service-list-page h3 {
  margin: 16px 0 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.article-list-page .article-card h3 {
  width: auto;
  min-height: 0;
  padding-right: 0;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.service-list-page .page-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
}

.service-list-page .service-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e2edf6;
  border-radius: var(--radius);
  background: #fff;
}

.service-list-page .service-content {
  min-width: 0;
}

.service-list-page p {
  margin: 10px 0 0;
  color: var(--muted);
}

.app-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 36px auto 0;
  padding: 28px 0 22px;
  border-top: 1px solid #dce8f3;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(170px, 0.8fr) minmax(130px, 0.55fr) minmax(270px, 1.2fr);
  gap: 22px;
}

.app-footer h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.app-footer p {
  margin: 0;
  color: var(--muted);
}

.app-footer a {
  display: block;
  width: fit-content;
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-weight: 800;
}

.footer-qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.footer-qr-grid figure {
  margin: 0;
  padding: 10px;
  border: 1px solid #dfeaf4;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.footer-qr-grid img {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  object-fit: contain;
}

.footer-qr-grid figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e3edf6;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bottom a {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .page-db-form .form-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .article-list-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .page-home main,
  .page-shell,
  .app-footer {
    width: min(100% - 24px, 1180px);
  }

  .page-home main,
  .page-shell {
    padding-top: 24px;
  }

  .home-hero {
    min-height: 0;
    padding: 42px 18px;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

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

  .home-stats,
  .home-entry-grid,
  .article-list-page,
  .footer-grid,
  .footer-qr-grid {
    grid-template-columns: 1fr;
  }

  .page-db-form .form-grid {
    grid-template-columns: 1fr;
  }

  .page-panel {
    padding: 18px;
  }

  .service-list-page .page-card {
    grid-template-columns: 1fr;
  }

  .service-list-page .service-thumb {
    width: min(220px, 100%);
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Screenshot-matched public typography and card rhythm */
.page-home,
.page-sub {
  color: #07152b;
  font-family:
    Inter, "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", Arial, sans-serif;
}

.page-home {
  background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 56%, #f8fafc 100%);
}

.page-sub {
  background: #fff;
}

.page-home main {
  width: 100%;
  padding: 0;
}

.home-hero {
  min-height: 720px;
  padding: 96px 20px 84px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #f1f7ff 0%, #f9fcff 100%);
  box-shadow: none;
}

.home-kicker {
  margin-bottom: 16px;
  color: #2563eb;
  font-size: 16px;
  font-weight: 700;
}

.home-hero h1 {
  color: #111827;
  font-size: clamp(52px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1;
}

.home-copy {
  width: min(720px, calc(100% - 32px));
  margin-top: 24px;
  color: #334155;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
}

.home-search {
  width: min(670px, calc(100% - 32px));
  margin-top: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.home-search input {
  height: 58px;
  padding: 0 24px;
  color: #111827;
  font-size: 17px;
}

.home-search input::placeholder {
  color: #9aa4b5;
}

.home-search button {
  min-height: 58px;
  padding: 0 30px;
  border-radius: 0 6px 6px 0;
  background: #2563eb;
  font-size: 16px;
  font-weight: 700;
}

.home-actions {
  margin-top: 32px;
  gap: 16px;
}

.home-actions .button {
  min-height: 50px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 700;
}

.home-actions .button.primary {
  background: #2563eb;
}

.home-stats {
  width: min(900px, calc(100% - 32px));
  gap: 24px;
  margin-top: 64px;
}

.home-stats div {
  min-height: 112px;
  padding: 24px 18px;
  border: 1px solid #eef2f7;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
}

.home-stats strong {
  color: #2563eb;
  font-size: 34px;
  font-weight: 800;
}

.home-stats span {
  margin-top: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 400;
}

.home-entry-grid {
  width: min(100%, 100%);
  gap: 24px;
  margin: 0;
  padding: 48px 20px;
  background: #f8fafc;
}

.home-entry-card {
  min-height: 184px;
  padding: 32px;
  border: 1px solid #edf1f6;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.home-entry-card strong {
  color: #07152b;
  font-size: 22px;
  font-weight: 800;
}

.home-entry-card small {
  color: #475569;
  font-size: 16px;
  font-weight: 400;
}

.page-shell {
  width: min(100% - 40px, 1780px);
  padding: 30px 0 80px;
}

.page-title {
  padding: 0 0 34px;
}

.page-title h1 {
  color: #06152d;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
}

.page-title p {
  margin-top: 8px;
  color: #334155;
  font-size: 18px;
}

.page-panel,
.page-card {
  border: 1px solid #eef2f7;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.09);
}

.page-panel {
  padding: 30px;
}

.page-panel h2 {
  color: #06152d;
  font-size: 30px;
  font-weight: 800;
}

.page-panel > p {
  color: #334155;
  font-size: 18px;
  line-height: 1.7;
}

.page-db-form .form-grid {
  gap: 16px 20px;
}

.page-db-form label span {
  color: #0f1f38;
  font-size: 16px;
  font-weight: 700;
}

.page-db-form input {
  min-height: 50px;
  border-color: #cbd5e1;
  color: #0f172a;
  font-size: 18px;
}

.page-db-form input::placeholder {
  color: #97a1b3;
}

.page-filters {
  gap: 10px;
  margin-bottom: 46px;
}

.page-filters button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #f1f3f7;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
}

.page-filters button.active {
  background: #2563eb;
  color: #fff;
}

.service-filter-row button.active {
  background: #9333ea;
}

.article-list-page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-list-page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.article-list-page .page-card,
.service-list-page .page-card {
  min-height: 174px;
  padding: 26px;
}

.service-list-page .page-card {
  display: block;
}

.service-list-page .service-thumb {
  width: 100%;
  margin-bottom: 18px;
}

.tag {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  background: #dbeafe;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.service-tag {
  background: #f3e8ff;
  color: #9333ea;
}

.stars {
  display: inline-flex;
  gap: 1px;
  align-items: center;
  color: inherit;
  font-size: 14px;
  line-height: 1;
}

.star.filled {
  color: #f6a800;
}

.star.empty {
  color: #d6dde8;
}

.article-list-page h3,
.service-list-page h3 {
  margin-top: 14px;
  color: #06152d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.card-summary,
.service-list-page p {
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.card-meta {
  justify-content: flex-start;
  gap: 20px;
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 400;
}

.app-footer {
  width: 100%;
  margin-top: 0;
  padding: 38px 20px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.footer-grid {
  width: min(100% - 0px, 1780px);
  margin: 0 auto;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.app-footer h2 {
  color: #06152d;
  font-size: 20px;
  font-weight: 800;
}

.app-footer p,
.app-footer a {
  color: #334155;
  font-size: 15px;
  font-weight: 400;
}

.app-footer section:first-child h2 {
  color: #2563eb;
}

.footer-qr-grid {
  grid-template-columns: repeat(3, 96px);
}

.footer-bottom {
  width: min(100%, 1780px);
  margin: 34px auto 0;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .service-list-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-hero {
    min-height: 0;
    padding: 56px 12px;
  }

  .home-stats,
  .home-entry-grid,
  .article-list-page,
  .service-list-page,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-entry-grid {
    padding: 24px 12px;
  }

  .page-shell {
    width: min(100% - 24px, 1780px);
    padding-top: 24px;
  }
}

/* Compact service cards and three-column footer */
.service-list-page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-list-page .service-card.page-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  min-height: 182px;
  align-items: stretch;
  padding: 18px;
}

.service-list-page .service-card.no-thumb {
  grid-template-columns: 1fr;
}

.service-list-page .service-thumb {
  width: 168px;
  aspect-ratio: 1 / 1;
  margin: 0;
}

.service-list-page .service-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.service-list-page h3 {
  margin-top: 12px;
  font-size: 19px;
}

.service-list-page p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.service-list-page .card-meta {
  margin-top: auto;
  padding-top: 16px;
}

.footer-grid {
  grid-template-columns: minmax(260px, 1.15fr) minmax(180px, 0.7fr) minmax(330px, 1fr);
  align-items: start;
}

.footer-contact {
  margin-top: 28px;
}

.footer-contact h3 {
  margin: 0 0 10px;
  color: #06152d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.footer-qr-grid {
  grid-template-columns: repeat(3, 104px);
  justify-content: start;
}

.footer-qr-grid img {
  width: 92px;
  height: 92px;
}

@media (max-width: 1180px) {
  .service-list-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .service-list-page .service-card.page-card {
    grid-template-columns: 1fr;
  }

  .service-list-page .service-thumb {
    width: min(220px, 100%);
  }

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

/* Slightly inset footer content from the left edge */
.app-footer {
  padding-left: clamp(36px, 4.5vw, 84px);
  padding-right: 24px;
}

.footer-grid,
.footer-bottom {
  width: min(100%, 1780px);
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 760px) {
  .app-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}
