﻿@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");


/* Reset */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: #222;
  background: #f8f6fb;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/*HEADER*/
header {
	width:100%;
	height:auto;
	overflow:hidden;
	margin:0 auto 0 auto;
	background:#727171;
}
img.logo{
	margin-left:20px;
}



/* =========================
   活動購買頁
========================= */

.event-page,
.event-page * {
  box-sizing: border-box;
}

.event-page {
  padding: 0 0 25px 0;
  background: #5fbcd7;
  color: #253042;
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
}

.event-page a {
  text-decoration: none;
}

/* =========================
   活動 Banner
========================= */

.event-hero {
  max-width: 100%;
  margin: 0 auto ;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(26, 91, 158, 0.18);
  background:url("images/bg.png") 80%/cover no-repeat;


}
.event-title {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  min-height: 560px;

}

.event-title_m {
	display:none;

}

.event-hero img {
  position: absolute;
  width: 580px;
  object-fit: cover;
  margin:30px 0 30px 30px;
}


.event-hero img.ferris {
  width:480px;
  margin:60px 0 30px 680px;
}

.event-hero img.house {
  width:480px;
  margin:480px 0 0 -10px;
}
.event-hero img.house01 {
  width:480px;
  margin:500px 0 0 450px;
}
.event-hero img.house02 {
  width:480px;
  margin:470px 0 0 750px;
}


/* =========================
   主要版面
========================= */

.event-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1200px;
  margin: 10px auto 10px auto;
  padding:10px;
}

.event-main {
  flex: 1;
  min-width: 0;
}

/* =========================
   活動介紹
========================= */

.event-title-box {
  margin-bottom: 20px;
  padding: 25px 28px;
  border: 1px solid #e4eaf2;
  border-radius: 18px;
  background: #ffffff;
}

.event-title-box h1 {
  margin: 0 0 8px;
  color: #1455a1;
  font-size: 28px;
}

.event-title-box p {
  margin: 0;
  color: #78859a;
  font-size: 15px;
  line-height: 1.8;
}

/* =========================
   商品分類
========================= */

.event-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 24px;
  padding: 12px 0;
  border-bottom: 1px solid #e4eaf2;
  background: #5fbcd7;
}

.event-tabs {
  display: flex;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.event-tabs::-webkit-scrollbar {
  height: 5px;
}

.event-tabs::-webkit-scrollbar-track {
  background: #eef2f6;
}

.event-tabs::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #c5d2e1;
}

.event-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid #e4eaf2;
  border-radius: 30px;
  background: #ffffff;
  color: #607089;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.25s;
}

.event-tab:hover,
.event-tab.active {
  border-color: #2376d8;
  background: #2376d8;
  color: #ffffff;
}



.event-tab:hover,
.event-tab.active {
  border-color: #2376d8;
  background: #2376d8;
  color: #ffffff;
}

.event-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 20px;
  background: #edf3fb;
  color: #2376d8;
  font-size: 12px;
  font-weight: bold;
}

.event-tab.active .event-tab-count {
  background: #ffffff;
  color: #2376d8;
}

/* 玩轉教具專欄 */
.event-column-tab {
  border-color: #efc75b;
  background: #fff4d5;
  color: #a66300;
  font-weight: bold;
}

.event-column-tab:hover {
  border-color: #ff7c38;
  background: #ff7c38;
  color: #ffffff;
}

/* 沒有商品 */
.product-empty {
  grid-column: 1 / -1;
  padding: 55px 20px;
  border: 1px dashed #cbd7e5;
  border-radius: 14px;
  background: #ffffff;
  color: #8a99aa;
  font-size: 15px;
  text-align: center;
}


/* =========================
   商品標題列
========================= */

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.product-toolbar h2 {
  margin: 0;
  color: #253042;
  font-size: 22px;
}

.product-count {
  color: #78859a;
  font-size: 14px;
}

/* =========================
   商品列表
========================= */

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  background: #ffffff;
  transition: 0.25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(31, 82, 134, 0.12);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: #ff7c38;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 14px;
  background: #f7f9fc;
  object-fit: contain;
  transition: 0.25s;
}

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

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.product-category {
  margin-bottom: 6px;
  color: #2376d8;
  font-size: 13px;
  font-weight: bold;
}

.product-name {
  display: block;
  min-height: 48px;
  margin-bottom: 10px;
  color: #253042;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  transition: 0.2s;
}

.product-name:hover {
  color: #2376d8;
}
.product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 15px;
}

.original-price {
  color: #9aa6b5;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: line-through;
}

.sale-price-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sale-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #fff1e9;
  color: #ef6428;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.sale-price {
  color: #e84b31;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

/* 加入購物車按鈕 */
.product-bottom {
  margin-top: auto;
}

