/* ========== 水果幸運抽獎遊戲樣式 ========== */

/* 主標題紅色字體，帶金色光暈效果 */
.store-slogan-title {
    color: #FF0000;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
    text-align: center;
    font-weight: bold;
    margin: 0 auto;
    width: 100%;
    max-width: 550px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    transform: scale(1);
    margin-bottom: 5px !important;
    font-size: 32px !important;
    line-height: 1.2;
    padding: 0 10px;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.5),
            0 0 20px rgba(255, 215, 0, 0.3),
            0 0 30px rgba(255, 215, 0, 0.2);
    }
    to {
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 0.7),
            0 0 25px rgba(255, 215, 0, 0.5),
            0 0 35px rgba(255, 215, 0, 0.3);
    }
}

/* ========== 水果幸運抽獎遊戲樣式 ========== */
.fruit-game-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft JhengHei", sans-serif;
}

.fruit-game-section {
    background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    min-height: auto;
    justify-content: flex-start;
    padding-top: 10px;
}

.fruit-header {
    text-align: center;
    margin-bottom: 10px !important;
    color: #2c3e50;
    width: 100%;
    padding-top: 0;
}

/* 遊戲容器 */
.fruit-container {
    background: linear-gradient(to bottom, #2c82c9, #1a5f9e);
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(44, 130, 201, 0.6);
    width: 100%;
    max-width: 550px;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    margin-left: auto;
    margin-right: auto;
}

.fruit-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: sparkle 20s linear infinite;
    z-index: 0;
}

@keyframes sparkle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 九宮格 - 修正置中和大小問題 */
.fruit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    position: relative;
    aspect-ratio: 1/1;
    z-index: 1;
    width: 100%;
    height: auto;
    max-width: 100%; /* 防止超出 */
    margin: 0 auto; /* 確保居中 */
}

.fruit-grid-item {
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    border: 4px solid transparent;
}

