/* c:\Users\yumin\OneDrive\Desktop\網站\css\style.css */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.wuzuan-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #58a6ff;
    border-radius: 2px;
}

.avatar-glow {
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.2);
}

/* --- 滾動效果 CSS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* 側邊選單動畫 */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}

#mobile-menu.active {
    transform: translateX(0);
}

/* --- 選單高亮效果 --- */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #58a6ff;
    transition: width 0.3s ease;
}

.nav-link.active-nav {
    color: #58a6ff;
}

.nav-link.active-nav::after {
    width: 100%;
}

/* --- 下拉選單修正：改為點擊觸發 --- */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- 生日倒計時專屬樣式 --- */
.countdown-container {
    position: relative;
    overflow: hidden;
}

.birthday-date-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dark .birthday-date-overlay {
    background: rgba(22, 27, 34, 0.95);
}

.countdown-container:hover .birthday-date-overlay {
    opacity: 1;
}

/* 錨點偏移補償（避開固定導覽列） */
section,
footer {
    scroll-margin-top: 5rem;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.dark ::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}