:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --text-color: #1e293b;
  --text-light: #64748b;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border-color: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #475569;
  color: white;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-light {
  background-color: white;
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: var(--bg-light);
}

.site-header {
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

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

.logo img {
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3a5f 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
}

.features {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
}

.products-preview {
  padding: 80px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product-card {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  height: 200px;
  background-color: var(--bg-light);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  margin-bottom: 10px;
}

.product-info h3 a {
  color: var(--text-color);
}

.product-info h3 a:hover {
  color: var(--primary-color);
}

.product-description {
  color: var(--text-light);
  margin-bottom: 15px;
}

.section-action {
  text-align: center;
}

.cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  margin-bottom: 15px;
}

.cta p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-header {
  background-color: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

.page-description {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 10px;
}

.products-section {
  padding: 60px 0;
}

.product-specs-preview {
  list-style: none;
  margin: 15px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-specs-preview li {
  padding: 3px 0;
}

.product-detail {
  padding-bottom: 60px;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.product-content {
  padding: 40px 0;
}

.product-content .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  background-color: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 15px;
}

.main-image img {
  width: 100%;
  height: auto;
}

.thumbnail-list {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 60px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary-color);
}

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

.specs-section,
.features-section,
.download-section {
  margin-bottom: 30px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.specs-table th {
  background-color: var(--bg-light);
  font-weight: 500;
  width: 40%;
}

.features-list {
  list-style: none;
}

.features-list li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.product-description-full {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.product-description-full .content {
  max-width: 800px;
}

.downloads-section {
  padding: 60px 0;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.download-card {
  display: flex;
  gap: 20px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 25px;
  transition: var(--transition);
}

.download-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.download-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.download-info h3 {
  margin-bottom: 10px;
}

.download-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.download-btn {
  margin-top: 10px;
}

.release-notes {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius);
}

.release-notes h2 {
  margin-bottom: 20px;
}

.downloads-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.downloads-main h2 {
  margin-bottom: 30px;
}

.downloads-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.qrcode-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
}

.qrcode-card h3 {
  margin-bottom: 10px;
  color: var(--text-color);
}

.qrcode-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.qrcode-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qrcode-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.qrcode-placeholder span {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.qrcode-placeholder small {
  font-size: 0.8rem;
}

.qrcode-tip {
  font-size: 0.85rem;
  color: var(--text-light);
}

.contact-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 25px;
}

.contact-card h3 {
  margin-bottom: 15px;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.contact-card ul {
  list-style: none;
}

.contact-card li {
  padding: 8px 0;
  color: var(--text-color);
}

.site-footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h3,
.footer-links h4,
.footer-contact h4 {
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    padding: 10px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .product-content .container {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .download-card {
    flex-direction: column;
    text-align: center;
  }

  .downloads-wrapper {
    grid-template-columns: 1fr;
  }

  .downloads-sidebar {
    position: static;
    order: -1;
  }
}
