/* 自定義游標 */
body {
    cursor: url('../images/show.cur'), auto;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

a, 
button,
[role="button"],
.cursor-pointer,
.nav-link,
.product-card,
.back-to-top {
    cursor: url('../images/show.cur'), pointer !important;
}

/* 自定義滾動條 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b39429;
}

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* 跑馬燈 */
.marquee {
    white-space: nowrap;
    overflow: hidden;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* 產品卡片懸停效果 */
.product-card {
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* 返回頂部按鈕 */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 模態窗口 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal.show {
    display: flex;
}

/* 最新消息輪播 */
.news-ticker {
    position: relative;
    height: 40px;
    overflow: hidden;
    padding-left: 1rem;
    border-left: 2px solid #ffd700;
}

.news-item {
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 40px;
    color: white;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item.active {
    opacity: 1;
    transform: translateY(0);
}

.news-item:hover {
    color: #ffd700;
}

/* 跑馬燈效果 */
.news-item.marquee-mode .news-content {
    display: inline-block;
    padding-left: 100%;
    animation: news-marquee 15s linear infinite;
}

@keyframes news-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 暫停時的效果 */
.news-ticker.paused .news-item {
    transition: none;
}

.news-ticker.paused .news-item.marquee-mode .news-content {
    animation-play-state: paused;
}

/* 確保所有容器不會超出螢幕 */
.container {
    max-width: 100vw;
    overflow: hidden;
}

/* 修復模態視窗滾動問題 */
body.modal-open {
    overflow: hidden;
} 