/* 全局樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans TC", "Microsoft YaHei", "微軟雅黑", Arial, sans-serif;
    background-image: url('../images/primary-red-bg.png');
    background-repeat: repeat;
    background-size: 100% auto;
    background-color: transparent; /* 移除原本的背景色 */
    color: #333;
}

.desktop{
	display: block;
}
.mobile{
	display: none;
}

/* 主要顏色變量 */
:root {
    --primary-red: #900c09;
    --secondary-red: #cc0000;
    --tertiary-red: #ef6626;
    --gold: #ffdb96;
    --cream: #FFF5E1;
    --primary-gray: #cccccc;
    --secondary-gray: #666666;
	--white: #ffffff;
    --brown: #4b0603;
    --black: #222;
}


/* 商品圖片容器 */
.product-image {
    width: 100%;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

/* 商品信息樣式 */
.product-title{
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
}

.product-desc {
    font-size: 14px;
    color: var(--secondary-gray);
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-red);
}

/* 按鈕定義 */

.more-button {
    font-family: 'Noto Serif TC', serif;
    color: var(--white);
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 主要內容區域 */
main {
    margin: -15% auto 0;
}

/* 優惠券區塊樣式 */
.coupon-section {
    padding: 20px;
}

.coupon-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
}

.coupon-item {
    background: url('../images/coupon-item-bg.png') no-repeat center center;
    background-size: contain;
    width: calc(25% - 15px);
    position: relative;
    padding-top: calc(25% - 15px); /* 創建1:1比例 */
    height: 0; /* 移除固定高度 */
    filter: drop-shadow(0 15px 0 rgba(0, 0, 0, 0.2));
}

/* 新增一個內容容器 */
.coupon-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10%;
}

.coupon-item .date {
    font-family: 'Noto Serif TC', serif;
    font-size: 18px;
    font-weight: bolder;
    border-bottom: 1px solid var(--black); /* 深紅色底線 */
    padding-bottom: 5px;
    margin-bottom: 0;
}

.coupon-item .discount {
    font-family: 'Noto Serif TC', '思源宋體', 'Source Han Serif TC', '微軟正黑體', 'Microsoft JhengHei', serif;
    font-size: 26px;
    font-weight: bolder;
    color: var(--primary-red);
    margin: 15px 0;
    line-height: 1.4;
}

.coupon-item .discount span{
    font-size: 13px;
}

.coupon-item .buttons {
    display: flex;
    gap: 5px;
}

.coupon-item .action-btn,
.coupon-item .info-btn {
    background-color: var(--primary-red); /* 深紅色按鈕 */
    color: var(--gold);
    padding: 8px 15px;
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
    transition: all 0.3s ease; /* 添加過渡效果 */
}

.coupon-item .action-btn:hover,
.coupon-item .info-btn:hover {
    background-color: #660000; /* 懸停時顏色變深 */
    transform: translateY(-3px); /* 向上位移 */
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3); /* 添加陰影 */
}

.coupon-item .info-btn {
    background-color: var(--brown);
    color: var(--gold);
}

/* 限時搶購區塊 */
.lucky-play {
    position: relative;
    width: 90%;
    margin: 3% auto 5%;
}

.lucky-play-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
}

.fw01{
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-45vw, -3vw);
    max-width: 12vw; 
    height: auto;
}

.fw02{
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(38vw, 5vw);
    max-width: 9vw; 
    height: auto;
}

.fw03{
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-9vw, -20vw);
    max-width: 6vw; 
    height: auto;
}

