/*
Theme Name: Meiqia Static to WordPress
Theme URI: https://example.com/
Author: OpenAI Codex
Description: Convert captured static Meiqia pages into a reusable WordPress theme structure.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: meiqia-theme
*/

:root {
  --mq-content-width: 1200px;
  --mq-text: #040f42;
  --mq-muted: #606787;
  --mq-border: #e6ebf5;
  --mq-surface: #f7f9fc;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
}

body {
  margin: 0;
  color: var(--mq-text);
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

body.admin-bar .mq-static-page header.fixed {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar .mq-static-page header.fixed {
    top: 46px !important;
  }
}

.site-main {
  min-height: 60vh;
  overflow: visible;
}

.mq-static-page {
  overflow: visible;
}

.mq-static-page img,
.mq-static-page video {
  max-width: 100%;
  height: auto;
}

.mq-entry {
  width: min(var(--mq-content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.mq-entry__title {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.mq-entry__content {
  font-size: 1rem;
  line-height: 1.8;
}

.mq-entry__content a {
  color: #1880ff;
}

.mq-list {
  width: min(var(--mq-content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.mq-list__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--mq-border);
}

.mq-list__item:last-child {
  border-bottom: 0;
}

.mq-list__item h2,
.mq-list__item h3 {
  margin: 0 0 12px;
}

.mq-list__meta {
  color: var(--mq-muted);
  font-size: 0.95rem;
}

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