::selection {
	background: #b3d4fc;
	color: #000;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: text-top;
  display: block;
}

.wrapper {
  width: 100%;
  background-image: url(../../images/bg.jpg), url(../../images/bg_0.jpg);
  background-repeat: no-repeat, repeat;
  background-position: top center, top center;
  background-size: auto, auto;
  background-color: #fbfaf6;
}
@media (max-width: 960px) {
  .wrapper {
    background: url(../../images/bg_960.jpg), url(../../images/bg_0.jpg);
    background-repeat: no-repeat, repeat;
    background-position: top center, top center;
    background-size: auto, auto;
    }
}
.container-fluid {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}
@media (max-width: 960px) {
  .container-fluid, .container {
    
  }
}
.kv {
  position: relative;
  width: 100%; /* 寬度撐滿 */
  max-width: 960px; /* 根據你的設計設定最大寬度 */
  height: auto; /* 讓高度隨比例縮放 */
  aspect-ratio: 960 / 900; /* 重要：保持原圖比例，避免容器塌陷 */
  margin: 0 auto;
  pointer-events: auto;
}
.kv > div {
  position: absolute;
}
.kv img {
  width: 100%;
  height: auto;
  display: block;
}
.kv_w1 {
  top: 0;
  left: 0;
  width: 100%;
}

@media (max-width: 960px) {
  .kv {
    padding-top: 100px;
    margin-bottom: 30px;
    aspect-ratio: 960 / 1300;
  }
  .kv_w1 {
    top: 30px;
  }
  .kv_game {
    bottom: -30px;
    right: 0;
    width:35vw;
  }
}

/* =========================================
  1. 佈局工具類 (Layout Utilities)
   ========================================= */
.grid-layout {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(1, 1fr); /* 預設 1 欄 */
  padding: 20px 10px;
  margin: 0;
  border-radius: 10px;
  background-color: ;
}
/* 針對 grid 容器內的空 a 標籤 */
.grid-layout > a:empty {
  display: none;
}
.full-row {
  grid-column: 1 / -1;
  /* "1 / -1" 代表從第一格寬度跨越到最後一格，不管你原本是幾欄都會自動滿版 */
}
.full-row:hover img {
  transform: none;
}
/* 桌機欄數控制 */
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.grid-3col-feature-right {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1.5fr !important; 
    gap: 15px;
  }

/* 手機版欄位控制 (768px 以下) */
@media (max-width: 768px) {
  .grid-layout {
    margin: 0 5vw;
    padding: 10px 5px 0 5px;
    gap: 10px;
  }
  .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-space {
    margin: 0 20vw;
  }
}

/* =========================================
  2. 主題系統 (Theme System)
   ========================================= */

/* 主題 A：一番賞 */
.theme-ichi {
  --card-bg: #fff;
  --card-border: #fff;
  --card-borderPx: 1px;
  --name-color: #000;
  --price-label: #000;
  --price-num: #ff3b3b;
}

/* 主題 B：競標 */
.theme-bidding {
  --card-bg: #fff;
  --card-border: #fff;
  --card-borderPx: 1px;
  --name-color: #000;
  --price-label: #ff2525;
  --price-num: #ff2525;
}

/* 主題 C：一般商品卡 */
.theme-pd {
  --card-bg:#4068c1;
  --card-border:#4068c1;
  --card-borderPx: 10px;
  --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: scale(1.03);
}

@media (max-width: 768px) {
  .theme-pd {
    --card-borderPx: 10px;
  }
}

/* =========================================
  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: 0;
}

/* 讓該項目從第 1 條格線橫跨到最後 1 條格線 */
.col-span-full {
  grid-column: 1 / -1;
  background: #fff;
}
.col-span-full > h2 {
    --bg-size: 400%;
    --color-one: hsl(15 90% 55%);
    --color-two: #ffff00;
    background: linear-gradient(
        90deg,
        var(--color-one),
        var(--color-two),
        var(--color-one)
      )
      0 0 / var(--bg-size) 100%;
    color: transparent;
    background-clip: text;
    font-weight: bold ;
}
@media (prefers-reduced-motion: no-preference) {
  .col-span-full > h2 {
    animation: move-bg 8s linear infinite;
  }
  @keyframes move-bg {
    to {
      background-position: var(--bg-size) 0;
    }
  }
}
@media (max-width: 768px) {
  .col-span-full > h2  {
    font-size: 20px;
  }
}
/* --- 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 {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.grid-item img {
  width: 100%;
  display: block;
  max-width: 100%;
  transition: all 0.5s ease-out;
}

.imgbox {
  width: 100%;
  aspect-ratio: 1 / 1; /* 固定比例 */
  overflow: hidden; /* 超出部分隱藏 */
  background-color: #fff;
  position: relative;
  contain: layout paint;
}
.imgbox img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 確保整張圖都看得到，不被裁切 */
  object-position: center;
  display: block;
  min-width: 0;
  min-height: 0;
}
.bid-icon {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 50%;
}

