@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Noto+Sans+SC:wght@400;700&display=swap');

:root {
  --main-blue: #003B5C;
  --beige: #D6D2C4;
  --dark-blue: #202A44;
  --light-bg: #f5f5f5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
}

:lang(zh), :lang(zh-Hans) {
  line-height: 1.8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: transparent;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.header.scrolled {
  background: var(--main-blue);
  height: 70px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

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

.nav-link {
  color: white;
  position: relative;
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--beige);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Language Popup - Matches custom reference design */
.lang-popup-wrapper {
  position: relative;
  z-index: 1001;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
}

.lang-btn svg {
  transition: transform 0.25s ease;
  opacity: 0.85;
}

.lang-popup-wrapper.open .lang-btn svg {
  transform: rotate(180deg);
}

.lang-current {
  font-weight: 700;
}

.lang-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  min-width: 155px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
  overflow: hidden;
  padding: 0;
}

.lang-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #1f2c3f;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.lang-option:hover {
  background: #f7f6f3;
}

.lang-option.active {
  background: #f0ece1;
  font-weight: 700;
  color: var(--dark-blue);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1002;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2.5px;
  background: white;
  margin: 4px 0;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
  /* background-image set via inline style */
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 59, 92, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--beige);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--beige);
  color: var(--dark-blue);
  border: none;
}

.btn-primary:hover {
  background: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--beige);
  border: 2px solid var(--beige);
}

.btn-secondary:hover {
  background: rgba(214, 210, 196, 0.1);
  transform: translateY(-2px);
}

/* Stats Section - Compact & Modern Card Grid */
.stats-section {
  background: var(--dark-blue);
  color: white;
  padding: 3rem 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.stat-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(214, 210, 196, 0.16);
  border-radius: 14px;
  padding: 1.75rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(214, 210, 196, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(214, 210, 196, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--beige);
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon-wrap {
  background: var(--beige);
  color: var(--dark-blue);
  transform: scale(1.08);
}

.stat-icon-wrap svg {
  stroke: currentColor;
}

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--beige);
  line-height: 1.1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.stat-number {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.stat-suffix {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--beige);
  margin-left: 2px;
}

.stat-route, .stat-coverage {
  font-size: 1.45rem;
  letter-spacing: 0.5px;
}

.stat-route span {
  color: rgba(214, 210, 196, 0.7);
  margin: 0 4px;
}

.stat-team {
  font-size: 2.1rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  line-height: 1.35;
  margin-top: 0.2rem;
}

/* About Section */
.about-section {
  background: white;
  color: var(--dark-blue);
  padding: 5rem 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--beige);
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

/* Services Section */
.services-section {
  background: var(--main-blue);
  color: var(--beige);
  padding: 5rem 0;
}

.services-section h2 {
  color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--main-blue);
  margin-bottom: 1.5rem;
}

.service-icon svg {
  stroke: var(--main-blue);
  width: 48px;
  height: 48px;
}

.service-card h3 {
  color: var(--dark-blue);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: #555;
  font-size: 1rem;
}

/* Advantages Section */
.advantages-section {
  background: white;
  padding: 5rem 0;
}

.advantages-section h2 {
  color: var(--dark-blue);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.adv-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.adv-card:hover {
  background: rgba(0,59,92,0.02);
  transform: translateY(-4px);
}

.adv-icon {
  width: 64px;
  height: 64px;
  background: rgba(0,59,92,0.08);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.adv-card:hover .adv-icon {
  background: var(--main-blue);
}

.adv-card:hover .adv-icon svg {
  fill: white;
  stroke: white;
}

.adv-card h4 {
  font-size: 1.15rem;
  color: var(--dark-blue);
  margin-bottom: 0.8rem;
}

.adv-card p {
  font-size: 0.95rem;
  color: #666;
}

/* Process Section */
.process-section {
  background: var(--main-blue);
  color: white;
  padding: 5rem 0;
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 3rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255,255,255,0.2);
  z-index: 0;
}

.process-step {
  width: 22%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--dark-blue);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  background: white;
  transform: scale(1.15);
}

.process-step h4 {
  color: var(--beige);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.process-step p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

/* Geography Section */
.geography-section {
  background: white;
  padding: 5rem 0;
}

.geography-section h2 {
  color: var(--dark-blue);
}

.route-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.route-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2.5rem;
}

.route-point span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--main-blue);
  margin-top: 0.5rem;
}

.route-arrow {
  font-size: 2rem;
  color: var(--main-blue);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: translateX(0); }
  50% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.route-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2.5rem;
  background: var(--light-bg);
  padding: 1rem 2rem;
  border-radius: 12px;
}

.route-hub span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--main-blue);
  margin-top: 0.5rem;
}

.route-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #555;
}

/* Contact Section */
.contact-section {
  background: var(--main-blue);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.contact-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.email-link {
  color: var(--beige);
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s ease;
}

.email-link:hover {
  color: white;
  text-decoration: underline;
}

.contact-note {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  font-style: italic;
}

/* Footer */
footer {
  background: var(--dark-blue);
  color: white;
  padding: 2.5rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-info {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--beige);
}

/* Scroll To Top */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--main-blue);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

#scrollToTop.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTop:hover {
  background: var(--dark-blue);
  transform: translateY(-3px);
}

/* Scroll Animations */
.service-card, .adv-card, .process-step, .stat-item, .about-content, .route-visual {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

.service-card:nth-child(1), .adv-card:nth-child(1), .process-step:nth-child(1), .stat-item:nth-child(1) {
  transition-delay: 0.1s;
}

.service-card:nth-child(2), .adv-card:nth-child(2), .process-step:nth-child(2), .stat-item:nth-child(2) {
  transition-delay: 0.2s;
}

.service-card:nth-child(3), .adv-card:nth-child(3), .process-step:nth-child(3), .stat-item:nth-child(3) {
  transition-delay: 0.3s;
}

.adv-card:nth-child(4), .process-step:nth-child(4), .stat-item:nth-child(4) {
  transition-delay: 0.4s;
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
  }
  .process-timeline {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .process-timeline::before {
    display: none;
  }
  .process-step {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--dark-blue);
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 1000;
  }
  .nav.open {
    left: 0;
  }
  .nav-link {
    font-size: 1.2rem;
  }
  .mobile-menu-btn {
    display: flex;
    z-index: 1002;
  }
  h2 {
    font-size: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  .route-visual {
    flex-direction: column;
  }
  .about-section, .services-section, .advantages-section, .process-section, .geography-section, .contact-section {
    padding: 3rem 0;
  }
}
