/* ==================== 手機版底部 App Bar ==================== */
.mobile-app-bar {
    display: none; /* 電腦版隱藏 */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(63, 177, 231, 0.2);
    padding: 8px 0 env(safe-area-inset-bottom);
    z-index: 10000;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
}

.app-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    color: #666;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: inherit;
}

.app-bar-item i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.app-bar-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.app-bar-item:active {
    color: var(--primary-color);
}

.app-bar-item:active i {
    transform: scale(1.15);
}

/* ==================== 社群 Popup ==================== */
.social-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.social-popup.active {
    display: block;
}

.social-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.social-popup-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.social-popup.active .social-popup-content {
    transform: translateY(0);
}

.social-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.social-popup-close:active {
    background: rgba(0, 0, 0, 0.1);
}

.social-popup-close i {
    font-size: 1.1rem;
    color: #666;
}

.social-popup-content h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
}

.social-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-social-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popup-social-btn:active {
    transform: scale(0.98);
}

.popup-social-btn i {
    font-size: 1.8rem;
}

.popup-social-btn span {
    font-size: 1rem;
}

.popup-social-btn.instagram {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
}

.popup-social-btn.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
}

.popup-social-btn.threads {
   background: linear-gradient(135deg, #000000 0%, #101010 100%);
}

/* ==================== 手機版顯示 ==================== */
@media (max-width: 768px) {
    .mobile-app-bar {
        display: flex;
    }
    
    /* 手機版時網頁底部留空間給 App Bar */
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .app-bar-item i {
        font-size: 1.2rem;
    }
    
    .app-bar-item span {
        font-size: 0.65rem;
    }
}