.fruit-grid-item:hover:not(.fruit-draw-btn) {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.fruit-grid-item.fruit-item {
    font-weight: bold;
}

.fruit-grid-item .fruit-emoji {
    font-size: 52px;
    margin-bottom: 6px;
    filter: drop-shadow(3px 3px 4px rgba(0,0,0,0.3));
}

.fruit-grid-item .fruit-reward {
    font-size: 15px;
    color: #e74c3c;
    text-align: center;
    line-height: 1.4;
    padding: 0 5px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 中獎燈光樣式 */
.fruit-grid-item.light {
    background: linear-gradient(145deg, #fff9c4, #ffeb3b);
    box-shadow: 0 0 50px #ffeb3b, inset 0 0 25px #ffc107;
    border: 5px solid #ffd600;
    animation: winPulse 0.8s infinite alternate;
    z-index: 2;
}

@keyframes winPulse {
    from { 
        box-shadow: 0 0 25px #ffeb3b, inset 0 0 15px #ffc107;
        transform: scale(1);
    }
    to { 
        box-shadow: 0 0 60px #ffeb3b, inset 0 0 30px #ffc107;
        transform: scale(1.05);
    }
}

/* ========== 抽獎按鈕樣式 - 完全修復線條問題 ========== */
.fruit-draw-btn {
    background: linear-gradient(to bottom, #ff9800, #ff5722) !important;
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    border: 4px solid #ffd600 !important;
    border-radius: 18px !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15) !important;
    outline: none !important;
    animation: none;
    position: relative;
    overflow: hidden;
    border-image: none !important;
    border-collapse: separate !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* 移除所有偽元素 */
.fruit-draw-btn::before,
.fruit-draw-btn::after {
    content: none !important;
    display: none !important;
}

.fruit-draw-btn div {
    font-size: 30px;
    margin-bottom: 4px;
    line-height: 1;
}

.fruit-draw-btn span {
    display: block;
    line-height: 1.2;
}

.fruit-draw-btn span:first-of-type {
    font-size: 24px;
    margin-top: -4px;
}

.fruit-draw-btn span:last-child {
    font-size: 15px;
    margin-top: 4px;
}

.fruit-draw-btn:hover:not(.disabled) {
    transform: scale(1.05);
    background: linear-gradient(to bottom, #ffa726, #ff7043) !important;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.25) !important;
    border: 4px solid #ffd600 !important;
}

.fruit-draw-btn.disabled {
    background: linear-gradient(to bottom, #95a5a6, #7f8c8d) !important;
    color: #ecf0f1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
    border: 4px solid #bdc3c7 !important;
}

/* 緊張提示欄位 */
.fruit-tension-notice {
    display: none;
    margin-top: 15px;
    padding: 14px 28px;
    background: linear-gradient(145deg, #ffd700, #ff9800);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    text-align: center;
    width: 100%;
    max-width: 550px;
    border: 3px solid #ffd600;
    animation: tensionPulse 1.5s infinite alternate;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.fruit-tension-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: -1;
}

@keyframes tensionPulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ========== 中獎提示樣式 ========== */
.fruit-win-notification {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(145deg, #fff9c4, #ffeb3b);
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    display: none;
    border: 3px solid #ffd600;
    max-width: 550px;
    width: 100%;
    z-index: 1;
    position: relative;
}

/* ========== 一鍵生成海報按鈕 ========== */
#fruitGeneratePosterBtn {
    display: none;
    background: linear-gradient(145deg, #ffd700, #ff9800);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    margin: 8px auto !important;
    transition: all 0.3s;
    animation: pulse 2s infinite;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    max-width: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 3px solid #ffd600;
}

#fruitGeneratePosterBtn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6); }
    100% { transform: scale(1); box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4); }
}

#fruitGeneratePosterBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.7);
}

/* ========== 獎項說明按鈕樣式 ========== */
#fruitPrizeBtn {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(145deg, #ff9999, #ff6666);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.5);
    transition: all 0.3s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: prizePulse 2s infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 3px solid #ffcc00;
    margin-top: 5px !important;
}

/* 獎項說明按鈕圖示：左邊鳳梨，右邊西瓜 */
#fruitPrizeBtn::before {
    content: '🍍';
    font-size: 20px;
}

#fruitPrizeBtn::after {
    content: '🍉';
    font-size: 20px;
}

#fruitPrizeBtn i {
    display: none;
}

#fruitPrizeBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 204, 0, 0.7);
}

@keyframes prizePulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 8px 20px rgba(255, 204, 0, 0.5);
        border-color: #ffcc00;
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 12px 30px rgba(255, 204, 0, 0.7);
        border-color: #ffed4e;
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 8px 20px rgba(255, 204, 0, 0.5);
        border-color: #ffcc00;
    }
}

/* ========== 遊戲功能按鈕容器 ========== */
.fruit-game-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 5px !important;
    margin-top: 10px !important;
    width: 100%;
    max-width: 550px;
}

.fruit-game-buttons-top {
    width: 100%;
}

