* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 霓虹配色 */
    --neon-pink: #ff006e;
    --neon-cyan: #00d9ff;
    --neon-purple: #b537f2;
    --neon-green: #39ff14;
    --neon-orange: #ff6600;
    
    /* 深色主題 */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #252d48;
    
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0d0;
    --text-muted: #707090;
    
    --border-color: #3d4566;
    --shadow: 0 8px 32px rgba(255, 0, 110, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 217, 255, 0.2);
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 亮色模式 */
body.light-mode {
    --bg-primary: #f8f9ff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2ff;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8aaa;
    
    --border-color: #e0e0ff;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== 電腦版佈局 ===== */
body.desktop {
    padding-top: 70px;
}

/* ===== 手機版佈局 ===== */
body.mobile {
    padding-top: 0;
    padding-bottom: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 手機版容器縮細 */
@media (max-width: 767px) {
    .container {
        padding: 0 12px;
    }
}

/* 超小手機版 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* ===== 霓虹文字效果 ===== */
.neon-text {
    text-shadow: 0 0 10px var(--neon-cyan),
                 0 0 20px var(--neon-cyan),
                 0 0 30px var(--neon-cyan),
                 0 0 40px var(--neon-pink);
}

.neon-glow {
    box-shadow: 0 0 20px var(--neon-cyan),
                0 0 40px var(--neon-purple),
                inset 0 0 20px rgba(0, 217, 255, 0.2);
}

/* ===================== */
/* 跑馬燈區 */
/* ===================== */
.marquee-section {
    background: #121212;
    overflow: hidden;
    padding: 2rem 0;
    border-bottom: 2px solid var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    animation: marquee-scroll 60s linear infinite;
    padding: 1rem 0;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    font-family: 'Serif', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-shrink: 0;
    display: inline-block;
    margin-left: 2rem;
    margin-right: 2rem;
    transition: var(--transition);
}

.marquee-item:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    transform: scale(1.05);
}

.marquee-item.marquee-highlight {
    color: #E63946;
    text-shadow: 0 0 20px #E63946;
}

.marquee-item.marquee-highlight:hover {
    color: #ff006e;
    text-shadow: 0 0 20px #ff006e;
}

/* ===================== */
/* 電腦版導覽列 */
/* ===================== */
.navbar {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95), rgba(26, 31, 58, 0.95));
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--neon-cyan);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
    width: 100%;
    display: none;
    transition: transform 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    gap: 2rem;
}

.navbar-brand {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 8px;
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.logo:hover::before {
    opacity: 0.2;
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.logo-text {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    gap: 3rem;
    flex: 1;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.search-bar {
    display: flex;
    background: linear-gradient(135deg, rgba(37, 45, 72, 0.8), rgba(37, 45, 72, 0.6));
    border: 2px solid var(--neon-purple);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
    padding: 0 1.5rem;
    box-shadow: 0 0 20px rgba(181, 55, 242, 0.2);
}

.search-bar:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px var(--neon-cyan),
                inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    min-width: 200px;
    font-size: 1rem;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 0 1rem;
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.search-btn:hover {
    text-shadow: 0 0 10px var(--neon-cyan);
    transform: scale(1.1);
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--neon-pink);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(181, 55, 242, 0.1));
    color: var(--neon-pink);
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(181, 55, 242, 0.2));
    box-shadow: 0 0 20px var(--neon-pink);
    transform: rotate(20deg);
}

.user-menu {
    position: relative;
    flex-shrink: 0;
}

.user-name {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--neon-cyan);
    font-weight: 600;
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
}

.user-name:hover {
    box-shadow: 0 0 15px var(--neon-cyan);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.0rem);
    right: 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--neon-purple);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 0 30px var(--neon-purple);
    overflow: hidden;
    z-index: 2000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 修正：使用 :hover 保持選單顯示 */
.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    padding-left: 2rem;
}

