/*
 * Haiou Chat — site styles
 * ----------------------------------------------------------------------------
 * Single stylesheet, organized into the sections below. Search for a banner
 * (e.g. "= Header & navigation =") to jump to a section.
 *
 *   1. Design tokens          variables, :root
 *   2. Base & reset           element defaults
 *   3. Layout                 shell, container
 *   4. Header & navigation    site header, nav, menu toggle
 *   5. Buttons                button variants
 *   6. Hero (home)            home hero, download buttons, floating cards
 *   7. Sections & cards       shared section + card components
 *   8. Home components        screen gallery, news grid
 *   9. Inner pages            page hero, about, security, contact
 *  10. Footer
 *  11. Responsive             media queries
 *  12. Blog & content         post list, single entry, pagination, search
 *  13. Utilities              accessibility helpers
 * ----------------------------------------------------------------------------
 */

/* = 1. Design tokens = */
:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-muted: #eef3fb;
  --text: #13233f;
  --text-soft: #5d6b84;
  --line: rgba(19, 35, 63, 0.1);
  --primary: #1f5eff;
  --primary-deep: #163ea8;
  --accent: #7cc7ff;
  --success: #0ea5a4;
  --shadow: 0 28px 72px rgba(24, 54, 120, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1440px;
}

/* = 2. Base & reset = */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 199, 255, 0.3), transparent 32%),
    linear-gradient(180deg, #f7faff 0%, #f3f6fb 100%);
}

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

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

/* = 3. Layout = */
.site-shell {
  min-height: 100vh;
}

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

/* = 4. Header & navigation = */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(247, 250, 255, 0.82);
  border-bottom: 1px solid rgba(19, 35, 63, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-deep);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dce8ff, #f5f8ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--primary);
  background: rgba(31, 94, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* = 5. Buttons = */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4a89ff);
  box-shadow: 0 16px 32px rgba(31, 94, 255, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(19, 35, 63, 0.08);
}

/* = 6. Hero (home) = */
.hero {
  padding: 32px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(620px, 1.06fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(31, 94, 255, 0.08);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.hero h1,
.page-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero p,
.page-hero p,
.section-intro,
.feature-card p,
.info-card p,
.support-card p,
.contact-card p,
.timeline-card p,
.legal-note {
  color: var(--text-soft);
}

.hero-copy {
  font-size: 18px;
  line-height: 1.88;
  max-width: 680px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  max-width: 680px;
}

@media (max-width: 640px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
}

.download-button {
  justify-content: flex-start;
  width: 100%;
  min-height: 86px;
  padding: 16px 18px;
  border-radius: 8px;
  gap: 14px;
  background: linear-gradient(145deg, #1f5eff, #4b86ff);
}

.download-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.download-button__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.download-button__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.download-button__eyebrow {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.82;
}

.download-button__label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mini-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #d14e4e;
}

.hero-visual {
  position: relative;
  min-height: 760px;
  padding: 36px 28px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(225, 236, 255, 0.95), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 199, 255, 0.5), transparent 72%);
}

.hero-main-image {
  width: min(100%, 700px);
  margin: 64px auto 0;
}

.float-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 15px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px rgba(27, 55, 118, 0.16);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-deep);
}

.float-card img {
  width: 22px;
  height: 22px;
}

.float-a {
  top: 15%;
  left: 2%;
}

.float-b {
  top: 12%;
  right: 2%;
}

.float-c {
  right: 10%;
  bottom: 14%;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 35, 63, 0.08);
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 600;
}

.hero-point::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* = 7. Sections & cards = */
.feature-card,
.info-card,
.support-card,
.contact-card,
.timeline-card,
.gallery-card,
.download-panel,
.culture-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.section {
  position: relative;
  padding: 82px 0;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 48px, var(--container));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(19, 35, 63, 0), rgba(19, 35, 63, 0.08), rgba(19, 35, 63, 0));
}

.section--tight {
  padding: 44px 0;
}

.section--tight::before,
.section--hero-link::before {
  display: none;
}

.section--alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(232, 240, 252, 0.58));
}

.section--alt::after {
  content: "";
  position: absolute;
  inset: 20px 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(124, 199, 255, 0.12), transparent 22%),
    radial-gradient(circle at 88% 70%, rgba(31, 94, 255, 0.08), transparent 18%);
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-stack {
  width: 100%;
  padding: 42px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 250, 255, 0.92));
  border: 1px solid rgba(19, 35, 63, 0.08);
  box-shadow: 0 18px 50px rgba(22, 52, 116, 0.08);
}

