@charset "UTF-8";
/* CSS Document */
/* 若有想寫新的 css 寫在此 */
.forWeb {
  display: block;
}
.forPhone {
  display: none;
}
@media (max-width: 767px) {
  .forWeb {
    display: none;
  }
  .forPhone {
    display: block;
  }
}
img {
  max-width: 100%;
  height: auto;
}
body {
  background: url("../../images/bg.jpg") top center repeat #ede7df;
  background-size:cover;
}
.wrapper {
  position: relative;
}
.bg01{
  background:url("../../images/bgBottom.png")bottom center no-repeat, url("../../images/bg_01.jpg")top center no-repeat;
  background-size:100% auto, 100% auto;
  background-color: #eadbc8;
}
.mainKv { max-width: 1200px; width: 100%; margin: 70px auto; position: relative; text-align: center;}
.maintop {
  max-width: 1200px;
  width: 100%;
  position: relative;
  margin: 0 auto;
  text-align: center;
}
.event_01 img{
  padding-top: 260px;
}
.event_02 {
}
.event_03 {
  position: absolute;
  top: 930px;
  left: 800px;
  background: url("../../images/bookcase_bg.png") no-repeat top;
  background-size: cover;
}
.event_04 {
  position: absolute;
  left:-150px;
  width: 125%;
}

.ai_section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.ai_video {
  flex: 4;
  max-width: 360px;
  border-radius: 20px;
  background: white;
}
.concept {
  flex: 6;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1200px) {
  .bg01 {
    background: url("../../images/bg_02.jpg")top center no-repeat;
    background-size: 100% auto;
  }
  .wrapper {
    
  }
  .event_01 img{
    padding-top: 22vw;
    width: 86%;
  }
  .event_03 {
    position: absolute;
    top: 77vw;
    left: 65vw;
    width: 30%;
    background: url("../../images/bookcase_bg.png") no-repeat top;
    background-size: 100% auto;
  }
  .event_04 {
    display: none;
  }
}
@media (max-width: 767px) {
  .bg01 {
    background: url(../../images/bg_03.jpg) top center no-repeat;
    background-size: 100% auto;
  }
  .event_01 img{
    padding-top: 30vw;
    width: 100%;
  }
  .event_03 {
    top:85vw;
  }
  .ai_section {
    flex-direction: column
  }
  .ai_section {
    flex-direction: column; /* 關鍵！改成直向堆疊 (上到下) */
    gap: 0px; /* 上下區塊的間距 */
  }
  .ai_video {
    flex: none; 
    width: 50%; 
    max-width: 300px; 
  }
  .concept {
    flex: none; 
    width: 80%; 
    max-width: 700px; 
  }
  .hand1, .hand2 {
    position: absolute;
    animation: wave 1.5s infinite;
  }
  .hand1{
    transform-origin: 100% 90%; 
    top:15vw;
    right: -2%;
  }
  .hand2 {
    transform-origin: 0% 90%; 
    top:40vw;
    left: -15%;
  }
  @keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(20deg); }
  }
}



/* KOL */
.expert-card {
  margin-bottom: 50px;
}
.expert-card__layout {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}
@media (max-width: 767px) {
  .expert-card__layout {
    flex-wrap: wrap;  
  }
}
/* 影片 */
.expert-card__video {
  width: 20%;
  position: relative;
  z-index: 2;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 9 / 16; 
  margin: 0px 10px;
  
  background: #FFF;
}
.expert-card__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  border: none;
  object-fit: cover;
  padding: 2px;
  border-radius: 15px;
}
.expert-card__video video {
  width: 100%;
  border-radius: 15px;
  background: #000;       /* 影片載入前的黑底 */
  box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* 加點陰影更立體 */
}
/*影片*/

.expert-card__info {
  width: 90%; 
  background: #eadbc8;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  z-index: 1;
}
.expert-card--reverse .expert-card__info {
  margin-left: 0;
}
.expert-card__profile {
  display: flex;
  align-items: flex-start; 
  gap: 24px;  
  margin-bottom: 24px;
}
.avatar {
  width: 220px; 
  object-fit: cover;
  flex-shrink: 0; 
}
.text-content {
  text-align: left;
  padding-top: 8px; 
  font-size: 15px; 
  line-height: 1.8;;    
}
.text-content h3 {
  color: #c45b42;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 12px;
}

.expert-card__deco {
  position: absolute;
  bottom: -10px;
  right: 20px;
  height: 190px;
  z-index: 3;
}
.expert-card--reverse .expert-card__deco {
  /* 第一組的插畫在中間偏右，可能需要微調 right 或 left */
}


