/* Product Carousel Styles */
.product-carousel-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem 0;
  position: relative;
}

.product-carousel {
  background: #fff;
  margin: 1rem;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.product-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.carousel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-title::before {
  content: '\f3cd'; /* Font Awesome mobile-alt */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.2rem;
}

.carousel-buttons {
  display: flex;
  gap: 10px;
}

.carousel-buttons button {
  width: 36px;
  height: 36px;
  border: 2px solid #667eea;
  background: #fff;
  color: #667eea;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.carousel-buttons button i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.carousel-buttons button:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  border-color: transparent;
}

.carousel-buttons button:hover i {
  transform: scale(1.1);
}

.carousel-buttons button:active {
  transform: translateY(0) scale(0.95);
}

.carousel-container {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  background: transparent;
  border-radius: 12px;
}

.product-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.08);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #667eea 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.2);
}

.product-card:hover::before {
  opacity: 1;
}

/* 產品標題區樣式 */
.product-header {
  order: 1;
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #2c3e50;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 投資標籤樣式 */
.product-investment-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  z-index: 10;
}

.product-investment-tag i {
  font-size: 0.7rem;
}

.product-card:hover .product-investment-tag {
  transform: scale(1.05);
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

.product-card-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  order: 2;
}

.product-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.product-content {
  flex: 1;
  text-align: left;
}

.product-card p {
  color: #4a5568;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 400;
}

.product-buttons {
  order: 3;
  display: flex;
  gap: 8px;
}

/* 按鈕基礎樣式 */
.download-btn, .tutorial-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid;
}

/* 下載按鈕樣式 */
.download-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

/* 教學按鈕樣式 */
.tutorial-btn {
  background: transparent;
  color: #667eea;
  border-color: #667eea;
}

/* 按鈕圖標樣式 */
.download-btn i, .tutorial-btn i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

/* 下載按鈕懸停效果 */
.download-btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
  text-decoration: none;
  color: white;
}

.download-btn:hover i {
  transform: scale(1.1);
}

/* 教學按鈕懸停效果 */
.tutorial-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
  text-decoration: none;
  border-color: transparent;
}

.tutorial-btn:hover i {
  transform: scale(1.1);
}

/* 按鈕點擊效果 */
.download-btn:active, .tutorial-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.indicator:hover {
  background: rgba(102, 126, 234, 0.3);
  transform: scale(1.2);
}

.indicator.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(102, 126, 234, 0.3);
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.indicator.active::before {
  opacity: 0;
}

/* 響應式設計 */
@media (min-width: 600px) {
  .product-carousel { 
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2.5rem;
  }
  
  .product-carousel-section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .product-carousel-section {
    padding: 2rem 0;
  }

  .product-carousel {
    margin: 0.5rem;
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .carousel-title {
    font-size: 1.3rem;
  }
  
  .carousel-buttons button {
    width: 32px;
    height: 32px;
  }
  
  .carousel-buttons button i {
    font-size: 12px;
  }
  
  .product-card {
    padding: 1.2rem;
    gap: 0.8rem;
  }
  
  .product-header {
    margin-bottom: 0.75rem;
  }
  
  .product-card h3 {
    font-size: 1.2rem;
  }
  
  .product-investment-tag {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.9rem;
    padding: 0.2rem 0.7rem;
    gap: 0.25rem;
  }
  
  .product-investment-tag i {
    font-size: 0.65rem;
  }
  
  .product-card-body {
    gap: 1rem;
  }
  
  .product-card img {
    width: 56px;
    height: 56px;
  }
  
  .product-card p {
    font-size: 1rem;
  }
  
  .download-btn, .tutorial-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .product-carousel-section {
    padding: 1.5rem 0;
  }

  .product-carousel {
    margin: 0.25rem;
    padding: 1rem;
    border-radius: 12px;
  }
  
  .carousel-header {
    margin-bottom: 1rem;
  }
  
  .carousel-title {
    font-size: 1.25rem;
  }
  
  .carousel-buttons button {
    width: 28px;
    height: 28px;
  }
  
  .carousel-buttons button i {
    font-size: 10px;
  }
  
  .product-card {
    padding: 1rem;
    gap: 0.8rem;
    flex-direction: column;
    text-align: center;
  }
  
  .product-header {
    margin-bottom: 0.8rem;
  }
  
  .product-card h3 {
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
  }
  
  .product-investment-tag {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.85rem;
    padding: 0.15rem 0.6rem;
    gap: 0.2rem;
    border-radius: 12px;
  }
  
  .product-investment-tag i {
    font-size: 0.6rem;
  }
  
  .product-card-body {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    margin-bottom: 0.8rem;
    order: 2;
  }
  
  .product-card img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  
  .product-content {
    flex: 1;
    text-align: left;
  }
  
  .product-card p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
  }
  
  .product-buttons {
    order: 3;
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }
  
  .download-btn, .tutorial-btn {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    flex: 1;
    text-align: center;
    justify-content: center;
  }
  
  .download-btn i, .tutorial-btn i {
    font-size: 0.9rem;
  }
  
  .carousel-indicators {
    margin-top: 1.5rem;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
} 