/* ========== 彈窗樣式 ========== */
.fruit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fruit-modal-content {
    background: white;
    padding: 25px;
    border-radius: 18px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease-out;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideUp {
    0% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ========== 店家資訊獨立版面 ========== */
.fruit-store-info-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border: 3px solid #FF7A00;
}

/* 單欄式店家資訊顯示 */
.fruit-store-info-display-single {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.fruit-store-info-display-row {
    display: flex;
    flex-direction: column;
    min-height: 70px;
    width: 100%;
}

.fruit-store-info-display-label {
    font-size: 14px;
    font-weight: bold;
    color: #FF7A00;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 122, 0, 0.08);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #FF7A00;
    width: 100%;
}

.fruit-store-info-display-value {
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.5;
    padding: 12px 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    word-break: break-word;
    width: 100%;
}

/* ========== 店家資訊按鈕容器 ========== */
.fruit-store-info-buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.fruit-store-info-action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fruit-store-info-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

#fruitStoreInfoBtn {
    background: linear-gradient(to bottom, #9d4edd, #7b2cbf);
    color: white;
}

#fruitPrizeSettingBtn {
    background: linear-gradient(to bottom, #2a9d8f, #1f7c6f);
    color: white;
}

/* ========== 海報預覽樣式 ========== */
.fruit-poster-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: flex-start;
    z-index: 2000;
    padding: 20px 10px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.fruit-poster-content {
    background: linear-gradient(145deg, #fff9c4, #ffeb3b);
    border-radius: 20px;
    padding: 25px;
    width: 95%;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 30px 80px rgba(255, 215, 0, 0.5);
    border: 12px solid #ffd700;
    position: relative;
    animation: none;
    box-sizing: border-box;
    transform: none !important;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.fruit-poster-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 4px solid #ff9800;
}

.fruit-poster-activity {
    font-size: 36px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
    padding-top: 5px;
}

/* 海報九宮格樣式 - 修正置中問題 */
.fruit-poster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    margin: 20px auto;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1/1;
    background: linear-gradient(to bottom, #2c82c9, #1a5f9e);
    padding: 15px;
    border-radius: 20px;
    box-sizing: border-box;
}

.fruit-poster-grid-item {
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
    border: 3px solid transparent;
}

.fruit-poster-grid-item.light {
    background: linear-gradient(145deg, #fff9c4, #ffeb3b) !important;
    border: 3px solid #ffd600 !important;
}

.fruit-poster-emoji {
    font-size: 48px;
    margin: 0;
}

.fruit-poster-win-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    border: 6px solid #ffd700;
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
    box-sizing: border-box;
}

.fruit-poster-win-emoji {
    font-size: 70px;
    margin-bottom: 10px;
}

.fruit-poster-win-title {
    font-size: 26px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}

.fruit-poster-win-details {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.fruit-poster-info-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin-top: 15px;
    border: 4px solid #FF7A00;
    box-sizing: border-box;
}

.fruit-poster-info-row {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #ddd;
    box-sizing: border-box;
}

.fruit-poster-info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.fruit-poster-info-label {
    font-weight: bold;
    color: #FF7A00;
    min-width: 100px;
    font-size: 16px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.fruit-poster-info-value {
    flex: 1;
    color: #333;
    font-size: 16px;
    word-break: break-word;
    box-sizing: border-box;
}

/* 海報按鈕容器 */
.fruit-poster-buttons {
    display: flex !important;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

.fruit-poster-download, .fruit-poster-close {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fruit-poster-download {
    background: linear-gradient(to bottom, #2a9d8f, #1f7c6f);
    color: white;
}

.fruit-poster-download:hover {
    background: linear-gradient(to bottom, #1f7c6f, #175c52);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(42, 157, 143, 0.3);
}

.fruit-poster-close {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    color: white;
}

.fruit-poster-close:hover {
    background: linear-gradient(to bottom, #c0392b, #a93226);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(231, 76, 60, 0.3);
}

/* ========== 店家資訊設定彈窗樣式 ========== */
.fruit-store-info-modal-title {
    font-size: 24px;
    color: #9d4edd;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #9d4edd;
}

.fruit-store-info-modal-content {
    max-width: 500px !important;
    padding: 30px !important;
}

.fruit-store-info-modal-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.fruit-store-info-modal-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.fruit-store-info-modal-item:hover {
    border-color: #9d4edd;
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.1);
}

.fruit-store-info-modal-label {
    font-size: 14px;
    font-weight: bold;
    color: #5a189a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fruit-store-info-modal-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

.fruit-store-info-modal-input:focus {
    border-color: #9d4edd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
}

.fruit-store-info-modal-char-count {
    font-size: 12px;
    color: #888;
    text-align: right;
    margin-top: 5px;
}

/* ========== 獎項設定彈窗樣式 ========== */
.fruit-prize-setting-modal-title {
    font-size: 24px;
    color: #2a9d8f;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #2a9d8f;
}

.fruit-prize-setting-modal-content {
    max-width: 500px !important;
    padding: 30px !important;
}

/* 獎項設定說明文字 */
.fruit-prize-setting-instruction {
    background: #f0f5f5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #2a9d8f;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.fruit-prize-setting-instruction p {
    margin: 8px 0 !important;
    font-size: 14px !important;
    color: #555;
    line-height: 1.5;
}

.fruit-prize-setting-instruction .warning {
    color: #e74c3c;
    font-weight: bold;
    font-size: 14px !important;
}

.fruit-prize-setting-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.fruit-prize-setting-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.fruit-prize-setting-item:hover {
    border-color: #2a9d8f;
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.1);
}

.fruit-prize-setting-icon {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
}

.fruit-prize-setting-input-container {
    flex: 1;
}

.fruit-prize-setting-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.fruit-prize-setting-input:focus {
    border-color: #2a9d8f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}

.fruit-prize-setting-input.locked {
    background-color: #f5f5f5;
    color: #888;
    cursor: not-allowed;
}

.fruit-prize-setting-char-count {
    font-size: 11px;
    color: #888;
    text-align: right;
    margin-top: 3px;
}

/* 獎項設定按鈕 */
.fruit-prize-setting-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.fruit-prize-setting-submit, .fruit-prize-setting-cancel {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.fruit-prize-setting-submit {
    background: linear-gradient(to bottom, #ff9800, #ff5722) !important;
    color: white !important;
}

.fruit-prize-setting-submit:hover {
    background: linear-gradient(to bottom, #ffa726, #ff7043) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.3);
}

.fruit-prize-setting-cancel {
    background: linear-gradient(to bottom, #6c757d, #5a6268);
    color: white;
}

.fruit-prize-setting-cancel:hover {
    background: linear-gradient(to bottom, #5a6268, #484e54);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

/* ========== 會員登入提示樣式 ========== */
.fruit-login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f0 100%);
    box-sizing: border-box;
    width: 100%;
}

.fruit-login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    gap: 40px;
}

.fruit-login-message {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    max-width: 500px;
    width: 100%;
    border: 4px solid #FF7A00;
    position: relative;
    overflow: hidden;
}

.fruit-login-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #FF7A00, #FFB74D, #FF7A00);
}

.fruit-login-title {
    font-size: 28px;
    color: #e74c3c;
    margin-bottom: 20px;
    font-weight: bold;
}

.fruit-login-description {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 遊戲預覽區域 */
.fruit-game-preview-simple {
    background: linear-gradient(to bottom, #2c82c9, #1a5f9e);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(44, 130, 201, 0.6);
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.fruit-game-preview-simple::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 25px 25px;
    animation: sparkle 20s linear infinite;
    z-index: 0;
}

.fruit-game-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    aspect-ratio: 1/1;
    position: relative;
    z-index: 1;
}

.fruit-game-preview-item {
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

.fruit-game-preview-emoji {
    font-size: 28px;
    margin-bottom: 4px;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.3));
}

.fruit-game-preview-draw {
    background: linear-gradient(to bottom, #ff9800, #ff5722);
    color: white;
    font-weight: bold;
    border: 3px solid transparent;
}

.fruit-login-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.fruit-login-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    flex: 1;
}

.fruit-login-btn.register {
    background: linear-gradient(145deg, #FF7A00, #FF5722);
    color: white;
}

.fruit-login-btn.login {
    background: linear-gradient(145deg, #2c82c9, #1a5f9e);
    color: white;
}

.fruit-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* ========== 下載成功彈窗樣式 ========== */
.fruit-download-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.fruit-download-success-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 6px solid #28a745;
    animation: slideUp 0.3s ease-out;
}

.fruit-download-success-icon {
    font-size: 60px;
    margin-bottom: 25px;
    color: #28a745;
    animation: bounce 1s infinite alternate;
}

.fruit-download-success-text {
    font-size: 22px;
    color: #155724;
    font-weight: bold;
    margin-bottom: 25px;
}

.fruit-download-success-close {
    background: linear-gradient(to bottom, #28a745, #218838);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
    min-width: 120px;
}

.fruit-download-success-close:hover {
    background: linear-gradient(to bottom, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.5);
}

/* ========== 獎項說明彈窗樣式 ========== */
.fruit-prize-modal-title {
    font-size: 22px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    text-align: center;
}

.fruit-prize-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    max-height: 60vh;
    overflow-y: auto;
}

.fruit-prize-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid #f0f0f0;
    background: #f8f9fa;
    width: 100%;
}

.fruit-prize-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.fruit-prize-icon {
    font-size: 36px;
    min-width: 50px;
    text-align: center;
    font-weight: bold;
}

.fruit-prize-desc {
    color: #333;
    font-weight: 500;
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

/* ========== 中獎彈窗樣式 ========== */
.fruit-win-modal-content {
    background: linear-gradient(145deg, #fff9c4, #ffeb3b);
    padding: 40px;
    border-radius: 25px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(255, 235, 59, 0.6);
    animation: winPopup 0.5s ease-out;
    border: 8px solid #ffd600;
}

@keyframes winPopup {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.fruit-win-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

.fruit-win-title {
    font-size: 28px;
    color: #e74c3c;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.fruit-win-details {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.fruit-win-gold {
    font-size: 32px;
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.fruit-win-btn {
    background: linear-gradient(to right, #2c82c9, #1a5f9e);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(44, 130, 201, 0.4);
    margin-top: 10px;
}

.fruit-win-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 130, 201, 0.6);
}

/* ========== 沒中獎彈窗樣式 ========== */
.fruit-lose-modal-content {
    background: linear-gradient(145deg, #e0e7ff, #b8c6ff);
    padding: 40px;
    border-radius: 25px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(184, 198, 255, 0.6);
    animation: losePopup 0.5s ease-out;
    border: 8px solid #9fa8da;
}

@keyframes losePopup {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.fruit-lose-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: sadBounce 1.5s infinite alternate;
}

@keyframes sadBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.fruit-lose-title {
    font-size: 28px;
    color: #5c6bc0;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.fruit-lose-details {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.fruit-lose-gold {
    font-size: 24px;
    color: #7986cb;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* ========== 回到頂部按鈕樣式 ========== */
#backToTop {
    position: fixed;
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 18px;
    z-index: 9999;
    background: #FF7A00;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    background: #FF5722;
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.4);
}

/* 通用彈窗關閉按鈕 */
.fruit-modal-close {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: #e74c3c;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
}

.fruit-modal-close:hover {
    background: #d62828;
}

/* ========== 響應式調整 - 關鍵修正 ========== */
/* 手機版樣式 - 修正九宮格問題 */
@media (max-width: 768px) {
    /* 標題 */
    .store-slogan-title {
        font-size: 22px !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
        padding: 0 10px;
        max-width: 90%;
        display: block;
        text-align: center;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .fruit-game-section {
        padding: 8px;
        padding-top: 10px;
    }
    
    /* 修復九宮格置中和大小問題 */
    .fruit-container {
        padding: 15px;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }
    
    .fruit-grid {
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        aspect-ratio: 1/1 !important;
    }
    
    /* 確保九宮格不會碰到邊框 */
    .fruit-grid-item {
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }
    
    .fruit-grid-item .fruit-emoji {
        font-size: 28px !important;
    }
    
    .fruit-grid-item .fruit-reward {
        display: none !important;
    }
    
    /* 抽獎按鈕 */
    .fruit-draw-btn {
        font-size: 16px;
        border: 3px solid #ffd600 !important;
        border-radius: 12px !important;
        padding: 8px !important;
    }
    
    .fruit-draw-btn div {
        font-size: 20px !important;
        margin-bottom: 2px;
    }
    
    .fruit-draw-btn span:first-of-type {
        font-size: 14px !important;
    }
    
    .fruit-draw-btn span:last-child {
        display: block !important;
        font-size: 10px !important;
        margin-top: 2px;
    }
    
    /* 其他樣式保持不變 */
    .fruit-tension-notice {
        font-size: 16px;
        padding: 12px 20px;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    #fruitPrizeBtn {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    #fruitGeneratePosterBtn {
        font-size: 16px;
        padding: 12px 20px;
        margin: 5px auto !important;
    }
    
    .fruit-game-buttons-container {
        gap: 3px !important;
        margin-top: 8px !important;
    }
    
    .fruit-store-info-section {
        padding: 15px;
        margin: 15px auto;
        max-width: 95%;
    }
    
    .fruit-store-info-display-single {
        gap: 10px;
    }
    
    .fruit-store-info-display-row {
        min-height: 65px;
    }
    
    .fruit-store-info-display-label {
        font-size: 12px;
        padding: 6px 10px;
        margin-bottom: 5px;
    }
    
    .fruit-store-info-display-value {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .fruit-store-info-buttons-container {
        flex-direction: row !important;
        gap: 10px;
    }
    
    .fruit-store-info-action-btn {
        width: 50%;
        min-width: auto;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .fruit-prize-setting-buttons,
    .fruit-store-info-modal .fruit-prize-setting-buttons {
        flex-direction: row !important;
        gap: 10px;
    }
    
    .fruit-prize-setting-submit,
    .fruit-prize-setting-cancel,
    #fruitStoreInfoModalSave,
    #fruitStoreInfoModalCancel {
        width: 48% !important;
        min-width: auto !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    .fruit-store-info-modal-content,
    .fruit-prize-setting-modal-content {
        padding: 20px 15px !important;
        max-width: 95% !important;
    }
    
    .fruit-store-info-modal-title,
    .fruit-prize-setting-modal-title {
        font-size: 20px;
    }
    
    /* 海報預覽修正 - 關鍵：修正九宮格置中問題 */
    .fruit-poster-preview {
        align-items: flex-start !important;
        padding-top: 30px !important;
        padding-bottom: 20px !important;
    }
    
    .fruit-poster-content {
        padding: 20px !important;
        max-width: 95% !important;
        margin: 10px auto !important;
        border: 10px solid #ffd700 !important;
        max-height: calc(100vh - 60px) !important;
    }
    
    .fruit-poster-activity {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    /* 海報九宮格 - 縮小並確保置中 */
    .fruit-poster-grid {
        max-width: 250px !important;
        width: 250px !important;
        height: 250px !important;
        padding: 10px !important;
        gap: 5px !important;
        margin: 15px auto !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(3, 1fr) !important;
        background: linear-gradient(to bottom, #2c82c9, #1a5f9e) !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }
    
    .fruit-poster-grid-item {
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        background: linear-gradient(145deg, #ffffff, #f8f8f8) !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
        border: 2px solid transparent !important;
        box-sizing: border-box !important;
    }
    
    .fruit-poster-emoji {
        font-size: 24px !important;
        margin: 0 !important;
        line-height: 1 !important;
        display: block !important;
    }
    
    /* 抽獎按鈕圖示縮小 */
    .fruit-poster-grid-item[style*="background: linear-gradient(to bottom, #ff9800, #ff5722)"] .fruit-poster-emoji {
        font-size: 24px !important;
    }
    
    .fruit-poster-win-section {
        padding: 15px !important;
        margin: 15px 0 !important;
    }
    
    .fruit-poster-win-emoji {
        font-size: 50px !important;
    }
    
    .fruit-poster-win-title {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }
    
    .fruit-poster-win-details {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .fruit-poster-info-section {
        padding: 15px !important;
        margin-top: 15px !important;
    }
    
    .fruit-poster-info-row {
        flex-direction: column !important;
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .fruit-poster-info-label {
        min-width: 100% !important;
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }
    
    .fruit-poster-info-value {
        font-size: 14px !important;
        width: 100% !important;
    }
    
    /* 海報按鈕 */
    .fruit-poster-buttons {
        flex-direction: row !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }
    
    .fruit-poster-download,
    .fruit-poster-close {
        max-width: 48% !important;
        padding: 12px 15px !important;
        font-size: 14px !important;
        min-width: auto !important;
    }
    
    /* 會員登入提示 */
    .fruit-login-required {
        padding: 30px 15px;
    }
    
    .fruit-login-message {
        padding: 25px 15px;
        max-width: 95%;
    }
    
    .fruit-login-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .fruit-login-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .fruit-login-buttons {
        flex-direction: row !important;
        gap: 10px;
    }
    
    .fruit-login-btn {
        width: 50%;
        min-width: auto;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* 下載成功彈窗 */
    .fruit-download-success-content {
        padding: 25px 15px;
        max-width: 90%;
    }
    
    .fruit-download-success-icon {
        font-size: 50px;
    }
    
    .fruit-download-success-text {
        font-size: 18px;
    }
    
    .fruit-download-success-close {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* 回到頂部按鈕 */
    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}

/* 平板樣式 */
@media (min-width: 769px) and (max-width: 1024px) {
    .store-slogan-title {
        font-size: 26px !important;
        margin-bottom: 10px !important;
        max-width: 90%;
    }
    
    .fruit-store-info-section {
        max-width: 700px;
        padding: 20px;
    }
    
    .fruit-poster-content {
        max-width: 700px;
        padding: 20px;
        margin: 20px auto;
    }
    
    .fruit-poster-activity {
        font-size: 32px;
    }
    
    .fruit-poster-grid {
        max-width: 450px;
    }
    
    .fruit-poster-buttons {
        gap: 15px;
    }
    
    .fruit-poster-download,
    .fruit-poster-close {
        max-width: 180px;
    }
}

/* 桌機端樣式 */
@media (min-width: 1025px) {
    .store-slogan-title {
        font-size: 36px !important;
        margin-bottom: 8px !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .fruit-store-info-section {
        max-width: 800px;
        padding: 25px;
    }
    
    .fruit-poster-content {
        max-width: 800px;
        padding: 25px;
        margin: 20px auto;
    }
    
    .fruit-poster-activity {
        font-size: 36px;
    }
    
    .fruit-poster-grid {
        max-width: 500px;
    }
    
    .fruit-poster-buttons {
        gap: 20px;
    }
    
    .fruit-poster-download,
    .fruit-poster-close {
        max-width: 200px;
    }
}

/* 只在手機版顯示回到頂部按鈕 */
@media (min-width: 769px) {
    #backToTop {
        display: none !important;
    }
}

/* 防止文字選擇 */
.fruit-game-section * {
    -webkit-tap-highlight-color: transparent;
}

/* 防止按鈕出現奇怪線條的終極修復 */
button, .fruit-draw-btn, .fruit-grid-item {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 18px;
    outline: none !important;
}

/* 移除所有可能導致線條的偽元素 */
.fruit-draw-btn::before,
.fruit-draw-btn::after,
.fruit-grid-item::before,
.fruit-grid-item::after {
    content: none !important;
}

/* 確保抽獎按鈕沒有背景圖像導致的線條 */
.fruit-draw-btn {
    background-image: none !important;
    border-image: none !important;
}

/* 修正：店家資訊彈窗儲存按鈕 */
#fruitStoreInfoModalSave {
    background: linear-gradient(to bottom, #ff9800, #ff5722) !important;
    color: white !important;
}

#fruitStoreInfoModalSave:hover {
    background: linear-gradient(to bottom, #ffa726, #ff7043) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.3);
}

/* 九宮格置中驗證輔助類別 */
.fruit-grid-center-test::after {
    content: '置中測試';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: red;
    color: white;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 10px;
    z-index: 9999;
}

/* 海報九宮格置中強制修正 */
.fruit-poster-grid-center-fix {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}