:root {
  --ink: #10212c;
  --muted: #526773;
  --blue: #0b5f93;
  --cyan: #43b9d2;
  --coral: #ef6b5a;
  --paper: #f7fbfd;
  --white: #ffffff;
  --line: rgba(16, 33, 44, 0.14);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 50px rgba(31, 83, 112, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Times New Roman", "Songti SC", SimSun, serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 4%, rgba(171, 226, 243, 0.84) 38%, rgba(255, 255, 255, 0.92) 68%, rgba(255, 213, 201, 0.48) 100%),
    linear-gradient(35deg, rgba(67, 185, 210, 0.2), rgba(255, 255, 255, 0.72) 48%, rgba(239, 107, 90, 0.16));
  background-size: 240% 240%, 180% 180%;
  animation: atmosphere 12s ease-in-out infinite alternate;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(11, 95, 147, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 95, 147, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: grid-drift 26s linear infinite;
}

@keyframes atmosphere {
  from { background-position: 0% 25%, 100% 70%; }
  to { background-position: 100% 72%, 0% 30%; }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 28px, 56px 28px; }
}

@keyframes page-enter {
  from { opacity: 0.55; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  body::after,
  main { animation: none; }
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(247, 251, 253, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

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

.brand {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.site-nav {
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav ul {
  position: relative;
  display: flex;
  align-items: center;
  min-width: max-content;
  margin: 0;
  padding: 0;
  gap: 6px;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 13px 8px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--blue);
  color: var(--ink);
}

.site-nav.has-indicator a:hover,
.site-nav.has-indicator a[aria-current="page"] {
  border-color: transparent;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  pointer-events: none;
  transition: transform 280ms ease, width 280ms ease;
}

main {
  animation: page-enter 420ms ease both;
  transition: opacity 220ms ease, transform 220ms ease;
}

body.page-leaving main {
  opacity: 0;
  transform: translateX(var(--page-exit-x, -12px));
}

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

.eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  margin-right: 10px;
  content: "";
  background: var(--coral);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: calc(88vh - 68px);
  max-height: 820px;
  padding: 54px 0 68px;
  gap: 70px;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: 4.9rem;
  line-height: 1.02;
  font-weight: 700;
}

.hero h1 span {
  display: block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 1.28rem;
  line-height: 1.4;
  font-weight: 400;
}

.hero-copy {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--blue);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--white);
}

.hero-carousel {
  position: relative;
  min-width: 0;
}

.carousel-viewport {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 500ms ease;
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.carousel-slide:hover img {
  transform: scale(1.02);
}

.carousel-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  gap: 16px;
  background: rgba(9, 28, 39, 0.86);
  color: var(--white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.carousel-caption strong {
  font-size: 1rem;
}

.carousel-caption small {
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 14px;
  gap: 14px;
}

.carousel-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-button:hover {
  border-color: var(--blue);
  background: var(--white);
}

.carousel-dots {
  display: flex;
  align-items: center;
  min-height: 38px;
  gap: 9px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 33, 44, 0.26);
  cursor: pointer;
}

.carousel-dot[aria-current="true"] {
  background: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-slide img {
    transition: none;
  }
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 0;
}

.metric {
  padding: 0 28px;
  border-right: 1px solid var(--line);
}

.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }

.metric strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1.15;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 110px 0;
}

.section.compact {
  padding: 76px 0;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-bottom: 42px;
  gap: 40px;
}

.section-header h2,
.page-hero h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.12;
}

.section-header p,
.page-hero p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.work-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 34px rgba(25, 71, 95, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card.wide { grid-column: span 6; }

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.work-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0b5f93, #68c6d8 58%, #f5d5cc);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.work-card:hover .work-cover img {
  transform: scale(1.025);
}

.work-body {
  padding: 22px;
}

.work-meta {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
}

.work-body h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.42;
}

.work-body p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.work-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

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

.capability {
  padding: 28px 0;
  border-top: 3px solid var(--blue);
}

.capability:nth-child(2) { border-color: var(--cyan); }
.capability:nth-child(3) { border-color: var(--coral); }
.capability:nth-child(4) { border-color: var(--ink); }

