
/*--------------------------------------------------------------
# cover
--------------------------------------------------------------*/
.hero {
  background-color: var(--secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  color: #fff;
}
.hero h1{
  max-width: 240px;
  margin-bottom: 1rem;
}
.btn_into{
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: #fff;
  color: var(--secondary);
  border-radius: 40px;
  font-weight: 600;
  margin-top: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn_into:hover{
  background-color: #00164d;
  color: #fff;
}

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}
section h2{
  margin-bottom: 1.5rem;
  text-align: center;
}
section h3{
  text-align: center;
}

@media (max-width: 767px){
  .container{
    margin: 1.5rem auto;
    padding: 0 0.75rem;
  }
  section h2{
    margin-bottom: 1rem;
  }
}

.wrapper {
    position: relative;
    z-index: 10;
    width: 100%; 
    max-width: 600px; 
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 電腦版左右固定圖 */
.desktop-bg-decor {
    display: none;
}

/* 內容區塊間距 */
.content-section {
    padding: 40px 20px;
}

/* --- 電腦版樣式 (螢幕寬度大於 1024px 時) --- */
@media (min-width: 1024px) {
    .desktop-bg-decor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1;
        pointer-events: none; 
    }

    .bg-left, .bg-right {
        position: absolute;
        top: 0;
        width: calc((100% - 600px) / 2);
        height: 100%;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .bg-left {
        left: 0;
        background-image: url('left-image.png');
        background-position: right center;
    }

    .bg-right {
        right: 0;
        background-image: url('right-image.png');
        background-position: left center;
    }
}

.nav-container {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.9);
    z-index: 100;
    box-shadow:  0px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-container h2{
  max-width: 70px;
}
.video-container-169 {
  position: relative;
  padding-bottom: 56.25%;;
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
}
.video-container-169 iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.news-container {
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: scale 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: solid 1px var(--gray-800);
  border-top: solid 1px var(--gray-800);
  margin: 1rem 0;
}

.news-container:hover {
  color: var(--primary);
  scale: 0.98;
}

.news-container img {
  max-width: 280px; 
  aspect-ratio: 3 / 2;
  object-fit: cover;
  flex-shrink: 0;
}

.content-container {
  padding: 0.8rem;
  flex: 1;
}
.content-container p {
  color: var(--gray-800);
  font-size: 0.875rem;
  margin: 0;
  margin-top: 1rem;
}
@media (max-width: 420px){
  .news-container img{
    max-width: 120px; 
  }
  .content-container {
    padding: 0 0.5rem;
    flex: 1;
  }
  .content-container p {
    margin-top: 0.2rem;
  }
}
.product-list{
  display: flex;
  flex-direction: row; 
  flex-wrap: wrap; 
  gap: 1rem;
}
.product-item{
  display: flex;
  flex-direction: column; 
  flex: 1; 
  min-width: 250px; 
  height: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.product-item__img{
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}
.product-item__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-item__info{
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; 
  justify-content: space-between;
  gap: 0.5rem;
}
.product-item__title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow-y: hidden;
}
.product-item__price{
  margin-top: auto;
}
.product-item__sale-price{
  font-weight: 800;
  font-size: 1.25rem;
  color: #a52a2a;
}
.product-item__origin-price{
  font-size: 0.875rem;
  color: var(--gray-600);
  text-decoration: line-through;
}
.product-item__buy-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background-color: #a52a2a; 
  color: #fff;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 400;
}
.product-item__buy-btn:hover{
  background-color: #8b2020; 
  color: #fff;
}
@media (max-width: 420px){
  .product-item{
    min-width: 120px;
  }
  .product-item__info{
    gap: 0.25rem;
  }
  .product-item__buy-btn{
    padding: 0.25rem;
  }
  .product-item__sale-price{
    font-size: 1.1rem;
  }
}
.brand-intro{
  margin: 0.5rem 2rem;
  font-weight: 300;
}