﻿:root {
  --blue-900: #0b3a63;
  --blue-700: #0f68b7;
  --blue-500: #18a0d8;
  --blue-300: #5ad0e0;
  --gray-900: #0f172a;
  --gray-600: #475569;
  --gray-200: #e2e8f0;
  --bg: #f7fbff;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow-soft: 0 20px 60px rgba(15, 58, 89, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--gray-900);
  line-height: 1.6;
}

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

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

.hero {
  background: radial-gradient(circle at top left, #55d8ff 0%, #1a7cc5 45%, #0b3a63 100%);
  color: #fff;
  padding: 2rem clamp(1rem, 4vw, 4rem) clamp(4rem, 8vw, 6rem);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 20% 10% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(6px);
  pointer-events: none;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: 64px;
  height: 64px;
}

.brand-cn {
  font-weight: 600;
  margin: 0;
}

.brand-en {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-weight: 500;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.primary,
.ghost {
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary {
  background: linear-gradient(120deg, #47e6ff, #18a0d8);
  color: #0b3a63;
  box-shadow: 0 10px 30px rgba(8, 162, 203, 0.4);
}

.primary:hover,
.primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(8, 162, 203, 0.35);
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: inherit;
}

.ghost:hover,
.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

.hero-copy p {
  margin-top: 0;
}

.eyebrow {
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.75rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.stats strong {
  display: block;
  font-size: 2rem;
  color: #fff;
}

.stats span {
  color: rgba(255, 255, 255, 0.7);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-card.secondary {
  background: rgba(255, 255, 255, 0.18);
}

.badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  margin-top: 1rem;
  font-weight: 600;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

main {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 5vw, 5rem) 4rem;
}

.section {
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.section-title h2 {
  margin: 0 0 0.75rem;
}

.section-title p {
  max-width: 640px;
}

.about-grid,
.service-grid,
.culture-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.about-grid article,
.service-grid article,
.culture-grid article,
.case-cards article,
.solution-list article,
.process-flow > div {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(10, 44, 90, 0.06);
  border: 1px solid var(--gray-200);
}

.service-grid ul,
.panel-card ul,
.contact-card ul {
  padding-left: 1.25rem;
  margin: 1rem 0 0;
}

.service-grid li,
.panel-card li,
.contact-card li {
  margin-bottom: 0.35rem;
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.solution-list span,
.process-flow span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(14, 124, 197, 0.1);
  color: var(--blue-700);
  margin-bottom: 0.75rem;
}

.case-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.case-cards article {
  position: relative;
}

.tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--blue-500);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

input,
textarea {
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--blue-500);
  border-color: transparent;
}

.footer {
  padding: 2rem clamp(1rem, 5vw, 4rem);
  background: #051b2f;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer img {
  width: 56px;
}

.contact-popover {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
  width: 260px;
  border: 1px solid var(--gray-200);
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--blue-700);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: none;
}

.back-to-top.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

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

@media (max-width: 900px) {
  .hero {
    padding-top: 1.5rem;
  }

  .nav-controls {
    position: absolute;
    top: calc(100% + 1rem);
    left: clamp(1rem, 6vw, 2.5rem);
    right: clamp(1rem, 6vw, 2.5rem);
    background: rgba(2, 22, 41, 0.95);
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px rgba(5, 18, 40, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-controls.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-controls .primary {
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .contact-popover,
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    left: auto;
  }
}
