/* 小队云 · Design pass: cobalt + cream, asymmetric hero, bento services */

:root {
  --ink: #121826;
  --ink-muted: #5a6478;
  --surface: #f4f6f9;
  --surface-2: #e8ecf2;
  --white: #ffffff;
  --navy: #0c1f3a;
  --blue: #1296db;
  --blue-dark: #0d7ab8;
  --blue-soft: rgba(18, 150, 219, 0.1);
  --border: rgba(18, 24, 38, 0.08);
  --shadow: 0 24px 64px rgba(12, 31, 58, 0.08);
  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
  --container: 1240px;
  --radius: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* Film grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Type */
.section-head { max-width: 560px; margin-bottom: 48px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--navy);
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 48ch;
}
.section-head--center p { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(18, 150, 219, 0.28);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
}
.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--blue); }
.header-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-size: 17px; color: var(--navy); padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* Hero: asymmetric split */
.hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
  background: var(--surface);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.hero-meta {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--navy);
}
.hero-lead {
  margin-top: 22px;
  max-width: 36ch;
  font-size: 18px;
  color: var(--ink-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-frame {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(transparent, rgba(12, 31, 58, 0.75));
}

/* Manifesto */
.manifesto {
  padding: 88px 0;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.manifesto-inner { max-width: 680px; margin-inline: auto; }
.manifesto blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
}
.manifesto-inner > p {
  margin-top: 22px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
  margin-inline: auto;
}

/* Bento services */
.services {
  padding: 96px 0;
  background: var(--white);
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(220px, auto));
  gap: 14px;
}
.bento-cell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  background: var(--navy) center / cover no-repeat;
  background-image: var(--bg);
}
.bento-feature {
  grid-row: span 2;
}
.bento-wide {
  grid-column: span 2;
}
.bento-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 31, 58, 0.15) 0%, rgba(12, 31, 58, 0.88) 100%);
  transition: opacity 0.4s;
}
.bento-cell:hover .bento-shade { opacity: 0.92; }
.bento-body {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  color: var(--white);
}
.bento-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.bento-body > p {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36ch;
}
.bento-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.bento-body li {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* Process */
.process {
  padding: 96px 0;
  background: var(--surface);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.process-grid li {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}
.process-grid li:last-child { border-right: none; }
.process-grid h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 10px;
}
.process-grid p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* Advantages */
.advantages {
  padding: 96px 0;
  background: var(--white);
}
.adv-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.adv-row h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
}
.adv-row p {
  font-size: 15px;
  color: var(--ink-muted);
}

/* About */
.about {
  padding: 96px 0;
  background: var(--surface);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.about-figure {
  margin: 0;
  position: relative;
}
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-figure figcaption {
  position: absolute;
  right: -16px;
  bottom: -16px;
  background: var(--blue);
  color: var(--white);
  padding: 20px 24px;
  text-align: center;
  border-radius: 6px;
}
.about-year {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.about-figure figcaption span:last-child {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  color: var(--navy);
  margin-bottom: 20px;
}
.about-lead {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 14px;
}
.about-copy > p:not(.about-lead) {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.about-copy blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--white);
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
}
.about-copy blockquote p {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.7;
}

/* CTA */
.cta-band {
  position: relative;
  padding: 100px 0;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 31, 58, 0.82);
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: 0.04em;
}
.cta-inner p {
  margin-top: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}
.cta-inner .btn { margin-top: 28px; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  gap: 14px;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
}
.footer-brand span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom a:hover { color: var(--white); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: 0.1s; }

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

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-feature { grid-row: auto; grid-column: span 2; }
  .bento-wide { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure figcaption { right: 12px; bottom: -12px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid li:nth-child(2) { border-right: none; }
  .process-grid li { border-bottom: 1px solid var(--border); }
  .process-grid li:nth-child(3),
  .process-grid li:nth-child(4) { border-bottom: none; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-bottom: 56px; }
  .bento { grid-template-columns: 1fr; }
  .bento-feature,
  .bento-wide { grid-column: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { border-right: none; border-bottom: 1px solid var(--border); }
  .process-grid li:last-child { border-bottom: none; }
  .adv-row { grid-template-columns: 1fr; gap: 32px; }
  .services, .process, .advantages, .about { padding: 64px 0; }
  .manifesto { padding: 64px 0; }
  .cta-band { padding: 72px 0; }
  .footer-top { flex-direction: column; }
}
