:root {
    --gold: #D4AF37;
    --dark: #1a1a1a;
}

/* 產品卡片動畫 */
.product-card {
    transition: all 0.4s ease-in-out;
    transform-origin: center;
}

.product-card.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.product-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card.hidden {
    display: none;
}

/* 產品卡片過渡效果 */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Banner 標題特效 */
.banner-title {
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, var(--gold), #fff, var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    padding-bottom: 0.5rem;
    animation: shine 3s linear infinite;
}

.banner-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    animation: width-grow 1.5s ease-out;
}

.banner-subtitle {
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding-left: 1rem;
    margin-left: 1rem;
    opacity: 0;
    animation: fade-slide-in 1s ease-out forwards;
    animation-delay: 0.5s;
}

.banner-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gold);
    animation: height-grow 0.8s ease-out forwards;
    animation-delay: 1s;
}

/* 動畫關鍵幀 */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes width-grow {
    from {
        width: 0;
    }
    to {
        width: 60%;
    }
}

@keyframes height-grow {
    to {
        height: 70%;
    }
}

@keyframes fade-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 區塊標題特效 */
.section-title {
    position: relative;
    display: inline-block;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding-bottom: 1rem;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    left: 50%;
    transform: translateX(-50%);
}

.section-title::before {
    width: 60px;
    animation: width-grow-center 1.2s ease-out forwards;
}

.section-title::after {
    width: 30px;
    bottom: -6px;
    opacity: 0.7;
    animation: width-grow-center 1.2s ease-out 0.3s forwards;
}

@keyframes width-grow-center {
    from {
        width: 0;
    }
}

/* 只有在 text-center 容器中的標題才置中 */
.text-center .section-title {
    margin: 0 auto;
}

/* 產品詳情視窗 */
.product-modal-content {
    max-height: 85vh;
    overflow-y: auto;
    margin: 2rem 0;
    padding: 1.5rem;
}

/* 自定義滾動條 */
.product-modal-content::-webkit-scrollbar {
    width: 6px;
}

.product-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.product-modal-content::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* 自定義游標 */
body {
    cursor: url('../images/show.cur'), auto;
}

a, 
button,
[role="button"],
.cursor-pointer {
    cursor: url('../images/show.cur'), pointer !important;
}

/* 基本設置 */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 確保所有容器不會超出螢幕 */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Header 滾動效果 */
header {
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(8px);
}

/* Footer 樣式 */
footer {
    background-color: var(--dark);
    position: relative;
    width: 100%;
    z-index: 10;
}

/* 導航連結特效 */
.nav-link {
    position: relative;
    color: white;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link:hover::after {
    width: 100%;
}

/* 圖片放大效果 */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.zoom-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
} 