:root {
  --ink: #001529;
  --text: #333;
  --muted: #667085;
  --brand: #1677ff;
  --brand-soft: #eaf4ff;
  --panel: #f4f8ff;
  --line: #d9ecff;
  --footer: #001529;
  --shadow: 0 12px 30px rgba(18, 82, 160, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 16px rgba(0, 21, 41, 0.1);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1500px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

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

.nav-links a,
.text-link {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover,
.text-link:hover,
.nav-links .is-active {
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--brand-soft);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand);
  border-radius: 2px;
}

.hero {
  margin-top: 64px;
  position: relative;
  height: min(680px, calc(100vh - 64px));
  min-height: 460px;
  overflow: hidden;
  background: #071527;
}

.hero-slider,
.hero-slide {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 64px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 21, 41, 0.9), rgba(0, 21, 41, 0.62), rgba(0, 21, 41, 0.8)),
    radial-gradient(circle at 72% 38%, rgba(22, 119, 255, 0.3), transparent 34%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  width: min(520px, 62vw);
  height: min(520px, 62vw);
  right: 7vw;
  bottom: -90px;
  object-fit: contain;
  opacity: 0.18;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.4));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
  width: min(100%, 1500px);
  margin: 0 auto;
  color: #fff;
}

.hero-copy .eyebrow {
  margin: 0 0 12px;
  color: #9bd0ff;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 800;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.primary-button {
  min-height: 48px;
  padding: 0 26px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(22, 119, 255, 0.28);
}

.secondary-button {
  min-height: 38px;
  padding: 0 22px;
  color: #fff;
  background: var(--brand);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  background: #409eff;
  box-shadow: 0 12px 26px rgba(22, 119, 255, 0.24);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.slider-arrow:hover {
  background: rgba(22, 119, 255, 0.7);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s, border-radius 0.2s, background-color 0.2s;
}

.slider-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--brand);
}

.section {
  max-width: 1500px;
  margin: 0 auto;
  padding: 60px 20px;
  scroll-margin-top: 84px;
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.25;
}

.section-header p {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
  font-weight: 600;
}

.business-section,
.projects-section {
  background: #f0f5ff;
  border-radius: 12px;
}

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

.service-card,
.project-card,
.member-card,
.about-panel {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(64, 158, 255, 0.08);
}

.service-card,
.project-card,
.member-card {
  border-radius: 8px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover,
.project-card:hover,
.member-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: #91caff;
}

.service-card {
  min-height: 342px;
  padding: 38px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card h3,
.project-card h3,
.member-card h3,
.milestone-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.3;
}

.service-card p {
  flex: 1;
  margin: 0 0 26px;
  color: #666;
  font-size: 14px;
}

.icon-shell {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  color: var(--brand);
}

.icon-shell::before {
  font-size: 34px;
  line-height: 1;
}

.icon-shell[data-icon="code"]::before { content: "</>"; font-size: 24px; font-weight: 800; }
.icon-shell[data-icon="phone"]::before { content: "▯"; font-size: 46px; }
.icon-shell[data-icon="monitor"]::before { content: "▱"; font-size: 46px; }
.icon-shell[data-icon="headset"]::before { content: "☎"; }
.icon-shell[data-icon="calendar"]::before { content: "◫"; }
.icon-shell[data-icon="star"]::before { content: "★"; }
.icon-shell[data-icon="trophy"]::before { content: "♛"; }

.icon-shell.small {
  width: 58px;
  height: 58px;
  margin: 0;
  flex: 0 0 58px;
}

.icon-shell.small::before {
  font-size: 28px;
}

.about-section {
  background: #f5f9ff;
  border-radius: 12px;
}

.about-panel {
  border-radius: 8px;
  padding: 42px 48px;
}

.about-text {
  margin-bottom: 36px;
}

.about-text p {
  margin: 0 0 18px;
  color: #333;
  font-size: 16px;
}

.about-text strong {
  color: var(--brand);
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.milestone-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 20px;
  border-radius: 8px;
  background: var(--panel);
}

.milestone-card p {
  margin: 0;
  color: #666;
}

.team-window {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.team-window::-webkit-scrollbar {
  height: 0;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 24px;
  padding: 8px 0;
}

.member-card {
  min-height: 430px;
  padding: 28px 24px;
  text-align: center;
}

.member-card img {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--brand-soft);
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.15);
}

.member-position {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 700;
}

.member-card p:not(.member-position) {
  min-height: 68px;
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #91caff;
  border-radius: 5px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
}

.project-card {
  min-height: 400px;
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card img {
  width: 84px;
  height: 84px;
  margin-bottom: 20px;
  object-fit: contain;
}

.project-card p {
  flex: 1;
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
}

.project-card a {
  margin-top: 20px;
  color: var(--brand);
  font-weight: 700;
}

.project-card a:hover {
  color: #409eff;
}

.site-footer {
  margin-top: 60px;
  padding: 58px 0 26px;
  color: #fff;
  background: var(--footer);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
}

.site-footer h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 10px;
  color: #409eff;
  font-size: 20px;
}

.site-footer h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: #409eff;
}

.site-footer p,
.site-footer li,
.site-footer a,
.footer-button {
  color: #b3c1d1;
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 9px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a:hover,
.footer-button:hover {
  color: #409eff;
}

.footer-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-qrcode {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 6px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 21, 41, 0.72);
}

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

.modal-content {
  width: min(400px, 92vw);
  position: relative;
  padding: 30px 22px 24px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-soft);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
  background: var(--brand);
}

.modal-content h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 22px;
}

.modal-content p {
  margin: 14px 0 0;
  color: #666;
}

.qrcode-frame {
  padding: 10px;
  border-radius: 8px;
  background: var(--panel);
}

.qrcode-frame img {
  width: min(280px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .business-grid,
  .project-grid,
  .member-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    background: #fff;
    box-shadow: 0 14px 20px rgba(0, 21, 41, 0.08);
  }

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

  .nav-links a,
  .text-link {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
  }

  .hero {
    margin-top: 60px;
    height: 560px;
    min-height: 0;
  }

  .hero-slide {
    padding: 44px 20px 84px;
    align-items: start;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 38px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .section {
    padding: 42px 15px;
    border-radius: 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .business-grid,
  .project-grid,
  .member-list,
  .milestone-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .about-panel {
    padding: 26px 20px;
  }

  .member-card,
  .service-card,
  .project-card {
    min-height: auto;
  }

  .site-footer {
    margin-top: 0;
    padding-top: 34px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 520px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 32px;
  }

  .hero-controls {
    bottom: 20px;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
  }

  .milestone-card {
    flex-direction: column;
    text-align: center;
  }
}
