﻿@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;
}

#starters,
#movers,
#flyers,
#yle-feature,
#sale {
  scroll-margin-top: 10px;
}

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

.yle-sale-page {
  padding: 0 0 15px 0;
  background:url("images/bg.png") 80%/cover no-repeat;
  color: #253042;
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;

}
.yle-sale-page a {
  text-decoration: none;
}

.yle-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;
}

.yle-title {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  min-height: 550px;

}

.yle-title_m {
	display:none;

}


.yle-hero img {
  position: absolute;
  width: 570px;
  height:auto;
  margin:30px 0 0 20px;

}


.yle-hero img.book {
  width:570px;
  height:auto;
  margin:250px 0 0 20px;
}

.yle-hero img.kids {
  width:550px;
  height:auto;
  margin:80px 0 0 620px;
}


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


.yle-category-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 24px;
  padding: 15px 0;
  border-bottom: 1px solid #e4eaf2;
  background: #64c6e5;
  text-align:center;
  margin:0 auto;

}

  .yle-slide-hint {
  display:none;
  }
.yle-category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 125px;
  padding: 10px 18px;
  border: 1px solid #d8e3ef;
  border-radius: 99px;
  background: #ffffff;
  color: #53657d;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
  margin:0 10px;
}

.yle-category-btn:hover,
.yle-category-active {
  border-color: #2676d2;
  background: #7e2c8d;
  color: #ffffff;
}

.yle-shopping-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.yle-products-area {
  flex: 1;
  min-width: 0;
}

.yle-feature-box {
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid #dbe8f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(36, 75, 120, 0.06);	
}

.banner{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
  padding:10px;
  }
  
.yle-feature-box img {
	width:100%;
	margin:0 auto;
	height:auto;
}

.yle-feature-label {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 0 0 14px 0;
  background: #e83a4d;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
}

.yle-feature-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 24px;
  padding: 20px 24px 24px;
}

.yle-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yle-feature-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
  color: #485a70;
  font-size: 1.1rem;
  line-height: 1.6;
}

.yle-feature-list li::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4bf28;
  content: "";
}

.yle-newbook-section {
  margin: 50px auto;
  padding: 5px 22px 0 22px;
  border: 1px solid #dce9f6;
  border-radius: 18px;
  background: #f8fbff;
}

.yle-newbook-heading {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d9e6f4;
}

.yle-newbook-heading span {
  display: inline-block;
  margin-bottom: 5px;
  color: #e9474e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.yle-newbook-heading h2 {
  margin: 0 0 6px;
  color: #1e426e;
  font-size: 25px;
}

.yle-newbook-heading p {
  margin: 0;
  color: #718198;
  font-size: 14px;
  line-height: 1.7;
}

.yle-book-group {
  margin-top: 20px;
}

.yle-book-group:last-child {
  margin-bottom: 0;
}

.yle-book-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}

.yle-book-group-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yle-book-group-head h3 {
  margin: 0;
  color: #314a68;
  font-size: 21px;
}

.yle-book-group-head p {
  margin: 0;
  color: #8394a9;
  font-size: 14px;
}

.yle-book-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 5px 9px;
  border-radius: 99px;
  color: #ffffff;
  font-size:1rem;
  font-weight: 700;
}

.yle-book-level-start {
  background: #ef6e78;
}

.yle-book-level-move {
  background: #39a7b2;
}

.yle-book-level-fly {
  background: #7b86cf;
}

.yle-book-row {
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-color: #b8cfe7 #edf4fb;
  scrollbar-width: thin;
}

.yle-book-row::-webkit-scrollbar {
  height: 8px;
}

.yle-book-row::-webkit-scrollbar-track {
  border-radius: 10px;
  background: #edf4fb;
}

.yle-book-row::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #b8cfe7;
}

.yle-newbook-card {
  display: flex;
  flex:154px;
  flex-direction: column;
  padding: 11px;
  border: 1px solid #dce8f4;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 5px 13px rgba(36, 85, 132, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.yle-newbook-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(36, 85, 132, 0.14);
}


.yle-newbook-card h4 {
  display: -webkit-box;
  min-height: 43px;
  overflow: hidden;
  margin: 0 0 7px;
  color: #35495f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.yle-newbook-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.yle-newbook-price span {
  color: #7d8da0;
  font-size: 12px;
}

.yle-newbook-price strong {
  color: #e23d3b;
  font-size: 20px;
}

.yle-newbook-price del {
  color: #aab4c0;
  font-size: 11px;
}

.yle-newbook-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.yle-book-buy,
.yle-book-preview {
  display: block;
  padding: 8px 3px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: 0.25s ease;
}

.yle-book-buy {
  background: #e83c3e;
  color: #ffffff;
}

.yle-book-buy:hover {
  background: #c92529;
  color: #ffffff;
}

