:root {
  --primary-green: #009688;
  --tech-blue: #0288d1;
  --accent-gold: #ffd700;
  --text-light: #ffffff;
  --text-dark: #121212;
  --gradient-start: #121212;
  --gradient-end: #263238;
  --card-bg: rgba(0, 0, 0, 0.3);
  --card-hover-bg: rgba(10, 10, 10, 0.4);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  --chart-accent-color1: rgba(255, 215, 0, 0.8);
  --chart-accent-color2: rgba(0, 150, 136, 0.8);
  --chart-accent-color3: rgba(2, 136, 209, 0.8);
  --chart-accent-color4: rgba(156, 39, 176, 0.8);
  --chart-background: rgba(0, 0, 0, 0.5);
  --chart-grid-color: rgba(255, 255, 255, 0.2);
  --chart-text-color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  background: var(--gradient-start);
  color: var(--text-light);
  line-height: 1.6;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

/* Slide styles */
.slide {
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background: linear-gradient(
    135deg, 
    var(--gradient-start),
    var(--gradient-end)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slide content */
.slide-content {
  max-width: 1200px;
  width: 100%;
  height: 90vh;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-green) rgba(0,0,0,0.2);
}

.slide-content::-webkit-scrollbar {
  width: 8px;
}

.slide-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.slide-content::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 4px;
}

/* Headings */
h1 {
  font-size: min(4rem, 10vw);
  margin-bottom: 1rem;
}

h2 {
  font-size: min(2.2rem, 7vw);
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

h3 {
  font-size: min(1.5rem, 6vw);
  font-weight: normal;
  margin-bottom: 1rem;
}

/* Chart containers */
.chart-container {
  position: relative;
  padding: 1.5rem;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--card-border);
  height: 280px;
  margin: 1.5rem 0;
}

.chart-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-color: var(--accent-gold);
}

.chart-container:has(#investmentReturnChart) {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(10, 10, 10, 0.5));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  padding: 1.8rem;
}

.chart-container:has(#investmentReturnChart):hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#investmentReturnChart {
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
}

/* Grid layouts */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

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

.card h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: min(1.8rem, 6vw);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* List styles */
ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

li {
  padding: 0.5rem 0;
  padding-left: 1.8rem;
  position: relative;
}

