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

:root {
  --primary-color: #0037ff;
  --primary-light: #4d74ff;
  --text-color: #1e1e1e;
  --bg-light: #f7f9fc;
  --bg-dark: #1e1e1e;
  --spacing-unit: 20px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
}

.nav-separator {
  color: #ddd;
  font-weight: 300;
}

/* Hero Section */
.hero {
  position: relative;
  background: url('../images/tech/particles-5392771_1920.jpg') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding-top: 80px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 var(--spacing-unit);
}

.hero h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 auto 20px;
}

html[lang="zh"] .hero h1 {
  font-size: 3.2em;
  line-height: 1.3;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Intro Section */
.intro-section {
  padding: 120px 0;
  background: #fff;
}

.intro-title {
  font-size: 3.6em;
  line-height: 1.1;
  color: var(--primary-color);
  text-align: left;
  margin-bottom: 60px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.intro-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-content {
  padding-right: 40px;
}

.intro-content p {
  font-size: 1.25em;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.intro-buttons {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}

.intro-buttons .cta-button,
.intro-buttons .cta-button-outline {
  text-decoration: none;
  padding: 14px 28px;
  font-size: 15px;
  letter-spacing: 0.3px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  text-align: center;
  font-weight: 500;
}

.intro-buttons .cta-button {
  background: var(--primary-color);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 55, 255, 0.2);
}

.intro-buttons .cta-button:hover {
  background: #002cd4;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 55, 255, 0.25);
}

.intro-buttons .cta-button-outline {
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  background: transparent;
  transition: all 0.3s ease;
}

.intro-buttons .cta-button-outline:hover {
  background: rgba(0, 55, 255, 0.05);
  transform: translateY(-2px);
  border-color: #002cd4;
  color: #002cd4;
}

.intro-image {
  position: relative;
}

.intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Technology Section */
.tech-section {
  background: #fff;
  padding: 40px 0;
  overflow: hidden;
}

.tech-section .container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 20px;
}

.tech-headline h2 {
  font-size: 3.6em;
  line-height: 1.1;
  color: var(--primary-color);
  text-align: left;
  margin-bottom: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tech-intro {
  padding-top: 10px;
}

.tech-intro p {
  font-size: 1.25em;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.tech-details {
  display: flex;
  align-items: stretch;
  background: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.tech-details:last-child {
  margin-bottom: 0;
}

.tech-details .tech-content {
  flex: 1.5;
  padding: 30px;
}

.tech-details h3 {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tech-details p {
  font-size: 1.15em;
  line-height: 1.7;
  color: #555;
}

.tech-image {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-image img {
  width: 70% !important;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Publications Section */
.publications-section {
  padding: 120px 0 80px;
  background: white;
}

.publications-section .section-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 60px;
  text-align: left;
}

.publications-list {
  max-width: 800px;
  margin: 0 auto;
}

.publication-card {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.publication-year {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--primary-color);
  min-width: 80px;
}

.publication-content h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--text-color);
  line-height: 1.5;
}

.publication-new {
  display: inline-block;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
  background-size: 200% 100%;
  -webkit-background-size: 200% 100%;
  color: white;
  font-size: 0.5em;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  -webkit-animation: rainbow 3s linear infinite;
  -moz-animation: rainbow 3s linear infinite;
  -o-animation: rainbow 3s linear infinite;
  animation: rainbow 3s linear infinite;
  position: relative;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  margin-left: 10px;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.publication-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
  background-size: 200% 100%;
  -webkit-background-size: 200% 100%;
  border-radius: 4px;
  -webkit-animation: rainbow 3s linear infinite;
  -moz-animation: rainbow 3s linear infinite;
  -o-animation: rainbow 3s linear infinite;
  animation: rainbow 3s linear infinite;
  z-index: -1;
  -webkit-filter: blur(4px);
  filter: blur(4px);
  opacity: 0.6;
}

@-webkit-keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@-moz-keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@-o-keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.publication-content .authors {
  color: #666;
  margin-bottom: 5px;
}

.publication-content .journal {
  color: #888;
  font-style: italic;
  margin-bottom: 10px;
}

.publication-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9em;
}

.publication-link:hover {
  text-decoration: underline;
}

/* Products Section */
.products-section {
  background: var(--bg-light);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.product-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  margin-bottom: 30px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f9fa;
  padding: 20px;
}

.product-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.specs-list {
  list-style: none;
  margin-bottom: 25px;
}

.specs-list li {
  margin-bottom: 12px;
  color: #444;
  font-size: 1.1em;
  position: relative;
  padding-left: 24px;
}

.specs-list li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 1.4em;
  line-height: 1;
}

.applications h4 {
  font-size: 1.2em;
  color: #111;
  margin-bottom: 12px;
  font-weight: 600;
}

.applications p {
  color: #555;
  line-height: 1.6;
  font-size: 1.1em;
}

/* Partners Section */
.partners-section {
  background: #fff;
  padding: 60px 0;
  overflow: hidden;
}

.partners-slider {
  width: 100%;
  overflow: hidden;
  margin: 40px 0;
}

.partners-track {
  display: flex;
  gap: 60px;
  animation: scroll 25s linear infinite; /* Changed from 40s to 20s for 2x speed */
}

.partners-track img {
  height: 100px; /* Larger logo size */
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.partners-track img:hover {
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Alternating section backgrounds */
.section {
  padding: 80px 0;
}

section:nth-of-type(odd) {
  background-color: #f5f5f5;
}

section:nth-of-type(even) {
  background-color: #fff;
}

/* Technology section layout */
.tech-section .container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.tech-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.tech-headline h2 {
  font-size: 2.8em;
  line-height: 1.2;
  color: var(--primary-color);
  text-align: left;
  margin-bottom: 0;
}

.tech-intro p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
}

.tech-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.tech-details .tech-content {
  padding-right: 20px;
}

.tech-details h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.tech-details p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
}

.tech-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}

.partners-intro {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto 40px;
  font-size: 1.1em;
  color: #444;
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  background: var(--bg-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-content p {
  font-size: 1.1em;
  color: #444;
}

.contact-info {
  margin-top: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input, textarea {
  padding: 15px;
  border: 1px solid #ddd;
  font-size: 1em;
  transition: border-color 0.3s ease;
  background: white;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: #aaa;
  padding: 30px 0;
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

footer p {
  margin: 0;
}

footer .icp {
  font-size: 0.9em;
  color: #888;
}

footer .icp a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .icp a:hover {
  color: #aaa;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8em;
  }
  
  .section-title {
    font-size: 2em;
  }
  
  .intro-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .intro-content {
    padding-right: 0;
  }
  
  .intro-title {
    font-size: 3em;
  }
  
  .tech-overview {
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .tech-details {
    margin-bottom: 20px;
  }
  
  .tech-details .tech-content {
    padding: 30px;
  }
  
  .tech-image img {
    width: 50% !important;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  html[lang="zh"] .hero h1 {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
  }
  
  .hero h1 {
    font-size: 2.4em;
    line-height: 1.3;
    margin-bottom: 20px;
  }
  
  html[lang="zh"] .hero h1 {
    font-size: 1.8em;
    line-height: 1.4;
    letter-spacing: 0.5px;
    max-width: 90%;
    margin: 0 auto 20px;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .publication-card {
    flex-direction: column;
    gap: 15px;
  }
  
  .tech-section {
    padding: 80px 0;
  }
  
  .tech-headline h2 {
    font-size: 2.4em;
  }
  
  .tech-details .tech-content {
    padding: 40px;
  }
  
  .tech-image {
    height: 300px;
  }
  
  .intro-section {
    padding: 80px 0;
  }
  
  .intro-title {
    font-size: 2.4em;
  }
  
  .intro-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .product-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    margin: 0 -15px;
    padding: 20px 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .product-cards::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .product-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    margin-right: 15px;
  }

  .product-card:last-child {
    margin-right: 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-text {
    order: 1;
  }

  .about-image {
    order: 2;
  }

  .partners-track img {
    height: 40px;
  }

  .partners-track {
    gap: 30px;
  }

  .contact-form {
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .container {
    padding: 0 15px;
    overflow-x: hidden;
  }

  .tech-details {
    display: flex !important;
    flex-direction: column !important;
  }

  .tech-details .tech-content {
    width: 100%;
    padding: 30px;
    order: 1;
  }

  .tech-details .tech-image {
    width: 100%;
    padding: 0 20px 30px 20px;
    order: 2;
  }

  .tech-details .tech-image img {
    width: 100% !important;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .tech-overview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tech-headline h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
  }
}

@media (min-width: 769px) {
  .product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .partners-track img {
    height: 100px;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  nav a {
    text-align: center;
    padding: 10px;
  }

  .nav-separator {
    display: none;
  }

  .cta-button-small {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding: 0 15px;
  }

  .product-image {
    height: 180px;
  }

  .tech-details .tech-content {
    padding: 30px;
  }

  .tech-details h3 {
    font-size: 1.8em;
  }

  .tech-details p {
    font-size: 1.1em;
  }

  html[lang="zh"] .hero h1 {
    font-size: 1.6em;
    line-height: 1.4;
    letter-spacing: 0.5px;
    padding: 0 10px;
  }
}

.cta-button-small {
  background: var(--primary-color);
  color: white !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta-button-small:hover {
  background: #002cd4;
  transform: translateY(-1px);
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #002cd4;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1000;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  position: absolute;
  transition: all 0.3s ease;
}

.menu-toggle span:first-child {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span:last-child {
  bottom: 0;
}

.menu-toggle.active span:first-child {
  transform: translateY(11px) rotate(45deg);
}

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

.menu-toggle.active span:last-child {
  transform: translateY(-11px) rotate(-45deg);
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  .header {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.98);
  }

  .nav {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 16px;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .nav-menu .cta-button-small {
    margin-top: 20px;
    text-align: center;
  }

  body.menu-open {
    overflow: hidden;
  }

  .logo {
    margin: 0;
  }

  .logo-img {
    height: 28px;
  }

  .hero {
    min-height: 100vh;
    padding-top: 60px;
  }
}

.language-switcher {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-left: 20px;
}

.language-switcher:hover {
  background: var(--primary-color);
  color: white;
}

a {
  text-decoration: none;
}
