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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
}

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

/* Header Styles */
.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* 添加對LOGO圖片的支持 */
.logo-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 12px;
  border-radius: 4px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #2563eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  margin-right: 12px;
}

.logo-text h1 {
  font-size: 20px;
  font-weight: bold;
  color: #111827;
}

.logo-text p {
  font-size: 12px;
  color: #6b7280;
}

.nav-desktop {
  display: flex;
  gap: 32px;
}

.nav-desktop a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: #2563eb;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher i {
  color: #6b7280;
}

.lang-switcher select {
  border: none;
  background: transparent;
  color: #374151;
  font-size: 14px;
  outline: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding: 16px 0;
}

.nav-mobile a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
}

.nav-mobile a:hover {
  color: #2563eb;
}

/* Page Styles */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  padding: 80px 0;
}

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

.hero-text h1 {
  font-size: 48px;
  font-weight: bold;
  color: #111827;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-text h1 span {
  color: #2563eb;
  display: block;
}

.hero-text p {
  font-size: 20px;
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-outline {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-outline:hover {
  background: #2563eb;
  color: white;
}

/* Product Categories */
.product-categories {
  padding: 80px 0;
  background: white;
}

.product-categories h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 48px;
  color: #111827;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.category-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card i {
  font-size: 48px;
  color: #2563eb;
  margin-bottom: 16px;
}

.category-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #111827;
}

.category-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* About Preview */
.about-preview {
  padding: 80px 0;
  background: #f9fafb;
}

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

.about-text h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #111827;
}

.about-text p {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.6;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* News Section */
.news-section {
  padding: 80px 0;
  background: white;
}

.news-section h2 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 48px;
  color: #111827;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.news-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 24px;
}

.news-date {
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
}

.news-card h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 8px 0 12px;
  color: #111827;
}

.news-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 20px;
  opacity: 0.9;
}

/* About Detail */
.about-detail {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}

.about-item h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #111827;
}

.about-item p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-item ul {
  list-style: none;
  padding-left: 0;
}

.about-item li {
  padding: 8px 0;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

/* Products Detail */
.products-detail {
  padding: 80px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.product-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.product-card i {
  font-size: 48px;
  color: #2563eb;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #111827;
}

.product-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Services Detail */
.services-detail {
  padding: 80px 0;
}

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

.service-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card i {
  font-size: 48px;
  color: #2563eb;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #111827;
}

.service-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* News Detail */
.news-detail {
  padding: 80px 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-info {
  padding: 24px;
}

.news-info .news-date {
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
}

.news-info h3 {
  font-size: 24px;
  font-weight: bold;
  margin: 8px 0 16px;
  color: #111827;
}

.news-info p {
  color: #6b7280;
  line-height: 1.6;
}

/* Contact Detail */
.contact-detail {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h2,
.contact-form h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 32px;
  color: #111827;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item i {
  font-size: 20px;
  color: #2563eb;
  margin-top: 4px;
}

.contact-item h4 {
  font-weight: bold;
  margin-bottom: 4px;
  color: #111827;
}

.contact-item p {
  color: #6b7280;
  line-height: 1.6;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #111827;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

/* Footer */
.footer {
  background: #111827;
  color: white;
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-company .logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer-company .logo-text h3 {
  font-size: 20px;
  font-weight: bold;
}

.footer-company .logo-text p {
  font-size: 12px;
  color: #9ca3af;
}

.footer-company p {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: #9ca3af;
  font-size: 20px;
  transition: color 0.3s;
}

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

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}

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

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

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact .contact-item i {
  color: #9ca3af;
  margin-top: 2px;
}

.footer-contact .contact-item span {
  color: #d1d5db;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-desktop,
  .lang-switcher {
    display: none;
  }

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

  .nav-mobile.active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

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

  .categories-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 18px;
  }

  .page-header h1 {
    font-size: 36px;
  }

  .page-header p {
    font-size: 18px;
  }

  .product-categories,
  .about-preview,
  .news-section,
  .about-detail,
  .products-detail,
  .services-detail,
  .news-detail,
  .contact-detail {
    padding: 60px 0;
  }
}