.add-cart-btn {
  display: block;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 9px;
  background: #2376d8;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.add-cart-btn:hover {
  background: #1455a1;
}

.add-cart-btn.added {
  background: #55a630;
}

/* =========================
   右側購物車
========================= */
/* =========================
   右側購物車清單
========================= */

.cart-panel {
  position: sticky;
  top: 74px;
  display: flex;
  flex: 0 0 300px;
  flex-direction: column;
  width: 300px;
  max-height: calc(100vh - 92px);
  overflow: hidden;
  border: 1px solid #e4eaf2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 82, 134, 0.08);

}

.cart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  background: #2376d8;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
}

.cart-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border-radius: 30px;
  background: #ffffff;
  color: #2376d8;
  font-size: 13px;
}

.cart-content {
  padding: 0;
}
.mobile-cart-close,
.mobile-cart-overlay {
  display: none;
}

/* 購物車商品清單 */
.cart-list {
  max-height: 360px;
  padding: 8px 16px;
  overflow-y: auto;
}

.cart-list::-webkit-scrollbar {
  width: 6px;
}

.cart-list::-webkit-scrollbar-track {
  background: #f4f6f9;
}

.cart-list::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #c9d5e4;
}
.cart-item {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 12px 20px 12px 0;
  border-bottom: 1px solid #edf1f5;
}

.cart-no {
  flex: 0 0 18px;
  width: 18px;
  height: 20px;
  margin-top: 2px;
  background: #2376d8;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item-image {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 4px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #f7f9fc;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-category {
  margin-bottom: 3px;
  color: #2376d8;
  font-size: 12px;
}

.cart-item-name {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 5px;
  color: #253042;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-item-price {
  color: #ef4f35;
  font-size: 16px;
  font-weight: bold;
}

.cart-remove {
  position: absolute;
  top: 11px;
  right: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef2f6;
  color: #7d8a9c;
  font-size: 16px;
  line-height: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.cart-remove:hover {
  background: #ef4f35;
  color: #ffffff;
}

/* 尚未加入商品 */
.cart-empty {
  padding: 38px 16px;
  color: #98a4b4;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

/* 金額區 */
.cart-summary {
  margin: 0;
  padding: 16px;
  border-top: 1px solid #e4eaf2;
  background: #fbfcfe;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #607089;
  font-size: 14px;
}

.cart-row:last-child {
  margin-bottom: 0;
}

.cart-total-row {
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px dashed #dce4ed;
  color: #253042;
  font-size: 15px;
  font-weight: bold;
}

.cart-total {
  color: #ef4f35;
  font-size: 22px;
  font-weight: bold;
}

/* 結帳按鈕 */
.checkout-area {
  padding: 0 16px 16px;
  background: #fbfcfe;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: #ff7c38;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: 0.2s;
}

.checkout-btn:hover {
  background: #e86828;
}

/* =========================
   注意事項
========================= */

.event-notice {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #f2df9f;
  border-radius: 0 0 14px 14px;
  background: #fff7dc;
  color: #765d16;
  font-size: 14px;
  line-height: 1.8;
}

.event-notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

/* =========================
   手機固定購物車
========================= */

.mobile-cart-bar {
  display: none;
}

.site-footer {
  padding: 12px 0;
  color: #fff;
  background: #3d464d;
  text-align: center;
  letter-spacing: .065rem;
}

.site-footer p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.8;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: #ffe45c;
}

#TOP{
	width:40px;
	height:40px;
	border-radius:10px;
	position:fixed; /*固定位置定位*/
  bottom:100px; 
  right:10px;
	text-align:center;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
	opacity: 0.65;
	transition: opacity 0.5s ease;
 	z-index: 9;
 	display: none; 
}	

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 35px 0 10px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  background: #ffffff;
  color: #607089;
  font-size: 14px;
  text-decoration: none;
  transition: 0.2s;
}

.page-btn:hover,
.page-btn.active {
  border-color: #2376d8;
  background: #2376d8;
  color: #ffffff;
}

.page-prev,
.page-next {
  min-width: auto;
  padding: 0 15px;
}

.page-dot {
  color: #8d9aac;
  font-size: 16px;
}

/* =========================
   手機
========================= */

