:root {
  /* Tech Dark Theme */
  --c-bg: #050b14;
  --c-bg-card: #0f1623;
  --c-text: #f5f5f7;
  --c-text-secondary: #94a3b8;
  --c-accent: #3b82f6;
  --c-accent-glow: rgba(59, 130, 246, 0.5);
  --c-success: #10b981;

  /* Spacing */
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 40px;
  --space-xl: 80px;
  --space-xxl: 120px;

  /* Radius */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;

  /* Container */
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.justify-between {
  justify-content: space-between;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 100;
  background: rgba(5, 11, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.nav-logo img {
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--c-text-secondary);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-accent);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.section_1 {
  width: 100%;
  height: 100vh;
  /* Removed static background */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Push to bottom */
  align-items: flex-start; /* Push to left */
  padding-left: 10%;
  padding-bottom: 80px;
  overflow: hidden; /* Ensure background doesn't overflow on scale */
}

/* Dynamic Background for R&D */
.section_1::before {
  content: "";
  position: absolute;
  inset: -5%;
  background: url(../assets/科学研究大图.jpg) no-repeat center center;
  background-size: cover;
  z-index: 0;
  opacity: 0;
  animation: heroBgFadeIn 1.5s ease-out forwards, heroBgDrift 60s ease-in-out infinite alternate;
  will-change: transform, opacity;
  filter: brightness(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, #050b14 100%), linear-gradient(to top, #050b14 0%, transparent 50%);
  z-index: 1; /* Overlay on top of bg */
}

@keyframes heroBgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroBgDrift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.05) translate3d(-1%, -1%, 0); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.image_1 {
  width: 120px;
  margin-bottom: 30px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.text_2 {
  font-family: "PingFang SC", sans-serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

.paragraph_1 {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 18px;
  margin-bottom: 40px;
}

.text-wrapper_1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background: #fff;
  color: #000;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  border: 1px solid #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.text-wrapper_1:hover {
  background: transparent;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes heroEntry {
  0% {
    opacity: 0;
    transform: translateY(40px); /* Slide Up */
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-animate {
  opacity: 0;
  animation: heroEntry 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Features Section */
.section_features {
  padding: 100px 0;
  background: transparent;
  position: relative;
  z-index: 10;
}

.feature-sticky {
  position: relative;
  width: 100%;
}

.feature-steps {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  padding: 0 24px;
}

.feature-steps-header h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}

.feature-steps-header p {
  font-size: 18px;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

.feature-steps-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--c-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--c-accent);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-icon-img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.feature-card h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--c-text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

/* Carousel Section */
.section_2 {
  padding: 100px 0;
  background: transparent;
}

.text-group_1 {
  text-align: center;
  margin-bottom: 60px;
}

.text_3 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 20px;
}

.paragraph_2 {
  font-size: 18px;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

.hb-carousel-section {
  width: 1000px;
  max-width: 90%;
  margin: 0 auto;
  background: var(--c-bg-card);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hb-carousel {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.hb-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.05);
}

.hb-carousel img.active {
  opacity: 1;
  transform: scale(1);
}

.hb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.hb-nav:hover {
  background: #fff;
  color: #000;
}

.hb-prev { left: 20px; }
.hb-next { right: 20px; }

.hb-info-box {
  padding: 40px;
  text-align: center;
  background: rgba(15, 22, 35, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hb-info-title {
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
}

.hb-info-desc {
  color: var(--c-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* Section 3 */
.section_3 {
  padding: 100px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 24px;
}

.section_3_text {
  flex: 1;
}

.section_3_text h2 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 24px;
}

.section_3_text p {
  color: var(--c-text-secondary);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.section_3_img {
  flex: 1;
  max-width: 50%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-accent);
  font-weight: 600;
  cursor: pointer;
}

.explore-link .line {
  width: 40px;
  height: 2px;
  background: var(--c-accent);
  transition: width 0.3s;
}

.explore-link:hover .line {
  width: 60px;
}

/* Patents Section */
.section_patents {
  padding: 100px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.patents-header {
  text-align: center;
  margin-bottom: 60px;
}

.patents-header h2 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 16px;
}

.patents-header p {
  font-size: 18px;
  color: var(--c-text-secondary);
}

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

.patent-card {
  background: var(--c-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s;
}

.patent-card:hover {
  transform: translateY(-5px);
  border-color: var(--c-accent);
}

.patent-media {
  height: 200px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.patent-media img {
  max-height: 80%;
  filter: brightness(0.8);
}

.patent-body {
  padding: 30px;
}

.patent-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--c-accent);
  background: rgba(59, 130, 246, 0.1);
  margin-bottom: 16px;
}

.patent-body h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.patent-body p {
  color: var(--c-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Timeline/Data Section */
.timeline-spacer {
  height: auto;
  background: #000;
  padding: 100px 0;
}

.timeline-sticky {
  position: relative;
  height: auto;
}

.timeline-track {
  display: flex;
  flex-direction: column;
  gap: 120px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.t-slide {
  width: 100%;
}

.slide-intro {
  background: transparent;
  text-align: center;
}

.hero-text-large {
  font-size: 80px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.hero-text-sub {
  font-size: 24px;
  color: var(--c-text-secondary);
}

.scroll-hint {
  display: none;
}

.slide-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: transparent;
  align-items: center;
}

.split-left, .split-right {
  position: relative;
}

.dark-bg {
  background: var(--c-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 60px;
}

.big-stat {
  font-size: 100px;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 20px;
}

.split-inner h3 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 16px;
}

.split-inner p {
  font-size: 18px;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

.cover-img {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.slide-history {
  background: transparent;
  text-align: center;
}

.history-title {
  font-size: 60px;
  color: #fff;
  margin-bottom: 80px;
}

.history-track {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.history-track::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.history-item {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0 20px;
}

.h-year {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.h-dot {
  width: 20px;
  height: 20px;
  background: var(--c-bg);
  border: 4px solid var(--c-accent);
  border-radius: 50%;
  margin: 0 auto 30px;
}

.h-content h4 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}

.h-content p {
  font-size: 16px;
  color: var(--c-text-secondary);
}

/* Footer Styles */
.footer {
  background: #020408;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 40px;
  color: var(--c-text-secondary);
  font-size: 14px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    padding: 40px;
  }

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

  .nav-links a {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .section_1 {
    padding-left: 20px;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }
  
  .text_2 {
    font-size: 40px;
  }

  .feature-steps {
    grid-template-columns: 1fr;
  }

  .feature-steps-cards {
    grid-template-columns: 1fr;
  }

  .section_3 {
    flex-direction: column;
  }
  
  .section_3_img {
    max-width: 100%;
  }

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

  .timeline-track {
    gap: 60px;
  }
  
  .slide-split {
    grid-template-columns: 1fr;
  }
  
  .history-track {
    flex-direction: column;
    gap: 40px;
  }
  
  .history-track::before {
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  
  .h-dot {
    margin: 0 0 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}
/* Footer Compliance Styles */
.footer-compliance {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 12px;
}

.fc-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

@media (min-width: 768px) {
  .footer-compliance {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Cooperation Gallery */
.coop-gallery-wrapper {
  margin-top: 80px;
  text-align: center;
}

.coop-title {
  font-size: 28px;
  color: #fff;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.coop-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--c-accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

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

.coop-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.coop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.8);
}

.coop-item:hover .coop-img {
  transform: scale(1.1);
  filter: brightness(1);
}

.coop-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.coop-item:hover .coop-caption {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .coop-gallery {
    grid-template-columns: 1fr;
  }
}

/* Certificate Wall Styles */
.cert-wall-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.cert-wall-title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 40px;
  opacity: 0.8;
}

/* Certificate Tabs */
.cert-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.cert-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 30px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cert-tab-btn:hover {
  border-color: var(--c-accent);
  color: #fff;
}

.cert-tab-btn.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 155, 83, 0.3);
}

.cert-marquee-container {
  width: 100%;
  position: relative;
  display: none;
  /* Hidden by default */
  padding: 20px 0;
}

.cert-marquee-container.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  animation: fadeIn 0.5s ease;
}

/* Scroll Mode (Marquee) Overrides */
.cert-marquee-container.mode-scroll {
  /* display will be set to block by JS or !important here */
  display: block !important;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow: hidden;
  padding: 40px 0; /* More space for shadow/hover */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.cert-marquee-container.mode-scroll:not(.active) {
    display: none !important;
}

.cert-marquee-container.mode-scroll .cert-marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollMarquee 60s linear infinite;
  padding-left: 30px; /* Offset for mask */
}

.cert-marquee-container.mode-scroll:hover .cert-marquee-track {
  animation-play-state: paused;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cert-item {
  width: 240px;
  height: 340px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.cert-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.cert-item:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 10;
  border-color: var(--c-accent);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.cert-item:hover::after {
  opacity: 1;
}

.cert-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