/* ===================== */
/* 手機版底部導覽 */
/* ===================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95), rgba(26, 31, 58, 0.95));
    border-top: 2px solid var(--neon-cyan);
    box-shadow: 0 -5px 30px rgba(0, 217, 255, 0.3);
    z-index: 999;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    color: var(--text-secondary);
    font-weight: 600;
    flex: 1;
    min-width: 50px;
}

.mobile-nav-icon {
    font-size: 1.5rem;
}

.mobile-nav-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0, 217, 255, 0.1);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.mobile-menu {
    display: none;
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98), rgba(26, 31, 58, 0.98));
    border-top: 2px solid var(--neon-pink);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(255, 0, 110, 0.3);
    z-index: 998;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.99), rgba(26, 31, 58, 0.99));
}

.mobile-menu-header h3 {
    color: var(--neon-pink);
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--neon-pink);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    background: transparent;
    color: var(--neon-pink);
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 0, 110, 0.1);
    box-shadow: 0 0 15px var(--neon-pink);
}

.mobile-menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.theme-toggle-mobile {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(181, 55, 242, 0.2));
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    color: var(--neon-pink);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-toggle-mobile:hover {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.3), rgba(181, 55, 242, 0.3));
    box-shadow: 0 0 20px var(--neon-pink);
    transform: translateY(-2px);
}

.mobile-user-section {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(181, 55, 242, 0.1));
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    margin: 0.5rem 0;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-user-name {
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 1rem;
}

.mobile-user-role {
    color: var(--neon-pink);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

.mobile-menu-item {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 45, 72, 0.5), rgba(37, 45, 72, 0.3));
    border: 2px solid var(--neon-purple);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.mobile-menu-item:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 217, 255, 0.1);
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    transform: translateX(5px);
}

/* ===================== */
/* 按鈕樣式 */
/* ===================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white;
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
}

.btn-primary:hover {
    box-shadow: 0 0 40px var(--neon-pink),
                0 0 60px rgba(255, 0, 110, 0.5);
    transform: translateY(-3px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.btn-secondary:hover {
    box-shadow: 0 0 40px var(--neon-cyan),
                0 0 60px rgba(0, 217, 255, 0.5);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.btn-outline:hover {
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===================== */
/* 主視覺區 */
/* ===================== */
.hero {
    background: linear-gradient(135deg, 
        rgba(10, 14, 39, 0.8),
        rgba(26, 31, 58, 0.8)),
        radial-gradient(circle at 20% 50%, rgba(255, 0, 110, 0.1), transparent),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.1), transparent);
    border-bottom: 2px solid var(--neon-cyan);
    padding: 1rem;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--neon-cyan) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    opacity: 0.05;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 600px;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
}

.hero h1 .neon-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
}

.hero h1 .neon-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 20px var(--neon-pink);
}

.hero > .container > .hero-content > p:first-of-type {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    width: 100%;
}

/* ===================== */
/* 輪播圖 */
/* ===================== */
.slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 0;
    margin: 0 auto;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.slider-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.slider-item-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 100%;
    animation: slideInContent 0.8s ease-out;
    padding: 2rem;
}

@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-item-content div:first-child {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider-item-content small {
    display: block;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 輪播箭頭 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 60px;
    height: 60px;
    border: none;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0.5;
}

.slider-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 50px var(--neon-cyan),
                0 0 30px var(--neon-cyan);
    opacity: 1;
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow.prev {
    left: 2rem;
}

.slider-arrow.next {
    right: 2rem;
}

/* 輪播導航點 */
.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: scale(1.3);
    border-color: var(--neon-cyan);
}

/* ===================== */
/* 分類區 */
/* ===================== */
.categories-section {
    padding: 4rem 0;
}

.categories-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.categories-carousel {
    position: relative;
    overflow: hidden;
}

.categories-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
}

.categories-track::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 120px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: 168px;
    aspect-ratio: 9 / 16;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.5),
                0 15px 40px rgba(0, 217, 255, 0.2);
}

.category-card-image {
    width: 100%;
    height: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.category-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(0, 217, 255, 0.1));
    z-index: 1;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: absolute;
    inset: 0;
}

.category-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.category-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.3;
    flex: 1;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card-arrow {
    color: var(--neon-pink);
    font-size: 0.9rem;
    align-self: flex-start;
    transition: all 0.3s ease;
    font-weight: 700;
}

.category-card:hover .category-card-arrow {
    color: var(--neon-cyan);
    transform: translateX(6px);
}

/* 左右滑動按鈕 */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 1rem;
    z-index: 10;
}

.carousel-btn {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: 2px solid var(--neon-cyan);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--neon-cyan);
    font-weight: 700;
    opacity: 0.5;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--neon-cyan);
    opacity: 1;
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* 空狀態 */
.empty-categories {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px dashed var(--neon-cyan);
    border-radius: 16px;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 500px;
}

.empty-categories p {
    font-size: 1.1rem;
    margin: 0;
}

/* ===================== */
/* 課程篩選區 */
/* ===================== */
.course-filter-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, 
        rgba(10, 14, 39, 0.6),
        rgba(26, 31, 58, 0.6));
    border-top: 2px solid var(--neon-purple);
    border-bottom: 2px solid var(--neon-purple);
}