@media (max-width: 768px) {

  .event-page {
    padding: 12px 0 85px;
  }

  /* =========================
     Banner
  ========================= */

  .event-hero {
    margin-right: 12px;
    margin-left: 12px;
    border-radius: 14px;
  }
  
.event-hero {
  max-width: 100%;
  margin: 0 auto ;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(26, 91, 158, 0.18);
  background:url("images/bg.png") 80%/cover no-repeat;


}
.event-title {
display:none;
}
.event-title_m {
display:block;
}
.event-hero img {
  position: static;
  width: 100%;
  margin:0 auto;
}

  /* =========================
     固定分類選單
  ========================= */

  .event-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0 0 16px;
    padding: 10px 0;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #dfe7f0;
    background: #f5f8fc;
  }

  .event-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0 5px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .event-tabs::-webkit-scrollbar {
    display: none;
  }

  .event-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 14px;
    border-radius: 24px;
    font-size: 14px;
  }

  .event-tab-count {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    font-size: 11px;
    line-height: 19px;
  }

  .event-column-tab {
    margin-right: 4px;
  }

  /* =========================
     主內容區
  ========================= */

  .event-container {
    display: block;
    margin-right: 5px;
    margin-left: 5px;
  padding:5px;
  }

  .event-main {
    width: 100%;
  }

  .event-title-box {
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 14px;
  }

  .event-title-box h1 {
    margin-bottom: 7px;
    font-size: 23px;
  }

  .event-title-box p {
    font-size: 14px;
    line-height: 1.75;
  }

  /* =========================
     商品標題
  ========================= */

  .product-toolbar {
    align-items: flex-end;
    margin-bottom: 14px;
  }

  .product-toolbar h2 {
    font-size: 20px;
  }

  .product-count {
    padding-bottom: 2px;
    font-size: 13px;
  }

  /* =========================
     商品列表
  ========================= */

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

  .product-card {
    border-radius: 13px;
  }

  .product-badge {
    top: 8px;
    left: 8px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 11px;
  }

  .product-image {
    padding: 10px;
  }

  .product-info {
    padding: 11px;
  }

  .product-category {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .product-name {
    min-height: 42px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
  }

  .product-price {
    gap: 4px;
    margin-bottom: 11px;
  }

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

  .sale-info {
    min-height: 20px;
    padding: 3px 6px;
    font-size: 11px;
  }

  .sale-price {
    font-size: 20px;
  }

  .add-cart-btn {
    height: 39px;
    border-radius: 8px;
    font-size: 14px;
  }

  .product-empty {
    padding: 40px 15px;
    font-size: 14px;
  }

  /* =========================
     手機底部購物車
  ========================= */

/* =========================
   手機左側購物車抽屜
========================= */

.cart-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 301;

  display: flex;
  flex: 0 0 auto;
  flex-direction: column;

  width: min(88vw, 340px);
  max-height: 100dvh;
  height: 100dvh;

  overflow: hidden;
  border: 0;
  border-radius: 0 18px 18px 0;
  background: #ffffff;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);

  transform: translateX(-105%);
  transition: transform 0.3s ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-title {
  position: relative;
  flex: 0 0 auto;
  padding: 17px 58px 17px 18px;
}

.cart-title #cartCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 25px;
  height: 25px;
  margin-left: 8px;
  padding: 0 7px;

  border-radius: 20px;
  background: #ffffff;
  color: #2376d8;
  font-size: 13px;
}

.mobile-cart-close {
  position: absolute;
  top: 50%;
  right: 13px;

  width: 34px;
  height: 34px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;

  font-size: 26px;
  line-height: 30px;
  cursor: pointer;

  transform: translateY(-50%);
}

.mobile-cart-close:active {
  background: rgba(255, 255, 255, 0.35);
}

.cart-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.cart-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.mobile-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;

  visibility: hidden;
  opacity: 0;

  background: rgba(20, 36, 56, 0.48);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-cart-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

body.mobile-cart-open {
  overflow: hidden;
}

/* 底部查看購物車按鈕改為 button */
.mobile-cart-bar{
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  min-height: 70px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));

  border-top: 1px solid #dfe7f0;
  background: #ffffff;
  box-shadow: 0 -4px 16px rgba(31, 82, 134, 0.12);


}
.mobile-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 116px;
  min-height: 42px;
  padding: 10px 15px;

  border: 0;
  border-radius: 9px;
  background: #ff7c38;
  color: #ffffff;

  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.mobile-cart-btn:active {
  background: #e86828;
}
  .mobile-cart-close,
  .mobile-cart-overlay {
    display: block;
  }

  /* =========================
     活動注意事項
  ========================= */

  .event-notice {
    margin-top: 18px;
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
  }

  .event-notice strong {
    font-size: 15px;
  }

  /* =========================
     分頁
  ========================= */

  .pagination {
    gap: 6px;
    margin-top: 25px;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
  }

  .page-prev,
  .page-next {
    padding: 0 10px;
  }

  .page-dot {
    font-size: 14px;
  }

  /* =========================
     Footer
  ========================= */

  .site-footer {
    padding: 16px 18px;
  }

  .site-footer p {
    font-size: 12px;
    line-height: 1.8;
  }

  .footer-fax,
  .footer-en {
    display: none;
  }

  .footer-tax {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
  }

  .footer-contact,
  .footer-copyright,
  .footer-email {
    display: block;
  }

  .footer-copy {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
  }
}