.yle-book-preview {
  border: 1px solid #2d7bd6;
  background: #ffffff;
  color: #2d7bd6;
}

.yle-book-preview:hover {
  background: #2d7bd6;
  color: #ffffff;
}
.yle-book-preview-item {
  display: grid;
  grid-template-columns: 280px repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid #dce8f4;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(36, 85, 132, 0.06);
}

.yle-book-cover-block {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  align-self: start;
}

.yle-book-main-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  overflow: hidden;
  border: 1px solid #dce8f4;
  border-radius: 10px;
  background: #f5f8fc;
}

.yle-book-main-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.yle-book-main-cover:hover img {
  transform: scale(1.04);
}

.yle-book-buy-btn {
  display: block;
  padding: 15px 8px;
  border-radius: 8px;
  background: #e83c3e;
  color: #ffffff;
  font-size:1.1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: 0.25s ease;
}

.yle-book-buy-btn:hover {
  background: #c92529;
  color: #ffffff;
}

.yle-preview-page {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce8f4;
  border-radius: 10px;
  background: #f7f9fc;
  color: #40536c;
  text-decoration: none;
  transition: 0.25s ease;
}

.yle-preview-page:hover {
  transform: translateY(-4px);
  border-color: #2d7bd6;
  box-shadow: 0 8px 16px rgba(36, 85, 132, 0.12);
}

.yle-preview-page img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #ffffff;
}

.yle-preview-page span {
  display: block;
  padding: 9px 6px;
  border-top: 1px solid #e4edf6;
  color: #55708d;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.yle-book-price-bar {
  grid-column: 2 / -1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  padding: 11px 14px;
  border-radius: 9px;
  background: #fff8e7;
  color: #8a6824;
  font-size: 14px;
}

.yle-book-price-bar strong {
  color: #e33c39;
  font-size: 22px;
}

.yle-book-price-bar del {
  color: #999999;
  font-size: 13px;
}


.yle-product-section {
  margin-bottom: 34px;
}

.yle-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.yle-section-head span {
  color: #2d7bd6;
  font-size: 14px;
  font-weight: 700;
}

.yle-section-head h2 {
  margin: 4px 0 0;
  color: #1f3854;
  font-size: 24px;
}

.yle-section-head p {
  margin: 0;
  color: #7990ad;
  font-size: 14px;
}


.yle-level-product-area {
  margin: 5px 0 20px 0;
  padding: 18px ;
  border: 1px solid #e4edf7;
  border-radius: 15px;
  background: #f8fbff;
}

.yle-level-product-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dce8f4;
}

.yle-level-product-head h4 {
  margin: 0 0 5px;
  color: #1e426e;
  font-size: 22px;
}

.yle-level-product-head p {
  margin: 0;
  color: #697b91;
  font-size: 16px;
  line-height: 1.6;
}

.yle-level-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.yle-level-product-card {
  padding: 12px;
  border: 1px solid #dce8f4;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 5px 13px rgba(36, 85, 132, 0.05);
  transition: 0.25s ease;
}

.yle-level-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(36, 85, 132, 0.12);
}

.yle-level-product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
  border: 1px solid #e2ebf5;
  border-radius: 9px;
  background: #f5f8fc;
}

.yle-level-product-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.yle-level-product-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 8px 0 0 0;
}

.yle-level-product-info h5 {
  display: -webkit-box;
  min-height: 55px;
  overflow: hidden;
  margin: 0 0 8px;
  color: #33475f;
  font-size: 17px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.yle-level-price {
  margin-bottom: 15px;
}

.yle-level-price strong {
  display: block;
  margin-bottom: 13px;
  color: #e33c39;
  font-size: 17px;
}

.yle-level-price span {
  display: block;
  color: #6c7b8d;
  font-size: 13px;
}

.yle-small-buy-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 6px;
  border-radius: 7px;
  background: #e83c3e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: 0.25s ease;
}

.yle-small-buy-btn:hover {
  background: #c92529;
  color: #ffffff;
}

.yle-add-cart-btn {
  display: block;
  margin-top: 13px;
  padding: 10px 8px;
  border-radius: 9px;
  background: #e83a3c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: 0.25s ease;
}

.yle-add-cart-btn:hover {
  background: #cb2427;
}

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

.cart-panel {
  position: sticky;
  top: 10px;
  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: #e4002b;
  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; 
}	




/* =========================
   手機版 768px
========================= */

