#wrapper {

    padding-top: 70px;
}

.container, .swiper-container {
    max-width: 1200px;
    
}


p {
    text-align: left;
    font-size: 16px;
    line-height: 30px;
    padding-bottom: 10px;
    font-weight: 500;
    color: #5e646a;
}


.ss-slider-cont-next {
    right: 5px;
}

.ss-slider-cont-prev {
    left: 5px;
}

.ss-slider-cont {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin-top: -15px;
    border-radius: 4px;
    color: #fff;
    z-index: 50;
    cursor: pointer;
    background: rgba(128, 128, 128, 0.5);
}
.box-media-zoom{background: rgba(128, 128, 128, 0.5);}
.search_btn img{width: 20px;height:20px;}

@media only screen and (max-width: 1279px) {
    #wrapper {
        padding-bottom: 0px;
    }
  
}

.footer-widget-content p{font-size: 11px;
    line-height: 24px;}
video {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin-bottom: -5px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.product-list p{line-height: 24px;}
.list-post-media {

    width: 200px;
    height: 200px;
  
}
@media only screen and (max-width: 630px) {
    .product-list .list-post-media {
        width: 84vw;
        height: 84vw;
        margin: 0 auto 10px;
        display: inline-block;
        float:none;
    }
}
@media screen and (min-width: 631px) and (max-width: 1024px) {
    /* 平板的 CSS 樣式 */
    .list-post-media {

        width: 120px;
        height: 120px;
      
    }
    .list-post-content {
        padding: 0 0 0 20px;
    }
    .list-post{min-height: 174px;padding-bottom: 20px;
        margin-bottom: 20px;}
}

.pagination {
    margin:0 0 20px ;
   
 
}

.list-post-content .post-date {
   
    margin: 3px 0 ;
}

.product-list p {

    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 20px;
    height: 40px;
}


  /* 設定容器樣式 */
  .logo-container {
    display: flex;             /* 使用 Flexbox 排列 */
    flex-wrap: wrap;           /* 自動換行 */
    justify-content: center;   /* 水平置中 */
    gap: 80px;                 /* 圖片之間的間距 */
    padding: 20px;             /* 外邊距 */
  
}

/* 設定圖片樣式 */
.logo-container img {
    width: 200px;      /* 圖片寬度 */
    height: auto;      /* 自動調整高度以保持比例 */
    display: block;    /* 確保圖片是區塊元素 */
}


.single-post-content img{margin:0}
.single-post-content video {
    width: 100%;
    max-width: 100%;
}

/* 購物須知樣式 */
.box-widget-content {
    text-align: left;
    color: #5e646a;
}

.box-widget-content p {
    margin-bottom: 15px;
    text-align: left;
}

.box-widget-content ol {
    counter-reset: item;
    padding-left: 0;
    margin: 0;
}

.box-widget-content ol li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    line-height: 1.6;
    position: relative;
    padding-left: 28px;
}

.box-widget-content ol li:before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    color: #666;
    font-weight: 500;
}

/* PC 端樣式 */
@media screen and (min-width: 1025px) {
    .box-widget-content {
        font-size: 16px;
    }
    
    .box-widget-content ol li {
        font-size: 16px;
        line-height: 1.8;
    }
}

/* 平板樣式 */
@media screen and (min-width: 631px) and (max-width: 1024px) {
    .box-widget-content {
        font-size: 15px;
    }
    
    .box-widget-content ol li {
        font-size: 15px;
        line-height: 1.7;
        padding-left: 25px;
    }
}

/* 手機端樣式 */
@media only screen and (max-width: 630px) {
    .box-widget-content {
        font-size: 14px;
    }
    
    .box-widget-content ol li {
        font-size: 14px;
        line-height: 1.6;
        padding-left: 22px;
        margin-bottom: 10px;
    }
}

/* 商品規格表格樣式 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 15px 0;
    line-height: 1.6;
    color: #5e646a;
    vertical-align: top;
}

.specs-table .specs-title {
    width: 100px;
    color: #666;
    font-weight: 500;
    padding-right: 20px;
}

/* PC 端樣式 */
@media screen and (min-width: 1025px) {
    .specs-table td {
        font-size: 16px;
    }
}

/* 平板樣式 */
@media screen and (min-width: 631px) and (max-width: 1024px) {
    .specs-table td {
        font-size: 15px;
        padding: 12px 0;
    }
    .specs-table .specs-title {
        width: 90px;
        padding-right: 15px;
    }
}

/* 手機端樣式 */
@media only screen and (max-width: 630px) {
    .specs-table td {
        font-size: 14px;
        padding: 10px 0;
    }
    .specs-table .specs-title {
        width: 80px;
        padding-right: 10px;
    }
}

/* 商品描述樣式 */
.product-description {
    color: #5e646a;
    text-align: left;
    margin-bottom: 20px;
    width: 100%;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
}

.product-description p {
    margin-bottom: 15px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-line-clamp: none !important;
    -webkit-box-orient: unset !important;
}

.product-description img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

