﻿/**
 * 店家详情页样式
 * Store Detail Page Styles
 */

/* 非手機模式下隱藏底部浮動欄 */
.mobile-bottom-bar {
    display: none !important;
}

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

body {
    font-family: 'Microsoft JhengHei', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    padding: 12px;
}
        
        .header {
            background: #ffffff;
            border-radius: 16px;
            padding: 20px 24px;
            margin-bottom: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
            border: 1px solid #e8e8e8;
            position: relative;
            overflow: hidden;
        }
        
        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #1a1a1a 0%, rgba(26,26,26,0.3) 100%);
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            position: relative;
        }
        
        .header h1 {
            color: #1a1a1a;
            font-size: 1.5em;
            margin: 0;
            font-weight: 600;
            letter-spacing: -0.4px;
            position: relative;
        }
        
        .store-name-header {
            color: #1a1a1a;
            font-size: 1.8em;
            margin: 0;
            font-weight: 600;
            letter-spacing: -0.5px;
            position: relative;
            flex: 1;
            text-align: center;
            padding: 0 20px;
        }
        
        .back-link {
            color: #1a1a1a;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: #ffffff;
            border-radius: 8px;
            transition: all 0.3s;
            border: 1.5px solid #1a1a1a;
            font-weight: 500;
            font-size: 0.9em;
            position: absolute;
            left: 0;
            z-index: 1;
        }
        
        .back-link:hover {
            background: #1a1a1a;
            color: #ffffff;
        }
        
        .header h1 i {
            margin-right: 10px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 352px;
            gap: 16px;
            align-items: start;
        }
        
        .main-content {
            min-width: 0;
        }
        
        .sidebar {
            position: sticky;
            top: 12px;
        }
        
        .store-header {
            background: #ffffff;
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
            border: 1px solid #e8e8e8;
            position: relative;
            overflow: hidden;
        }
        
        .store-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #1a1a1a 0%, rgba(26,26,26,0.3) 100%);
        }
        
        .store-header-content {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .store-image-section {
            flex: 0 0 100%;
            max-width: 100%;
        }
        
        .main-image {
            width: 100%;
            height: 320px;
            object-fit: cover;
            border-radius: 12px;
            margin-bottom: 16px;
            background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
            border: 1px solid #e8e8e8;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .main-image:hover {
            transform: scale(1.02);
        }
        
        .photo-gallery {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        
        .photo-thumb {
            width: 100%;
            height: 100px;
            object-fit: cover;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
            border: 1px solid #e8e8e8;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }
        
        .photo-thumb:hover {
            transform: scale(1.08) translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.12);
            border-color: #1a1a1a;
        }
        
        .store-info-section {
            flex: 1;
            min-width: 300px;
        }
        
        .store-name {
            font-size: 1.6em;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 12px;
            letter-spacing: -0.5px;
        }
        
        .store-rating {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
            padding: 12px 16px;
            background: #f8f8f8;
            border-radius: 8px;
            border: 1px solid #e5e5e5;
        }
        
        .stars {
            color: #fbbf24;
            font-size: 1.2em;
            letter-spacing: 2px;
        }
        
        .rating-text {
            color: #666;
            font-size: 0.95em;
            font-weight: 500;
        }
        
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 12px;
            margin-top: 12px;
        }
        
        .info-item {
            padding: 14px 16px;
            background: linear-gradient(135deg, #f8f8f8 0%, #f5f5f5 100%);
            border-radius: 10px;
            border: 1px solid #e8e8e8;
            transition: all 0.3s ease;
        }
        
        .info-item:hover {
            background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
            border-color: #d0d0d0;
            transform: translateY(-1px);
        }
        
        .info-label {
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 6px;
            display: block;
            font-size: 0.85em;
            letter-spacing: 0.2px;
        }
        
        .info-value {
            color: #333;
            word-break: break-word;
            font-size: 0.9em;
        }
        
        .section {
            background: #ffffff;
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
            border: 1px solid #e8e8e8;
            position: relative;
        }
        
        .section-title {
            font-size: 1.5em;
            color: #1a1a1a;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid #1a1a1a;
            font-weight: 600;
            letter-spacing: -0.4px;
            position: relative;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 60px;
            height: 2px;
            background: #1a1a1a;
        }
        
        .description {
            font-size: 1em;
            line-height: 1.7;
            color: #555;
            white-space: pre-wrap;
        }
        
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }
        
        .tag {
            background: #1a1a1a;
            color: #ffffff;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 500;
        }
        
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }
        
        .contact-item {
            padding: 12px 14px;
            background: linear-gradient(135deg, #f8f8f8 0%, #f5f5f5 100%);
            border-radius: 10px;
            text-align: left;
            border: 1px solid #e8e8e8;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .contact-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(26,26,26,0.05), transparent);
            transition: left 0.5s;
        }
        
        .contact-item:hover {
            background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
            border-color: #1a1a1a;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .contact-item:hover::before {
            left: 100%;
        }
        
        .contact-icon {
            font-size: 1.3em;
            opacity: 0.8;
            flex-shrink: 0;
            width: 28px;
            text-align: center;
        }
        
        .contact-icon i {
            color: #1a1a1a;
        }
        
        i.fas, i.fab {
            margin-right: 6px;
        }
        
        .section-title i,
        .search-sidebar h2 i,
        .search-tips h3 i,
        .header h1 i {
            margin-right: 8px;
        }
        
        .info-label i,
        .detail-label i {
            margin-right: 4px;
        }
        
        .contact-label {
            font-weight: 600;
            color: #1a1a1a;
            font-size: 0.85em;
            min-width: 55px;
            flex-shrink: 0;
        }
        
        .contact-value {
            color: #333;
            word-break: break-all;
            font-size: 0.9em;
            flex: 1;
            text-align: right;
        }
        
        @media (max-width: 768px) {
            .contact-grid {
                grid-template-columns: 1fr;
            }
        }
        
        .contact-link {
            color: #1a1a1a;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .contact-link:hover {
            color: #000000;
            text-decoration: underline;
        }
        
        .opening-hours {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
        }
        
        .hours-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: linear-gradient(135deg, #f8f8f8 0%, #f5f5f5 100%);
            border-radius: 8px;
            border: 1px solid #e8e8e8;
            font-size: 0.9em;
        }
        
        .hours-item span:first-child {
            font-weight: 500;
            color: #1a1a1a;
            min-width: 50px;
        }
        
        .hours-item span:last-child {
            color: #666;
            text-align: right;
        }
        
        @media (max-width: 768px) {
            .opening-hours {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 6px !important;
            }
        }
        
        .reviews-list {
            display: grid;
            gap: 12px;
        }
        
        .review-item {
            padding: 18px;
            background: linear-gradient(135deg, #f8f8f8 0%, #f5f5f5 100%);
            border-radius: 12px;
            border-left: 3px solid #1a1a1a;
            border: 1px solid #e8e8e8;
            transition: all 0.3s ease;
        }
        
        .review-item:hover {
            background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
            transform: translateX(4px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        
        .review-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .review-author {
            font-weight: 600;
            color: #1a1a1a;
        }
        
        .review-rating {
            color: #fbbf24;
        }
        
        .review-text {
            color: #333;
            line-height: 1.6;
            font-size: 0.9em;
        }
        
        .review-time {
            color: #999;
            font-size: 0.8em;
            margin-top: 8px;
        }
        
        .map-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 16px;
            padding: 12px 24px;
            background: #1a1a1a;
            color: #ffffff;
            text-decoration: none;
            border-radius: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 500;
            font-size: 0.9em;
            position: relative;
            overflow: hidden;
        }
        
        .map-link::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .map-link:hover {
            background: #2a2a2a;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.2);
        }
        
        .map-link:hover::before {
            width: 300px;
            height: 300px;
        }
        
        .map-link i {
            margin-right: 0;
        }
        
        .map-container {
            width: 100%;
            height: 400px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #e8e8e8;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            margin-top: 16px;
            background: #f0f0f0;
        }
        
        .map-container .leaflet-container {
            height: 100%;
            width: 100%;
        }
        
        .search-sidebar {
            background: #ffffff;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
            border: 1px solid #e8e8e8;
            position: sticky;
            top: 12px;
        }
        
        .search-sidebar h2 {
            color: #1a1a1a;
            margin-bottom: 16px;
            font-size: 1.35em;
            padding-bottom: 10px;
            border-bottom: 2px solid #1a1a1a;
            font-weight: 600;
            letter-spacing: -0.4px;
            position: relative;
        }
        
        .search-sidebar h2::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 50px;
            height: 2px;
            background: #1a1a1a;
        }
        
        .search-box {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .search-box input {
            width: 100%;
            padding: 12px 16px;
            border: 1.5px solid #d5d5d5;
            border-radius: 10px;
            font-size: 14px;
            outline: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: #ffffff;
            color: #1a1a1a;
            font-weight: 400;
        }
        
        .search-box input:focus {
            border-color: #1a1a1a;
            box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.06);
            transform: translateY(-1px);
        }
        
        .search-box input::placeholder {
            color: #999;
            font-weight: 400;
        }
        
        .search-box button {
            width: 100%;
            padding: 12px;
            background: #1a1a1a;
            color: #ffffff;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            letter-spacing: 0.3px;
            position: relative;
            overflow: hidden;
        }
        
        .search-box button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .search-box button:hover {
            background: #2a2a2a;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.18);
        }
        
        .search-box button:hover::before {
            width: 300px;
            height: 300px;
        }
        
        .search-box button:active {
            transform: translateY(0);
        }
        
        .search-tips {
            margin-top: 16px;
            padding: 16px;
            background: linear-gradient(135deg, #f8f8f8 0%, #f5f5f5 100%);
            border-radius: 12px;
            font-size: 0.85em;
            color: #666;
            border: 1px solid #e8e8e8;
            position: relative;
        }
        
        .search-tips::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: #1a1a1a;
            border-radius: 12px 0 0 12px;
        }
        
        .search-tips h3 {
            color: #1a1a1a;
            margin-bottom: 10px;
            font-size: 0.95em;
            font-weight: 600;
            letter-spacing: -0.2px;
        }
        
        .search-tips ul {
            margin-left: 18px;
            line-height: 1.7;
            color: #555;
        }
        
        .search-tips ul li {
            margin-bottom: 4px;
        }
        
        .related-stores {
            margin-top: 20px;
        }
        
        .related-store-item {
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
            margin-bottom: 10px;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .related-store-item:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }
        
        .related-store-item a {
            text-decoration: none;
            color: #333;
        }
        
        .related-store-name {
            font-weight: bold;
            color: #667eea;
            margin-bottom: 5px;
        }
        
        .related-store-address {
            font-size: 0.9em;
            color: #666;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid #e8e8e8;
        }
        
        .pagination a, .pagination span {
            padding: 8px 14px;
            background: #ffffff;
            color: #1a1a1a;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid #e5e5e5;
            font-weight: 500;
            font-size: 0.9em;
            min-width: 40px;
            text-align: center;
        }
        
        .pagination a:hover {
            background: #1a1a1a;
            color: #ffffff;
            border-color: #1a1a1a;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.12);
        }
        
        .pagination .current {
            background: #1a1a1a;
            color: #ffffff;
            border-color: #1a1a1a;
            font-weight: 600;
        }
        
        .no-results {
            text-align: center;
            padding: 40px 20px;
            color: #666;
        }
        
        .no-results p {
            margin: 0;
            font-size: 0.95em;
        }
        
        @media (max-width: 992px) {
            .container {
                grid-template-columns: 1fr !important;
                max-width: 100% !important;
                width: 100% !important;
                padding: 0 10px;
                display: flex !important;
                flex-direction: column !important;
            }
            
            .sidebar {
                position: static !important;
                margin-top: 0 !important;
                margin-bottom: 20px !important;
                order: -1 !important; /* 移到最上方 */
                max-width: 100% !important;
                width: 100% !important;
            }
            
            .main-content {
                order: 1 !important; /* 移到下方 */
                width: 100% !important;
                max-width: 100% !important;
            }
            
            .search-sidebar {
                position: static !important;
                width: 100% !important;
                max-width: 100% !important;
            }
        }
        
        @media (max-width: 768px) {
            /* 防止横向滚动 */
            html, body {
                overflow-x: hidden !important;
                max-width: 100vw !important;
                width: 100% !important;
                position: relative !important;
            }
            
            * {
                max-width: 100% !important;
                box-sizing: border-box !important;
            }
            
            body {
                padding: 0 !important;
                padding-bottom: 45px !important; /* 为底部浮动栏留出空间 */
            }
            
            .container {
                display: flex !important;
                flex-direction: column !important;
                max-width: 100% !important;
                width: 100% !important;
                padding: 0 !important;
                margin: 0 !important;
                overflow-x: hidden !important;
            }
            
            .sidebar {
                order: -1 !important; /* 移到最上方 */
                margin-top: 0 !important;
                margin-bottom: 0 !important;
                max-width: 100% !important;
                width: 100% !important;
                padding: 0 !important;
            }
            
            .main-content {
                order: 1 !important; /* 移到下方 */
                width: 100% !important;
                max-width: 100% !important;
                padding: 0 !important;
                margin: 0 !important;
            }
            
            .search-sidebar {
                width: 100% !important;
                max-width: 100% !important;
                padding: 15px !important;
                margin: 0 !important;
                border-radius: 0 !important;
            }
            
            .header {
                border-radius: 0 !important;
                margin-bottom: 0 !important;
                padding: 15px !important;
            }
            
            .store-header {
                border-radius: 0 !important;
                margin-bottom: 0 !important;
                padding: 15px !important;
            }
            
            .section {
                border-radius: 0 !important;
                margin-bottom: 0 !important;
                padding: 15px !important;
            }
            
            /* 隱藏sidebar中的登入狀態 */
            .sidebar .user-status {
                display: none !important;
            }
            
            /* 手機版隱藏側邊欄中的登入區塊 */
            .login-section {
                display: none !important;
            }
            
            /* 手機版隱藏討論區入口（未登入用戶） */
            .forum-entry-section {
                display: none !important;
            }
            
            /* 手機模式底部浮動欄 */
            .mobile-bottom-bar {
                display: flex !important;
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                width: 100vw !important;
                max-width: 100vw !important;
                background: #ffffff !important;
                border-top: 2px solid #1a1a1a !important;
                box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
                z-index: 1000 !important;
                padding: 2px 12px 4px 12px !important;
                align-items: flex-end !important;
                gap: 10px !important;
                min-height: 40px !important;
                overflow: visible !important; /* 允许头像溢出 */
                /* 硬件加速优化，防止滑动时位移 */
                transform: translateZ(0) !important;
                -webkit-transform: translateZ(0) !important;
                will-change: transform !important;
                backface-visibility: hidden !important;
                -webkit-backface-visibility: hidden !important;
                -webkit-perspective: 1000 !important;
                perspective: 1000 !important;
                /* 使用视口宽度，不受文档宽度影响 */
                margin: 0 !important;
                box-sizing: border-box !important;
            }
            
            .mobile-bottom-bar .mobile-avatar-wrapper {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                gap: 2px !important;
                flex-shrink: 0 !important;
                position: relative !important;
            }
            
            .mobile-bottom-bar .mobile-avatar {
                width: 70px !important;
                height: 70px !important;
                border-radius: 50% !important;
                background: #1a1a1a !important;
                color: #ffffff !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                font-size: 1.6em !important;
                font-weight: 600 !important;
                overflow: hidden !important;
                margin-top: -25px !important; /* 让头像溢出BAR上边界 */
                border: 3px solid #ffffff !important;
                box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
            }
            
            .mobile-bottom-bar .mobile-avatar img {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover !important;
            }
            
            .mobile-bottom-bar .mobile-user-name {
                font-size: 0.7em !important;
                font-weight: 600 !important;
                color: #1a1a1a !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
                max-width: 70px !important;
                text-align: center !important;
                margin-top: 2px !important;
            }
            
            .mobile-bottom-bar .mobile-user-info {
                flex: 1 !important;
                min-width: 0 !important;
                display: none !important; /* 隐藏原来的用户信息区域 */
            }
            
            .mobile-bottom-bar .mobile-user-role {
                display: none !important; /* 隐藏角色信息 */
            }
            
            .mobile-bottom-bar .mobile-currency {
                display: none !important; /* 隐藏货币余额 */
            }
            
            .mobile-bottom-bar .mobile-currency i {
                display: none !important;
            }
            
            .mobile-bottom-bar .mobile-actions {
                display: flex !important;
                gap: 8px !important;
                flex-shrink: 0 !important;
                align-items: center !important;
            }
            
            .mobile-bottom-bar .mobile-actions a {
                width: 44px !important;
                height: 44px !important;
                border-radius: 50% !important;
                background: #f0f0f0 !important;
                color: #1a1a1a !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                text-decoration: none !important;
                transition: all 0.3s !important;
                font-size: 1.2em !important;
                position: relative !important;
            }
            
            .mobile-bottom-bar .mobile-actions a i {
                font-size: 1.2em !important;
            }
            
            .mobile-bottom-bar .mobile-actions a:hover,
            .mobile-bottom-bar .mobile-actions a:active {
                background: #1a1a1a !important;
                color: #ffffff !important;
                transform: scale(1.1) !important;
            }
            
            .mobile-bottom-bar .mobile-actions a .badge {
                position: absolute !important;
                top: -4px !important;
                right: -4px !important;
                background: #ff4444 !important;
                color: #ffffff !important;
                border-radius: 50% !important;
                width: 18px !important;
                height: 18px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                font-size: 0.7em !important;
                font-weight: 600 !important;
                border: 2px solid #ffffff !important;
            }
            
            /* 未登入用戶的手機版底部浮動欄 */
            .mobile-bottom-bar-guest {
                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
                padding: 8px 16px !important;
                gap: 12px !important;
            }
            
            .mobile-login-btn,
            .mobile-register-btn {
                flex: 1 !important;
                padding: 12px 16px !important;
                border-radius: 8px !important;
                font-size: 0.95em !important;
                font-weight: 600 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 8px !important;
                text-decoration: none !important;
                transition: all 0.3s !important;
                border: 2px solid #1a1a1a !important;
                cursor: pointer !important;
            }
            
            .mobile-login-btn {
                background: #ffffff !important;
                color: #1a1a1a !important;
            }
            
            .mobile-login-btn:active {
                background: #f0f0f0 !important;
                transform: scale(0.98) !important;
            }
            
            .mobile-register-btn {
                background: #1a1a1a !important;
                color: #ffffff !important;
            }
            
            .mobile-register-btn:active {
                background: #2a2a2a !important;
                transform: scale(0.98) !important;
            }
            
            .mobile-login-btn i,
            .mobile-register-btn i {
                font-size: 1.1em !important;
            }
            
            /* 手機版登入表單滑動面板 */
            .mobile-login-panel {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                background: #ffffff !important;
                border-top-left-radius: 20px !important;
                border-top-right-radius: 20px !important;
                box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
                z-index: 10001 !important;
                transform: translateY(100%) !important;
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
                max-height: 80vh !important;
                overflow-y: auto !important;
                display: none !important;
            }
            
            .mobile-login-panel.show {
                transform: translateY(0) !important;
                display: block !important;
            }
            
            .mobile-login-panel-header {
                display: flex !important;
                align-items: center !important;
                justify-content: space-between !important;
                padding: 16px 20px !important;
                border-bottom: 2px solid #1a1a1a !important;
                position: sticky !important;
                top: 0 !important;
                background: #ffffff !important;
                z-index: 1 !important;
            }
            
            .mobile-login-panel-header h3 {
                margin: 0 !important;
                font-size: 1.2em !important;
                font-weight: 600 !important;
                color: #1a1a1a !important;
                display: flex !important;
                align-items: center !important;
                gap: 8px !important;
            }
            
            .mobile-login-close {
                width: 36px !important;
                height: 36px !important;
                border-radius: 50% !important;
                background: #f0f0f0 !important;
                border: none !important;
                color: #1a1a1a !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                cursor: pointer !important;
                transition: all 0.3s !important;
                font-size: 1.1em !important;
            }
            
            .mobile-login-close:active {
                background: #1a1a1a !important;
                color: #ffffff !important;
                transform: scale(0.95) !important;
            }
            
            .mobile-login-panel-body {
                padding: 20px !important;
            }
            
            .mobile-login-panel-body .login-form {
                display: flex !important;
                flex-direction: column !important;
                gap: 12px !important;
            }
            
            .mobile-login-panel-body .login-form input {
                width: 100% !important;
                padding: 12px 16px !important;
                border: 2px solid #d5d5d5 !important;
                border-radius: 8px !important;
                font-size: 16px !important; /* 防止iOS自動縮放 */
                outline: none !important;
                transition: all 0.3s !important;
                background: #ffffff !important;
                color: #1a1a1a !important;
                box-sizing: border-box !important;
            }
            
            .mobile-login-panel-body .login-form input:focus {
                border-color: #1a1a1a !important;
                box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1) !important;
            }
            
            .mobile-login-panel-body .login-form button {
                width: 100% !important;
                padding: 12px 16px !important;
                background: #1a1a1a !important;
                color: #ffffff !important;
                border: none !important;
                border-radius: 8px !important;
                font-size: 16px !important;
                font-weight: 600 !important;
                cursor: pointer !important;
                transition: all 0.3s !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 8px !important;
            }
            
            .mobile-login-panel-body .login-form button:active {
                background: #2a2a2a !important;
                transform: scale(0.98) !important;
            }
            
            .mobile-login-panel-body .login-links {
                margin-top: 16px !important;
                padding-top: 16px !important;
                border-top: 1px solid #e8e8e8 !important;
                text-align: center !important;
            }
            
            .mobile-login-panel-body .login-links a {
                color: #1a1a1a !important;
                text-decoration: none !important;
                font-size: 0.9em !important;
                display: inline-flex !important;
                align-items: center !important;
                gap: 6px !important;
                transition: color 0.3s !important;
            }
            
            .mobile-login-panel-body .login-links a:active {
                color: #2a2a2a !important;
            }
            
            .mobile-login-panel-body .login-error {
                padding: 12px 16px !important;
                background: #fee !important;
                color: #c33 !important;
                border: 1px solid #fcc !important;
                border-radius: 8px !important;
                font-size: 0.9em !important;
                margin-bottom: 16px !important;
                display: flex !important;
                align-items: center !important;
                gap: 8px !important;
            }
            
            /* 遮罩層 */
            .mobile-login-overlay {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                background: rgba(0, 0, 0, 0.5) !important;
                z-index: 10000 !important;
                opacity: 0 !important;
                visibility: hidden !important;
                transition: opacity 0.3s, visibility 0.3s !important;
            }
            
            .mobile-login-overlay.show {
                opacity: 1 !important;
                visibility: visible !important;
            }
            
            .store-header-content {
                flex-direction: column;
            }
            
            .store-image-section {
                flex: 1 1 100%;
            }
            
            .store-name {
                font-size: 1.5em;
            }
            
            .photo-gallery {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .section {
                padding: 20px;
            }
            
            /* 手機模式下店家資訊布局：地址佔整行，其餘2列 */
            .info-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 10px !important;
            }
            
            /* 地址項佔據整行 */
            .info-item:first-child {
                grid-column: 1 / -1 !important;
            }
        }
        
        /* ??閮剜璅?? */
        .nearby-facilities-section {
            margin-bottom: 30px;
        }
        
        .nearby-facilities-section:last-child {
            margin-bottom: 0;
        }
        
        .facilities-subtitle {
            font-size: 1.2em;
            color: #1a1a1a;
            margin-bottom: 16px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e8e8e8;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .facilities-subtitle i {
            color: #1a1a1a;
        }
        
        .facilities-subtitle-note {
            color: #666;
            font-size: 0.85em;
            margin-top: -12px;
            margin-bottom: 20px;
            font-weight: 400;
            line-height: 1.5;
        }
        
        /* 璅惜?見撘?*/
        .tab-navigation {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            border-bottom: 2px solid #e8e8e8;
            flex-wrap: wrap;
        }
        
        .tab-btn {
            padding: 12px 24px;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            color: #666;
            font-size: 1em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            margin-bottom: -2px;
        }
        
        .tab-btn:hover {
            color: #1a1a1a;
            background: #f8f8f8;
        }
        
        .tab-btn.active {
            color: #1a1a1a;
            border-bottom-color: #1a1a1a;
            font-weight: 600;
        }
        
        .tab-btn i {
            font-size: 1.1em;
        }
        
        .tab-count {
            background: #1a1a1a;
            color: #ffffff;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.75em;
            font-weight: 600;
            min-width: 20px;
            text-align: center;
        }
        
        .tab-btn.active .tab-count {
            background: #1a1a1a;
        }
        
        .tab-btn:not(.active) .tab-count {
            background: #999;
        }
        
        .tab-content-wrapper {
            position: relative;
            min-height: 200px;
        }
        
        .tab-content {
            display: none;
            animation: fadeIn 0.3s ease-in-out;
        }
        
        .tab-content.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .facilities-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }
        
        .facility-item {
            padding: 20px;
            background: #ffffff;
            border-radius: 16px;
            border: 1px solid #e5e5e5;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .facility-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #1a1a1a 0%, rgba(26,26,26,0.3) 100%);
            transform: scaleY(0);
            transform-origin: top;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .facility-item:hover {
            border-color: #1a1a1a;
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }
        
        .facility-item:hover::before {
            transform: scaleY(1);
        }
        
        .facility-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .facility-name {
            font-weight: 600;
            color: #1a1a1a;
            font-size: 1.05em;
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
            line-height: 1.4;
        }
        
        .facility-name i {
            color: #1a1a1a;
            font-size: 1.3em;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
            border-radius: 8px;
            padding: 6px;
            flex-shrink: 0;
        }
        
        .facility-distance {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            color: #ffffff;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.8em;
            font-weight: 600;
            white-space: nowrap;
            box-shadow: 0 2px 6px rgba(26, 26, 26, 0.2);
            letter-spacing: 0.3px;
        }
        
        .facility-address {
            color: #666;
            font-size: 0.9em;
            margin-bottom: 16px;
            line-height: 1.6;
            padding-left: 34px;
            position: relative;
            min-height: 20px;
        }
        
        .facility-address::before {
            content: '??';
            position: absolute;
            left: 0;
            font-size: 0.85em;
        }
        
        .facility-navigate-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 20px;
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            color: #ffffff;
            text-decoration: none;
            border-radius: 10px;
            font-size: 0.9em;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            margin-top: auto;
            box-shadow: 0 2px 8px rgba(26, 26, 26, 0.15);
            width: 100%;
        }
        
        .facility-navigate-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            transform: translate(-50%, -50%);
            transition: width 0.5s, height 0.5s;
        }
        
        .facility-navigate-btn:hover {
            background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(26, 26, 26, 0.25);
        }
        
        .facility-navigate-btn:hover::before {
            width: 300px;
            height: 300px;
        }
        
        .facility-navigate-btn i {
            margin-right: 0;
            font-size: 1em;
        }
        
        .no-facilities {
            text-align: center;
            padding: 40px 20px;
            color: #666;
        }
        
        .no-facilities p {
            margin: 0;
            font-size: 0.95em;
        }
        
        /* 頛??見撘?*/
        .facilities-loading {
            text-align: center;
            padding: 40px 20px;
            color: #666;
        }
        
        .loading-spinner {
            width: 40px;
            height: 40px;
            margin: 0 auto 16px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #1a1a1a;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .facilities-loading p {
            margin: 0;
            font-size: 0.95em;
            color: #666;
        }
        
        /* ?撣怠?見撘?- 璈怠??? */
        .technicians-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-top: 20px;
        }
        
        .technician-card {
            background: #ffffff;
            border-radius: 16px;
            border: 1px solid #e5e5e5;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            padding: 20px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            gap: 20px;
            align-items: stretch;
        }
        
        .technician-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #1a1a1a 0%, rgba(26,26,26,0.3) 100%);
            transform: scaleY(0);
            transform-origin: top;
            transition: transform 0.4s;
        }
        
        .technician-card:hover {
            border-color: #1a1a1a;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }
        
        .technician-card:hover::before {
            transform: scaleY(1);
        }
        
        .technician-card.departed {
            opacity: 0.7;
        }
        
        /* ?撣俊AB?? */
        .technician-tabs {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            border-bottom: 2px solid #e8e8e8;
        }
        
        .technician-tab {
            padding: 12px 24px;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            font-size: 1em;
            font-weight: 500;
            color: #666;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            bottom: -2px;
        }
        
        .technician-tab:hover {
            color: #1a1a1a;
            background: #f8f8f8;
        }
        
        .technician-tab.active {
            color: #1a1a1a;
            border-bottom-color: #1a1a1a;
            font-weight: 600;
        }
        
        .technician-tab i {
            font-size: 1.1em;
        }
        
        .tab-count {
            font-size: 0.85em;
            color: #999;
            font-weight: normal;
        }
        
        .technician-tab.active .tab-count {
            color: #666;
        }
        
        .technician-tab-content {
            display: none;
        }
        
        .technician-tab-content.active {
            display: block;
        }
        
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }
        
        .empty-state i {
            font-size: 3em;
            margin-bottom: 16px;
            opacity: 0.5;
        }
        
        .empty-state p {
            font-size: 1.1em;
            margin: 0;
        }
        
        .technician-avatar-wrapper {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 200px;
            min-width: 200px;
            flex-shrink: 0;
            align-self: flex-start;
        }
        
        .technician-avatar {
            width: 200px;
            aspect-ratio: 1 / 1;
            border-radius: 12px;
            overflow: hidden;
            background: #f0f0f0;
        }
        
        .technician-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            aspect-ratio: 1 / 1;
        }
        
        /* 蝞∠??⊥?雿???*/
        .admin-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .admin-btn {
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85em;
            font-weight: 500;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
        }
        
        .admin-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .admin-btn-depart {
            background: #dc3545;
            color: white;
        }
        
        .admin-btn-depart:hover {
            background: #c82333;
        }
        
        .admin-btn-return {
            background: #28a745;
            color: white;
        }
        
        .admin-btn-return:hover {
            background: #218838;
        }
        
        .admin-return-form {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .admin-name-input {
            padding: 6px 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 0.85em;
            width: 100%;
        }
        
        .admin-name-input:focus {
            outline: none;
            border-color: #1a1a1a;
        }
        
        .technician-main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .technician-header-section {
            flex-shrink: 0;
        }
        
        .technician-rating-summary {
            flex-shrink: 0;
            margin-top: 2px;
        }
        
        .technician-meta {
            flex-shrink: 0;
        }
        
        .technician-actions {
            flex-shrink: 0;
        }
        
        .technician-content-main {
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 1;
        }
        
        .technician-name {
            font-size: 1.2em;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        
        .technician-name-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .technician-name-right {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }
        
        .technician-details {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 2px;
        }
        
        .detail-tag {
            background: #f8f8f8;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.85em;
            color: #666;
        }
        
        .technician-rating {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        
        .rating-stars {
            color: #fbbf24;
            font-size: 1.1em;
        }
        
        .rating-score {
            font-weight: 600;
            color: #1a1a1a;
        }
        
        .recommendation-rate {
            color: #666;
            font-size: 0.9em;
        }
        
        /* ??閰?憿舐內 - ?航???敶?*/
        .category-ratings {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            margin: 2px 0 0 0;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
            flex-shrink: 0;
        }
        
        .category-rating-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .category-rating-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .category-rating-label {
            font-size: 0.9em;
            color: #333;
            font-weight: 500;
        }
        
        .category-rating-score {
            font-weight: 600;
            color: #1a1a1a;
            font-size: 0.95em;
        }
        
        .category-rating-bar-container {
            width: 100%;
            height: 10px;
            background: #e0e0e0;
            border-radius: 5px;
            overflow: hidden;
            position: relative;
        }
        
        .category-rating-bar {
            height: 100%;
            background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
            border-radius: 5px;
            transition: width 0.6s ease;
            position: relative;
        }
        
        .category-rating-bar::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            width: 2px;
            background: rgba(255, 255, 255, 0.5);
        }
        
        /* 閰??嗆??憛?*/
        .comments-section {
            margin-top: 8px;
            border-top: 1px solid #e8e8e8;
            padding-top: 8px;
        }
        
        .comments-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            color: #1a1a1a;
            font-weight: 500;
            padding: 8px;
            border-radius: 4px;
            transition: background 0.3s;
            user-select: none;
        }
        
        .comments-toggle:hover {
            background: #f0f0f0;
        }
        
        .comments-toggle i {
            transition: transform 0.3s;
            font-size: 0.85em;
        }
        
        .comments-toggle.expanded i {
            transform: rotate(90deg);
        }
        
        .comments-list {
            display: none;
            margin-top: 12px;
            padding-left: 10px;
            border-left: 3px solid #f0f0f0;
        }
        
        .comments-list.show {
            display: block;
        }
        
        .comment-item {
            padding: 12px;
            background: #f8f9fa;
            border-radius: 8px;
            margin-bottom: 8px;
            display: flex;
            gap: 12px;
        }
        
        .comment-avatar {
            width: 40px;
            height: 40px;
            min-width: 40px;
            border-radius: 50%;
            overflow: hidden;
            background: #e0e0e0;
        }
        
        .comment-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .comment-content-wrapper {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .comment-author {
            font-weight: 600;
            color: #1a1a1a;
            font-size: 0.9em;
        }
        
        .comment-date {
            font-size: 0.85em;
            color: #666;
        }
        
        .comment-ratings {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin: 8px 0;
            padding: 8px 12px;
            background: #ffffff;
            border-radius: 6px;
            border: 1px solid #e0e0e0;
        }
        
        .comment-rating-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85em;
        }
        
        .comment-rating-label {
            color: #666;
        }
        
        .comment-rating-value {
            font-weight: 600;
            color: #1a1a1a;
        }
        
        .comment-content {
            color: #333;
            line-height: 1.6;
            font-size: 0.9em;
            margin-top: 8px;
        }
        
        .technician-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.85em;
            color: #666;
            margin-bottom: 16px;
            padding-top: 12px;
            border-top: 1px solid #e8e8e8;
        }
        
        .creator-info a:hover {
            text-decoration: underline;
        }
        
        .technician-actions {
            display: flex;
            gap: 8px;
        }
        
        .action-btn {
            flex: 1;
            padding: 8px 16px;
            border: none;
            border-radius: 8px;
            font-size: 0.9em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        
        .rate-btn {
            background: #1a1a1a;
            color: #ffffff;
        }
        
        .rate-btn:hover {
            background: #2a2a2a;
            transform: translateY(-2px);
        }
        
        .favorite-btn {
            background: #f0f0f0;
            color: #666;
        }
        
        .favorite-btn:hover {
            background: #e0e0e0;
            transform: translateY(-2px);
        }
        
        .favorite-btn.favorited {
            background: #ff6b6b;
            color: #ffffff;
        }
        
        .favorite-btn.favorited:hover {
            background: #ff5252;
            transform: translateY(-2px);
        }
        
        .favorite-btn.favorited i {
            color: #ffffff;
        }
        
        .favorite-count {
            font-size: 0.85em;
            opacity: 0.8;
            margin-left: 4px;
        }
        
        .favorite-btn.favorited .favorite-count {
            color: #ffffff;
            opacity: 0.9;
        }
        
        .report-btn {
            background: #f0f0f0;
            color: #1a1a1a;
        }
        
        .report-btn:hover {
            background: #e0e0e0;
        }
        
        .departed-badge {
            background: #999;
            color: #ffffff;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.75em;
            font-weight: 500;
        }
        
        @media (max-width: 992px) {
            .technicians-list {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        /* ??璅?? */
        .technician-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 16px;
            margin-top: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
        }
        
        .page-link {
            padding: 8px 16px;
            background: #ffffff;
            color: #1a1a1a;
            text-decoration: none;
            border-radius: 6px;
            border: 1px solid #e0e0e0;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        
        .page-link:hover {
            background: #1a1a1a;
            color: #ffffff;
            border-color: #1a1a1a;
        }
        
        .page-info {
            color: #666;
            font-size: 0.95em;
        }
        
        .comment-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            margin-top: 15px;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 6px;
        }
        
        .comment-page-link {
            padding: 6px 12px;
            background: #ffffff;
            color: #1a1a1a;
            text-decoration: none;
            border-radius: 4px;
            border: 1px solid #e0e0e0;
            transition: all 0.3s;
            font-size: 0.9em;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        
        .comment-page-link:hover {
            background: #1a1a1a;
            color: #ffffff;
            border-color: #1a1a1a;
        }
        
        .comment-page-info {
            color: #666;
            font-size: 0.85em;
        }
        
        @media (max-width: 768px) {
            .technicians-list {
                grid-template-columns: 1fr;
            }
            
            .technician-pagination {
                flex-direction: column;
                gap: 12px;
            }
            
            .comment-pagination {
                flex-direction: column;
                gap: 8px;
            }
            
            .technician-card {
                flex-direction: column;
            }
            
            .technician-avatar-wrapper {
                width: 100%;
            }
            
            .technician-avatar {
                width: 100%;
                height: 200px;
                min-width: auto;
            }
            
            .admin-actions {
                margin-top: 10px;
            }
            
            .technician-main-content {
                height: auto;
            }
            
            .category-ratings {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 992px) {
            .tab-navigation {
                gap: 6px;
            }
            
            .tab-btn {
                padding: 10px 18px;
                font-size: 0.9em;
                flex: 0 0 auto; /* 改為自動寬度，避免擠壓 */
                min-width: fit-content;
                white-space: nowrap; /* 防止文字換行 */
            }
            
            .tab-count {
                font-size: 0.7em;
                padding: 2px 6px;
            }
            
            .facilities-list {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            /* 手機版TAB導航優化 - 橫向滾動 */
            .tab-navigation {
                display: flex !important;
                gap: 8px !important;
                margin-bottom: 20px !important;
                border-bottom: 2px solid #e8e8e8 !important;
                overflow-x: auto !important;
                overflow-y: hidden !important;
                -webkit-overflow-scrolling: touch !important;
                scrollbar-width: none !important; /* Firefox */
                -ms-overflow-style: none !important; /* IE/Edge */
                padding-bottom: 2px !important;
                /* 隱藏滾動條但保持滾動功能 */
            }
            
            .tab-navigation::-webkit-scrollbar {
                display: none !important; /* Chrome/Safari */
            }
            
            .tab-btn {
                flex: 0 0 auto !important; /* 不自動伸縮，保持內容寬度 */
                padding: 10px 16px !important;
                font-size: 0.85em !important;
                white-space: nowrap !important; /* 防止文字換行 */
                min-width: fit-content !important;
                gap: 6px !important;
            }
            
            .tab-btn i {
                font-size: 1em !important;
                flex-shrink: 0 !important;
            }
            
            .tab-count {
                font-size: 0.7em !important;
                padding: 2px 6px !important;
                min-width: 18px !important;
                flex-shrink: 0 !important;
            }
            
            /* 優化TAB按鈕文字顯示 */
            .tab-btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
            }
            
            /* 確保第一個和最後一個TAB有適當的間距 */
            .tab-navigation::before,
            .tab-navigation::after {
                content: '';
                flex-shrink: 0;
                width: 0;
            }
            
            .facilities-list {
                grid-template-columns: repeat(2, 1fr) !important; /* 手機版1列2個項目 */
                gap: 12px !important;
            }
            
            .facility-item {
                padding: 16px;
                border-radius: 12px;
            }
            
            .facility-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .facility-name {
                min-width: auto;
                width: 100%;
                font-size: 0.95em;
            }
            
            .facility-name i {
                width: 20px;
                height: 20px;
                font-size: 1.1em;
                padding: 4px;
            }
            
            .facility-distance {
                align-self: flex-start;
                font-size: 0.75em;
                padding: 5px 12px;
            }
            
            .facility-address {
                font-size: 0.85em;
                padding-left: 28px;
                margin-bottom: 12px;
            }
            
            .facility-navigate-btn {
                padding: 9px 16px;
                font-size: 0.85em;
                border-radius: 8px;
            }
        }
        
        @media (max-width: 480px) {
            .facilities-list {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="main-content">
            <div class="header">
                <div class="header-content">
                    <a href="../index.php" class="back-link">??餈?擐?</a>
                    <h1 class="store-name-header"><?php echo htmlspecialchars($store['store_name'] ?? '?芸??摰?); ?></h1>
                </div>