@media (max-width: 768px) {

  body {
    padding-bottom: 72px;
  }

  .yle-sale-page {
    padding: 0 0 20px 0;
    background-position: center top;
    background-size: auto 100%;
  }

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

  .yle-hero {
    box-shadow: none;
    background-position: center top;
  }

  .yle-title {
    display: none;
  }

  .yle-title_m {
    display: block;
    width: 100%;
    margin: 0 auto;
  }

  .yle-title_m img {
    display: block;
    width: 100%;
    height: auto;
  }

  .yle-hero img {
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
  }

  .yle-hero img.book,
  .yle-hero img.kids {
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
  }

  /* =========================
     分類按鈕：手機左右滑
  ========================= */

  .yle-category-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #64c6e5;
  }

  .yle-category-nav {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;

    width: 100%;
    margin: 0;
    padding: 10px 105px 10px 12px;
    background: #64c6e5;
    text-align: left;
    scrollbar-width: none;
  }

  .yle-category-nav::-webkit-scrollbar {
    display: none;
  }

  .yle-category-btn {
    flex: 0 0 auto;
    min-width: auto;
    margin: 0;
    padding: 9px 15px;
    font-size: 0.95rem;
  }

  .yle-category-wrap::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 95px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(100, 198, 229, 0), #64c6e5 45%);
    content: "";
  }

  .yle-slide-hint {
  	display:block;
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.95);
    color: #7e2c8d;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-50%);
    animation: yleHintMove 1.2s ease-in-out infinite;
  }

  @keyframes yleHintMove {
    0% {
      transform: translateY(-50%) translateX(0);
    }

    50% {
      transform: translateY(-50%) translateX(-6px);
    }

    100% {
      transform: translateY(-50%) translateX(0);
    }
  }

  .yle-slide-hint.is-hide {
    display: none;
  }


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

  .event-container {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 12px;
  }

  .yle-shopping-layout {
    display: block;
  }

  .yle-products-area {
    width: 100%;
    min-width: 0;
  }

  /* =========================
     本書特色
  ========================= */

  .yle-feature-box {
    margin-bottom: 20px;
    border-radius: 14px;
  }

  .yle-feature-label {
    padding: 7px 14px;
    font-size: 1rem;
  }

  .yle-feature-content {
    display: block;
    padding: 16px;
  }

  .banner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }

  .yle-feature-list li {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  /* =========================
     新書區塊
  ========================= */

  .yle-newbook-section {
    margin: 22px auto;
    padding: 14px;
    border-radius: 14px;
  }

  .yle-newbook-heading {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .yle-newbook-heading h2 {
    font-size: 21px;
  }

  .yle-newbook-heading p {
    font-size: 14px;
  }

  .yle-book-group {
    margin-top: 18px;
  }

  .yle-book-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .yle-book-group-head > div {
    align-items: center;
    flex-wrap: wrap;
  }

  .yle-book-group-head h3 {
    font-size: 19px;
  }

  .yle-book-level {
    font-size: 0.85rem;
  }

  .yle-book-row {
    overflow: visible;
    padding: 0;
  }

  /* =========================
     書封＋4張試讀頁
     手機：封面置中，試讀頁 2 欄
  ========================= */

  .yle-book-preview-item {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 14px;
  }

  .yle-book-cover-block {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 190px;
    margin: 0 auto 4px;
    gap: 10px;
  }

  .yle-book-main-cover {
    height: 250px;
    border-radius: 10px;
  }

  .yle-book-buy-btn {
    padding: 12px 8px;
    font-size: 1rem;
  }

  .yle-book-price-bar {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 10px;
    font-size: 14px;
  }

  .yle-book-price-bar strong {
    font-size: 20px;
  }

  .yle-preview-page {
    border-radius: 10px;
  }

  .yle-preview-page img {
    height: 190px;
  }

  .yle-preview-page span {
    padding: 8px 4px;
    font-size: 13px;
  }

  /* =========================
     同級數優惠商品
  ========================= */

  .yle-level-product-area {
    margin: 8px 0 18px 0;
    padding: 14px;
    border-radius: 14px;
  }

  .yle-level-product-head {
    display: block;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .yle-level-product-head h4 {
    font-size: 19px;
  }

  .yle-level-product-head p {
    font-size: 14px;
  }

  .yle-level-product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .yle-level-product-card {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .yle-level-product-img {
    height: 135px;
  }

  .yle-level-product-info {
    margin: 0;
  }

  .yle-level-product-info h5 {
    min-height: auto;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .yle-level-price {
    margin-bottom: 10px;
  }

  .yle-level-price strong {
    margin-bottom: 5px;
    font-size: 15px;
  }

  .yle-level-price span {
    font-size: 13px;
  }

  .yle-small-buy-btn {
    padding: 9px 6px;
    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;
  }

  /* =========================
     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);
  }
  
    .modal {
    padding: 15px 10px;
  }

  .modal-content {
    max-height: calc(100vh - 30px);
    padding: 18px;
  }

  .discount-rules li {
    flex-direction: column;
  }
  

  .rule-badge {
    min-width: auto;
  }

  .modal-title {
    font-size: 20px;
  }
}