.section-stack--clear {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
}

.section-header h2 + .section-intro {
  margin-top: 14px;
}

.section-intro {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.9;
}

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

.feature-card {
  min-height: 320px;
  padding: 34px 30px;
  border-radius: var(--radius-xl);
}

.feature-card img {
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
}

.feature-card h3,
.info-card h3,
.support-card h3,
.contact-card h3,
.timeline-card h3,
.culture-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.feature-card p,
.info-card p,
.support-card p,
.contact-card p,
.timeline-card p,
.culture-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.gallery-card,
.download-panel {
  border-radius: 24px;
  overflow: hidden;
}

.gallery-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 244, 255, 0.92));
}

.gallery-card img {
  width: 100%;
  border-radius: 22px;
}

.download-panel {
  padding: 22px;
}

.download-grid,
.info-grid,
.support-grid,
.culture-grid,
.timeline-grid {
  display: grid;
  gap: 20px;
}

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

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

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

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

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

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

.download-card,
.info-card,
.support-card,
.culture-card,
.contact-card,
.timeline-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.download-card {
  background: linear-gradient(180deg, #f5f8ff, #ffffff);
  border: 1px solid rgba(19, 35, 63, 0.08);
}

.download-card--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 360px;
  text-align: center;
}

.download-card.is-featured {
  background: linear-gradient(160deg, #edf4ff, #ffffff 65%);
  position: relative;
  overflow: hidden;
}

.download-card.is-featured::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 199, 255, 0.28), transparent 72%);
}

.download-card h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.download-card small,
.download-card p {
  display: block;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.qr-image {
  width: 164px;
  height: 164px;
  margin: 24px auto 0;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(19, 35, 63, 0.08);
}

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  justify-content: center;
}

.download-actions .button {
  min-height: 42px;
  padding: 0 18px;
}

.mini-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mini-tile {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(31, 94, 255, 0.05);
  border: 1px solid rgba(19, 35, 63, 0.08);
}

.mini-tile strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--primary-deep);
}

.mini-tile p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
}

.mini-tile .button {
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 94, 255, 0.08);
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 600;
}

.chip img {
  width: 18px;
  height: 18px;
}

.support-card,
.info-card,
.timeline-card,
.contact-card,
.culture-card {
  height: 100%;
  border-radius: var(--radius-lg);
}

.support-card,
.timeline-card {
  min-height: 220px;
}

.support-card h3,
.info-card h3,
.timeline-card h3,
.contact-card h3 {
  font-size: 20px;
}

.support-card .support-link,
.feature-card .support-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 600;
  color: var(--primary);
}

/* = 8. Home components = */
.screen-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.screen-card {
  border-radius: 22px;
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f1f5ff);
  box-shadow: 0 16px 34px rgba(22, 62, 168, 0.14);
}

.screen-card img {
  width: 100%;
  border-radius: 18px;
}

.home-news-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
}

.home-news-card,
.home-news-empty {
  border: 1px solid rgba(19, 35, 63, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.home-news-card {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.home-news-card__thumb,
.home-news-card__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-news-card__body {
  padding: 22px 22px 24px;
}

.home-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 14px;
}

.home-news-card__body h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.45;
}

.home-news-card__body p,
.home-news-empty p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.home-news-empty {
  padding: 28px;
}

.home-news-empty h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

/* = 9. Inner pages (about, security, help, contact) = */
.page-hero {
  padding: 44px 0 28px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: 26px;
  align-items: center;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.summary-card {
  padding: 22px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 35, 63, 0.08);
  box-shadow: var(--shadow);
}

.summary-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-deep);
  font-size: 24px;
}

.summary-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.about-visual {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(224, 236, 255, 0.92), rgba(255, 255, 255, 0.9));
  box-shadow: var(--shadow);
}

.about-visual img {
  border-radius: 24px;
  width: 100%;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 32px;
  align-items: start;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-visual-card {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(237, 244, 255, 0.94));
  border: 1px solid rgba(19, 35, 63, 0.08);
  box-shadow: var(--shadow);
}

.contact-visual-card img {
  width: 100%;
  border-radius: 24px;
  min-height: 260px;
  object-fit: cover;
}

.cta-band {
  margin-top: 0;
  padding: 28px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #0f49d8, #2e72ff 58%, #74b8ff);
  color: #fff;
  box-shadow: 0 24px 48px rgba(31, 94, 255, 0.24);
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
}