/* 左側扭蛋機區域 */
.gacha-machine {
    flex: 0 0 50%;
    min-height: 550px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gacha-machine::before {
    content: '';
    position: absolute;
    top: 2vw;
    left: 2vw;
    width: 6.5vw;
    height: 6.5vw;
    background-image: url('../images/shiny-image.svg');
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

.gacha-machine::after {
    content: '';
    position: absolute;
    right: 1vw;
    width: 6.5vw;
    height: 6.5vw;
    background-image: url('../images/shiny-image.svg');
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

.gachapon-machine {
    width: 200px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(2);
    transform-origin: center center;
    filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.2));
    z-index: 5;
}


  /* 扭蛋機頂部 */
  .machine-top {
    width: 30px;
    height: 15px;
	background-image: url(../images/machine-base-bg.png);
	background-size: 500%;
    border-radius: 30px 30px 0 0;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
  .capsules-container-top {
	position: relative;
	z-index: 10;
	width: 55%;
	margin: auto;
	height: 15px;
	background-image: url(../images/machine-base-bg.png);
	background-size: 150%;
	border-radius: 30px 30px 0 0;
  }
  /* 扭蛋機玻璃球體 */
  .capsules-container {
	margin-top: -15px;
    width: 100%;
    height: 200px;
    border-radius: 100px;
    border: 5px solid var(--gold);
    box-shadow: 0 5px 10px 5px rgba(252, 238, 189, 0.3);
    position: relative;
    z-index: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(247, 229, 168, 0.3);
  }

  /* 添加多层反光��果 */
  .capsules-container::before,
  .capsules-container::after,
  .capsules-container .highlight {
    content: '';
    position: absolute;
    pointer-events: none;
  }

  .capsules-container::before {
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(247, 229, 168, 0.4) 0%,
        rgba(247, 229, 168, 0.1) 30%,
        transparent 70%
    );
    transform: rotate(-30deg);
  }

  .capsules-container::after {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(247, 229, 168, 0.3) 0%,
        transparent 50%,
        rgba(247, 229, 168, 0.1) 100%
    );
  }

  /* 修改白色高光层位置 */
  .capsules-container .highlight {
	z-index: 10;
    top: 5px;
    left: 5px;
    width: 50%;
    height: calc(100% - 10px);
    background: linear-gradient(
        to right,
        rgba(247, 229, 168, 0.8) 0%,
        rgba(247, 229, 168, 0.3) 30%,
        transparent 100%
    );
    border-radius: 100px 0 0 100px;
  }

  .machine-decorate{
	position: relative;
	z-index: 10;
	width: 70%;
  }

  /* 扭蛋機底座 */
  .machine-base-top {
	position: relative;
	width: 90%;
	margin: -25px auto 0;
	height: 15px;
	background-image: url(../images/machine-base-bg.png);
	background-size: 100%;
	border-radius: 10px;
  }
  .machine-base {
    width: 100%;
    height: 125px;
    background-size: 300%;
    border-radius: 0 0 10px 10px;
    position: relative;
	background-image: url(../images/machine-base-bg.png);
	background-size: 100%;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
  }
  .machine-base::before{
	content: '';
	position: absolute;
	bottom: 0px;
	width: 100%;
	height: 20px;
	background-color: var(--secondary-red);
    mix-blend-mode: soft-light;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
	border-radius: 0 0 10px 10px;
	z-index: 0;
  }
  
  /* 旋鈕區域 */
  .coin-slot {
    width: 80px;
    height: 70px;
	background-color: var(--secondary-red);
    mix-blend-mode: darken;
    border-radius: 40px 40px 0 0;
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
  }
  
  /* 旋鈕 */
  .rotary-knob {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 10;
	width: 55px;
    height: 55px;
	background-image: url(../images/rotary-knob.png);
	background-size: 100%;
	background-repeat: no-repeat;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: coinSlotRotate 1s ease-in-out infinite alternate;
  }
  
  @keyframes coinSlotRotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(45deg);
    }
  }
  
  /* 旋转动画类 */
  .rotary-knob.spinning {
    animation: rotate 2s ease-in-out forwards;
  }
  
  /* 出貨口 */
  .output-slot {
    width: 60px;
    height: 60px;
    background-color: var(--black);
	background: linear-gradient(0deg, #3b3b3b 20%, #222 0%);
    border-radius: 30px 30px 0 0;
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
  }
  

/* 扭蛋樣式 */
.capsule {
	background-color: var(--capsule-color);
    background-image: url(../images/capsule-glitter-bg.png);
    background-size: 100% 100%;
    width: 50px;
    height: 50px;
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--tertiary-red);
    box-shadow: 
        inset -2px -2px 10px rgba(255,255,255,0.2),
        2px 2px 10px rgba(255,255,255,0.1);
}

/* 扭蛋上半部分 */
.capsule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.9) 0%,
        rgba(255,255,255,0.3) 100%
    );

    border-radius: 35px 35px 0 0;
    border-bottom: 1px solid var(--tertiary-red);
}
  

.rotary-knob.spinning .knob-handle {
  animation: rotate 2s ease-in-out;
}