li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* Icons */
.icon {
  font-size: min(3rem, 10vw);
  color: var(--accent-gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  display: inline-block;
  animation: float 4s ease-in-out infinite;
}

/* Landing page */
.landing-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(15px);
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.landing-title {
  font-size: min(6rem, 15vw);
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--accent-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGlow 2s ease-in-out infinite alternate;
  letter-spacing: 2px;
}

.landing-subtitle {
  font-size: min(2.5rem, 7vw);
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.landing-description {
  font-size: min(1.8rem, 6vw);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 800px;
}

/* Product preview */
.product-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

#ring-3d {
  width: min(300px, 80vw);
  height: min(300px, 80vw);
  position: relative;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.data-visualization {
  width: min(300px, 80vw);
  height: min(300px, 80vw);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

/* Features */
.features-container {
  padding: 1rem 0;
}

.feature-rings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-ring {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.feature-ring:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.feature-ring h3 {
  color: var(--accent-gold);
  text-align: center;
  font-size: min(2rem, 6vw);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.feature-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1rem;
}

.feature-item {
  text-align: center;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(10, 10, 10, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-color: var(--accent-gold);
}

.feature-icon {
  font-size: min(3.5rem, 10vw);
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.feature-item h4 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  font-size: min(1.4rem, 5vw);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Specs grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 45%), 1fr));
  gap: 1rem;
}

.spec-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.spec-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.spec-card h4 {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Tech showcase */
.tech-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.tech-innovation {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.tech-diagram-container {
  position: relative;
  height: 250px;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Market grid */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.market-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Stat items */
.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.stat-value {
  font-size: min(3rem, 10vw);
  font-weight: bold;
  color: var(--accent-gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.stat-value span {
  font-size: min(1.8rem, 6vw);
  margin-left: 0.3rem;
}

.stat-label {
  margin-top: 0.8rem;
  color: var(--text-light);
  font-size: min(1.2rem, 5vw);
}

/* Navigation */
.nav-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.nav-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-size: min(1.2rem, 5vw);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-green));
  transition: width 0.3s ease;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.slide-counter {
  position: fixed;
  bottom: 20px;
  left: 20px;
  color: var(--text-light);
  font-size: 14px;
  opacity: 0.8;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

/* Taiji animation */
.taiji {
  position: absolute;
  width: 300px;
  height: 300px;
  opacity: 0.2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.taiji-path {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 2;
  filter: url(#glow);
}

.circuit-path1, .circuit-path2, .circuit-path3, .circuit-path4 {
  fill: none;
  stroke: var(--tech-blue);
  stroke-width: 1;
  stroke-dasharray: 10;
  stroke-dashoffset: 0;
}

.dot1 {
  fill: var(--primary-green);
}

.dot2 {
  fill: var(--tech-blue);
}

/* Animations */
@keyframes titleGlow {
  from { text-shadow: 0 0 20px rgba(255,215,0,0.5); }
  to { text-shadow: 0 0 40px rgba(255,215,0,0.8); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

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

/* Slide-specific styles */
.final-slogan {
  font-size: min(2.5rem, 8vw);
  background: linear-gradient(45deg, var(--accent-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin: 2rem 0;
  animation: sloganPulse 3s ease-in-out infinite;
  line-height: 1.3;
}

@keyframes sloganPulse {
  0% { transform: scale(1); text-shadow: 0 0 20px rgba(255,215,0,0.5); }
  50% { transform: scale(1.05); text-shadow: 0 0 40px rgba(255,215,0,0.8); }
  100% { transform: scale(1); text-shadow: 0 0 20px rgba(255,215,0,0.5); }
}

/* Save PDF button */
.save-pdf-button {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-size: min(1.2rem, 5vw);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.save-pdf-button:hover {
  background: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slide-content {
    padding: 1.5rem;
  }
  
  .chart-container {
    height: 220px;
  }
  
  .tech-diagram-container {
    height: 200px;
  }
  
  .feature-rings, 
  .tech-showcase,
  .market-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-details {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-preview {
    flex-direction: column;
  }
}

@media (max-height: 700px) {
  .slide-content {
    max-height: 85vh;
  }
  
  h2 {
    margin-bottom: 1rem;
  }
  
  .chart-container {
    height: 180px;
    margin: 1rem 0;
  }
  
  .product-preview {
    margin-top: 1rem;
  }
  
  #ring-3d, .data-visualization {
    width: min(250px, 70vw);
    height: min(250px, 70vw);
  }
}

@media print {
  .nav-controls, .progress-bar, .slide-counter, .save-pdf-button {
    display: none !important;
  }
  
  .slide {
    opacity: 1 !important;
    position: relative !important;
    page-break-after: always;
    page-break-inside: avoid;
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    background: white !important;
    color: black !important;
  }
  
  .slide-content {
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
    background: white !important;
    color: black !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px !important;
  }
  
  body {
    overflow: visible !important;
    background: white !important;
  }
  
  .chart-container {
    page-break-inside: avoid;
    height: auto !important;
    min-height: 200px;
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
  
  canvas {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    display: block !important;
  }
  
  .card {
    background: white !important;
    color: black !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
  
  h1, h2, h3, h4, h5, h6, p, li {
    color: black !important;
    text-shadow: none !important;
  }
  
  .feature-icon, .icon, .workflow-icon {
    color: #009688 !important;
    text-shadow: none !important;
  }
  
  .taiji, .bg-animation {
    display: none !important;
  }
}

.hidden {
  display: none;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.workflow-step:hover {
  background: rgba(10, 10, 10, 0.3);
  transform: translateX(5px);
  border-color: var(--accent-gold);
}

.workflow-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.2);
  color: var(--accent-gold);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.workflow-content h4 {
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}