/* Quantum Lab Theme - Clean Scientific Laboratory Aesthetic */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #2563eb;
  --electric-blue: #3b82f6;
  --light-blue: #dbeafe;
  --lab-white: #fefefe;
  --lab-gray: #f8fafc;
  --border-gray: #e2e8f0;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --success-green: #10b981;
  --warning-orange: #f59e0b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--lab-white);
}

/* Navigation */
.navbar {
  background: var(--lab-white);
  border-bottom: 1px solid var(--border-gray);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-blue);
  background: var(--light-blue);
}

.nav-links a.active {
  color: var(--primary-blue);
  background: var(--light-blue);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--lab-gray) 0%, var(--light-blue) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  border-radius: 24px;
  padding: 8px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-gray);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--electric-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: var(--lab-white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--lab-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  background: var(--light-blue);
  color: var(--primary-blue);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.feature-card {
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--electric-blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--primary-blue);
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-desc {
  color: var(--text-gray);
  line-height: 1.6;
}

/* Platform Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.platform-card {
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.1);
}

.platform-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--primary-blue);
}

.platform-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.platform-desc {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 16px;
}

/* Deep Features */
.deep-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.deep-feature:nth-child(even) {
  direction: rtl;
}

.deep-feature:nth-child(even) > * {
  direction: ltr;
}

.deep-content {
  padding: 32px 0;
}

.deep-badge {
  display: inline-block;
  background: var(--light-blue);
  color: var(--primary-blue);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.deep-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.deep-desc {
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 1.7;
}

.deep-visual {
  background: var(--lab-gray);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.deep-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-blue), var(--electric-blue));
  border-radius: 50%;
  opacity: 0.1;
}

/* Stats Bar */
.stats-bar {
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 32px;
  margin: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-gray);
  font-weight: 500;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.review-card {
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 12px;
}

.review-info h4 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.review-stars {
  color: var(--warning-orange);
  font-size: 14px;
}

.review-text {
  color: var(--text-gray);
  line-height: 1.6;
}

/* Comparison Table */
.comparison-table {
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 64px;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
}

.comparison-table th {
  background: var(--lab-gray);
  font-weight: 600;
  color: var(--text-dark);
}

.comparison-table .highlight {
  background: var(--light-blue);
  color: var(--primary-blue);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--lab-white);
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: var(--lab-gray);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-gray);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-gray);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  padding: 0 24px 20px;
  max-height: 200px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-blue), var(--electric-blue));
  color: white;
  text-align: center;
  padding: 64px 32px;
  border-radius: 12px;
  margin: 64px 0;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white !important;
}

.cta-desc {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
  color: white !important;
}

.btn-white {
  background: white;
  color: var(--primary-blue);
}

.btn-white:hover {
  background: var(--lab-gray);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 48px 0 24px;
  text-align: center;
}

.footer-brand {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.security-notice {
  background: var(--success-green);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.security-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.footer-text {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
}

/* Download Page Specific */
.download-hero {
  background: var(--lab-gray);
  padding: 64px 0;
  text-align: center;
}

.download-main {
  background: var(--lab-white);
  border: 2px solid var(--primary-blue);
  border-radius: 16px;
  padding: 48px;
  max-width: 500px;
  margin: 0 auto 48px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.download-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.download-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-gray);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.step-card {
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 16px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.step-desc {
  color: var(--text-gray);
  font-size: 14px;
}

/* Requirements Grid */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.requirement-card {
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 24px;
}

.requirement-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.requirement-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.requirement-desc {
  color: var(--text-gray);
  font-size: 14px;
}

/* Version Timeline */
.version-timeline {
  max-width: 600px;
  margin: 0 auto 64px;
}

.version-item {
  display: flex;
  margin-bottom: 32px;
  position: relative;
}

.version-item::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: -32px;
  width: 2px;
  background: var(--border-gray);
}

.version-item:last-child::before {
  display: none;
}

.version-dot {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  flex-shrink: 0;
}

.version-content {
  flex: 1;
  padding-top: 8px;
}

.version-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.version-tag {
  background: var(--light-blue);
  color: var(--primary-blue);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 12px;
}

.version-date {
  color: var(--text-gray);
  font-size: 14px;
}

.version-desc {
  color: var(--text-gray);
  line-height: 1.6;
}

/* Article Layout (zh-cn.html) */
.article-hero {
  background: var(--lab-gray);
  padding: 64px 0;
  text-align: center;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  color: var(--primary-blue);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--primary-blue);
  color: white;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  margin-top: 48px;
}

.article-content {
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 48px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text-dark);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-gray);
}

.article-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
  color: var(--text-gray);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--lab-white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 24px;
}

.sidebar-title {
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.sidebar-links a:hover {
  color: var(--primary-blue);
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .platform-grid {
    grid-template-columns: 1fr;
  }
  
  .deep-feature {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .deep-feature:nth-child(even) {
    direction: ltr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .article-content {
    padding: 32px 24px;
  }
  
  .download-main {
    padding: 32px 24px;
  }
  
  .guide-steps {
    grid-template-columns: 1fr;
  }
  
  .requirements-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 48px 0;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .cta-title {
    font-size: 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