/* 內容區 */
.pd-content {
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
}

.name {
  color: var(--name-color);
  font-size: 16px;
  height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: hidden;
  word-break: break-all;
  margin-bottom: 5px;
}

.price {
  color: var(--price-label);
  display: flex;
  justify-content: center;
  align-items:center;
  font-size: 20px;
  gap: 2px;
  padding: 0 10px 15px;
}
.price b {
  color: var(--price-num);
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  letter-spacing: 0.05rem;
}


/* 額外元件：競標橫條 & 副標題 */
aside {
  display: flex;
  justify-content: space-between;
  background-color: #000;
  border: 1px solid #fff;
}
.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: ;
  color: #fff;
  text-align: center;
  padding: 4px;
  font-size: 15px;
  font-weight: 900;
}

@media (max-width: 768px) {
  .grid-item span {
    line-height: 15px;
  }
  aside.promo-tag {
    flex-direction: column; 
    align-items: center; 
    gap: 2px; 
  }
  .rt-auction-text, 
  .rt-auction-time {
    margin-left: 0 !important; 
    padding: 0;
    font-size: 11px !important;
    line-height: 1.2;
    width: 100%;
    text-align: center;
  }
  .pd-content {
    padding: 5px;
  }
  .name,
  .promo-tag,
  .price {
    font-size: 12px;
  }
  .rt-auction-text,
  .rt-auction-time {
    font-size: 10px !important;
  }
  .price b {
    font-size: 16px;
  }
  .price b::before {
    content: "$";
    font-size: 11px;
    margin-right: 1px;
  }
  .price {
    padding: 0px;
    white-space: nowrap;
  }
  .theme-bidding .price {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    line-height: 1.2; 
    gap: 0;  
  }
  .theme-bidding .price b {
    font-size: 20px; 
    margin-left: 0;
  }
}

/* 價格外層容器 */
.price-group {
  display: flex;
  flex-wrap: wrap;   
  align-items: baseline;
  justify-content: center; 
  gap: 10px;
  padding: 5px 0px;
}

/* 原價樣式 */
.old-price {
  font-size: 15px;
  color: #999;  
  text-decoration: line-through; 
}

/* 特價樣式 */
.sale-price {
  font-size: 15px;
  color: #ff3b3b; 
  display: flex;
  align-items: baseline;
}

.sale-price b {
  font-size: 24px;
  margin-left: 2px;
  line-height: 1;
  vertical-align: baseline;
}
.grid-item a:hover .price-group .sale-price {
    color:#ff3b3b; opacity: 1; visibility: visible;
  }

/* 手機版 RWD 調整 */
@media (max-width: 767px) {
  .price-group {
    flex-direction: column; /* 空間不足時，原價在上特價在下 */
    align-items: center;    /* 改為置中對齊 */
    gap: 2px;
  }
  
  .old-price, .sale-price {
    font-size: 11px;
  }
  
  .sale-price b {
    font-size: 16px;
  }
}


.bank {
  clear: both;
  padding: 30px 0 50px 0;
}




/* 基礎樣式與變數設定 */
.box {
  background-size: 100%;
  margin-bottom: 30px;
}

/* --- 置中段落樣式 --- */
.center-quote {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

.quote-icon {
  width: 24px;
  height: 24px;
  fill: var(--theme-color); /* SVG 自動換色關鍵 */
}
@media (max-width: 768px) {
  .center-quote {
    font-size: 12px;
  }
  .center-quote img{
    height: 18px;
  }
}

/*side-menu*/
.side-menu2 {
    position: fixed;
    width: auto;
    top: 15%;
    right: 0;
    padding: 0px;
    color: #4068c1;
    background: url() ;
    background-color:rgba(255, 255, 255, 1) ;
    border-radius: 2px;
    border: 1px solid #fff;
    box-sizing: border-box;
    border-radius: 10px;
    opacity: 1;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: .3s;
    text-align: center;
    z-index: 99;
    overflow: hidden;
    z-index: 3000;
  }
.side-menu2 nav a:hover{
    color: #4068c1;
  }
.side-menu2 .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5px;
}
.side-menu2 nav a {
  color: #000;
}
.side-menu2 .area2 li {
  padding-top: 5px;
  border-bottom: 1px solid #999;
}
@media (max-width: 768px) {
  .side-menu2 {
    display: none;
  }
}

.ball-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 60px;
  margin: 6px auto;
  max-width: 1200px;
}

/* 每個項目 */
.ball-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
}

/* 手機版 */
@media (max-width: 767px) {
  .ball-list {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 30px;
  }

  /* 第 5 個置中，寬度跟上面單格一樣 */
  .ball-list a:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 0px) / 2);
  }
}




/* --- 手機版錨點選單 (abar) 橫向自適應寬度優化 --- */
.abar {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; 
}

/* 隱藏橫向滾動條，讓外觀更簡潔乾淨 (可依需求保留或刪除) */
.abar::-webkit-scrollbar {
  display: none;
}