.course-filter-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--neon-purple);
    text-shadow: 0 0 15px var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(181, 55, 242, 0.2), rgba(181, 55, 242, 0.1));
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    display: inline-block;
}

.filter-btn:hover {
    background: linear-gradient(135deg, rgba(181, 55, 242, 0.4), rgba(181, 55, 242, 0.3));
    box-shadow: 0 0 20px var(--neon-purple);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--neon-purple), rgba(181, 55, 242, 0.8));
    color: white;
    box-shadow: 0 0 30px var(--neon-purple);
    border-color: var(--neon-cyan);
}

/* ===================== */
/* 預覽影片區 */
/* ===================== */
.videos-section {
    padding: 4rem 0;
}

.videos-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.videos-carousel {
    position: relative;
    overflow: hidden;
}

.videos-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
}

.videos-track::-webkit-scrollbar {
    display: none;
}

.video-card {
    flex: 0 0 120px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: 168px;
    aspect-ratio: 9 / 16;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.5),
                0 15px 40px rgba(0, 217, 255, 0.2);
}

.video-card-image {
    width: 100%;
    height: 50%;
    background: #000;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(0, 217, 255, 0.1));
    z-index: 2;
}

.video-card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(57, 255, 20, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--neon-green);
    z-index: 3;
}

.video-card:hover .video-play-icon {
    transform: scale(1.2);
    background: var(--neon-green);
}

.video-card-content {
    padding: 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.video-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--neon-cyan);
    line-height: 1.2;
    min-height: 1.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-description {
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.video-category-badge {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(181, 55, 242, 0.2));
    color: var(--neon-pink);
    padding: 0.2rem 0.4rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
    white-space: nowrap;
}

.video-rating {
    color: var(--neon-orange);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.video-seller {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: auto;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.video-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.video-price {
    font-size: 1rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    white-space: nowrap;
}

.video-view-btn {
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: 2px solid var(--neon-cyan);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--neon-cyan);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.6rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-view-btn:hover {
    box-shadow: 0 0 30px var(--neon-cyan),
                0 0 40px rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
}

.empty-videos {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px dashed var(--neon-cyan);
    border-radius: 16px;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 500px;
}

.empty-videos p {
    font-size: 1rem;
    margin: 0;
}

/* ===================== */
/* 商品區 */
/* ===================== */
.products-section {
    padding: 4rem 0;
}

.products-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-products-row {
    margin-bottom: 4rem;
}

.category-products-title {
    font-size: 1.4rem;
    color: var(--neon-purple);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.category-products-title a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: auto;
    transition: var(--transition);
}

.category-products-title a:hover {
    text-shadow: 0 0 10px var(--neon-cyan);
    transform: translateX(5px);
}

.products-carousel {
    position: relative;
    overflow: hidden;
}

.products-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
}

.products-track::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 120px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: 168px;
    aspect-ratio: 9 / 16;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.5),
                0 15px 40px rgba(0, 217, 255, 0.2);
}

.product-card-image {
    width: 100%;
    height: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.product-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(0, 217, 255, 0.1));
    z-index: 1;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    position: absolute;
    inset: 0;
    text-align: center;
    padding: 0.5rem;
}

.product-placeholder-icon {
    font-size: 2.4rem;
    animation: placeholderBounce 2s ease-in-out infinite;
}

.product-placeholder-text {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.7rem;
}

@keyframes placeholderBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.product-card-content {
    padding: 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.product-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--neon-cyan);
    line-height: 1.2;
    min-height: 1.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-description {
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.3;
    flex: 1;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    gap: 0.3rem;
}

.product-category-badge {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(181, 55, 242, 0.2));
    color: var(--neon-pink);
    padding: 0.2rem 0.4rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    color: var(--neon-orange);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
    gap: 0.3rem;
    flex-shrink: 0;
}

.product-price {
    font-size: 1rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green);
    white-space: nowrap;
}

.product-view-btn {
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: 2px solid var(--neon-cyan);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--neon-cyan);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.6rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-view-btn:hover {
    box-shadow: 0 0 30px var(--neon-cyan),
                0 0 40px rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
}

/* 空狀態 */
.empty-products {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px dashed var(--neon-cyan);
    border-radius: 16px;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 500px;
}

.empty-products p {
    font-size: 1rem;
    margin: 0;
}

/* ===================== */
/* Admin Panel */
/* ===================== */
.admin-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    gap: 0;
}

.admin-sidebar {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-right: 2px solid var(--neon-cyan);
    padding: 2rem 0;
    position: fixed;
    left: 0;
    top: 70px;
    width: 250px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 100;
}

