:root {
  --ink: #151719;
  --muted: #6f7479;
  --paper: #f7f3ec;
  --paper-soft: #fffaf2;
  --panel: rgba(255, 255, 255, 0.68);
  --line: rgba(21, 23, 25, 0.12);
  --blue: #5168e8;
  --blue-soft: #edf0ff;
  --warm: #c9774c;
  --shadow: 0 24px 80px rgba(70, 56, 38, 0.12);
  --carousel-transition: 1400ms cubic-bezier(0.2, 0.75, 0.16, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 6%, rgba(81, 104, 232, 0.15), transparent 34vw),
    radial-gradient(circle at 10% 32%, rgba(201, 119, 76, 0.14), transparent 28vw),
    linear-gradient(180deg, #fffaf2 0%, var(--paper) 42%, #eee4d8 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

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

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

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: #4456c9;
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 236, 0.84);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  gap: 1px;
  font-weight: 800;
}

.brand-mark span {
  font-size: 18px;
}

.brand-mark small,
.nav-links,
.badge,
.eyebrow,
.service-icon,
.service-cards small,
.text-link {
  font-size: 12px;
  text-transform: uppercase;
}

.brand-mark small,
.eyebrow,
.section-heading p,
.hero-lead,
.service-cards p,
.about-copy p,
.contact-panel {
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.nav-pill,
.button-primary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 20px;
}

.nav-pill,
.button-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(81, 104, 232, 0.24);
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.hero {
  display: grid;
  place-items: center;
  min-height: 690px;
  padding: 88px 24px 112px;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0 0 34px;
  border: 1px solid rgba(81, 104, 232, 0.22);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--blue);
  background: rgba(237, 240, 255, 0.78);
  font-weight: 800;
}

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

h1 {
  margin-bottom: 24px;
  font-size: 78px;
  line-height: 1.05;
  letter-spacing: 0;
}

.page-title {
  margin-bottom: 18px;
  font-size: 64px;
}

h1 span {
  display: block;
  color: var(--blue);
}

.hero-lead {
  max-width: 760px;
  margin: 0 auto 38px;
  font-size: 20px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-weight: 800;
}

.section {
  padding: 92px 48px;
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 48px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 38px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(260px, 0.3fr);
  gap: 48px;
  align-items: end;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.section-heading h2,
.about-copy h2,
.contact-section h2 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.18;
}

.section-heading p {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.8;
}

.section-heading.split p {
  margin-right: 0;
  margin-left: 0;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-cards article {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 900;
}

.service-cards h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.service-cards p {
  min-height: 78px;
  line-height: 1.75;
}

.service-cards small {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  color: #4456c9;
  background: var(--blue-soft);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  color: #4456c9;
  background: var(--blue-soft);
  font-weight: 900;
}

.service-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 1180px;
  margin: 34px auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 22px 70px rgba(70, 56, 38, 0.08);
  overflow: hidden;
}

.proof-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 18px;
  text-align: center;
}

.proof-item + .proof-item {
  border-left: 1px solid var(--line);
}

.proof-item strong {
  color: var(--blue);
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}

.proof-item span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.carousel-section {
  overflow: hidden;
  padding-right: 0;
  padding-left: 0;
}

.carousel-shell {
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: 0 12px;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.carousel-item,
.portfolio-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 48px rgba(70, 56, 38, 0.1);
}

.carousel-item {
  aspect-ratio: 1 / 1;
  animation: fadeUp 320ms ease both;
}

.portfolio-item img {
  opacity: 1;
  transition: transform 420ms ease;
}

.carousel-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  will-change: opacity, transform, filter;
  transition:
    opacity var(--carousel-transition),
    transform var(--carousel-transition),
    filter var(--carousel-transition);
}

.carousel-next-image {
  opacity: 0;
  transform: scale(0.992);
  filter: saturate(0.98) brightness(1.01);
}

.carousel-item.is-changing .carousel-current-image {
  opacity: 0;
  transform: scale(1.008);
  filter: saturate(0.98) brightness(1);
}

.carousel-item.is-changing .carousel-next-image {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1) brightness(1);
}

.carousel-item:hover img,
.portfolio-item:hover img {
  transform: scale(1.035);
}

.portfolio-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.faq-section {
  max-width: 1180px;
  margin: 0 auto;
}

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

.faq-list article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 56px rgba(70, 56, 38, 0.08);
}

.faq-list h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}

.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 56px;
  align-items: center;
  max-width: 1180px;
  min-height: 680px;
  margin: 0 auto;
  padding: 96px 48px 72px;
}

.service-hero h1 {
  margin-bottom: 22px;
}

.service-hero .hero-lead {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.service-hero .hero-actions {
  justify-content: flex-start;
}

.service-hero-image {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 0.86;
  box-shadow: var(--shadow);
}

.service-detail-section {
  padding-top: 56px;
}

.service-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-points li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  font-weight: 800;
}

.filter-button.is-active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.portfolio-item {
  aspect-ratio: 1 / 1;
}

.portfolio-page {
  padding-top: 120px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.54fr);
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.about-copy p {
  font-size: 17px;
  line-height: 1.9;
}

.about-image {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 0.9;
  box-shadow: var(--shadow);
}

.contact-section {
  max-width: 1180px;
  margin: 64px auto 96px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 54px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.contact-section h2 {
  max-width: 760px;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.contact-panel > * {
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .site-header {
    padding: 12px 22px;
  }

  .hero {
    min-height: 580px;
  }

  h1 {
    font-size: 56px;
  }

  .service-cards,
  .service-proof,
  .carousel-track,
  .portfolio-grid,
  .contact-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-item:nth-child(odd) {
    border-left: 0;
  }

  .proof-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section-heading.split,
  .about-section,
  .service-hero {
    grid-template-columns: 1fr;
  }

  .service-hero {
    min-height: auto;
    padding-top: 76px;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .portfolio-item:nth-child(n) {
    grid-column: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .brand-mark small {
    display: none;
  }

  .nav-links {
    gap: 10px;
    font-size: 11px;
  }

  .nav-pill {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 78px 18px 84px;
  }

  h1 {
    font-size: 40px;
  }

  .page-title {
    font-size: 38px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .section {
    padding: 66px 18px;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-section h2 {
    font-size: 32px;
  }

  .service-cards,
  .service-proof,
  .portfolio-grid,
  .contact-panel,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .service-proof {
    margin-top: 20px;
  }

  .proof-item {
    padding: 24px 18px;
  }

  .proof-item + .proof-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proof-item strong {
    font-size: 32px;
  }

  .service-hero {
    padding: 64px 18px 42px;
  }

  .service-hero .hero-actions {
    flex-direction: column;
  }

  .service-hero-image {
    min-height: 360px;
  }

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

  .carousel-item:nth-child(n) {
    aspect-ratio: 1 / 1;
    transform: none;
  }

  .carousel-shell {
    padding: 0 10px;
  }

  .contact-section {
    margin: 32px 18px 72px;
    padding: 28px;
  }
}
