/* NHS Medical Style Theme */
:root {
  --qt-background: #FFFFFF;
  --qt-surface: #FFFFFF;
  --qt-surface-muted: #F0F4F5;
  --qt-border: #E8EDEE;
  --qt-text: #212B32;
  --qt-text-muted: #4C6272;
  --qt-accent: #005EB8;
  --qt-accent-soft: #E8F3F7;
  --qt-radius-card: 4px;
  --qt-radius-chip: 4px;
  --qt-shell-width: 960px;
  --qt-prose-width: 760px;
  --qt-header-height: 80px;
  --qt-shadow-soft: 0 2px 8px rgba(0,94,184,0.08);
}

body.qiaomu-theme {
  background: var(--qt-background);
  color: var(--qt-text);
  font-family: Arial, Helvetica, sans-serif;
}

.qt-container {
  max-width: var(--qt-shell-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.qt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--qt-header-height);
  border-bottom: 2px solid var(--qt-border);
  background: var(--qt-background);
}

.qt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--qt-header-height);
}

.qt-brand {
  display: inline-flex;
  align-items: center;
  color: var(--qt-text);
  font-weight: bold;
  font-size: 1.25rem;
}

.qt-brand img {
  height: 48px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
}

.qt-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.qt-nav-link,
.qt-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--qt-text);
  padding: 8px 0;
  border-bottom: 4px solid transparent;
}

.qt-nav-link:hover,
.qt-dropdown-toggle:hover,
.qt-nav-link.is-active {
  color: var(--qt-accent);
  border-bottom-color: var(--qt-accent);
}

.qt-dropdown {
  position: relative;
}

.qt-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 280px;
  padding: 8px;
  border: 2px solid var(--qt-border);
  border-radius: var(--qt-radius-card);
  background: var(--qt-surface);
  box-shadow: var(--qt-shadow-soft);
  display: none;
}

.qt-dropdown-menu.is-open {
  display: block;
}

.qt-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--qt-radius-card);
  color: var(--qt-text);
  font-size: 1rem;
  font-weight: 600;
}

.qt-dropdown-item:hover {
  background: var(--qt-surface-muted);
  color: var(--qt-accent);
}

.qt-mobile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--qt-radius-card);
  color: var(--qt-text);
  background: var(--qt-surface-muted);
}

.qt-mobile-button:hover {
  background: var(--qt-accent-soft);
  color: var(--qt-accent);
}

.qt-mobile-panel {
  display: none;
  border-top: 2px solid var(--qt-border);
  padding: 16px 0 20px;
}

.qt-mobile-panel.is-open {
  display: block;
}

.qt-mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--qt-text);
  font-size: 1rem;
  font-weight: 600;
}

.qt-mobile-link.is-active,
.qt-mobile-link:hover {
  color: var(--qt-accent);
}

.qt-page {
  padding: 48px 0 80px;
}

.qt-hero,
.qt-card,
.qt-summary,
.qt-empty,
.qt-intro,
.qt-archive-panel {
  background: var(--qt-surface);
  border: 2px solid var(--qt-border);
  border-radius: var(--qt-radius-card);
  box-shadow: var(--qt-shadow-soft);
}

.qt-hero {
  padding: 40px 48px;
  margin-bottom: 40px;
}

.qt-hero__eyebrow,
.qt-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--qt-radius-chip);
  font-size: 0.875rem;
  line-height: 1;
  font-weight: bold;
  background: var(--qt-surface-muted);
  color: var(--qt-text-muted);
}

.qt-chip--accent,
.qt-hero__eyebrow {
  background: var(--qt-accent-soft);
  color: var(--qt-accent);
}

.qt-hero__title {
  margin: 24px 0 16px;
  color: var(--qt-text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: bold;
}

.qt-hero__copy {
  max-width: 62ch;
  color: var(--qt-text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.qt-section-title {
  margin: 0 0 24px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--qt-text-muted);
  font-weight: bold;
}

.qt-list {
  display: grid;
  gap: 24px;
}

.qt-card {
  padding: 32px 40px;
}

.qt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--qt-text-muted);
  font-weight: 600;
}

.qt-card__title,
.qt-card__title a {
  margin: 0 0 16px;
  color: var(--qt-text);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: bold;
}

.qt-card__title a:hover {
  color: var(--qt-accent);
}

.qt-card__excerpt {
  margin: 0 0 20px;
  color: var(--qt-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.qt-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.qt-card__link {
  color: var(--qt-accent);
  font-weight: bold;
  text-decoration: underline;
}

.qt-article {
  max-width: var(--qt-prose-width);
  margin: 0 auto;
}

.qt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--qt-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.qt-breadcrumb a:hover {
  color: var(--qt-text);
  text-decoration: underline;
}

.qt-article__title {
  margin: 24px 0 16px;
  color: var(--qt-text);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: bold;
}

.qt-article__dek {
  margin: 0 0 20px;
  color: var(--qt-text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.qt-summary {
  padding: 24px 32px;
  margin-bottom: 24px;
}

.qt-prose {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--qt-text);
}

.qt-prose p {
  margin: 0 0 1.5em;
}

.qt-prose h2,
.qt-prose h3 {
  color: var(--qt-text);
  line-height: 1.3;
  font-weight: bold;
}

.qt-prose h2 {
  margin: 2.5em 0 1em;
  font-size: 1.75rem;
}

.qt-prose h3 {
  margin: 2em 0 0.8em;
  font-size: 1.375rem;
}

.qt-prose blockquote {
  margin: 1.5em 0;
  padding-left: 24px;
  border-left: 4px solid var(--qt-accent);
  color: var(--qt-text-muted);
  font-style: italic;
}

.qt-callout {
  margin-top: 32px;
  padding: 24px 32px;
  background: var(--qt-surface);
  border: 2px solid var(--qt-border);
  border-radius: var(--qt-radius-card);
  box-shadow: var(--qt-shadow-soft);
}

.qt-callout__label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 16px;
  border-radius: var(--qt-radius-chip);
  background: var(--qt-accent-soft);
  color: var(--qt-accent);
  font-size: 0.875rem;
  font-weight: bold;
}

.qt-callout__title {
  margin: 0 0 12px;
  color: var(--qt-text);
  font-size: 1.25rem;
  font-weight: bold;
}

.qt-callout__copy {
  margin: 0 0 16px;
  color: var(--qt-text-muted);
}

.qt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--qt-radius-chip);
  background: var(--qt-accent);
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.qt-button:hover {
  background: #004A94;
}

.qt-related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--qt-border);
}

.qt-related ul {
  margin: 0;
  padding-left: 24px;
}

.qt-related li {
  margin-bottom: 12px;
  color: var(--qt-text-muted);
}

.qt-related a {
  color: var(--qt-text);
  font-weight: 600;
}

.qt-related a:hover {
  color: var(--qt-accent);
  text-decoration: underline;
}

.qt-empty,
.qt-intro,
.qt-archive-panel {
  padding: 32px 40px;
}

.qt-footer {
  margin-top: 64px;
  padding: 40px 0 80px;
  border-top: 2px solid var(--qt-border);
  color: var(--qt-text-muted);
  font-size: 0.875rem;
}

@media (min-width: 960px) {
  .qt-nav { display: flex; }
  .qt-mobile-button { display: none; }
}

@media (max-width: 959px) {
  .qt-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .qt-hero,
  .qt-card,
  .qt-empty,
  .qt-intro,
  .qt-archive-panel {
    padding: 24px 28px;
  }
}