.capability h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.capability p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  min-height: 430px;
  padding: 100px 0 72px;
  gap: 60px;
}

.page-hero h1 {
  font-size: 4rem;
}

.page-count {
  color: var(--blue);
  font-size: 5rem;
  line-height: 0.8;
}

.group-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}

.group-header h2 {
  margin: 0;
  font-size: 1.7rem;
}

.group-header span {
  color: var(--muted);
  font-size: 0.84rem;
}

.project-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 460px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.project-visual {
  display: block;
  min-height: 360px;
  overflow: hidden;
  background: var(--blue);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
}

.project-detail h2 {
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.25;
}

.project-detail p {
  margin: 0 0 22px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 8px;
  padding: 0;
  gap: 8px 18px;
  list-style: none;
}

.tags li {
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
  color: var(--muted);
  font-size: 0.84rem;
}

.article-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.article-link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 34px rgba(25, 71, 95, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.article-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--white);
}

.article-copy {
  padding: 24px 42px 24px 24px;
}

.article-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-link .number {
  color: var(--coral);
  font-size: 0.78rem;
}

.article-link h3 {
  margin: 14px 0 9px;
  font-size: 1.28rem;
  line-height: 1.4;
}

.article-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-link .arrow {
  position: absolute;
  right: 24px;
  bottom: 22px;
  font-size: 1.4rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 76px;
}

.profile-photo {
  position: sticky;
  top: 120px;
  padding: 46px 34px 0;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(145deg, #d8f2fa, #ffffff 64%, #ffe2d8);
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.profile-intro h2 {
  margin: 0 0 24px;
  font-size: 2.4rem;
  line-height: 1.22;
}

.profile-intro > p {
  color: var(--muted);
  font-size: 1.04rem;
}

.timeline {
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  gap: 28px;
}

.timeline-item time {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 700;
}

.timeline-item h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  background: rgba(9, 28, 39, 0.96);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  padding: 74px 0 54px;
  gap: 60px;
}

.footer-main h2 {
  max-width: 650px;
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.18;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-list a:hover {
  color: #8dd8e7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 15px 0 10px;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    padding: 7px 12px 6px 0;
    margin-right: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
    padding: 54px 0 68px;
    gap: 42px;
  }

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

  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3), .metric:nth-child(4) { margin-top: 24px; }

  .section-header,
  .page-hero,
  .profile-layout,
  .project-feature,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 360px;
    padding: 72px 0 60px;
    gap: 30px;
  }

  .work-card { grid-column: span 6; }
  .project-feature { min-height: auto; }
  .project-detail { padding: 42px; }
  .profile-photo { position: static; max-width: 420px; }
  .footer-main { gap: 38px; }
}

@media (max-width: 600px) {
  .container,
  .header-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    padding: 42px 0 52px;
    gap: 32px;
  }

  .hero h1 { font-size: 3rem; }
  .hero h1 span { margin-top: 10px; font-size: 1rem; }
  .hero-copy { margin-top: 18px; font-size: 0.95rem; }
  .hero .actions { margin-top: 20px; }
  .hero .button { min-height: 42px; }

  .carousel-caption {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 15px;
    gap: 2px;
  }

  .carousel-caption small { text-align: left; }

  .section { padding: 78px 0; }
  .section.compact { padding: 60px 0; }

  .section-header h2,
  .page-hero h1 { font-size: 2.35rem; }

  .section-header { grid-template-columns: 1fr; gap: 18px; }

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

  .metric { padding: 0 14px; }
  .metric strong { font-size: 1.6rem; }

  .work-card,
  .work-card.wide { grid-column: span 12; }
  .capabilities { grid-template-columns: 1fr; gap: 4px; }

  .page-count { font-size: 4rem; }
  .group-header { align-items: flex-start; flex-direction: column; gap: 4px; }

  .project-visual { min-height: 0; aspect-ratio: 16 / 9; }
  .project-detail { padding: 30px 24px; }

  .article-list { grid-template-columns: 1fr; }
  .article-copy { padding: 22px 46px 26px 22px; }

  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-main h2 { font-size: 2rem; }
  .footer-bottom { flex-direction: column; gap: 5px; }
}