.abar ul {
  width: max-content !important; /* 讓寬度剛好貼合內容，覆寫原本的 1400px */
  display: flex !important;      /* 讓內容橫向排列 */
  align-items: center;           /* 垂直置中 */
  flex-wrap: nowrap;             /* 強制不換行 */
  padding: 0 10px;               /* 左右預留一點內距，避免文字太貼邊 */
  margin: 0 auto;
}

.abar ul li {
  flex-shrink: 0;                /* 防止內部 li 在螢幕變小時被過度擠壓變形 */
}

.book_hashtag {
  width: 100%;
  background: #0b235e;
  border-radius: 0 0 20px 20px;
  margin-bottom: 30px;
  padding-bottom: 10px;
}

.partner {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  border-radius: 20px;
  background: #f7f3d7;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.partner .title {color: #000; font-size: 20px;}
@media (max-width: 768px) {
  .partner {
    width: 90%;
    margin: 0 auto;
  }
  .partner .title {
      width: 60%; 
      text-align: center;
      font-size:13px;
  }
}


.Hashtag {
  position: relative;
  display: block;
  padding: 15px;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  font-size: 14px;
  line-height: 20px;
  font-family: "Microsoft JhengHei", Helvetica;
  text-align: center;
}
.Hashtag dt {
  float: left;
  display: inline-block;
  margin: 0 auto;
  padding: 5px;
  color: #fff;
}
.Hashtag dd {
  margin: 0;
  padding: 0;
}
.Hashtag dd strong {
  display: inline-block;
  margin: 0 10px 10px 0;
  font-weight: normal;
}
.Hashtag dd a {
  display: block;
  padding: 8px 20px;
  background-color: #4068c1;
  box-shadow: 0 0 0 0px #fff;
  text-decoration: none;
  border-radius: 6px;
}
.Hashtag dd a:hover,
.Hashtag dd a:active {
  background-color: rgba(65, 96, 162, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 246, 195, 0.2),
    0 2px 0 rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
.Hashtag dd span {
  color: #fff;
}

/*輪播*/
.bookcase_box {
  background: url(../../images/CelebrityCardBG.png) no-repeat center;
  background-size: 100% auto;
  margin: 30px auto 0 auto;
  padding: 185px 20px 150px 20px;
  text-align: center;
}
@media (max-width: 768px) {
  .bookcase_box  {
    background: url(../../images/CelebrityCardBG_m.png) no-repeat top center #12318b;
    background-size: 100% auto;
    padding: 45vw 0 8vw 0;
    margin: 2vw auto;
  }
}
.bookcase_box a {
  margin: 0 auto;
  display: inline-block;
  padding-top:10px;
}
.bookcase_container {
  width: 80%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.bookcase_track {
  display: flex;
  transition: transform 1s ease-in-out;
}

.bookcase_item {
  flex: 0 0 33.3333%; /* 一排3張 */
  padding: 5px;
  box-sizing: border-box;
}



 /* 箭頭按鈕 */
    .arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
    }
    .arrow-left {
      left: 0px;
    }

    .arrow-right {
      right: 0px;
    }

@media (max-width: 768px) {
  .bookcase_container{
    width: 95%
  }
  .bookcase_item {
    flex: 0 0 50%;
  }
  .arrow{
    width: 30px;
    height: 30px;
  }
}
/*輪播//END*/

.img_small {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 兩欄 */
  gap: 12px;
  align-items: center;
}
@media (max-width: 768px) {
  .img_small {
    display: grid;
    grid-template-columns: repeat(1, 1fr); 
    gap: 12px;
    padding:2vw 15vw 10vw 15vw;
  }
}


/*AI上架*/
.ai_section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
  background: url(../../images/TextTitle03.png) no-repeat top center;
  background-size: 100% auto;
}
.ai_video {
  flex: 3;
  max-width: 250px;
  border-radius: 20px;
  background: white;
  margin-top: 7%;
  margin-left: 5%;
}
.concept {
  flex: 7;
  display: flex;
  flex-direction: column;
  display: grid;
  grid-template-columns: 2fr 2fr 1fr; 
  gap: 12px;
  padding-top: 70%;
}
.pc_show {
    display: block !important;
  }
.mb_show {
    display: none !important;
  }
.mb_showB {
    display: none !important;
  }
@media (max-width: 767px) {
  .ai_section {
    flex-direction: column;
    background: url() no-repeat top center;
    background-size: 100% auto;
  }
  .ai_section {
    flex-direction: column; /* 關鍵！改成直向堆疊 (上到下) */
    gap: 0px; /* 上下區塊的間距 */
  }
  .ai_video {
    flex: none; 
    width: 60%; 
    max-width: 300px; 
    margin: 0 auto;
  }
  .concept {
    flex: none; 
    grid-template-columns: 1fr; 
    width: 70%; 
    padding-top: 0%;
  }
  .mb_showB {
    display: block !important;
  }
}
@media (max-width: 960px) {
  .mb_show {
    display: block !important;
  }
  .pc_show {
    display: none !important;
  }
}