.cta-band p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.85;
}

.cta-band .inline-actions {
  margin-top: 20px;
}

.cta-band .button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
}

.contact-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 124px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(31, 94, 255, 0.04), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(19, 35, 63, 0.06);
}

.contact-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--primary-deep);
}

.contact-item span {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  word-break: break-word;
}

.contact-section {
  padding: 36px;
}

.contact-section__header {
  margin-bottom: 26px;
}

.contact-card--primary {
  display: grid;
  gap: 26px;
  padding: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 246, 255, 0.95));
}

.contact-card__lead {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(19, 35, 63, 0.08);
}

.contact-card__lead p {
  max-width: 520px;
}

.contact-side {
  display: grid;
  gap: 26px;
  align-content: start;
}

.contact-meta-shell {
  padding: 14px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.92), rgba(234, 242, 255, 0.72));
  border: 1px solid rgba(19, 35, 63, 0.06);
  box-shadow: 0 16px 38px rgba(22, 52, 116, 0.08);
}

.contact-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-meta-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 24px 26px;
  border-radius: 22px;
}

.contact-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
}

.contact-meta-links .support-link {
  margin-top: 0;
}

/* = 10. Footer = */
.site-footer {
  margin-top: 56px;
  padding: 44px 0 52px;
  background: #0e1b33;
  color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.7fr));
  gap: 28px;
}

@media (min-width: 1440px) {
  .hero-grid {
    grid-template-columns: minmax(0, .92fr) minmax(700px, 1.08fr);
    gap: 64px;
  }

  .hero-copy,
  .section-intro {
    max-width: 820px;
  }

  .section-stack {
    padding: 46px;
  }
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p,
.footer-col a,
.footer-col p,
.legal-note {
  font-size: 14px;
  line-height: 1.9;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #fff;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 10px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.9);
}

/* = 11. Responsive = */
@media (max-width: 1080px) {
  .hero-grid,
  .page-hero-grid,
  .split-panel,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .download-grid,
  .info-grid,
  .contact-meta-grid,
  .support-grid,
  .summary-grid,
  .timeline-grid,
  .culture-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .site-header .container {
    min-height: 74px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .header-actions .button {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    margin-top: 18px;
  }

  .float-card {
    position: static;
    margin-top: 12px;
  }

  .hero-visual {
    min-height: auto;
    padding: 20px;
  }

  .screen-stack,
  .feature-grid,
  .download-grid,
  .info-grid,
  .contact-meta-grid,
  .support-grid,
  .summary-grid,
  .timeline-grid,
  .culture-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero,
  .page-hero,
  .section {
    padding: 42px 0;
  }

  .section--tight {
    padding: 28px 0;
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero-copy,
  .section-intro {
    font-size: 15px;
  }

  .feature-card,
  .download-card,
  .info-card,
  .support-card,
  .timeline-card,
  .contact-card,
  .culture-card,
  .gallery-card,
  .download-panel,
  .section-stack {
    padding: 22px 18px;
  }

  .hero-main-image {
    margin-top: 24px;
  }
}

/* = 12. Blog & content = */
.content-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.content-shell--center {
  text-align: center;
}

.post-list {
  display: grid;
  gap: 22px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.post-card__thumb,
.post-card__thumb img,
.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.post-card__body h3,
.entry-header h1 {
  margin: 0 0 12px;
}

.post-card__meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 14px;
}

.post-card__body p,
.entry-content,
.search-form label {
  color: var(--text-soft);
  line-height: 1.9;
}

.pagination,
.nav-links,
.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.nav-links .page-numbers,
.post-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(31, 94, 255, 0.08);
  color: var(--primary-deep);
}

.nav-links .current {
  background: linear-gradient(135deg, var(--primary), #4a89ff);
  color: #fff;
}

.entry-thumb {
  margin: 22px 0;
}

.entry-content img {
  border-radius: 18px;
  height: auto;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin: 0 0 18px;
}

.entry-content a {
  color: var(--primary);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.search-form label {
  flex: 1 1 320px;
}

.search-field,
.search-submit {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(19, 35, 63, 0.1);
}

.search-field {
  width: 100%;
  padding: 0 18px;
  background: #fff;
}

.search-submit {
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4a89ff);
  cursor: pointer;
}

/* = 13. Utilities = */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 840px) {
  .post-card {
    grid-template-columns: 1fr;
  }

  .home-news-grid {
    flex-direction: column;
  }
}
