/* 众卉传媒 — 商业 · 教育 · 平台 · 数字文化 */

:root {
  --navy: #1e3a5f;
  --navy-light: #2c5282;
  --teal: #3d8b9e;
  --gold: #b8922e;
  --text: #1a2332;
  --text-muted: #5c6b7a;
  --bg: #f0f3f8;
  --surface: #ffffff;
  --border: #d4dde8;
  --shadow: 0 8px 28px rgba(30, 58, 95, 0.08);
  --radius: 12px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --header-h: 68px;
  --section-pad: clamp(3rem, 6vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
}

a:hover {
  color: var(--navy-light);
}

.wrap {
  width: min(1040px, calc(100% - 2.5rem));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--navy);
}

.nav-cta {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  background: var(--navy);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--navy-light);
  color: #fff !important;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

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

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

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

/* Hero */
.hero {
  padding: calc(var(--header-h) + 2.5rem) 0 var(--section-pad);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr min(420px, 42%);
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.hero-desc {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--border);
}

.btn-secondary:hover {
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

.section-tag {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
}

.section-lead {
  margin: 0.65rem 0 0;
  max-width: 36em;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.about-main p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about-main p:last-child {
  margin-bottom: 0;
}

.about-main strong {
  color: var(--navy);
  font-weight: 600;
}

.about-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-highlights li {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hl-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.hl-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Services */
.services {
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-item {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.service-icon {
  margin-bottom: 0.85rem;
}

.service-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.service-tagline {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}

.service-item p:last-child {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Why */
.why {
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.why-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.why-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-box {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--navy);
  color: #e8eff7;
  border-radius: var(--radius);
}

.contact-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: #fff;
}

.contact-box > p {
  margin: 0 auto 1.5rem;
  max-width: 32em;
  font-size: 0.95rem;
  opacity: 0.9;
}

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

.contact-box .btn-primary:hover {
  background: #e8eff7;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--navy);
  color: rgba(232, 239, 247, 0.75);
  text-align: center;
  font-size: 0.86rem;
}

.footer-inner p {
  margin: 0.3rem 0;
}

.footer-beian a {
  color: #a8c4e0;
  text-decoration: none;
}

.footer-beian a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Reveal */
.reveal-ready .reveal-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-ready .reveal-in.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-media {
    max-width: 400px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .menu-btn {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border: none;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready .reveal-in {
    opacity: 1;
    transform: none;
  }
}
