:root {
  --cloud: #c1ebe9;
  --cream: #fff7c5;
  --orange: #f6ad4b;
  --wine: #4f252e;
  --ink: #16242b;
  --muted: #65757a;
  --line: rgba(22, 36, 43, 0.12);
  --white: #ffffff;
  --panel: rgba(255, 255, 255, 0.88);
  --shadow: 0 22px 60px rgba(79, 37, 46, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffdf3;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  color: var(--white);
  background: rgba(37, 25, 29, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  transition: background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.site-header.is-scrolled,
.site-header.compact {
  color: var(--ink);
  background: rgba(255, 253, 243, 0.94);
  box-shadow: 0 10px 32px rgba(79, 37, 46, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand strong,
.brand em {
  display: block;
  white-space: nowrap;
}

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

.brand em {
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: var(--wine);
  background: rgba(193, 235, 233, 0.72);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--wine);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(79, 37, 46, 0.92) 0%, rgba(79, 37, 46, 0.72) 38%, rgba(22, 36, 43, 0.18) 100%),
    linear-gradient(180deg, rgba(22, 36, 43, 0.08), rgba(22, 36, 43, 0.36));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 112px);
  padding-top: 76px;
}

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

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  overflow-wrap: anywhere;
  word-break: break-all;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 700;
}

.button.primary {
  color: var(--wine);
  background: var(--orange);
}

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.hero-stats {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 5vw, 72px);
  bottom: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--cream);
  font-size: 28px;
  line-height: 1;
}

.hero-stats span {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.section {
  padding: clamp(72px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 640px;
}

.section-heading.centered {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading p {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--wine);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.18;
}

.section-heading.light h2 {
  color: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
  background: linear-gradient(180deg, #fffdf3 0%, #f4fbf9 100%);
}

.about-panel {
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.about-panel p + p {
  margin-top: 18px;
}

.tinted {
  background:
    linear-gradient(135deg, rgba(193, 235, 233, 0.66), rgba(255, 247, 197, 0.78)),
    #fbfff9;
}

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

.service-card {
  min-height: 390px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(79, 37, 46, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(79, 37, 46, 0.08);
}

.service-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--cloud);
  border: 1px solid rgba(79, 37, 46, 0.12);
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  background: var(--wine);
}

.service-icon.cloud::before {
  width: 34px;
  height: 18px;
  left: 15px;
  top: 25px;
  border-radius: 18px;
  background: var(--white);
}

.service-icon.cloud::after {
  width: 18px;
  height: 18px;
  left: 24px;
  top: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: -11px 7px 0 var(--white), 12px 7px 0 var(--white);
}

.service-icon.app::before {
  inset: 13px 19px;
  border-radius: 5px;
  background: var(--white);
}

.service-icon.app::after {
  width: 12px;
  height: 2px;
  left: 26px;
  bottom: 17px;
  background: var(--orange);
}

.service-icon.shield::before {
  width: 30px;
  height: 36px;
  left: 17px;
  top: 14px;
  background: var(--white);
  clip-path: polygon(50% 0, 92% 15%, 82% 76%, 50% 100%, 18% 76%, 8% 15%);
}

.service-icon.shield::after {
  width: 15px;
  height: 8px;
  left: 25px;
  top: 28px;
  border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
  background: transparent;
}

.service-icon.chart::before {
  width: 7px;
  height: 28px;
  left: 18px;
  bottom: 15px;
  background: var(--white);
  box-shadow: 12px -8px 0 var(--white), 24px -18px 0 var(--white);
}

.service-icon.chart::after {
  width: 39px;
  height: 3px;
  left: 13px;
  bottom: 12px;
  background: var(--orange);
}

.service-card h3,
.work-grid h3,
.advantage-item h3,
.contact-card h3 {
  margin: 0;
  color: var(--wine);
  font-size: 22px;
  line-height: 1.28;
}

.service-card p,
.work-grid p,
.advantage-item p,
.contact-callout p,
.contact-card dd,
.legal-hero p,
.legal-card dd {
  color: var(--muted);
}

.service-card p {
  min-height: 78px;
  margin: 14px 0 22px;
}

.service-card ul {
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  margin: 8px 0;
  color: var(--ink);
  font-size: 14px;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.work-grid article {
  min-height: 340px;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}

.work-grid article:last-child {
  border-right: 0;
}

.work-grid span {
  display: block;
  margin-bottom: 36px;
  color: var(--orange);
  font-weight: 900;
  font-size: 34px;
}

.work-grid p {
  margin: 16px 0 0;
}

.advantage-band {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(79, 37, 46, 0.96), rgba(22, 36, 43, 0.92)),
    var(--wine);
}

.advantage-layout {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.advantage-item {
  padding: 28px;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.advantage-item strong {
  color: var(--orange);
  font-size: 18px;
}

.advantage-item h3 {
  margin-top: 28px;
  color: var(--white);
}

.advantage-item p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: linear-gradient(135deg, #fffdf3, rgba(193, 235, 233, 0.62));
}

.contact-callout h2,
.legal-hero h1 {
  margin: 0;
  color: var(--wine);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.contact-callout p:last-child {
  max-width: 640px;
  margin-top: 22px;
  font-size: 17px;
}

.contact-card,
.legal-card {
  padding: 32px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card dl,
.legal-card dl {
  margin: 24px 0 0;
}

.contact-card dl div,
.legal-card dl div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-card dt,
.legal-card dt {
  color: var(--wine);
  font-weight: 800;
}

.contact-card dd,
.legal-card dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.address-lines span {
  display: block;
}

.address-lines span + span {
  margin-top: 8px;
  color: #7a888c;
  font-size: 13px;
  line-height: 1.55;
}

.contact-card a,
.legal-card a,
.site-footer a {
  color: #2d7477;
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  padding: 34px 20px;
  color: rgba(255, 255, 255, 0.76);
  background: #25191d;
  text-align: center;
}

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

.legal-page {
  background: linear-gradient(180deg, rgba(193, 235, 233, 0.56), #fffdf3 360px);
}

.legal-main {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 86px;
}

.legal-hero {
  margin-bottom: 34px;
}

.legal-hero p:last-child {
  max-width: 720px;
  margin-top: 18px;
}

.legal-card h2 {
  margin: 0;
  color: var(--wine);
}

@media (max-width: 1040px) {
  .service-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid article:nth-child(2) {
    border-right: 0;
  }

  .work-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 68px;
  }

  .brand strong {
    font-size: 15px;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .brand em {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav:not(.static) {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    color: var(--ink);
    background: rgba(255, 253, 243, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav.static {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 90px;
  }

  .hero-stats {
    left: 20px;
    right: 20px;
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .service-grid,
  .work-grid,
  .advantage-layout {
    grid-template-columns: 1fr;
  }

  .work-grid article,
  .work-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .work-grid article:last-child {
    border-bottom: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 32px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero-content {
    margin: 0;
    padding: 118px 20px 0;
    width: 100%;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 32px;
    line-height: 1.16;
  }

  .hero-copy {
    max-width: calc(100vw - 40px);
    margin-top: 18px;
    font-size: 16px;
  }

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

  .hero-stats {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: calc(100% - 40px);
    margin: 28px auto 0;
  }
}
