:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --green: #10b981;
  --orange: #f59e0b;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: #344054;
  font-size: 15px;
}

.nav-links a:hover {
  background: #eef2ff;
  color: var(--primary);
}

.hero {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding: 58px 0 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-description {
  max-width: 720px;
  margin: 18px 0 0;
  color: #475467;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  color: #1f2937;
  background: #fff;
  border-color: #d0d5dd;
}

.btn-secondary:hover {
  border-color: #98a2b3;
}

.section {
  padding: 58px 0;
}

.section-alt {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

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

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.image-grid,
.article-grid,
.resource-grid {
  display: grid;
  gap: 20px;
}

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

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

.image-card,
.article-card,
.resource-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-media,
.article-cover {
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.image-media img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.image-card:hover .image-media img,
.article-card:hover .article-cover img {
  transform: scale(1.04);
}

.image-body,
.article-body,
.resource-card {
  padding: 18px;
}

.image-body h3,
.article-body h3,
.resource-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.image-body p,
.article-body p,
.resource-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.article-meta,
.resource-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #667085;
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  font-weight: 700;
}

.article-actions,
.resource-actions {
  margin-top: 18px;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.text-link:hover {
  color: var(--primary-dark);
}

.resource-card {
  display: grid;
  align-content: space-between;
}

.resource-top {
  min-height: 142px;
}

.download-button {
  width: fit-content;
}

.site-footer {
  padding: 26px 0;
  background: #111827;
  color: #f9fafb;
}

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

.footer-inner p {
  margin: 4px 0 0;
  color: #cbd5e1;
}

.contact-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.contact-toggle {
  min-width: 96px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 800;
}

.contact-toggle:hover {
  background: var(--primary-dark);
}

.contact-panel {
  display: none;
  width: 280px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-widget.is-open .contact-panel {
  display: block;
}

.contact-panel h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #f2f4f7;
  color: #344054;
  word-break: break-all;
}

.contact-row:first-of-type {
  border-top: 0;
}

.contact-row span {
  color: var(--muted);
  flex: 0 0 auto;
}

.qrcode {
  margin-top: 12px;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.empty-state,
.loading-text {
  margin: 0;
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.article-page {
  padding: 48px 0 72px;
}

.article-detail {
  max-width: 900px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.article-detail h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

.article-detail .date {
  margin: 12px 0 24px;
  color: var(--muted);
}

.article-detail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 26px;
  background: #e5e7eb;
}

.article-content {
  color: #344054;
  white-space: pre-wrap;
}

.back-row {
  margin-top: 28px;
}

@media (max-width: 860px) {
  .nav-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .nav-links {
    justify-content: flex-start;
  }

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

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

  .image-grid,
  .article-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-description {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .contact-widget {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .contact-toggle,
  .contact-panel {
    width: 100%;
  }

  .article-detail {
    padding: 22px;
  }
}