@media (max-width: 767px) {
  .expert-card__layout,
  .expert-card--reverse .expert-card__layout {
    align-items: center; 
  }
  .expert-card__text {
    flex: 1 1 100%;           
    margin-bottom: 12px;      /* 文字跟下方影片拉開一點距離 */
  }

  .expert-card__video {
    width: 30%;
    max-width: 250px;
    z-index: 2;
  }
  .expert-card__video iframe,
  .expert-card__video video {
    width: 100%;
    aspect-ratio: 9 / 16; 
    object-fit: cover;
    border-radius: 15px;
  }
  .expert-card__info {
    width: 90%;
    margin-top: 0px; 
    padding: 25px;
    text-align: center;
  }
  .expert-card__profile {
    flex-direction: column;
    align-items: center;
  }
  .expert-card__profile {
    flex-direction: column;
    align-items: center; 
    text-align: center; 
    gap: 16px; 
  }
  .expert-card__profile .avatar {
    width: 30%;
  }
  .text-content {
    padding-top: 0;
    font-size: 12px; 
  }
  .expert-card__deco {
    bottom: -20vw;
    right: -30vw;
    height: 120px;
    transform: scale(0.5);
  }
}


/* 露選書店 */
.introduce {  
  position: relative;
  display: flex;
  justify-content: space-around;
  flex-direction: row-reverse;
  background: url(../../images/back.png) top no-repeat;
  background-size:100% auto;
  padding: 110px 0 20px 0;
}
.introduce > a {
  width: fit-content;
}
.box-1{
  flex: 4.5;
}
.content2 {  
	margin-left: 70px;
	margin-top: 70px;
  flex: 5.5;
}
.content2 img{margin: 10px 0;}
.txt{
	text-align: left; /* 文字對齊 */
	color: #595959;
	padding: 0px;
	line-height: 180%;  
  }
