:root {
  --bg: #f4efe7;
  --bg-alt: #fbf8f3;
  --ink: #151d2b;
  --ink-soft: #4f5b71;
  --line: rgba(21, 29, 43, 0.12);
  --blue: #1a4f9a;
  --blue-deep: #0b2f63;
  --teal: #1d9dc7;
  --gold: #c69a4a;
  --white: #ffffff;
  --shadow: 0 30px 70px rgba(11, 25, 49, 0.12);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(29, 157, 199, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(26, 79, 154, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f4ee 0%, #f5f0e8 100%);
}

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

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

.site-shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 244, 238, 0.72);
  border-bottom: 1px solid rgba(11, 47, 99, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-text em {
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(11, 47, 99, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-stage {
  position: relative;
  min-height: calc(100vh - 96px);
  overflow: hidden;
  background: #e7edf3;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-family: "STZhongsong", "Songti SC", "Source Han Serif SC", "Noto Serif SC",
    "STSong", serif;
  font-size: clamp(3rem, 4.4vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.02;
  color: var(--blue-deep);
  text-wrap: balance;
}

.hero-intro,
.section-body p,
.focus-card p,
.case-card p,
.contact-copy p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.hero-intro {
  max-width: 30rem;
  margin: 10px 0 0;
  font-size: 0.96rem;
  line-height: 1.95;
  color: rgba(11, 47, 99, 0.72);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 18px 36px rgba(26, 79, 154, 0.2);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(11, 47, 99, 0.12);
}

.contact-item span,
.case-tag,
.about-highlight span,
.about-insight span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 28%, rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  filter: saturate(1.02) contrast(0.98) brightness(1.04);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: calc(100vh - 96px);
}

.hero-copy {
  display: grid;
  justify-items: end;
  gap: 14px;
  width: min(34rem, 100%);
  padding: 0;
  text-align: right;
}

.hero-kicker {
  margin: 0;
  color: rgba(11, 47, 99, 0.62);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-subline {
  margin: 0;
  color: rgba(11, 47, 99, 0.84);
  letter-spacing: 0.02em;
  font-size: 1.06rem;
  font-weight: 500;
}

.hero-rule {
  width: 138px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(198, 154, 74, 0.08) 100%);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 0;
  max-width: 100%;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(11, 47, 99, 0.72);
  white-space: nowrap;
}

.hero-tags span + span::before {
  content: "";
  width: 1px;
  height: 11px;
  margin: 0 14px;
  background: rgba(11, 47, 99, 0.16);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  margin: 0;
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(11, 47, 99, 0.44);
}

.section {
  padding: 104px 0;
}

.section-compact {
  padding: 84px 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.64)),
    var(--bg-alt);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 42px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 44px;
  align-items: stretch;
}

.about-copy {
  display: grid;
  gap: 0;
}

.section-about {
  background:
    radial-gradient(circle at 92% 14%, rgba(29, 157, 199, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82));
}

.about-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

.about-copy p:first-of-type {
  font-size: 1.08rem;
  line-height: 1.95;
  color: rgba(11, 47, 99, 0.84);
}

.about-copy p {
  color: var(--ink-soft);
  line-height: 1.95;
  margin: 0;
}

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

.about-visual {
  position: relative;
  display: flex;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #dbe5ef;
}

.about-image {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.92) contrast(1.02) brightness(0.96);
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.focus-grid,
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.focus-card,
.case-card,
.contact-card {
  padding: 28px;
  min-height: 228px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(11, 47, 99, 0.08);
  box-shadow: var(--shadow);
}

.focus-card span {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.focus-card h3,
.case-card h3 {
  margin: 18px 0 12px;
  font-size: 1.28rem;
}

.case-card {
  display: flex;
  flex-direction: column;
}

.case-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 74px;
  margin-bottom: 16px;
  padding: 10px 0 6px;
}

.case-logo-wrap-wide {
  min-height: 86px;
}

.case-logo {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.case-logo-square {
  width: 62px;
  height: 62px;
  border-radius: 18px;
}

.case-logo-wide {
  width: 240px;
  max-width: 100%;
}

.case-card-featured {
  background:
    linear-gradient(150deg, rgba(29, 157, 199, 0.14), rgba(255, 255, 255, 0.8)),
    rgba(255, 255, 255, 0.82);
}

.case-card ul {
  margin: auto 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.cases-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.case-wall-card {
  min-width: 0;
}

.case-wall-button {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  min-height: 184px;
  padding: 14px 10px 12px;
  border: 1px solid rgba(11, 47, 99, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.case-wall-button:hover,
.case-wall-button:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(26, 79, 154, 0.18);
  box-shadow: 0 24px 48px rgba(11, 25, 49, 0.12);
}

.case-wall-logo {
  width: 100%;
  max-width: 188px;
  height: 92px;
  object-fit: contain;
  object-position: center center;
}

.case-wall-logo-wide {
  max-width: 214px;
  height: 72px;
}

.case-wall-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: 0.02em;
  text-align: center;
}

.case-detail-content {
  display: none;
}

.case-modal[hidden] {
  display: none;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.case-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 34, 0.44);
  backdrop-filter: blur(8px);
}

.case-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  margin: 30px auto;
  padding: 34px 34px 30px;
  overflow: auto;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 36px 80px rgba(7, 18, 34, 0.2);
}

.case-modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 47, 99, 0.08);
  color: var(--blue-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.case-modal-body {
  margin-top: 6px;
}

.case-modal-body .case-detail-content {
  display: grid;
  gap: 18px;
}

.case-detail-logo {
  width: min(240px, 100%);
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.case-detail-logo-wide {
  width: min(320px, 100%);
  height: 82px;
}

.case-modal-body h3 {
  margin: 0;
  font-size: 1.8rem;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  color: var(--blue-deep);
}

.case-modal-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.95;
  font-size: 1rem;
}

.milestones {
  position: relative;
  margin-top: 46px;
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.milestone-line {
  position: absolute;
  top: 75px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(26, 79, 154, 0.32), rgba(29, 157, 199, 0.44));
}

.milestone-item {
  position: relative;
  padding-top: 118px;
  text-align: center;
}

.milestone-item::before {
  content: "";
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 8px rgba(29, 157, 199, 0.08);
}

.milestone-item span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 47, 99, 0.08);
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.milestone-item h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.milestone-item p {
  margin: 0 auto;
  max-width: 18rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.contact-section {
  background: #fbf8f3;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: start;
}

.contact-map {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  border: 1px solid rgba(11, 47, 99, 0.08);
  box-shadow: var(--shadow);
  background: #dde3ee;
}

.contact-map-image {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: contain;
  object-position: center center;
  background: #dde3ee;
}

.contact-side {
  display: grid;
  gap: 26px;
  padding-top: 10px;
}

.contact-copy h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.contact-card {
  display: grid;
  gap: 22px;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.contact-item {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(11, 47, 99, 0.12);
}

.contact-item strong {
  display: block;
  margin-top: 10px;
  font-size: 1.04rem;
  line-height: 1.8;
}

.contact-qr {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-top: 8px;
}

.contact-qr-image {
  width: 188px;
  height: 188px;
  object-fit: contain;
  border: 1px solid rgba(11, 47, 99, 0.08);
  background: #fff;
  padding: 10px;
}

.contact-qr p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer {
  padding: 26px 0 38px;
  color: var(--ink-soft);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(11, 47, 99, 0.08);
  padding-top: 26px;
}

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

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

@media (max-width: 1080px) {
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .focus-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .cases-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-layout {
    gap: 28px;
  }

  .about-visual,
  .about-image {
    min-height: 420px;
  }

  .milestones {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 4px;
  }

  .milestone-line {
    top: 22px;
    bottom: 18px;
    left: 10px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .milestone-item {
    padding-left: 42px;
    padding-top: 0;
    text-align: left;
  }

  .milestone-item::before {
    top: 50px;
    left: 0;
    transform: none;
  }

  .milestone-item span {
    position: static;
    transform: none;
    margin-bottom: 16px;
  }

  .milestone-item h3 {
    margin: 0 0 10px;
  }

  .milestone-item p {
    max-width: none;
    margin: 0;
  }

  .hero-stage {
    min-height: 760px;
  }

  .hero-inner {
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0;
  }

  .hero-copy {
    justify-items: end;
    width: min(24rem, 100%);
    text-align: right;
  }

  .hero-tags {
    justify-content: flex-end;
  }

  .contact-map {
    min-height: 420px;
  }

  .contact-map-image {
    height: 420px;
  }
}

@media (max-width: 760px) {
  .site-header {
    background: rgba(248, 244, 238, 0.9);
  }

  .nav-wrap {
    min-height: 78px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    width: min(280px, calc(100vw - 40px));
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(11, 47, 99, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero {
    padding-top: 44px;
  }

  .section {
    padding: 76px 0;
  }

  .hero h1 {
    max-width: none;
  }

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

  .button {
    width: 100%;
  }

  .hero-stage {
    min-height: 620px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .hero-inner {
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0;
  }

  .hero-copy {
    gap: 10px;
    width: min(18rem, 76vw);
  }

  .hero-rule {
    width: 122px;
  }

  .hero-subline {
    font-size: 0.92rem;
  }

  .hero-tags {
    gap: 8px 12px;
  }

  .hero-tags span {
    font-size: 0.72rem;
  }

  .hero-tags span + span::before {
    margin: 0 10px;
  }

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

  .case-wall-button {
    min-height: 140px;
    padding: 12px 8px 10px;
    border-radius: 18px;
  }

  .case-wall-logo {
    max-width: 138px;
    height: 62px;
  }

  .case-wall-logo-wide {
    max-width: 154px;
    height: 52px;
  }

  .case-wall-name {
    font-size: 0.86rem;
  }

  .case-modal-dialog {
    width: min(100vw - 24px, 720px);
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    padding: 24px 20px 22px;
    border-radius: 24px;
  }

  .focus-card,
  .case-card,
  .contact-card {
    padding: 24px;
  }

  .contact-map {
    min-height: 320px;
  }

  .contact-map-image {
    height: 320px;
  }

  .contact-qr-image {
    width: 164px;
    height: 164px;
  }
}