.sidebar-brand {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-brand h3 {
    color: var(--neon-cyan);
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.sidebar-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.menu-section-title {
    padding: 1rem 1.5rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.menu-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.menu-item span:first-child {
    font-size: 1.2rem;
    min-width: 24px;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(0, 217, 255, 0.1);
    color: var(--neon-cyan);
    border-left-color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(181, 55, 242, 0.2));
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.3), rgba(181, 55, 242, 0.3));
    box-shadow: 0 0 15px var(--neon-pink);
    transform: translateY(-2px);
}

.admin-content {
    grid-column: 2;
    padding: 3rem;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
    margin-left: 250px;
}

.admin-title {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===================== */
/* 底部 */
/* ===================== */
.footer {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-top: 2px solid var(--neon-pink);
    padding: 4rem 20px 2rem;
    margin-top: 4rem;
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(0, 217, 255, 0.2));
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    transition: var(--transition);
    color: var(--neon-pink);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    border-color: var(--neon-cyan);
    color: white;
    box-shadow: 0 0 20px var(--neon-pink);
    transform: translateY(-4px) rotate(10deg);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: var(--text-muted);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================== */
/* 電腦版 (1024px+) */
/* ===================== */
@media (min-width: 1024px) {
    .navbar {
        display: flex;
    }

    .mobile-nav,
    .mobile-menu {
        display: none !important;
    }

    body {
        padding-top: 70px;
        padding-bottom: 0;
    }

    .hero {
        padding: 8rem 20px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    .slider {
        max-width: 500px;
    }

    .slider-container {
        height: 600px;
    }

    .category-card {
        flex: 0 0 120px;
        aspect-ratio: 9 / 16;
    }

    .product-card {
        flex: 0 0 120px;
        aspect-ratio: 9 / 16;
    }

    .video-card {
        flex: 0 0 120px;
        aspect-ratio: 9 / 16;
    }

    .slider-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .slider-arrow.prev {
        left: 1rem;
    }

    .slider-arrow.next {
        right: 1rem;
    }
}

/* ===================== */
/* 平板版 (768px-1023px) */
/* ===================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .navbar {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    body {
        padding-top: 0;
        padding-bottom: 70px;
    }

    .hero {
        padding: 5rem 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-content {
        grid-column: 1;
        padding: 1.5rem;
        max-height: auto;
        margin-left: 0;
    }

    .slider {
        max-width: 450px;
    }

    .slider-container {
        height: 500px;
    }

    .search-bar {
        display: none;
    }

    .marquee-item {
        font-size: clamp(1rem, 3vw, 2rem);
    }

    .category-card {
        flex: 0 0 110px;
        aspect-ratio: 9 / 16;
    }

    .category-card-image {
        height: 50%;
    }

    .category-card-content {
        padding: 0.8rem;
    }

    .category-card h3 {
        font-size: 0.8rem;
    }

    .category-card p {
        font-size: 0.7rem;
    }

    .category-products-title {
        font-size: 1.1rem;
    }

    .product-card {
        flex: 0 0 110px;
        aspect-ratio: 9 / 16;
    }

    .product-card-image {
        height: 50%;
    }

    .product-card-content {
        padding: 0.8rem;
    }

    .product-card h3 {
        font-size: 0.8rem;
    }

    .product-card-description {
        font-size: 0.7rem;
    }

    .video-card {
        flex: 0 0 110px;
        aspect-ratio: 9 / 16;
    }

    .video-card-image {
        height: 50%;
    }

    .video-card-content {
        padding: 0.8rem;
    }

    .video-card h3 {
        font-size: 0.8rem;
    }

    .video-card-description {
        font-size: 0.7rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .category-products-row {
        margin-bottom: 3rem;
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .slider-arrow.prev {
        left: 0.5rem;
    }

    .slider-arrow.next {
        right: 0.5rem;
    }

    .slider-nav {
        bottom: 1rem;
        gap: 0.75rem;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* ===================== */
/* 手機版 (小於 768px) */
/* ===================== */
@media (max-width: 767px) {
    .navbar {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    body {
        padding-top: 0;
        padding-bottom: 70px;
    }

    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero .container {
        min-height: auto;
        padding: 0 12px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        margin-top: 1rem;
    }

    .btn {
        width: 100%;
    }

    .marquee-section {
        padding: 1rem 0;
    }

    .marquee-item {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-content {
        grid-column: 1;
        padding: 1rem;
        max-height: auto;
        margin-left: 0;
    }

    .admin-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .slider {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .slider-container {
        width: 100%;
        height: 300px;
        margin: 0;
        border-radius: 0;
    }

    .slider-item-content {
        padding: 1.5rem;
    }

    .slider-item-content div:first-child {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 0.8rem;
    }

    .slider-item-content small {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .slider-arrow.prev {
        left: 0.5rem;
    }

    .slider-arrow.next {
        right: 0.5rem;
    }

    .slider-nav {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .categories-section h2,
    .products-section h2,
    .videos-section h2,
    .course-filter-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .course-filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .category-card {
        flex: 0 0 100px;
        aspect-ratio: 9 / 16;
        min-height: 140px;
    }

    .category-card-image {
        height: 50%;
    }

    .category-card-content {
        padding: 0.6rem;
    }

    .category-card h3 {
        font-size: 0.75rem;
    }

    .category-card p {
        font-size: 0.65rem;
    }

    .category-card-arrow {
        font-size: 0.8rem;
    }

    .category-products-title {
        font-size: 1rem;
    }

    .product-card {
        flex: 0 0 100px;
        aspect-ratio: 9 / 16;
        min-height: 140px;
    }

    .product-card-image {
        height: 50%;
    }

    .product-card-content {
        padding: 0.6rem;
    }

    .product-card h3 {
        font-size: 0.75rem;
    }

    .product-card-description {
        font-size: 0.65rem;
    }

    .product-placeholder-icon {
        font-size: 2rem;
    }

    .product-placeholder-text {
        font-size: 0.6rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .video-card {
        flex: 0 0 100px;
        aspect-ratio: 9 / 16;
        min-height: 140px;
    }

    .video-card-image {
        height: 50%;
    }

    .video-card-content {
        padding: 0.6rem;
    }

    .video-card h3 {
        font-size: 0.75rem;
    }

    .video-card-description {
        font-size: 0.65rem;
    }

    .video-price {
        font-size: 0.9rem;
    }

    .video-play-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .search-bar {
        display: none;
    }

    .navbar-menu {
        display: none;
    }

    .product-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .categories-track,
    .products-track,
    .videos-track {
        padding-left: 8px;
        padding-right: 8px;
        gap: 1rem;
    }

    .carousel-controls {
        padding: 0;
    }

    .categories-section,
    .videos-section,
    .products-section,
    .course-filter-section {
        padding: 2rem 0;
    }

    .categories-section h2,
    .videos-section h2,
    .products-section h2,
    .course-filter-section h2 {
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }
}

/* ===================== */
/* 超小手機版 (480px 以下) */
/* ===================== */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .marquee-item {
        font-size: clamp(0.8rem, 2vw, 1.2rem);
        margin-left: 0.8rem;
        margin-right: 0.8rem;
    }

    .mobile-nav-text {
        font-size: 0.55rem;
    }

    .mobile-nav-icon {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .admin-content {
        padding: 0.75rem;
    }

    .admin-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .slider-container {
        height: 250px;
    }

    .slider-item-content {
        padding: 1rem;
    }

    .slider-item-content div:first-child {
        font-size: 1.2rem;
    }

    .slider-item-content small {
        font-size: 0.8rem;
    }

    .product-image {
        height: 120px;
    }

    .placeholder-icon {
        font-size: 2rem;
    }

    .placeholder-text {
        font-size: 0.75rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .category-card {
        flex: 0 0 90px;
        aspect-ratio: 9 / 16;
        min-height: 125px;
    }

    .product-card {
        flex: 0 0 90px;
        aspect-ratio: 9 / 16;
        min-height: 125px;
    }

    .video-card {
        flex: 0 0 90px;
        aspect-ratio: 9 / 16;
        min-height: 125px;
    }

    .categories-track,
    .products-track,
    .videos-track {
        padding-left: 6px;
        padding-right: 6px;
        gap: 0.8rem;
    }

    .category-card-content {
        padding: 0.5rem;
    }

    .product-card-content {
        padding: 0.5rem;
    }

    .video-card-content {
        padding: 0.5rem;
    }

    .category-card h3 {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .product-card h3 {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .video-card h3 {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .category-card p {
        font-size: 0.6rem;
        margin-bottom: 0.3rem;
    }

    .product-price,
    .video-price {
        font-size: 0.85rem;
    }
}

/* ===================== */
/* 暗黑模式轉換動畫 */
/* ===================== */
body.theme-transition {
    transition: background-color 0.5s ease;
}

body.theme-transition * {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* ===================== */
/* Scrollbar 美化 */
/* ===================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-cyan);
}