.buy-button {
  margin-top: 20px;
  display: block;
  width: fit-content;
  text-decoration: none;
  padding: 10px 20px;
  background-color: #eb603c;
  color: #fff;
  font-size: 20px;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.buy-button:hover {
  background-color: #000;
}
.buy-button:focus {
  outline: none;
}
.bookarea {
  background: #fdf9ec;
  padding: 10px;
}
@media screen and (max-width: 767px){
    .introduce {
      justify-content: initial;
      flex-direction: column;
      height: initial;
      background-image: url(../../images/back_m.png);
      padding: 130px 0 20px 0;
    }
    .introduce { 
      display: flex;
      flex-wrap: wrap;
      width:auto; 
      padding: 60px 14px 0px 20px;
      gap: 0px;
      box-sizing: border-box; 
    }
    .box-1 {
      width: 70%;
      margin: auto;
    }
    .content2 {
      margin-top: initial;
      margin-left: initial;
      text-align: left;
      margin-bottom: 20px;
    }
    .buy-button {
      font-size: 12px;
    }
}

.book_hashtag {
  max-width: 1200px;
  background: #fdf9ec;
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  padding-bottom: 10px;
}
.partner {
  max-width: 900px;
  width: 90%;
  margin: 56px auto;
  padding: 20px;
  border-radius: 20px;
  background: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.partner .title{color: black;}
@media (max-width: 768px) {
  .partner .title {
      width: 60%; 
      text-align: center;
  }
}

/********* back to top 按鈕 *********/
.scrollToTop {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 40px;
  width: 45px;
  height: 45px;
  color: #fff;
  background-color: rgba(164, 164, 164, 0.7);
  border: none;
  border-radius: 50%;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.scrollToTop:hover {
  background-color: #555;
}
.scrollToTop:focus {
  outline: none;
}
@media screen and (max-width: 960px) {
  .scrollToTop {
    bottom: 22vw;
    right: 5vw;
    font-size: 4vw;
  }
}
/********* END// back to top 按鈕 *********/

/* =========================================
  1. 佈局工具類 (Layout Utilities)
  ========================================= */
.grid-layout {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(1, 1fr); /* 預設手機 1 欄 */
  padding: 10px;
  margin: 0 10px;
}
/* 針對 grid 容器內的空 a 標籤 */
.grid-layout > a:empty {
  display: none;
}
.full-row {
  grid-column: 1 / -1;
  /* "1 / -1" 代表從第一格寬度跨越到最後一格，不管你原本是幾欄都會自動滿版 */
}
.full-row:hover img {
  transform: none;
}
/* 桌機版欄位控制 (768px 以上) */
@media (min-width: 768px) {
  .pc-col-1 {
    grid-template-columns: repeat(1, 1fr);
  }
  .pc-col-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pc-col-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .pc-col-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .pc-col-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  .pc-col-6 {
    grid-template-columns: repeat(6, 1fr);
  }
  .pc_show.grid-layout {
    display: grid !important;
  }
}

/* 手機版欄位控制 (767px 以下) */
@media (max-width: 767px) {
  .grid-layout {
    margin: 0 3vw 3vw 3vw;
    padding: 10px 0;
  }
  .mb-col-1 {
    grid-template-columns: repeat(1, 1fr);
  }
  .mb-col-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .mb-col-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .mb-gap-sm {
    gap: 5px;
  } /* 手機縮小間距用 */
}

/* =========================================
  2. 主題系統 (Theme System)
  ========================================= */

/* 主題 A：一番賞 */
.theme-ichi {
  --card-bg: #fff;
  --card-border: #fff;
  --card-borderPx: 2px;
  --name-color: #000;
  --price-label: #000;
  --price-num: #ff3b3b;
}

/* 主題 B：競標 */
.theme-bidding {
  --card-bg: #fff;
  --card-border: #fff;
  --card-borderPx: 0px;
  --name-color: #532c27;
  --price-label: #e63b23;
  --price-num: #e63b23;
}

/* 主題 C：一般商品卡 */
.theme-pd {
  --card-bg: #ae9688;
  --card-border: #ae9688;
  --card-borderPx: 0px;
  --name-color: #fff;
  --price-label: #fff;
  --price-num: #fff;
}

.theme-ichi .grid-item:hover,
.theme-bidding .grid-item:hover,
.theme-pd .grid-item:hover {
  transform: translateY(-5px);
}

@media (max-width: 767px) {
  .theme-pd {
    --card-borderPx: 0px;
  }
}

/* =========================================
  3. 商品卡結構 (Component)
   ========================================= */
.grid-item {
  background: var(--card-bg);
  border: var(--card-borderPx) solid var(--card-border);
  border-radius: 0px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  padding: 5px;
}
/* --- 1. 保持原樣 (不需要寫 hover，或者強制重設) --- */
.hvr-none:hover {
  transform: none !important;
  box-shadow: none !important;
  cursor: default;
}

/* --- 2. 放大 --- */
.hvr-grow:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --- 3. 往上移動  --- */
.hvr-up:hover {
  /* 注意：通常上移是負值，translateY(-4px) 才是往上 */
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  transition: all 0.5s ease-out;
}

.imgbox {
  width: 100%;
  aspect-ratio: 1 / 1; /* 固定比例 */
  overflow: hidden; /* 超出部分隱藏 */
  display: flex; /* 讓圖片置中 */
  align-items: center;
  justify-content: center;
  background-color: #fff;
  margin: 0;
}
.imgbox img {
  max-width: 100%; /* 寬度最多 100% */
  max-height: 100%; /* 高度最多 100% */
  object-fit: contain; /* 確保整張圖都看得到，不被裁切 */
}

/* 內容區 */
.pd-content {
  padding: 2px 5px;
  display: flex;
  flex-direction: column;
}

.name {
  color: var(--name-color);
  font-size: 13px;
  height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0px;
}

.price {
  color: var(--price-label);
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
}
.price b {
  color: var(--price-num);
  font-size: 26px;
  line-height: 1;
  display: inline-block;
  letter-spacing: 0.05rem;
}

/* 額外元件：競標橫條 & 副標題 */
aside {
  display: flex;
  justify-content: space-between;
  background-color: #e27c37;
}
.rt-auction-time {
  text-align: right;
  flex: 1; /* 讓這個區塊佔滿剩下的空間，文字才能在裡面靠右 */
}
.rt-auction-text,
.rt-auction-time {
  word-break: break-all;
  color: #fff !important;
  font-size: 15px !important;
  padding: 2px 5px;
}

.promo-tag {
  background: #0e9167;
  color: #fff;
  text-align: center;
  padding: 4px;
  font-size: 13px;
  font-weight: 900;
  border-radius: 50px;
  margin-top: 5px;
}

@media (max-width: 767px) {
  .grid-item span {
    line-height: 14px;
  }
  .name,
  .promo-tag,
  .price {
    font-size: 12px;
  }
  .rt-auction-text,
  .rt-auction-time {
    font-size: 10px !important;
  }
  .price b {
    font-size: 20px;
    transform: translateY(4px);
  }
  .imgbox{
    width: ; 
    height:; 
    overflow: hidden; 
    padding: 0;
    margin: 0; 
    border-radius: 0;
  }
}