:root {
  --bg: #050505;
  --panel: #111111;
  --panel-soft: #181818;
  --ink: #f5f2eb;
  --muted: #a9a39a;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #c6a45d;
  --red: #b94131;
  --white: #ffffff;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 5, 5, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(100% - 40px, var(--max));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand span {
  margin-top: -2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.btn.primary {
  border-color: var(--gold);
  color: #090909;
  background: var(--gold);
}

.btn.text {
  min-height: auto;
  border: 0;
  padding: 0;
  color: var(--gold);
  background: transparent;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img,
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video {
  position: relative;
  z-index: 1;
}

.hero-media::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.7)),
    linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.18) 42%, rgba(5, 5, 5, 0.35) 100%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.62);
}

.hero-content {
  padding: 150px 0 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.page-title {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  color: rgba(245, 242, 235, 0.78);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  margin-top: 58px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric {
  padding: 18px;
  background: rgba(10, 10, 10, 0.76);
}

.metric strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: #0b0b0b;
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.section-head p {
  max-width: 530px;
  margin-bottom: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.card.pad {
  padding: 28px;
}

.card p,
.feature p,
.case-card p,
.timeline p,
.contact-panel p {
  color: var(--muted);
}

.service-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card .number {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.feature {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.media-block {
  min-height: 460px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-copy {
  align-self: center;
  padding: clamp(30px, 5vw, 64px);
}

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

.case-card {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.case-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.06);
  transform: scale(1.02);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.08) 70%);
}

.case-card:hover img {
  filter: saturate(0.95) contrast(1.08);
  transform: scale(1.06);
}

.case-copy {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.video-btn {
  margin-top: 10px;
}

.more-cases {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.more-cases p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.more-cases a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.more-cases a:hover {
  text-decoration: underline;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(0, 0, 0, 0.36);
  font-size: 12px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: #090909;
  border-color: var(--gold);
  background: var(--gold);
}

.timeline {
  counter-reset: step;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.timeline-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 22px;
  padding: 26px;
  background: var(--panel);
}

.timeline-item::before {
  content: "0" counter(step);
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.page-hero {
  position: relative;
  min-height: 58vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.page-hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-content {
  padding: 150px 0 72px;
}

.page-hero .page-title {
  max-width: 980px;
  color: rgba(255, 255, 255, 0.96);
}

.page-hero .lead {
  max-width: 760px;
  color: rgba(245, 242, 235, 0.82);
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

.about-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}

.about-intro h2 {
  max-width: 620px;
}

.about-copy {
  display: grid;
  gap: 28px;
}

.about-lead {
  margin-bottom: 0;
  color: rgba(245, 242, 235, 0.72);
  font-size: 21px;
  line-height: 1.75;
}

.about-points {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.about-points div {
  display: grid;
  grid-template-columns: 58px 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  background: var(--panel);
}

.about-points span {
  color: var(--gold);
  font-weight: 800;
}

.about-points h3,
.about-points p {
  margin: 0;
}

.about-points p {
  color: var(--muted);
}

.rich-text p {
  color: var(--muted);
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.client-strip span {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--panel);
  text-align: center;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.contact-panel > div {
  padding: clamp(28px, 5vw, 52px);
  background: var(--panel);
}

.contact-heading {
  max-width: none;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  white-space: nowrap;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.wechat-block {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin: 22px 0 6px;
}

.wechat-block strong {
  color: var(--white);
}

.wechat-block span {
  color: var(--muted);
}

.wechat-qr {
  width: min(100%, 210px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-list strong {
  display: block;
  color: var(--white);
}

.contact-list span {
  color: var(--muted);
}

.cta-band {
  padding: 78px 0;
  background:
    linear-gradient(90deg, rgba(198, 164, 93, 0.16), transparent),
    #0d0d0d;
}

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

.cta-inner p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
  background: #050505;
}

.footer-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(5, 5, 5, 0.76);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.video-dialog {
  width: min(100% - 36px, 980px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  background: #080808;
  box-shadow: var(--shadow);
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
}

.video-dialog-inner {
  overflow: hidden;
}

.video-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.video-dialog-head h2 {
  margin: 0;
  font-size: 20px;
}

.video-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.video-frame-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-wrap {
    height: 68px;
  }

  .main-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    padding: 22px 20px 28px;
    background: rgba(5, 5, 5, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .main-nav.open {
    display: grid;
    gap: 12px;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .page-hero-content {
    padding-top: 120px;
  }

  .hero-metrics,
  .grid.three,
  .grid.two,
  .case-grid,
  .media-block,
  .about-intro,
  .split,
  .contact-panel,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .section-head,
  .cta-inner,
  .footer-inner {
    display: grid;
  }

  .media-block {
    min-height: 0;
  }

  .media-block img {
    min-height: 280px;
  }

  .case-card {
    min-height: 360px;
    aspect-ratio: auto;
    width: 100%;
  }

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

@media (max-width: 560px) {
  .nav-wrap,
  .container,
  .hero-content,
  .page-hero-content,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .section {
    padding: 68px 0;
  }

  h1,
  .page-title {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.14;
  }

  .hero-metrics {
    margin-top: 36px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-points div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-heading {
    white-space: normal;
  }

  .client-strip {
    grid-template-columns: 1fr;
  }
}
