/* 統一的系統樣式 */
body {
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 導航欄樣式 */
.custom-navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.custom-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 42px;
}

.custom-navbar-brand {
    display: flex;
    align-items: center;
}

.custom-navbar-logo {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-navbar-logo:hover {
    color: #666;
    text-decoration: none;
}

.custom-navbar-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.custom-navbar-item {
    color: #666;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.custom-navbar-item:hover {
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.custom-navbar-item.active {
    background: #333;
    color: white;
}

.custom-navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
}

.user-name {
    font-weight: bold;
    color: #333;
}

.user-role {
    color: #999;
    font-size: 11px;
}

.user-actions {
    display: flex;
    gap: 6px;
}

/* 主要內容容器 */
.custom-main-container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 頁腳樣式（還原經典配色與字級） */
.footer {
    background: #333;
    color: white;
    margin-top: auto;
    box-shadow: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
}

.footer-section {
    min-width: 220px;
    flex: 1 1 0;
}

.footer-section h4 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h4 i {
    color: #fff;
}

.footer-section p {
    margin: 0 0 15px 0;
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

.footer-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.footer-stats .stat-item {
    text-align: center;
    flex: 1;
}

.footer-stats .stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.footer-stats .stat-label {
    display: block;
    font-size: 12px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 4px 0;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-links a i {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.contact-info p {
    margin: 0 0 8px 0;
    color: #ccc;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info p i {
    color: #fff;
    width: 16px;
    text-align: center;
}

.contact-info a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #007bff;
    text-decoration: underline;
}

.footer-divider {
    height: 1px;
    background: #555;
    margin: 30px 0;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    color: #ccc;
    font-size: 14px;
}

.footer-brand {
    font-weight: bold;
    color: #fff;
}

.footer-separator {
    margin: 0 8px;
    color: #555;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #007bff;
}

.footer-update-info {
    text-align: center;
    color: #ccc;
    font-size: 12px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        gap: 25px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 30px 15px 15px;
    }
    .footer-section h4 {
        font-size: 15px;
    }
    .footer-section p {
        font-size: 13px;
    }
    .footer-links a {
        font-size: 13px;
    }
    .contact-info p {
        font-size: 13px;
    }
    .footer-update-info {
        font-size: 11px;
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 25px;
        flex-wrap: wrap;
    }
    
    .footer-stats {
        gap: 15px;
    }
    
    .footer-stats .stat-number {
        font-size: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 30px 15px 15px;
    }
    
    .footer-section h4 {
        font-size: 15px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .contact-info p {
        font-size: 13px;
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .custom-navbar-container {
        flex-direction: column;
        height: auto;
        padding: 12px 20px;
        gap: 12px;
    }
    
    .custom-navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .custom-navbar-user {
        flex-direction: column;
        align-items: center;
    }
    
    .user-info {
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        flex-wrap: wrap;
    }
}

/* 基礎樣式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
}

h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.status-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.status-item:last-child {
    border-bottom: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #7c5cd6;
    box-shadow: 0 0 0 2px rgba(124,92,214,0.25);
}

.form-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.check-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
}

.check-icon {
    margin-right: 10px;
    font-size: 18px;
}

.check-success {
    color: #28a745;
}

.check-error {
    color: #dc3545;
}

.check-info {
    color: #17a2b8;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #666;
    text-decoration: none;
}

.back-link a:hover {
    color: #333;
    text-decoration: underline;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
}

/* 店家瀏覽頁面樣式 */
body { 
    background-color: #f8f9fa; 
    margin: 0;
    padding: 0;
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
}

.header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.header-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    background: #7c5cd6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #6c4ab6;
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #7c5cd6;
    color: #7c5cd6;
}

.btn-outline:hover {
    background: #7c5cd6;
    color: white;
}

.btn-primary {
    background: #7c5cd6;
}

.btn-primary:hover {
    background: #6c4ab6;
}

.message {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 15px;
    border-radius: 5px;
    margin-left: 20px;
    margin-right: 20px;
}

.message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.city-selector {
    margin-bottom: 15px;
    padding: 0 20px;
}

.city-select {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.city-select:focus {
    border-color: #7c5cd6;
}

.badge {
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
}

/* 主要內容布局 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.content-left {
    flex: 0 0 65%;
    min-width: 0;
}

.stores-container {
    width: 100%;
}

/* 返回按鈕 */
.back-button {
    margin-bottom: 15px;
}

/* Google Maps 地圖樣式 */
.store-map-section {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.store-map-section h3 {
    margin: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 300px;
}

.store-map {
    width: 100%;
    height: 100%;
    border: none;
}

/* 地圖載入中狀態 */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f8f9fa;
    color: #666;
}

.map-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

/* 地圖佔位符 */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f8f9fa;
    color: #666;
    text-align: center;
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #007bff;
}

.map-placeholder p {
    margin: 0 0 16px 0;
    font-size: 14px;
}

/* 免費地圖樣式 */
.free-map-container {
    margin: 16px 0;
}

.free-map {
    width: 100%;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.location-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.location-text {
    font-size: 14px;
    color: #333;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 首頁地圖視圖樣式 */
.search-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.view-toggle {
    flex-shrink: 0;
}

.stores-map-container {
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.stores-map {
    width: 100%;
    height: 500px;
    border: none;
}

.stores-list-container {
    display: block;
}

/* 測試頁面樣式 */
.message {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.message p {
    margin: 0 0 12px 0;
}

.message .btn {
    margin-top: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.search-header {
    margin-bottom: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-header h2 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 16px;
}

.search-header p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.store-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    position: relative;
}

.store-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.store-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.store-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.store-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.store-placeholder {
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 40px;
}

.store-content {
    padding: 12px;
}

.store-title {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 15px;
    font-weight: bold;
}

.store-info {
    margin-bottom: 6px;
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-info a {
    color: #7c5cd6;
    text-decoration: none;
}

.store-info a:hover {
    text-decoration: underline;
}

.store-footer {
    padding: 10px 12px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.store-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #999;
}

.empty-state h4 {
    margin: 0 0 10px 0;
    color: #666;
}

.empty-state p {
    margin: 0;
    color: #999;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: 6px 10px;
    border-radius: 16px;
    text-decoration: none;
    color: #7c5cd6;
    background: white;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    font-size: 13px;
}

.pagination a:hover {
    background: #f8f9fa;
    color: #6c4ab6;
}

.pagination .active {
    background: #7c5cd6;
    color: white;
    border-color: #7c5cd6;
}

.pagination .disabled {
    color: #999;
    cursor: not-allowed;
}

.pagination .disabled:hover {
    background: white;
    color: #999;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-buttons {
        justify-content: center;
    }
    
    .city-selector {
        padding: 0 15px;
    }
    
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .store-actions {
        flex-direction: column;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .pagination a {
        padding: 5px 8px;
        font-size: 12px;
    }
}

/* 店家詳細頁面樣式 */
.store-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.store-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.store-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-detail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.store-detail-content {
    padding: 20px;
}

.store-detail-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

/* 主要資訊區塊 */
.store-main-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-section {
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #7c5cd6;
    overflow: hidden;
}

.section-header {
    margin: 0;
    padding: 12px 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #e9ecef;
    transition: background-color 0.3s ease;
}

.section-header:hover {
    background: #dee2e6;
}

.section-header i:first-child {
    color: #7c5cd6;
    margin-right: 8px;
}

.toggle-icon {
    color: #666;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.section-content {
    padding: 15px;
    display: block;
}

.section-content.collapsed {
    display: none;
}

/* 基本資訊網格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.info-label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
    min-width: 50px;
}

.info-value {
    color: #333;
    font-size: 13px;
    flex: 1;
}

.info-value a {
    color: #7c5cd6;
    text-decoration: none;
    font-weight: 500;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Google 資訊樣式 */
.google-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.google-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.google-item.full-width {
    grid-column: 1 / -1;
}

.google-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.google-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.google-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.google-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.google-sub {
    font-size: 10px;
    color: #888;
}

/* 地圖區塊 */
.map-section {
    background: white !important;
    border: 1px solid #e9ecef;
}

.map-container {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.map-selector {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 15px;
    gap: 20px;
}

.map-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: color 0.3s ease;
}

.map-option:hover {
    color: #333;
}

.map-option input[type="radio"] {
    margin: 0;
}

.map-option input[type="radio"]:checked + span {
    color: #7c5cd6;
    font-weight: 600;
}

.map-content {
    position: relative;
    height: 250px;
}

.map-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.map-view.active {
    display: block;
}

#google-map,
#osm-map {
    width: 100%;
    height: 100%;
    border: none;
}

.map-actions {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.map-actions .btn {
    flex: 1;
    min-width: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    padding: 6px 12px;
}

/* 快速操作按鈕 */
.store-quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.call-btn {
    background: #28a745;
    color: white;
}

.call-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.website-btn {
    background: #17a2b8;
    color: white;
}

.website-btn:hover {
    background: #138496;
    color: white;
    text-decoration: none;
}

.map-btn {
    background: #ffc107;
    color: #212529;
}

.map-btn:hover {
    background: #e0a800;
    color: #212529;
    text-decoration: none;
}

/* 相關店家 */
.related-stores {
    margin-top: 20px;
}

.related-stores h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .store-detail-content {
        padding: 15px;
    }
    
    .store-detail-title {
        font-size: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .google-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .google-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .map-selector {
        flex-direction: column;
        gap: 8px;
    }
    
    .map-actions {
        flex-direction: column;
    }
    
    .store-quick-actions {
        flex-direction: column;
    }
    
    .action-btn {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .store-detail-content {
        padding: 12px;
    }
    
    .store-detail-title {
        font-size: 18px;
    }
    
    .section-header {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .section-content {
        padding: 12px;
    }
    
    .map-content {
        height: 200px;
    }
}

/* 技師相關樣式 */
.no-technicians {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-technicians-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}

.no-technicians h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.no-technicians p {
    margin: 0 0 16px 0;
    color: #888;
    font-size: 14px;
}

/* 技師區塊樣式 */
.technicians-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.technicians-section .technicians-header {
    margin: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.technicians-section .technicians-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.technicians-section .technicians-list {
    padding: 0;
}

.technicians-section .no-technicians {
    padding: 40px 20px;
}

.technicians-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.technicians-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* 橫式技師卡片 */
.technician-card-horizontal {
    display: flex;
    align-items: flex-start;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px;
    transition: background-color 0.2s ease;
    position: relative;
    gap: 16px;
}

.technician-card-horizontal:hover {
    background: #f8f9fa;
}

.technician-card-horizontal:last-child {
    border-bottom: none;
}

/* 左側照片區域 */
.technician-photo-small {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.technician-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.technician-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

/* 右側資訊區域 */
.technician-info-compact {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.technician-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}

.technician-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.technician-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffb400;
    font-weight: 600;
    font-size: 14px;
    background: #fff8e1;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #ffd54f;
}

.technician-rating i {
    font-size: 12px;
}

/* 基本資訊標籤 */
.technician-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.tech-meta-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: auto;
}

.tech-creator {
    font-size: 11px;
    color: #888;
}

.tech-dates {
    font-size: 10px;
    color: #999;
}

.tech-tag {
    background: #f5f5f5;
    color: #555;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e0e0e0;
}

.tech-tag i {
    font-size: 10px;
    color: #7c5cd6;
}

/* 服務標籤 */
.technician-services {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.service-tag {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #c8e6c9;
}

/* 右側操作按鈕 */
.technician-actions {
    flex-shrink: 0;
    margin-left: 0;
    align-self: flex-start;
    margin-top: 4px;
    display: flex;
    gap: 5px;
}

.edit-btn {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1976d2;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    text-decoration: none;
}

.edit-btn:hover {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

.edit-btn i {
    font-size: 12px;
}

/* 右側展開按鈕 */
.technician-expand {
    flex-shrink: 0;
    margin-left: 0;
    align-self: flex-start;
    margin-top: 4px;
}

.expand-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #7c5cd6;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.expand-btn:hover {
    background: #7c5cd6;
    color: white;
    border-color: #7c5cd6;
}

.expand-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* 詳細資訊展開區域 */
.technician-details-expanded {
    width: 100%;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 12px;
}

.details-content {
    padding: 16px;
}

.details-content h5 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

/* 評分詳情 */
.scores-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.score-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.score-label {
    min-width: 40px;
    color: #666;
    font-weight: 500;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c5cd6, #6c4ab6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.score-value {
    min-width: 30px;
    text-align: right;
    color: #7c5cd6;
    font-weight: 600;
    font-size: 11px;
}

/* 服務項目詳情 */
.services-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.service-item {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 詳細資訊文字 */
.info-text {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .technician-card-horizontal {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 12px;
    }
    
    .technician-photo-small {
        margin-right: 0;
        margin-bottom: 0;
        width: 80px;
        height: 80px;
    }
    
    .technician-info-compact {
        gap: 6px;
    }
    
    .technician-header {
        width: 100%;
    }
    
    .technician-actions {
        position: absolute;
        top: 12px;
        right: 12px;
        margin-left: 0;
        margin-top: 0;
    }
    
    .technician-tags {
        margin-bottom: 0;
    }
    
    .technician-services {
        margin-bottom: 0;
    }
}

/* 響應式設計 */


/* Sidebar 樣式 */
.sidebar {
    width: 320px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-left: 15px;
    flex-shrink: 0;
}

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

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

.sidebar-content {
    font-size: 13px;
    line-height: 1.5;
}

.sidebar-content p {
    margin-bottom: 8px;
}

.sidebar-content ul {
    margin-bottom: 12px;
    padding-left: 16px;
}

.sidebar-content li {
    margin-bottom: 4px;
    color: #666;
}

.sidebar-content .btn {
    display: block;
    margin-bottom: 8px;
    text-align: center;
}

/* 搜尋表單樣式 */
.search-form {
    margin-bottom: 15px;
}

.search-input-group {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #7c5cd6;
}

.search-btn {
    padding: 10px 15px;
    background: #7c5cd6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #6c4ab6;
}

/* 搜尋結果樣式 */
.search-results {
    margin-top: 15px;
}

.search-results h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.search-results-list {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.search-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.search-result-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-result-link:hover {
    text-decoration: none;
    color: inherit;
}

.search-result-title {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.search-result-info {
    color: #666;
    font-size: 12px;
}

.search-no-results {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 20px 0;
}

.search-info {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.search-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.search-pagination {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.page-info {
    font-size: 12px;
    color: #666;
}

/* 熱門城市和關鍵字樣式 */
.popular-cities,
.popular-keywords {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-city-item,
.popular-keyword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.popular-city-item:hover,
.popular-keyword-item:hover {
    background: #e9ecef;
    text-decoration: none;
    color: inherit;
}

.city-name,
.keyword-text {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.city-count,
.keyword-count {
    background: #7c5cd6;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.no-data {
    text-align: center;
    color: #999;
    font-size: 14px;
    font-style: italic;
    margin: 20px 0;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .content-left {
        flex: 1;
    }
    
    .sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 15px;
    }
    
    .sidebar {
        padding: 15px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .popular-city-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .city-count {
        align-self: flex-end;
    }
    
    /* 手機版城市布局調整 */
    .city-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .popular-city-item {
        flex: none;
        justify-content: flex-start;
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .city-count {
        font-size: 12px;
    }
    
    /* 手機版關鍵字布局調整 */
    .keyword-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .popular-keyword-item {
        flex: none;
        justify-content: flex-start;
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .keyword-count {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .stores-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .store-card {
        margin-bottom: 10px;
    }
    
    .store-content {
        padding: 10px;
    }
    
    .store-title {
        font-size: 14px;
    }
    
    .store-info {
        font-size: 12px;
    }
    
    .store-image,
    .store-placeholder {
        height: 140px;
    }
    
    .store-placeholder {
        font-size: 36px;
    }
}

/* 搜尋說明文字 */
.search-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    margin-top: -2px;
}

.search-city-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}
.search-city-select:focus {
    border-color: #7c5cd6;
}

.search-btn-block {
    width: 100%;
    display: block;
    margin-top: 2px;
}

.sidebar-hot-title {
    font-size: 14px;
    color: #222;
    font-weight: bold;
    margin-bottom: 8px;
    margin-top: 2px;
}

/* 熱門城市網格布局 */
.popular-cities-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.city-row {
    display: flex;
    gap: 6px;
    justify-content: space-between;
}

.popular-city-item {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 16px;
    padding: 5px 10px 5px 8px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-city-item:hover {
    background: #e0e3e7;
    color: #222;
}

.city-count {
    background: none;
    color: #888;
    font-size: 11px;
    font-weight: normal;
    margin-left: 3px;
    padding: 0;
    border-radius: 0;
}

/* 熱門關鍵字網格布局 */
.popular-keywords-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keyword-row {
    display: flex;
    gap: 6px;
    justify-content: space-between;
}

.popular-keyword-item {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 16px;
    padding: 5px 10px 5px 8px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-keyword-item:hover {
    background: #e0e3e7;
    color: #222;
}

.keyword-count {
    background: none;
    color: #888;
    font-size: 11px;
    font-weight: normal;
    margin-left: 3px;
    padding: 0;
    border-radius: 0;
}

/* 城市清單多行按鈕樣式 */
.city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 18px;
    padding: 0 2px;
}
.city-item {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 16px;
    padding: 6px 16px 6px 14px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    border: none;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    box-shadow: none;
    position: relative;
}
.city-item .city-count {
    color: #aaa;
    font-size: 13px;
    margin-left: 4px;
    font-weight: normal;
}
.city-item.active, .city-item:hover {
    background: #7c5cd6;
    color: #fff;
}
.city-item.active .city-count, .city-item:hover .city-count {
    color: #e0e0e0;
}

/* 橫向可捲動城市列 */
.city-scrollbar {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 6px 0 14px 0;
    margin-bottom: 18px;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 #fff;
}
.city-scrollbar::-webkit-scrollbar {
    height: 6px;
}
.city-scrollbar::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}
.city-scroll-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 16px;
    padding: 7px 18px 7px 15px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    border: none;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    box-shadow: none;
    position: relative;
    cursor: pointer;
}
.city-scroll-item .city-count {
    color: #aaa;
    font-size: 13px;
    margin-left: 4px;
    font-weight: normal;
}
.city-scroll-item.active, .city-scroll-item:hover {
    background: #7c5cd6;
    color: #fff;
}
.city-scroll-item.active .city-count, .city-scroll-item:hover .city-count {
    color: #e0e0e0;
}

/* Google Places 資訊樣式 */
.google-places-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #7c5cd6;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.rating-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.rating-value {
    font-weight: bold;
    color: #ff6b35;
    font-size: 16px;
}

.rating-count {
    color: #666;
    font-size: 12px;
}

.place-types {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.types-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.types-value {
    color: #666;
    font-size: 13px;
}

.opening-hours {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.hours-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    flex-shrink: 0;
}

.hours-list {
    flex: 1;
}

.hours-item {
    color: #666;
    font-size: 12px;
    margin-bottom: 2px;
}

.hours-more {
    color: #7c5cd6;
    font-size: 12px;
    font-style: italic;
    cursor: pointer;
}

/* 店家位置區塊樣式 */
.store-location-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.store-location-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.location-item i {
    color: #7c5cd6;
    font-size: 16px;
}

.location-text {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.location-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.location-actions .btn {
    flex: 1;
    min-width: 150px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .google-places-info {
        padding: 12px;
    }
    
    .rating-info,
    .place-types,
    .opening-hours {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .map-selector {
        flex-direction: column;
    }
    
    .map-option {
        text-align: center;
        border-bottom: 1px solid #e9ecef;
        border-right: none;
    }
    
    .map-option input[type="radio"]:checked + span {
        border-bottom-color: #7c5cd6;
        border-right: none;
    }
    
    .location-actions {
        flex-direction: column;
    }
    
    .location-actions .btn {
        min-width: auto;
    }
}

/* Google 商家卡片風格 - 完整版 */
/* 移除 store-page-wrapper 樣式，因為它會影響 sidebar 布局 */

.store-banner-full {
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: 220px;
}
.store-banner-full img {
    display: block;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin: 8px;
    box-sizing: border-box;
    background: #fff;
}
.store-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #bbb;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3f3f3 100%);
}

.store-main-card {
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 18px;
    padding: 24px 28px 18px 28px;
    position: relative;
    top: -12px;
}
.store-main-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.store-main-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}
.store-rating {
    color: #ffb400;
    font-size: 16px;
    font-weight: 600;
    margin-left: 6px;
}
.rating-count {
    color: #888;
    font-size: 13px;
    margin-left: 2px;
}
.store-main-icons {
    display: flex;
    gap: 8px;
}
.icon-btn {
    background: #f5f5fa;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #7c5cd6;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.icon-btn:hover {
    background: #ece6fa;
    color: #4b2997;
}
.store-main-info {
    margin-bottom: 10px;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #444;
    margin-bottom: 4px;
    line-height: 1.5;
}
.info-row i {
    color: #7c5cd6;
    font-size: 16px;
    min-width: 18px;
}
.info-row a {
    color: #1a73e8;
    text-decoration: none;
}
.info-row a:hover {
    text-decoration: underline;
}
.more-hours {
    color: #7c5cd6;
    font-size: 13px;
    cursor: pointer;
    margin-left: 4px;
}
.store-main-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.store-tag {
    background: #e0e7ff;
    color: #4b2997;
    border-radius: 12px;
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}

/* 照片區 */
.store-photos-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    margin-bottom: 18px;
    padding: 16px 18px 10px 18px;
}
.photos-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
}
.store-photo-thumb {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s;
}
.store-photo-thumb:hover {
    transform: scale(1.07);
    box-shadow: 0 2px 8px rgba(124,92,214,0.13);
}
.show-more-photos {
    margin-top: 8px;
    background: #f5f5fa;
    color: #7c5cd6;
    border: none;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.show-more-photos:hover {
    background: #ece6fa;
    color: #4b2997;
}

/* Tabs */
.store-tabs-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    margin-bottom: 18px;
    padding: 0 18px 10px 18px;
}
.store-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid #ece6fa;
    margin-bottom: 10px;
}
.tab-btn {
    flex: 1;
    background: none;
    border: none;
    border-radius: 12px 12px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    padding: 12px 0 8px 0;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.tab-btn.active {
    color: #7c5cd6;
    background: #ece6fa;
}
.tab-content {
    padding: 10px 0 0 0;
    min-height: 60px;
}
.tab-placeholder {
    color: #aaa;
    font-size: 15px;
    text-align: center;
    padding: 18px 0;
}

/* 地圖區塊 */
.store-map-section {
    width: 100%;
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.store-map {
    width: 100%;
    height: 100%;
    border: none;
}

/* 響應式設計 */
@media (max-width: 900px) {
    .store-main-card, .store-photos-section, .store-tabs-section {
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (max-width: 600px) {
    .store-banner-full {
        height: 140px;
        border-radius: 10px 10px 0 0;
    }
    .store-main-card {
        border-radius: 0 0 10px 10px;
        padding: 14px 8px 10px 8px;
    }
    .store-main-title {
        font-size: 17px;
    }
    .store-main-tags {
        gap: 5px;
    }
    .store-tag {
        font-size: 11px;
        padding: 2px 8px;
    }
    .store-photos-section, .store-tabs-section {
        border-radius: 10px;
        padding: 8px 4px 6px 4px;
    }
    .store-photo-thumb {
        width: 60px;
        height: 48px;
        border-radius: 5px;
    }
    .store-map-section {
        height: 160px;
        border-radius: 7px;
    }
    .tab-btn {
        font-size: 13px;
        padding: 8px 0 5px 0;
    }
    .tab-content {
        min-height: 40px;
    }
}

/* 技師設定頁面樣式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.section-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.stat-item i {
    color: #7c5cd6;
    font-size: 16px;
}

/* 新增表單區塊 */
.add-form-collapse {
    margin-bottom: 20px;
}

.add-form {
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

/* 批量操作區塊 */
.batch-actions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.batch-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.batch-controls .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.batch-buttons {
    display: flex;
    gap: 8px;
}

.batch-buttons .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* 橫排項目列表 */
.items-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item-horizontal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 300px;
    flex: 0 0 auto;
}

.item-horizontal:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #7c5cd6;
}

.item-horizontal.inactive {
    opacity: 0.6;
    background: #f8f9fa;
}

.item-checkbox {
    flex-shrink: 0;
}

.item-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.item-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-title i {
    color: #7c5cd6;
    font-size: 14px;
    flex-shrink: 0;
}

.item-subtitle {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-actions {
    flex-shrink: 0;
}

.item-actions .btn {
    padding: 4px 6px;
    font-size: 11px;
}

/* 空狀態 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}

.empty-state h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.empty-state p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-stats {
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .batch-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .batch-buttons {
        justify-content: center;
    }
    
    .items-horizontal {
        gap: 6px;
    }
    
    .item-horizontal {
        min-width: 180px;
        max-width: 250px;
        padding: 6px 10px;
    }
    
    .item-title {
        font-size: 13px;
    }
    
    .item-subtitle {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .batch-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .batch-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .items-horizontal {
        gap: 4px;
    }
    
    .item-horizontal {
        min-width: 150px;
        max-width: 200px;
        padding: 5px 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .item-content {
        width: 100%;
    }
    
    .item-title {
        font-size: 12px;
    }
    
    .item-subtitle {
        font-size: 10px;
    }
    
    .item-actions {
        align-self: flex-end;
    }
}

/* 卡片區塊樣式 */
.card-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-section .section-header {
    margin: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-section .section-header h2 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-section .section-header .header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-section .section-header .store-name {
    color: #666;
    font-size: 14px;
}

.card-section .message {
    margin: 20px;
}

.card-section .daily-limit-info {
    margin: 20px;
}

.card-section .technician-form {
    padding: 20px;
}

/* TOP5 技師排行榜樣式 */
.top5-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.top5-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top5-tech-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.top5-tech-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    gap: 8px;
    border: 1px solid #ececec;
    transition: box-shadow 0.2s;
}

.top5-tech-item:hover {
    box-shadow: 0 2px 8px rgba(124,92,214,0.10);
    background: #ece6fa;
}

.top5-rank {
    font-weight: bold;
    color: #7c5cd6;
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.top5-name {
    flex: 1;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top5-score {
    color: #ffb400;
    font-weight: 600;
    margin-left: 6px;
    min-width: 32px;
    text-align: right;
}

.top5-store {
    color: #888;
    font-size: 13px;
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

@media (max-width: 768px) {
    .top5-tech-item {
        font-size: 13px;
        padding: 6px 8px;
    }
    .top5-store {
        max-width: 60px;
    }
} 

/* 美化的成功訊息樣式 */
.alert {
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 15px;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: slideInDown 0.5s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    animation: shimmer 2s infinite;
}

.alert-success i {
    color: #28a745;
    margin-right: 10px;
    font-size: 18px;
    animation: pulse 2s infinite;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 5px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

/* 動畫效果 */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

/* 響應式設計 */
@media (max-width: 768px) {
    .alert {
        padding: 15px 20px;
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .alert i {
        font-size: 16px;
    }
}

/* 最近技師區塊樣式 */
.recent-technicians {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-technician-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.recent-technician-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.technician-photo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.technician-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.technician-placeholder {
    color: #6c757d;
    font-size: 20px;
}

.technician-info {
    flex: 1;
    min-width: 0;
}

.technician-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.technician-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.technician-name a:hover {
    color: #7c5cd6;
    text-decoration: none;
}

.technician-name a:visited {
    color: #333;
    text-decoration: none;
}

.technician-name a:active {
    color: #333;
    text-decoration: none;
}

.technician-details {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
    color: #666;
}

.nationality {
    color: #007bff;
    font-weight: 500;
}

.store-name {
    color: #28a745;
    font-weight: 500;
}

.technician-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.score-item {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #495057;
    border: 1px solid #dee2e6;
}

.technician-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .recent-technician-item {
        padding: 8px;
    }
    
    .technician-photo {
        width: 40px;
        height: 40px;
    }
    
    .technician-name {
        font-size: 13px;
    }
    
    .technician-details {
        font-size: 11px;
    }
    
    .score-item {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .technician-meta {
        font-size: 10px;
    }
} 

/* Navbar 下拉選單樣式 */
.navbar-dropdown {
    position: relative;
    cursor: pointer;
}

.navbar-dropdown > span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-radius: 6px;
    z-index: 2000;
    padding: 8px 0;
}

.navbar-dropdown:hover .navbar-dropdown-menu,
.navbar-dropdown:focus-within .navbar-dropdown-menu {
    display: block;
}

.navbar-dropdown-item {
    display: block;
    padding: 8px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.navbar-dropdown-item:hover {
    background: #f5f5f5;
    color: #7c5cd6;
}

/* 讓年齡與出生年同列顯示 */
.custom-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.custom-row .col {
  flex: 1;
  min-width: 0;
}

/* 讓主內容與navbar有間距 */
.main-container {
  margin-top: 24px;
}

/* navbar 連結去底線且不變色（所有狀態） */
.custom-navbar-item,
.custom-navbar-item:link,
.custom-navbar-item:visited,
.custom-navbar-item:hover,
.custom-navbar-item:active,
.custom-navbar-item:focus {
  text-decoration: none !important;
  color: inherit !important;
}

/* navbar 連結去底線且不變色（所有狀態，強化權重） */
.custom-navbar-menu a.custom-navbar-item,
.custom-navbar-menu a.custom-navbar-item:link,
.custom-navbar-menu a.custom-navbar-item:visited,
.custom-navbar-menu a.custom-navbar-item:hover,
.custom-navbar-menu a.custom-navbar-item:active,
.custom-navbar-menu a.custom-navbar-item:focus {
  text-decoration: none !important;
  color: inherit !important;
  background: none !important;
}

/* 首頁（active）白字黑底 */
.custom-navbar-menu a.custom-navbar-item.active {
  background: #111 !important;
  color: #fff !important;
  border-radius: 6px;
}

.custom-navbar-menu a,
.custom-navbar-menu a:link,
.custom-navbar-menu a:visited,
.custom-navbar-menu a:hover,
.custom-navbar-menu a:active,
.custom-navbar-menu a:focus {
  color: #222 !important;
  text-decoration: none !important;
  background: none !important;
}

.custom-navbar-menu a.custom-navbar-item.active {
  background: #111 !important;
  color: #fff !important;
  border-radius: 6px;
}

/* 精緻化新增技師表單區塊 */
.card {
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: none;
  background: #fff;
  margin-bottom: 32px;
}
.card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  border-radius: 14px 14px 0 0;
  padding: 28px 32px 16px 32px;
}
.card-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.card-header p {
  font-size: 0.92rem;
  color: #888;
  margin-bottom: 0;
}
.card-body {
  padding: 16px;
}
.form-group {
  margin-bottom: 10px;
}
.form-group label {
  font-size: 0.96rem;
  font-weight: 500;
  margin-bottom: 3px;
  color: #222;
  letter-spacing: 0.1px;
}
.form-control {
  font-size: 0.95rem;
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #fafbfc;
  transition: border-color 0.2s;
}
.form-control:focus {
  border-color: #7c5cd6;
  background: #fff;
  outline: none;
}
.form-text, .text-muted {
  font-size: 0.82rem;
  color: #999 !important;
}
.form-actions {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 6px;
}
.form-actions .btn {
  font-size: 0.95rem;
  padding: 5px 14px;
  border-radius: 4px;
}
.form-actions .btn-primary {
  background: #7c5cd6;
  border: none;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s;
}
.form-actions .btn-primary:hover {
  background: #6c4ab6;
}
.form-actions .btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ccc;
}

/* 服務類型項目不粗體 */
.form-check-label,
.service-types-grid label {
  font-weight: 400 !important;
}

.service-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

/* 技師照片相關樣式 */
.photo-count-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.technician-photo-small {
    position: relative;
}

.technician-photo-clickable {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.technician-photo-clickable:hover {
    transform: scale(1.05);
}

.photo-overlay-small {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.technician-photo-clickable:hover .photo-overlay-small {
    opacity: 1;
}

.photo-overlay-small i {
    color: white;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.technician-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.technician-photo-item {
    position: relative;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    transition: all 0.2s ease;
    cursor: pointer;
}

.technician-photo-item:hover {
    border-color: #7c5cd6;
    transform: scale(1.02);
}

.technician-photo-item.primary {
    border-color: #7c5cd6;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.technician-photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    color: white;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.technician-photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.photo-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.photo-badge.primary {
    background: #7c5cd6;
}

.photos-detail {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.photos-detail h5 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* 權限提示樣式 */
.permission-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.permission-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.permission-notice i {
    color: #f39c12;
    font-size: 16px;
}

/* 錯誤訊息樣式 */
.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.error-message h2 {
    color: #721c24;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.error-message p {
    color: #721c24;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.error-message .btn {
    margin-top: 10px;
}

/* 社群媒體按鈕樣式 */
.social-media-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.social-btn i {
    font-size: 18px;
}

/* 社群媒體表單樣式 */
.social-media-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.social-media-form h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-media-form h3 i {
    color: #666;
}

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

.social-media-item {
    display: flex;
    flex-direction: column;
}

.social-media-item label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-media-item label i {
    width: 16px;
    text-align: center;
}

.social-media-item input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.social-media-item input:focus {
    border-color: #7c5cd6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 92, 214, 0.2);
}

.social-media-item .help-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 管理後台社交媒體區塊樣式 */
.form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.form-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: #666;
}

.form-section .social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.form-section .form-group {
    margin-bottom: 0;
}

.form-section .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.form-section .form-label i {
    width: 16px;
    text-align: center;
    color: #666;
}

.form-section .form-control {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-section .form-control:focus {
    border-color: #7c5cd6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 92, 214, 0.2);
}

.form-section .form-control::placeholder {
    color: #999;
    font-size: 13px;
}

/* 社群媒體顯示區域 */
.social-media-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.social-media-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-media-section h4 i {
    color: #666;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .social-media-grid {
        grid-template-columns: 1fr;
    }
    
    .social-media-buttons {
        justify-content: center;
    }
    
    .social-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .social-btn i {
        font-size: 16px;
    }
}