.dropped-capsule {
    background-image: url(../images/capsule-glitter-bg.png);
    background-size: 100% 100%;
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 10px;
    left: 5px;
    transition: all 0.5s ease-out;
    opacity: 0;
    z-index: 10;
    border-radius: 50%;
    border: 1px solid var(--primary-red);
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.2),
                2px 2px 4px rgba(0,0,0,0.1);
}

.dropped-capsule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.9) 0%,
        rgba(255,255,255,0.3) 100%
    );
    border-radius: 25px 25px 0 0;
    border-bottom: 1px solid var(--tertiary-red);
}

.dropped-capsule.active {
    opacity: 1;
    bottom: 0;
}

/* 旋钮器 - 处理位置 */
.knob-container {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}


/* 修改旋转动画关键帧 */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 晃动动画 */
@keyframes shake {
	0%, 100% { transform: translate(-50%, -50%) scale(2);}
	20% { transform: translate(-55%, -50%) scale(2);}
	40% { transform: translate(-45%, -50%) scale(2);}
	60% { transform: translate(-55%, -50%) scale(2);}
	75% { transform: translate(-45%, -50%) scale(2);}
  }
  
  .gachapon-machine.shaking {
	animation: shake 0.5s ease-in-out;
  }

.capsule::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.dropped-capsule::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: 1;
}  

/* 右側資訊區域 */
.info-section {
    flex: 0 0 50%;
    color: #FFE5B4;
    text-align: center;
    padding: 100px 60px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('../images/info-section-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: -1;
}

.info-section h2 {
    margin: 20px 0;
}






.login-text {
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 18px;
    margin: 30px auto;
    width: fit-content;
    position: relative;
}

.login-text::before {
    position: absolute;
    content: '╲ ';
    font-size: 12px;
    left: -20px;
    top: 10px;
}

.login-text::after {
    position: absolute;
    content: ' ╱';
    font-size: 12px;
    right: -20px;
    top: 10px;
}

.prize-list {
    width: fit-content;
    margin: 0 auto;
}

.prize-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.prize-item:last-child {
    border-bottom: none;
}

.prize-rank {
    background: var(--secondary-red);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 16px;
    margin-right: 15px;
    min-width: 45px;
    text-align: center;
}

.prize-name {
    color: var(--white);
    font-size: 18px;
    flex: 1;
}

.prize-content {
    letter-spacing: 1px;
    font-size: 20px;
    line-height: 1.6;
    flex: 1;
}

/* 按鈕容器 */
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}


