/* 桌面版確保視圖模式選擇顯示 */
@media (min-width: 769px) {
    .view-mode-options {
        display: flex !important;
    }
}/* 側邊欄視圖模式選項樣式 */
.view-mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.view-mode-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.view-mode-option:hover {
    color: var(--accent-color);
}

.view-mode-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.view-mode-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--accent-color);
}

.view-mode-option input[type="radio"]:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.option-text {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.view-mode-option:hover .option-text {
    color: var(--accent-color);
}

/* 月曆視圖樣式 */
.events-calendar-view {
    padding: 20px 0;
}

.calendar-nav {
    padding: 20px 0 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin-bottom: 30px;
}

.month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.nav-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-arrow:hover {
    background: var(--hover-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-arrow span:first-child,
.nav-arrow span:last-child {
    font-size: 18px;
    font-weight: bold;
}

.current-month {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
    min-width: 200px;
    text-align: center;
}

.calendar-grid {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.weekday-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.weekday {
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 14px;
    border-right: 1px solid var(--border-color);
}

.weekday:last-child {
    border-right: none;
}

.calendar-body {
    display: flex;
    flex-direction: column;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.calendar-week:last-child {
    border-bottom: none;
}

.calendar-day {
    min-height: 100px;
    padding: 8px;
    border-right: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.05);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    background: rgba(74, 158, 255, 0.1);
    border: 2px solid var(--accent-color);
}

.day-number {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day-event {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 4px;
    background: rgba(74, 158, 255, 0.2);
    border-radius: 3px;
    font-size: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.day-event:hover {
    background: rgba(74, 158, 255, 0.4);
    transform: translateY(-1px);
}

.event-icon {
    font-size: 8px;
    flex-shrink: 0;
}

.event-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.more-events {
    font-size: 9px;
    color: var(--text-secondary);
    text-align: center;
    padding: 1px;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .view-mode-options {
        gap: 8px;
    }
    
    .view-mode-option {
        padding: 6px 0;
    }
    
    .option-text {
        font-size: 13px;
    }
    
    .month-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-arrow {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .current-month {
        font-size: 20px;
        min-width: auto;
    }
    
    .calendar-day {
        min-height: 70px;
        padding: 5px;
    }
    
    .day-number {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .day-event {
        font-size: 8px;
        padding: 1px 3px;
    }
    
    .event-icon {
        font-size: 7px;
    }
    
    .more-events {
        font-size: 7px;
    }
}

/* 超小螢幕修正 (iPhone SE 等) */
@media (max-width: 375px) {
    .mobile-nav-menu {
        width: 240px;
        padding: 70px 12px 15px;
    }
    
    .mobile-nav-item {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .mobile-nav-section > div:first-child {
        padding: 0 10px;
        font-size: 10px;
    }
    
    .mobile-sign-in-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .language-toggle {
        min-width: 70px;
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* 手機版選單修正 */
    .mobile-nav-menu {
        width: 260px;
        padding: 80px 15px 20px;
    }
    
    .mobile-nav-item {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .mobile-nav-section > div:first-child {
        padding: 0 12px;
        font-size: 11px;
    }
    
    .mobile-sign-in-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    /* 確保選單不會超出螢幕 */
    .mobile-nav-menu.active {
        right: 0;
        transform: translateX(0);
    }
    
    /* 月曆視圖修正 */
    .weekday {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 3px;
    }
    
    .day-number {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .day-event {
        font-size: 7px;
        padding: 1px 2px;
    }
    
    .event-icon {
        font-size: 6px;
    }
    
    .more-events {
        font-size: 6px;
    }
}/* css/main.css - 主要樣式檔案 (多語言支援版) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0f1c;
    --secondary-bg: #1a2332;
    --accent-color: #4a9eff;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #aaaaaa;
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --success-color: #4caf50;
    --error-color: #ff6b6b;
    --warning-color: #ff9800;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

:lang(en) {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

:lang(ja) {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/Background_H.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
    opacity: 0.8;
}

/* 手機版背景固定，避免跳動 */
@media (max-width: 768px) {
    .background {
        display: none; /* 隱藏原背景 */
    }
    
    /* iOS Safari 背景固定修復 - 使用 ::before 偽元素創建固定背景 */
    body {
        position: relative;
        overflow-x: hidden;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-image: url('../images/Background_V.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        z-index: -2;
        opacity: 0.8;
        will-change: auto;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        pointer-events: none;
    }
    
    /* 防止背景在滾動時移動 */
    .main-content {
        position: relative;
        z-index: 1;
    }
}

.light-effects {
    display: none;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1); 
    }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0 50px;
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    height: 60px;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo:hover {
    color: var(--accent-color);
}

/* Logo 容器：自動調適圖片大小 */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    max-height: 60px;
}

/* Logo 圖片：自動調適 */
.logo-img {
    height: 100%;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Logo 文字圖片：縮小到 80% */
.logo-text-img {
    height: 80%;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--accent-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    position: relative;
}

.language-toggle {
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 50px;
    font-size: 14px;
}

.language-toggle .flag-only {
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-toggle .flag-with-text {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.flag-tw {
    background-image: url('../images/Flag_of_the_Republic_of_China.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flag-tw::before {
    display: none;
}

.flag-us {
    background-image: url('../images/Flag_of_the_United_States.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flag-us::before {
    display: none;
}

.flag-jp {
    background-image: url('../images/Flag_of_Japan.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flag-jp::before {
    display: none;
}

.flag-kr {
    background-image: url('../images/Flag_of_South_Korea.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flag-kr::before {
    display: none;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 180px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.language-option .flag-with-text {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--hover-bg);
}

.language-option.active {
    background: rgba(74, 158, 255, 0.1);
    color: var(--accent-color);
}

.sign-in-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
}

.sign-in-btn:hover {
    background: var(--text-primary);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* 桌面版使用者頭像 */
.desktop-user-avatar {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

.desktop-user-avatar:hover {
    transform: scale(1.05);
    border-color: var(--text-primary);
}

.desktop-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 桌面版使用者選單（小選單）*/
.desktop-user-menu {
    position: fixed;
    top: 80px;
    right: 50px;
    background: rgba(26, 35, 50, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 10px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.desktop-user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.desktop-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop-menu-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.desktop-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.desktop-logout {
    color: var(--error-color);
}

.desktop-logout:hover {
    background: rgba(255, 107, 107, 0.1);
}

.main-content {
    margin-top: 100px;
    padding: 20px 50px 50px;
    min-height: 100vh;
}

.hero-section {
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.hero-title {
    font-size: 80px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    letter-spacing: 5px;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.sidebar {
    position: fixed;
    left: -300px;
    top: 60px;
    width: 280px;
    height: calc(100vh - 60px);
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(15px);
    padding: 30px 20px;
    transition: all 0.3s ease;
    z-index: 999;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 237, 153, 0.3);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid var(--border-color);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.sidebar h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h4 {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.sidebar-item {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    cursor: pointer;
}

.sidebar-item:hover, .sidebar-item.active {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.search-box {
    width: 100%;
    padding: 12px 20px;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    margin-top: 20px;
    font-size: 14px;
}

.search-box::placeholder {
    color: var(--text-muted);
}

.search-box:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.event-card {
    background: rgba(0, 0, 0, 0.4);  /* 改用黑色半透明背景，增加對比度 */
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover::before {
    opacity: 1;
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.event-card-content {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.event-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background: var(--hover-bg);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 18px;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
    /* 文字溢出處理：省略號方式（最穩定） */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.event-datetime {
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-size: 14px;
}

.event-location {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.event-price {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
}

.event-heart {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.event-heart:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.loading {
    text-align: center;
    padding: 50px;
    color: var(--text-secondary);
}

.error-message {
    text-align: center;
    padding: 50px;
    color: var(--error-color);
}

.no-events {
    text-align: center;
    padding: 100px 50px;
    color: var(--text-secondary);
}

.no-events h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.venue-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.venue-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.venue-item:hover {
    background: var(--hover-bg);
    transform: translateY(-5px);
}

.venue-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.venue-description {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.venue-info {
    color: var(--text-muted);
    font-size: 13px;
}

/* 響應式顯示控制 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none !important; /* 桌面版隱藏手機版專用元素 */
}

/* 手機版導航欄登入按鈕 */
.mobile-sign-in-btn-nav {
    padding: 8px 16px;
    background: transparent;
    border: 1.5px solid var(--text-primary);
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.mobile-sign-in-btn-nav:hover {
    background: var(--text-primary);
    color: var(--primary-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

/* 手機版右上按鈕容器 */
.mobile-header-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 手機版漢堡選單 */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    position: relative;
    z-index: 1002;
}

/* 手機版使用者頭像按鈕 */
.mobile-user-avatar-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    z-index: 1002;
    position: absolute;
    top: 0;
    left: 0;
}

.mobile-user-avatar-btn:hover {
    transform: scale(1.05);
    border-color: var(--text-primary);
}

.mobile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(15px);
    padding: 80px 30px 30px;
    transition: all 0.3s ease;
    z-index: 1001;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-bottom: 100px; /* 為登入按鈕預留空間 */
}

.mobile-nav-menu.active {
    right: 0;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: var(--hover-bg);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateX(5px);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

.mobile-nav-auth {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(15px);
    margin-left: -30px;
    margin-right: -30px;
    padding-left: 30px;
    padding-right: 30px;
}

.mobile-sign-in-btn {
    padding: 15px 25px;
    background: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.mobile-sign-in-btn:hover {
    background: var(--text-primary);
    color: var(--primary-bg);
}

/* 手機版使用者資訊區塊 */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
}

.mobile-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
}

.mobile-user-details {
    flex: 1;
    overflow: hidden;
}

.mobile-user-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-user-email {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 手機版選單項目圖示 */
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.mobile-logout-btn {
    color: var(--error-color);
}

.mobile-logout-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--error-color);
}

/* 手機版選單區塊樣式 */
.mobile-nav-section {
    margin-bottom: 20px;
}

.mobile-nav-section > div:first-child {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    padding: 0 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 手機版語言選項修正 */
.mobile-language-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-language-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 0;
}

.mobile-language-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.mobile-language-item .flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
}

.mobile-language-item span {
    flex: 1;
    font-size: 16px;
    color: var(--text-primary);
}

.mobile-language-item.active {
    background: rgba(74, 158, 255, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* 新增：水平語言選項網格 */
.mobile-language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 10px;
}

.mobile-language-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 70px;
    justify-content: center;
    gap: 6px;
}

.mobile-language-option:hover {
    background: var(--hover-bg);
    border-color: var(--accent-color);
}

.mobile-language-option.active {
    background: rgba(74, 158, 255, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.mobile-language-option .flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.mobile-language-option span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* 手機版遮罩 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
        height: auto;
        min-height: 50px;
    }
    
    /* 手機版 Logo 調整 */
    .logo-container {
        max-height: 50px;
        gap: 6px;
    }
    
    .logo-img {
        max-height: 50px;
    }
    
    .logo-text-img {
        height: 60%;
        max-height: 36px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important; /* 手機版顯示手機版元素 */
    }
    
    /* 手機版顯示漢堡按鈕容器 */
    .mobile-header-btn {
        display: flex !important;
    }
    
    /* 隱藏桌面版使用者選單 */
    .desktop-user-menu {
        display: none !important;
    }
    
    /* 手機版登入按鈕只顯示在選單內 */
    .sign-in-btn {
        display: none !important;
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    /* 手機版語言按鈕調整為國旗比例 */
    .language-toggle {
        min-width: auto;
        width: 32px;
        height: 24px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
    }
    
    .language-toggle .flag-only {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .language-toggle .flag-icon {
        width: 28px;
        height: 21px;
        border-radius: 2px;
    }
    
    .hero-title {
        font-size: 50px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .main-content {
        padding: 15px 20px 20px;
    }
    
    .event-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card-content {
        flex-direction: column;
    }
    
    .event-image {
        width: 100%;
        height: 150px;
    }
    
    .language-dropdown {
        min-width: 140px;
        right: 0;
        left: auto;
    }
    
    .sidebar {
        position: fixed;
        left: -300px;
        top: 60px;
        width: 280px;
        height: calc(100vh - 60px);
        background: rgba(10, 15, 28, 0.95);
        backdrop-filter: blur(15px);
        padding: 30px 20px;
        transition: all 0.3s ease;
        z-index: 999;
        border-right: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    .sidebar.open {
        left: 0;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    /* 手機版隐藏行事曆模式選擇，但保留桌面版功能 */
    .view-mode-options {
        display: none;
    }
    
    /* 手機版顯示最愛篩選按鈕 */
    .favorites-filter-toggle {
        display: flex !important;
    }
    
    /* 手機版強制顯示列表模式 */
    .events-calendar-view {
        display: none !important;
    }
    
    .events-list-view {
        display: block !important;
    }
    
    .mobile-nav-section {
        margin-bottom: 15px;
    }
    
    .mobile-nav-section > div:first-child {
        padding: 0 15px;
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .mobile-nav-item {
        padding: 12px 15px;
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    /* 手機版語言選項網格調整 */
    .mobile-language-grid {
        padding: 0 15px;
        gap: 6px;
    }
    
    .mobile-language-option {
        min-height: 60px;
        padding: 10px 6px;
        gap: 4px;
    }
    
    .mobile-language-option .flag-icon {
        width: 20px;
        height: 15px;
    }
    
    .mobile-language-option span {
        font-size: 11px;
    }
    
    /* 手機版登入按鈕已移至導航欄 */
}

.hidden {
    display: none;
}

/* 關於我們頁面樣式 */
.about-page {
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.about-hero {
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
}

.about-hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #4a9eff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.about-hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.about-values {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.1);
}

.value-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.value-card h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.value-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-network {
    padding: 80px 0;
}

.network-description {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.network-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.network-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--accent-color) 0%, 
        rgba(255, 255, 255, 0.3) 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.3) 75%, 
        var(--accent-color) 100%);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.network-card:hover::before {
    opacity: 1;
}

.network-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.network-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.network-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.network-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.about-closing {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.closing-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 50px;
}

.join-us-cta {
    background: rgba(74, 158, 255, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.join-us-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.join-us-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #6bb6ff 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover::before {
    transform: translateX(0);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.4);
    background: linear-gradient(135deg, #5da3ff 0%, #4a9eff 100%);
}

/* 聯絡資訊樣式 */
.contact-info {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.contact-info h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    margin: 0;
}

.email-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 5px rgba(74, 158, 255, 0.3));
}

.contact-email a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid transparent;
}

.contact-email a:hover {
    color: #ffffff;
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.contact-email a:active {
    transform: translateY(0);
}

/* 關於我們頁面響應式設計 */
@media (max-width: 768px) {
    .about-page .container {
        padding: 0 20px;
    }
    
    .about-hero {
        padding: 100px 0 60px;
    }
    
    .about-hero-title {
        font-size: 32px;
    }
    
    .about-hero-description {
        font-size: 16px;
    }
    
    .about-values,
    .about-network,
    .about-closing {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .network-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .value-card,
    .network-card {
        padding: 25px;
    }
    
    .value-icon {
        font-size: 48px;
    }
    
    .network-icon {
        font-size: 40px;
    }
    
    .join-us-cta {
        padding: 30px 20px;
    }
    
    .join-us-text {
        font-size: 18px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    /* 聯絡資訊響應式 */
    .contact-info {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .contact-info h3 {
        font-size: 18px;
    }
    
    .contact-email {
        flex-direction: column;
        gap: 8px;
        font-size: 16px;
    }
    
    .contact-email a {
        padding: 10px 20px;
        font-size: 16px;
    }
}