@media screen and (max-width: 768px) {
    .product-description p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* PC 端樣式 */
@media screen and (min-width: 1025px) {
    .product-description,
    .product-description p {
        font-size: 16px;
        line-height: 1.8;
    }
}

/* 平板樣式 */
@media screen and (min-width: 631px) and (max-width: 1024px) {
    .product-description,
    .product-description p {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* 手機端樣式 */
@media only screen and (max-width: 630px) {
    .product-description,
    .product-description p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* 行動呼籲按鈕樣式 */
.product-btn {
    margin: 15px 0;
}

.product-btn .flex-start {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 -4px;
}

.product-btn .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: calc(50% - 8px);
    margin: 0 4px;
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
    margin-top: 5px;
}

.product-btn .btn i {
    margin-left: 6px;
    font-size: 12px;
    color: #fff;
}

.product-btn .btn:hover {
    opacity: 0.9;
}

@media screen and (max-width: 630px) {
    .product-btn .flex-start {
        flex-direction: column;
        margin: 0;
        gap: 6px;
    }

    .product-btn .btn {
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
        width: 100%;
        margin: 0;
    }
}

/* 商品授權字串樣式 */
.product-license {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f5f5f5;
    border-radius: 3px;
}

.product-license .license-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    font-weight: 400;
}

@media screen and (max-width: 630px) {
    .product-license {
        padding: 3px 10px;
    }
    
    .product-license .license-text {
        font-size: 12px;
    }
}

/* 授權信息樣式 */
.license-info {
    padding: 20px 0;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

@media screen and (max-width: 630px) {
    .license-info {
        padding: 15px 0;
        margin-top: 20px;
    }
}

/* 商品授權樣式 */
.specs-table tr.license-row td {
    background-color: #f8f8f8;
    font-size: 13px;
    line-height: 1.6;
}

.specs-table tr.license-row .specs-title {
    color: #333;
    font-weight: 500;
}

.specs-table tr.license-row td:last-child {
    color: #666;
    padding: 12px 10px;
}

@media screen and (max-width: 630px) {
    .specs-table tr.license-row td {
        font-size: 12px;
        padding: 10px 8px;
    }
}

/* 熱門商品樣式 */
.hot-products {
    padding: 60px 0;
}

.hot-products .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.hot-products .section-title h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-link {
    display: block;
    text-decoration: none;
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin: 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #ff4444;
}

.product-price .sale-price {
    color: #ff4444;
    font-size: 24px;
    font-weight: 700;
}

.product-price .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 18px;
    font-weight: normal;
    margin-left: 10px;
}

@media screen and (max-width: 768px) {
    .product-price {
        font-size: 22px;
    }
    
    .product-price .sale-price {
        font-size: 22px;
    }
    
    .product-price .original-price {
        font-size: 16px;
    }
}

@media screen and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media screen and (max-width: 630px) {
    .hot-products {
        padding: 30px 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 14px;
        height: 40px;
    }

    .product-price {
        font-size: 15px;
    }

    .original-price {
        font-size: 13px;
    }
}

/* 商品描述截斷樣式 */
.list-post-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    max-height: 72px;  /* 3行的高度 = 行高 24px * 3 */
    line-height: 24px;
}

.list-post-content {
    float: left;
    width: 60%;
    padding: 3px 0 0 30px;
    position: relative;
}

.list-post-content p {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    height: auto;
    max-height: none;
}

/* 手機版樣式 */
@media only screen and (max-width: 768px) {
  .list-post-content {
    float: none;
    width: 100%;
    padding: 15px 0;
  }

  .list-post-media {
    float: none;
    width: 100%;
    margin-bottom: 15px;
  }

  .list-post {
    display: flex;
    flex-direction: column;
  }

  .hot-products .list-post-content h3 {
    margin: 10px 0;
  }

  .hot-products .list-post-content p {
    margin-bottom: 0;
  }
}

/* 響應式樣式 */
@media screen and (max-width: 1200px) {
  .list-post-content {
    width: 55%;
    padding: 3px 0 0 20px;
  }
}

@media screen and (max-width: 992px) {
  .list-post-content {
    width: 50%;
    padding: 3px 0 0 15px;
  }
  
  .list-post-media {
    width: 50%;
  }
}

@media screen and (max-width: 768px) {
  .list-post-content {
    float: none;
    width: 100%;
    padding: 15px;
  }

  .list-post-content:before {
    right: 12px;
  }

  .list-post-media {
    float: none;
    width: 100%;
    margin-bottom: 15px;
  }

  .list-post {
    display: flex;
    flex-direction: column;
  }

  .hot-products .list-post-content h3 {
    margin: 10px 0;
  }

  .hot-products .list-post-content p {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 480px) {
  .list-post-content {
    padding: 15px;
  }
  
  .list-post-media {
    margin-bottom: 10px;
  }
  
  .hot-products .list-post-content h3 {
    font-size: 16px;
    margin: 8px 0;
  }
  
  .hot-products .list-post-content p {
    font-size: 14px;
    line-height: 1.5;
  }
}