.action-button {
    display: block;
    background: linear-gradient(45deg, #f7c67b, #fff);
    color: var(--primary-red);
    text-align: center;
    padding: 13px 22px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: translateY(-3px);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.winner-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.winner-table th,
.winner-table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.winner-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* 商品網格樣式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

/* 商品列表樣式 */
.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

/* 新肌預售區塊 */
.new-arrivals {
    background-image: url('../images/primary-gold-bg.png');
    background-repeat: repeat;
    background-size: 100% auto;
    padding: 100px 0 10px;
    position: relative;
}

.new-arrivals h2 {
    color: var(--primary-red);
}

.new-arrivals .fashion-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 300px auto 300px;
    align-items: center;
}

/* 左右側商品展示區 */
.new-arrivals .product-showcase {
    background-color: var(--primary-red);
    background-image: url('../images/na-section-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 商品卡片樣式 */
.new-arrivals .product-item {
    display: flex;
    justify-content: space-between;
    position: relative;
    /* 設定容器高度 */
    height: 180px;
    background-color: var(--white);
}
.new-arrivals .product-item.special {
    background-color: var(--cream);
    background: url('../images/na-product-bg.png');
    background-size: cover;
}

/* 左欄商品資訊 */
.new-arrivals .product-info {
    padding: 15px;
    z-index: 1;
}

/* 右欄商品圖片 */
.new-arrivals .product-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 65%; /* 設定寬度 */
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.new-arrivals .product-image img {
    width: 100%;
    height: 100%; /* 修改這行 */
    object-fit: cover; /* 添加這行 */
    display: block; /* 添加這行 */
}

.new-arrivals .product-title {
    font-size: 20px;
}

.new-arrivals .product-price {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.new-arrivals .product-tag {
    color: var(--secondary-gray);
    font-size: 14px;
}

.new-arrivals .shop-now {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--black);
    color: var(--white);
    padding: 6px 12px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
}

/* 中間模特兒圖片容器 */
.new-arrivals .model-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: -120px;
}

.new-arrivals .model-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 底部薦區 */
.recommendations {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 0;
}

.recommendations h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

/* 商品推薦網格區塊 */
.recommendations .grid-layout {
    display: grid;
    grid-template-areas: 
        "left center1 center2 right"
        "left center3 center4 right";
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

/* Grid Area 定義 */
.recommendations .left-item {
    border-radius: 0 50px 0 50px;
    grid-area: left;
}

.recommendations .center-item-1 {
    border-radius: 50px 0 0 0;
    grid-area: center1;
}

.recommendations .center-item-2 {
    border-radius: 0 0 0 50px;
    grid-area: center2;
}

.recommendations .center-item-3 {
    border-radius: 0 0 50px 0;
    grid-area: center3;
}

.recommendations .center-item-4 {
    border-radius: 0 50px 0 0;
    grid-area: center4;
}

.recommendations .right-item {
    border-radius: 50px 0 50px 0;
    grid-area: right;
}

.recommendations .product-item {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recommendations .product-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.recommendations .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommendations .product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    background: var(--white);
    text-align: center;
}

.recommendations .product-title {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 500;
}

.recommendations .product-desc {
    font-size: 15px;
    color: var(--secondary-gray);
}

.flashsale .product-card {
    text-align: center;
    transition: transform 0.3s;
}

.flashsale .product-card:hover {
    transform: translateY(-5px);
}

/* 免稅保養區塊樣式 */
.flashsale {
    background-image: url('../images/primary-gold-bg.png');
    background-repeat: repeat;
    background-size: 100% auto;
    padding: 80px 0;
}

.flashsale h2 {
    color: var(--primary-red);
}

/* 標題區域樣式 */
.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header img {
    /* 設定標題圖片的基本樣式 */
    max-width: 100%;
    padding: 0 20px;
    height: auto;
    /* 可根據需求調整具體尺寸 */
    width: fit-content;
}

/* 商品網格樣式 */
.flashsale .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ���多商品按鈕樣式 */
.flashsale .more-products {
    text-align: center;
    margin-top: 40px;
}

.flashsale .more-button {
    background-color: var(--primary-red);
}

.flashsale .more-button:hover {
    transform: translateY(-3px);
}


/* 美妝香氛產品塊樣式 */
.beauty-fragrance {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.beauty-fragrance h2 {
    color: var(--gold);
}

.beauty-fragrance .product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.beauty-fragrance .product-item {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease;
}

.beauty-fragrance .product-image-wrapper {
    position: relative;
    padding: 10px;
}

.beauty-fragrance .product-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.beauty-fragrance .discount-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: var(--white);
    padding: 5px 15px;
    font-weight: bold;
}

.beauty-fragrance .product-info {
    padding: 15px;
    text-align: center;
    letter-spacing: -1px;
}

.beauty-fragrance .product-name {
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 1px;
    margin-bottom: 10px;
	color: var(--gold);
}

.beauty-fragrance .price {
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
}

.beauty-fragrance .original-price {
    color: #e56c66;
    text-decoration: line-through;
    font-size: 16px;
}

.beauty-fragrance .sale-price {
    color: var(--white);
    font-weight: bold;
    
    font-size: 22px;
}

/* 懸停效果 */
.beauty-fragrance .product-item:hover {
    transform: translateY(-5px);
}

.beauty-fragrance .more-products {
    width: 100%;
    text-align: center;
    margin: 40px 0;
}

.beauty-fragrance .more-products:hover {
    color: var(--black);
}

/* 免稅店商品區塊的更多商品按鈕 */
.flashsale .more-products {
    width: 100%;
    text-align: center;
    margin: 40px 0;
}

.beauty-fragrance .more-button {
    background: var(--black);
}

.beauty-fragrance .more-button:hover {
    background: #000;
    transform: translateY(-3px);
}

/* 品牌商品展示區塊 */

.brand-highlights {
    background-image: url('../images/primary-red-bg.png');
    background-repeat: repeat;
    background-size: 100% auto;
    padding: 80px 0;
}

.brand-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.brand-item {
    background: var(--white);
    text-align: center;
    padding-top: 30px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--black);
    position: relative; /* 添加相對定位 */
    overflow: hidden; /* 防止標籤超出容器 */
}

.brand-item:nth-child(8)::before {
    content: '線上獨家';
    position: absolute;
    top: 15px;
    right: -40px;
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 13px;
    font-weight: lighter;
    z-index: 1; /* 確保標籤在圖片上層 */
}

.brand-item:hover {
    transform: translateY(-5px);
}

/* 品牌標題 */
.brand-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* 品牌描述 */
.brand-desc {
    letter-spacing: 1px;
    font-size: 14px;
    color: var(--secondary-gray);
    margin-bottom: 20px;
}

/* 商品圖片容器 */
.brand-image {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Shop Now 按鈕 */
.shop-now-btn {
    font-size: 18px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    display: inline-block;
    margin-top: auto;
    transition: all 0.3s ease;
}

.shop-now-btn:hover {
    background: var(--primary-red);
}

/* Event Highlights 區塊 */
.event-highlights {
    padding: 80px 0;
}

/* 活動卡片網格容器 */
.event-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* 活動卡片 */
.event-card {
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

/* 卡片懸停效果 */
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 圖片容器 */
.event-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
}

/* 內容區域 */
.event-content {
    padding: 20px;
    text-align: center;
    background: var(--white);
}

/* 活動標題 */
.event-title {
    color: var(--primary-red);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 活動副標題 */
.event-subtitle {
    color: var(--black);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* 查看更多按鈕 */
.event-cta {
    background: var(--black);
    color: var(--white);
    padding: 8px 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

/* 箭頭圖標 */
.event-cta::after {
    content: '›';
    margin-left: 5px;
    font-size: 18px;
}


/*******************follow us*******************/

.follow-us {
    padding: 0 0 80px;
}

.fu-grid-container {
    max-width: 1400px;
    margin: 2vw auto 0;
    padding: 30px;
    border-radius: 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列網格 */
    gap: 15px; /* 網格間距 */
    box-sizing: border-box;
    position: relative;
}

.fu-grid-item {
    border-radius: 50%;
    text-align: center;
    background-color: var(--white);
    position: relative;
    width: 100%;
    padding-top: 100%; /* 使用 padding-top 確保高度等於寬度 */
}

/* 新增內容容器來包裝實際內容 */
.fu-grid-item > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 其他樣式保持不變 */
.fu-item-info {
    width: 70%;
    margin: 0 15%;
    color: #5d656c;
}

.fu-item-icon img {
    width: 100%;
    margin: 0 auto;
}

.fu-item-name {
    font-size: 20px;
    padding: 0.5% 1.5%;
    margin: 5px;
    font-weight: 500;
    color: var(--black);
}

.fu-item-account {
    font-size: 12px;
    margin-bottom: 15px;
}

.fu-item-cta {
    font-size: 15px;
    transition: 0.2s;
    color: var(--black);
    border: 1px solid var(--primary-gray);
    padding: 8px 12px;
    border-radius: 50px;
}

.fu-item-cta:hover {
    background-color: var(--black);
    color: var(--white);
}




/* 響應式調整 */
@media screen and (max-width: 1440px) {
    .coupon-item .discount {
        font-size: 22px;
        margin: 10px 0;
    }
    .coupon-item .action-btn,
    .coupon-item .info-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .gachapon-machine {
        transform: translate(-50%, -50%) scale(1.6);
    }
    @keyframes shake {
        0%, 100% { transform: translate(-50%, -50%) scale(1.6);}
        20% { transform: translate(-55%, -50%) scale(1.6);}
        40% { transform: translate(-45%, -50%) scale(1.6);}
        60% { transform: translate(-55%, -50%) scale(1.6);}
        75% { transform: translate(-45%, -50%) scale(1.6);}
    }
    .section-header img {
        padding: 0 50px;
    }
    .info-section h2{
        margin: 0;
    }
    .login-text{
        font-size: 1.5vw;
        margin: 1.5vw auto;
    }
    .login-text::before {
        font-size: 1vw;
        left: -2vw;
        top: 0.8vw;
    }
    .login-text::after {
        font-size: 1vw;
        right: -20px;
        top: 0.8vw;
    }
    .info-section{
        padding: 4vw;
    }
    .prize-content {
        font-size: 1.2vw;
        line-height: 1.6;
    }
    .prize-item {
        padding: 2px 0;
    }
    .prize-info{
        margin-top: 1vw;
        padding: 0 2vw;
    }
    .prize-rank {
        font-size: 1.2vw;
    }
    .prize-name {
        color: var(--white);
        font-size: 1.2vw;
        flex: 1;
    }
    .action-button{
        width: fit-content;
        padding: 1vw 3vw;
        font-size: 1.6vw;
    }

    .recommendations .left-item {
        border-radius: 0 5vw 0 5vw;
        grid-area: left;
    }
    
    .recommendations .center-item-1 {
        border-radius: 5vw 0 0 0;
        grid-area: center1;
    }
    
    .recommendations .center-item-2 {
        border-radius: 0 0 0 5vw;
        grid-area: center2;
    }
    
    .recommendations .center-item-3 {
        border-radius: 0 0 5vw 0;
        grid-area: center3;
    }
    
    .recommendations .center-item-4 {
        border-radius: 0 5vw 0 0;
        grid-area: center4;
    }
    
    .recommendations .right-item {
        border-radius: 5vw 0 5vw 0;
        grid-area: right;
    }

}

@media screen and (max-width: 1024px) {
    .desktop{
		display: none;
	}
	.mobile{
		display: block;
	}
    .flashsale .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .beauty-fragrance .product-image-wrapper {
        padding: 0;
    }
    .beauty-fragrance .product-info {
        padding: 15px 5px;
    }
    .beauty-fragrance .product-name {
        line-height: 1.2;
        margin-bottom: 5px;
    }
    .beauty-fragrance .more-button {
        padding: 10px 35px;
        font-size: 15px;
    }
    .beauty-fragrance .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
    .coupon-item .date {
        margin-bottom: 0;
        font-size: 0.8rem;
    }
    .coupon-item .discount {
        font-size: 1rem;
        margin: 0.5rem 0;
        line-height: 1.2;
    }
    .coupon-item .action-btn, .coupon-item .info-btn {
        font-size: 0.6rem;
        padding: 0.5rem 0.5rem;
    }
    .new-arrivals .fashion-container{
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .new-arrivals .model-image {
        display: none;
    }
    /* 商品卡片樣式 */
    .new-arrivals .product-item {
        /* 設定容器高度 */
        height: 220px;
    }
    .new-arrivals .product-info {
        flex: 0 0 60%; /* 設定固定寬度 */
        line-height: 1.2;
    }
    .new-arrivals .product-title {
        font-size: 24px;
    }
    .new-arrivals .product-price {
        font-size: 20px;
    }
    .recommendations .grid-layout {
        grid-template-areas: 
        "left center1"
        "left center2"
        "center3 right"
        "center4 right";
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .brand-grid {
        gap: 10px;
    }
    .event-grid {
        gap: 10px;
    }
    .brand-title {
        font-size: 18px;
    }
    .fu-item-icon img {
        width: 10vw;
    }

}

@media screen and (max-width: 768px) {
    .lucky-play {
        padding: 0;
    }
    .lucky-play-container {
        flex-direction: column;
    }
    
    .gacha-machine,
    .info-section {
        width: 100%;
    }
    .lucky-play .section-header {
        margin-bottom: 1vw;
    }
    .info-section {
        padding: 8vw;
        height: fit-content;
    }
    .prize-content{
        font-size: 2vw;
    }
    .prize-item {
        padding: 0.6vw;
    }
    .prize-rank {
        font-size: 2.8vw;
        padding: 1vw 3vw;
        margin-right: 5vw;

    }
    .prize-name {
        font-size: 2.8vw;
    }
    .login-text {
        font-size: 3vw;
        margin: 2.6vw auto;
    }
    .login-text::before {
        font-size: 1.3vw;
        left: -2.5vw;
        top: 1.5vw;
    }
    .login-text::after {
        font-size: 1.3vw;
        right: -2.5vw;
        top: 1.5vw;
    }
    .action-button {
        width: fit-content;
        padding: 1.5vw 5vw;
        font-size: 2.6vw;
    }
    .winner-table {
        font-size: 14px;
    }
    .winner-table th,
    .winner-table td {
        padding: 0.5rem;
    }
    .product-grid,
    .product-list,
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .coupon-item {
        width: 120px;
    }

    .fashion-container {
        flex-direction: column;
    }
    .beauty-fragrance .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .flashsale .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .beauty-fragrance .more-products {
        width: 200px;
        height: 40px;
        margin: 30px auto 0;
        font-size: 14px;
        line-height: 40px;
        border-radius: 20px;
    }
    .coupon-item {
        width: calc(50% - 10px);
        padding-top: calc(50% - 10px); /* 保持1:1比例 */
    }

    .coupon-item .date {
        font-size: 2.5vw;
        padding-bottom: 1vw;
    }

    .coupon-item .discount {
        font-size: 3.6vw;
        margin: 3vw 0;
    }
    
    .coupon-item .discount span{
        font-size: 2vw;
    }

    .coupon-item .buttons {
        gap: 1vw;
    }

    .coupon-item .action-btn,
    .coupon-item .info-btn {
        font-size: 2.6vw;
        padding: 1.2vw;
    }

    .new-arrivals .product-info {
        flex: 0 0 100%;
    }

    .new-arrivals .product-title {
        font-size: 3.2vw;
    }
    
    .new-arrivals .product-price {
        font-size: 2.6vw;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .recommendations .product-title {
        margin-bottom: 1.5vw;
        font-size: 20px;
    }
    
    .recommendations .product-desc {
        margin-bottom: 0;
        font-size: 14px;
    }

    .recommendations .product-info {
        padding: 15px 5px;
    }

    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-title {
        font-size: 24px;
    }

    .brand-desc {
        font-size: 16px;
    }

    .shop-now-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-content {
        padding: 15px;
    }

    .event-title {
        font-size: 16px;
    }

    .event-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .event-cta {
        padding: 6px 15px;
        font-size: 12px;
    }

    .fu-grid-container {
        grid-template-columns: repeat(2, 1fr); /* 平板顯示2列 */
    }

    .fu-item-icon img {
        width: 18vw;
    }

    .fu-item-name {
        font-size: 3vw;
    }

    .fu-item-account {
        font-size: 1.6vw;
        line-height: 1;
        margin-bottom: 2vw;
    }

    .fu-item-cta {
        font-size: 1.8vw;
        line-height: 4vw;
    }

}


@media screen and (max-width: 480px) {
    .section-header {
        margin-bottom: 5px;
    }
    .section-header img {
        padding: 0 30px;
    }
    .recommendations, .flashsale, .new-arrivals, .beauty-fragrance, .brand-highlights, .event-highlights, .follow-us {
        padding: 30px 0;
    }
    .gacha-machine {
        min-height: 420px;
    }

    .gachapon-machine {
        transform: translate(-50%, -50%) scale(1.2);
    }

    .info-section {
        min-height: auto;
    }

    .beauty-fragrance .product-name {
        font-size: 3.6vw;
    }

    .beauty-fragrance .original-price {
        font-size: 3vw;
    }

    .beauty-fragrance .sale-price {
        font-size: 4.6vw;
    }

    .new-arrivals .fashion-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .new-arrivals .product-showcase {
        width: 100%;
    }

    .new-arrivals .product-item {
        height: 220px;
    }

    .new-arrivals .product-title {
        font-size: 5.6vw;
    }
    
    .new-arrivals .product-price {
        font-size: 4.2vw;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .recommendations .product-title {
        margin-bottom: 1.3vw;
        font-size: 3.2vw;
    }

    .recommendations .product-info {
        padding: 2.5vw 1vw;
    }
    
    .recommendations .product-desc {
        margin-bottom: 0;
        font-size: 2.6vw;
    }

    .brand-title {
        font-size: 4.6vw;
    }

    .brand-desc {
        font-size: 3.6vw;
    }

    .brand-item:nth-child(8)::before {
        font-size: 2.6vw;
        top: 3vw;
        right: -10vw;
        padding: 1.5vw 10vw
    }

    .fu-item-cta {
        font-size: 3vw;
        padding: 0.5vw 2vw;
    }
    
    @keyframes shake {
        0%, 100% { transform: translate(-50%, -50%) scale(1.2);}
        20% { transform: translate(-55%, -50%) scale(1.2);}
        40% { transform: translate(-45%, -50%) scale(1.2);}
        60% { transform: translate(-55%, -50%) scale(1.2);}
        75% { transform: translate(-45%, -50%) scale(1.2);}
    }
}