/* =========================================================
   雅泉文化 · 校园文化建设一站式解决方案
   ========================================================= */

:root {
  --ink: #0a1b2c;
  --navy: #0c2c49;
  --blue: #146eb4;
  --blue-soft: #6fb4e0;
  --sky: #bfe0f4;
  --paper: #f5f2eb;
  --ice: #edf4f9;
  --white: #ffffff;
  --muted: #5e6c79;
  --line: rgba(10, 27, 44, 0.14);
  --container: min(1320px, calc(100vw - 96px));
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.lb-open,
body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 4px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(88px, 9vw, 136px) 0;
}

/* ---------- 通用标题 ---------- */

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-label > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(20, 110, 180, 0.4);
  border-radius: 50%;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.section-label::after {
  content: "";
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.section-title {
  margin-top: 22px;
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.015em;
}

.section-title em {
  font-style: normal;
  color: var(--blue);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: end;
  gap: 60px;
  margin-bottom: clamp(48px, 5vw, 72px);
}

.section-intro {
  max-width: 430px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.eyebrow-line {
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow-light {
  color: var(--sky);
}

.lead {
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.body-text {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.05;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 54px;
  padding: 0 30px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.btn svg,
.case-arrow svg,
.service-arrow svg,
.to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-solid {
  background: var(--white);
  color: var(--ink);
}

.btn-solid:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

/* ---------- 页头 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--white);
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(5, 17, 29, 0.55), rgba(5, 17, 29, 0));
}

.site-header.is-scrolled,
body.menu-open .site-header {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 48px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.brand-text small {
  font-size: 8px;
  letter-spacing: 0.24em;
  opacity: 0.62;
  line-height: 1.4;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  opacity: 0.86;
  transition: opacity 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  line-height: 1.35;
}

.header-phone span {
  font-size: 9px;
  letter-spacing: 0.18em;
  opacity: 0.6;
}

.header-phone strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.nav-toggle span:first-child {
  top: 16px;
}

.nav-toggle span:last-child {
  top: 23px;
}

body.menu-open .nav-toggle span:first-child {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}

body.menu-open .nav-toggle span:last-child {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- 移动菜单 ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px calc((100vw - var(--container)) / 2) 40px;
  background: var(--white);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    visibility 0.4s;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mobile-nav i {
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 30px;
}

.mobile-menu-foot p {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.mobile-menu-foot a {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 150px 0 210px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  animation: heroZoom 1.8s var(--ease) both;
}

.hero-shade {
  background:
    linear-gradient(0deg, rgba(5, 17, 29, 0.82) 0%, rgba(5, 17, 29, 0) 42%),
    linear-gradient(100deg, rgba(5, 17, 29, 0.94) 0%, rgba(5, 17, 29, 0.78) 42%, rgba(5, 17, 29, 0.28) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  animation: heroUp 0.9s var(--ease) 0.1s both;
}

.hero-title {
  margin: 26px 0 26px;
  font-size: clamp(42px, 6.2vw, 92px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  animation: heroUp 1s var(--ease) 0.22s both;
}

.hero-title span {
  color: var(--sky);
}

.hero-lead {
  max-width: 550px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.015em;
  animation: heroUp 1s var(--ease) 0.34s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
  animation: heroUp 1s var(--ease) 0.46s both;
}

.hero-side {
  position: absolute;
  top: 46%;
  right: 36px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  letter-spacing: 0.34em;
  writing-mode: vertical-rl;
}

.hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(0deg, rgba(5, 17, 29, 0.5), rgba(5, 17, 29, 0));
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 26px 32px 28px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.stat:last-child {
  border-right: 0;
}

.stat:nth-child(n + 2) {
  padding-left: 32px;
}

.stat-num {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.stat-num i {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.stat-label {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  letter-spacing: 0.12em;
}

@keyframes heroZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 滚动字带 ---------- */

.marquee {
  overflow: hidden;
  padding: 21px 0;
  background: #08192b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8f2f9;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-left: 34px;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}

.marquee-track span {
  font-size: 14px;
  letter-spacing: 0.14em;
}

.marquee-track b {
  width: 5px;
  height: 5px;
  background: var(--blue-soft);
  transform: rotate(45deg);
  flex-shrink: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 关于 ---------- */

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(50px, 7vw, 90px);
  align-items: start;
}

.about-copy .section-title {
  margin-bottom: 32px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.value h3 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.value h3 span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.value p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.about-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: var(--ice);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.about-media:hover img {
  transform: scale(1.035);
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 17, 29, 0.55), rgba(5, 17, 29, 0) 45%);
  pointer-events: none;
}

.about-media figcaption {
  position: absolute;
  left: 30px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

.about-badge {
  position: absolute;
  top: -28px;
  right: -28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}

.about-badge strong {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.about-badge span {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 业务板块 ---------- */

.services {
  background: var(--white);
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: clamp(50px, 6vw, 80px);
  align-items: start;
}

.service-list {
  border-bottom: 1px solid var(--line);
}

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 1.05fr 30px;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.35s var(--ease);
}

.service-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--blue);
  transform: translateY(-50%);
  transition: height 0.4s var(--ease);
}

.service-item:hover,
.service-item.is-active {
  color: var(--blue);
}

.service-item:hover::before,
.service-item.is-active::before {
  height: 62%;
}

.service-index {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: color 0.35s;
}

.service-item:hover .service-index,
.service-item.is-active .service-index {
  color: var(--blue);
}

.service-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.service-name small {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  transition: color 0.35s;
}

.service-item:hover .service-name small,
.service-item.is-active .service-name small {
  color: var(--blue-soft);
}

.service-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
  max-width: 320px;
}

.service-arrow {
  color: var(--blue);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}

.service-arrow svg {
  width: 20px;
  height: 20px;
}

.service-item:hover .service-arrow,
.service-item.is-active .service-arrow {
  opacity: 1;
  transform: none;
}

.service-thumb {
  display: none;
}

.service-preview {
  position: sticky;
  top: 118px;
}

.preview-frame {
  position: relative;
  aspect-ratio: 4 / 4.7;
  overflow: hidden;
  background: var(--ice);
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease), transform 1.2s var(--ease);
}

.preview-frame.is-fading img {
  opacity: 0.25;
  transform: scale(1.03);
}

.preview-meta {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 26px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(5, 17, 29, 0.72), rgba(5, 17, 29, 0));
}

.preview-meta > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 10px;
  flex-shrink: 0;
}

.preview-meta p {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.preview-meta em {
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

.preview-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-align: right;
}

/* ---------- 案例 ---------- */

.cases {
  background: var(--paper);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
}

.filter {
  padding: 9px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.case-card.is-hidden {
  display: none;
}

.case-featured {
  grid-column: span 2;
}

.case-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.case-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ice);
}

.case-featured .case-media {
  aspect-ratio: 16 / 9;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.case-open:hover .case-media img,
.case-open:focus-visible .case-media img {
  transform: scale(1.05);
}

.case-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.case-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.case-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.case-title em {
  color: var(--muted);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.case-arrow {
  color: var(--blue);
  opacity: 0.75;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.case-open:hover .case-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

/* ---------- 流程 ---------- */

.process {
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 44px 32px 0 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step + .step {
  padding-left: 32px;
}

.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.step + .step::before {
  left: 32px;
}

.step-num {
  display: block;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 110, 180, 0.32);
}

.step h3 {
  margin: 26px 0 14px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.step h3 em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

/* ---------- 理念 ---------- */

.manifesto {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 10vw, 150px) 0;
  background: radial-gradient(120% 130% at 78% 18%, #123c5f 0%, #0a1b2c 55%, #071522 100%);
  color: var(--white);
}

.manifesto::before {
  content: "YQ";
  position: absolute;
  right: -2vw;
  bottom: -13vw;
  color: rgba(255, 255, 255, 0.032);
  font-family: Arial, sans-serif;
  font-size: 38vw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
}

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

.manifesto blockquote {
  margin: 28px 0 56px;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.manifesto blockquote em {
  color: var(--sky);
  font-style: normal;
}

.manifesto-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.manifesto-bottom > p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
  line-height: 2.1;
}

.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  justify-content: flex-end;
}

.certs span {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.certs em {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
}

/* ---------- 联系 ---------- */

.contact {
  background: var(--ice);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(50px, 7vw, 90px);
  align-items: start;
}

.contact-copy .section-title {
  margin-bottom: 26px;
}

.contact-phones {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.contact-phones a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s;
}

.contact-phones a:hover {
  color: var(--blue);
}

.contact-phones span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.contact-phones strong {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.contact-address {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.contact-card {
  padding: 44px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(10, 27, 44, 0.08);
}

.contact-mark {
  width: 40px;
  height: auto;
}

.contact-card h3 {
  margin: 18px 0 26px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.contact-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  counter-reset: tag;
}

.contact-tags li {
  counter-increment: tag;
  padding: 11px 0;
  border-bottom: 1px solid rgba(10, 27, 44, 0.08);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.contact-tags li::before {
  content: "0" counter(tag);
  margin-right: 8px;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.contact-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.2em;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 76px 0 28px;
  background: #071522;
  color: rgba(255, 255, 255, 0.66);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
}

.brand-light {
  color: var(--white);
}

.brand-light .brand-mark {
  width: 46px;
}

.footer-brand > p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 2;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-nav h4 {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.footer-nav a,
.footer-nav span {
  display: block;
  margin-bottom: 11px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.34);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.to-top:hover {
  color: var(--white);
}

.to-top svg {
  width: 14px;
  height: 14px;
}

/* ---------- 灯箱 ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 90px;
  background: rgba(4, 12, 21, 0.96);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lb-figure {
  max-width: 100%;
  margin: 0;
  text-align: center;
}

.lb-figure img {
  max-width: 100%;
  max-height: 74vh;
  margin: 0 auto;
  object-fit: contain;
}

.lb-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  color: var(--white);
}

.lb-figure figcaption span {
  font-size: 17px;
  letter-spacing: 0.06em;
}

.lb-figure figcaption em {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.18em;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.lightbox button:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.lightbox button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.lb-close {
  top: 26px;
  right: 30px;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev {
  left: 26px;
}

.lb-next {
  right: 26px;
}

/* ---------- 滚动显现 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease) var(--d, 0s),
    transform 0.9s var(--ease) var(--d, 0s);
}

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

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .services-layout {
    grid-template-columns: 1fr 380px;
    gap: 50px;
  }

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

  .case-featured {
    grid-column: span 2;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    border-top: 0;
  }

  .step {
    padding: 36px 30px 36px 0;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .step:nth-child(2n) {
    border-right: 0;
    padding-left: 30px;
  }

  .step + .step {
    padding-left: 0;
  }

  .step:nth-child(2n) + .step {
    padding-left: 0;
  }

  .step::before {
    left: 0;
  }

  .step + .step::before {
    left: 0;
  }

  .step:nth-child(2n)::before {
    left: 30px;
  }

  .manifesto-bottom {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .certs {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  :root {
    --container: calc(100vw - 48px);
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 132px 0 0;
  }

  .hero-title {
    font-size: clamp(40px, 8vw, 68px);
  }

  .hero-side {
    display: none;
  }

  .hero-stats {
    position: relative;
    z-index: 2;
    margin-top: 56px;
    background: rgba(5, 17, 29, 0.35);
  }

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

  .stat {
    padding: 20px 24px 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat:nth-child(n + 2) {
    padding-left: 24px;
  }

  .stat:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }

  .stat:nth-child(n + 3) {
    border-bottom: 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-intro {
    max-width: 560px;
  }

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

  .about-media {
    max-width: 620px;
    aspect-ratio: 4 / 3.4;
  }

  .about-badge {
    top: 18px;
    right: 18px;
  }

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

  .service-preview {
    display: none;
  }

  .service-item {
    grid-template-columns: 40px 1fr 26px;
    align-items: start;
    gap: 4px 16px;
    padding: 26px 0;
  }

  .service-index {
    padding-top: 8px;
  }

  .service-name {
    font-size: 20px;
  }

  .service-desc {
    grid-column: 2 / 3;
    margin-top: 8px;
    max-width: none;
  }

  .service-arrow {
    align-self: start;
    margin-top: 8px;
    opacity: 1;
    transform: none;
  }

  .service-thumb {
    display: block;
    grid-column: 2 / 4;
    width: 100%;
    height: 168px;
    margin-top: 14px;
    object-fit: cover;
  }

  .case-grid {
    gap: 30px 22px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-card {
    max-width: 580px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .lightbox {
    padding: 80px 24px;
  }

  .lb-nav {
    top: auto;
    bottom: 26px;
    transform: none;
  }

  .lb-prev {
    left: calc(50% - 60px);
  }

  .lb-next {
    right: calc(50% - 60px);
  }

  .lb-figure img {
    max-height: 64vh;
  }

  .lb-figure figcaption {
    margin-bottom: 70px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100vw - 36px);
  }

  html {
    scroll-padding-top: 72px;
  }

  .header-inner {
    height: 72px;
  }

  .brand-mark {
    width: 40px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .header-phone {
    display: none;
  }

  .site-header.is-scrolled .brand-text,
  body.menu-open .brand-text {
    color: var(--ink);
  }

  .hero {
    padding-top: 112px;
  }

  .hero-title {
    margin: 20px 0 20px;
    font-size: clamp(34px, 9.6vw, 46px);
    line-height: 1.22;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .btn {
    height: 48px;
    padding: 0 22px;
    font-size: 13px;
  }

  .hero-stats {
    margin-top: 44px;
  }

  .stat-num {
    font-size: 28px;
  }

  .stat-label {
    font-size: 10px;
  }

  .marquee {
    padding: 17px 0;
  }

  .marquee-track span {
    font-size: 12px;
  }

  .section {
    padding: 76px 0;
  }

  .section-title {
    font-size: clamp(30px, 8.4vw, 40px);
  }

  .lead {
    font-size: 16px;
  }

  .values {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .value p {
    margin-top: 6px;
  }

  .about-badge {
    width: 88px;
    height: 88px;
  }

  .about-badge strong {
    font-size: 20px;
  }

  .about-badge span {
    font-size: 8px;
  }

  .about-media {
    aspect-ratio: 4 / 4.4;
  }

  .service-thumb {
    height: 140px;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter {
    padding: 8px 14px;
    font-size: 11px;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .case-featured {
    grid-column: span 1;
  }

  .case-featured .case-media {
    aspect-ratio: 4 / 3;
  }

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

  .step,
  .step:nth-child(2n) {
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step::before,
  .step:nth-child(2n)::before {
    left: 0;
  }

  .step:last-child {
    border-bottom: 0;
  }

  .manifesto blockquote {
    margin-bottom: 42px;
  }

  .certs {
    flex-direction: column;
    gap: 14px;
  }

  .contact-phones a {
    flex-direction: column;
    gap: 4px;
    padding: 18px 0;
  }

  .contact-phones strong {
    font-size: 26px;
  }

  .contact-card {
    padding: 28px 24px;
  }

  .contact-tags {
    gap: 0 14px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 44px;
  }

  .to-top {
    margin-top: 4px;
  }

  .lightbox {
    padding: 70px 16px;
  }

  .lb-close {
    top: 16px;
    right: 16px;
  }

  .lb-figure figcaption {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 66px;
  }
}

/* ---------- 降低动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
