/* 前台首頁專用樣式 - 店家介紹頁面 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 店家選單 */
.store-menu {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.menu-icon {
    font-size: 1.1rem;
}

.menu-text {
    font-weight: 600;
}

/* 主要內容 */
.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Banner 輪播區 */
.banner-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide.default-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 店家主視覺區 */
.store-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.7rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.store-logo-container {
    max-width: 600px;
    margin: 0 auto;
}

.store-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.logo-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.logo-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.store-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.loading-text {
    font-size: 0.9rem;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* 店家簡介區 */
.store-description {
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.description-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.description-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.description-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.description-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.description-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.description-content {
    padding: 1rem 1.5rem 1.5rem;
}

.description-content p {
    color: #666;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

/* 店家資訊區塊 */
.store-info-section {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.info-card {
    background: white;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.info-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.info-content {
    padding: 1rem 1.5rem 1.5rem;
}

/* 聯絡資訊樣式 */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-weight: 600;
    color: #666;
    min-width: 60px;
    margin-right: 0.5rem;
}

.contact-value {
    color: #333;
    flex: 1;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

.contact-link:hover {
    text-decoration: underline;
}

/* 營業時間樣式 */
.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.day {
    font-weight: 500;
    color: #333;
}

.time {
    color: #666;
    font-weight: 500;
}

.time.closed {
    color: #dc3545;
    font-weight: 600;
}

/* 社群媒體樣式 */
.social-links {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}

/* Google 地圖樣式 */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 1.1rem;
    text-align: center;
}

.map-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.map-text {
    font-weight: 500;
}

.map-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.map-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.map-link-icon {
    font-size: 1.1rem;
}

.map-link-text {
    font-size: 0.95rem;
}

/* 地圖嵌入樣式 */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* 地圖顯示/隱藏控制 */
.map-card-hidden {
    display: none;
}

.map-actions-hidden {
    display: none;
}

.social-link {
    display: none;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.social-link.show {
    display: flex;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover .social-icon {
    filter: brightness(0) invert(1);
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.social-text {
    font-weight: 500;
}

/* 社群媒體平台特定樣式 */
.social-link.tiktok:hover {
    background: #ff0050;
}

.social-link.threads:hover {
    background: #000;
}

.social-link.xiaohongshu:hover {
    background: #ff2442;
}

.social-link.youtube:hover {
    background: #ff0000;
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.instagram:hover {
    background: #e4405f;
}

.social-link.line:hover {
    background: #00c300;
}

.no-social {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}


/* 版權聲明 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.footer a {
    color: #ffd700;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .store-menu {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .menu-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .banner-carousel {
        height: 250px;
    }
    
    .carousel-nav {
        padding: 0 15px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .store-hero {
        padding: 1.5rem 1rem 2rem;
    }
    
    .store-logo {
        width: 100px;
        height: 100px;
    }
    
    .store-name {
        font-size: 1.8rem;
    }
    
    .store-description {
        padding: 1.5rem 1rem;
    }
    
    .description-header {
        padding: 1rem 1rem 0.75rem;
    }
    
    .description-content {
        padding: 0.75rem 1rem 1rem;
    }
    
    .store-info-section {
        padding: 1.5rem 1rem;
    }
    
    .info-card {
        margin-bottom: 1rem;
    }
    
    .info-header {
        padding: 1rem 1rem 0.75rem;
    }
    
    .info-content {
        padding: 0.75rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .store-menu {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .menu-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .menu-text {
        display: none;
    }
    
    .banner-carousel {
        height: 200px;
    }
    
    .social-links {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .social-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
        margin-right: 0.5rem;
    }
    
    .map-container {
        height: 250px;
    }
    
    .map-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .carousel-nav {
        padding: 0 10px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .store-hero {
        padding: 1rem 0.75rem 1.5rem;
    }
    
    .store-logo {
        width: 80px;
        height: 80px;
    }
    
    .store-name {
        font-size: 1.5rem;
    }
    
    .store-description {
        padding: 1rem 0.75rem;
    }
    
    .description-header {
        padding: 0.875rem 0.875rem 0.5rem;
    }
    
    .description-content {
        padding: 0.5rem 0.875rem 0.875rem;
    }
    
    .store-info-section {
        padding: 1rem 0.75rem;
    }
    
    .info-header {
        padding: 0.875rem 0.875rem 0.5rem;
    }
    
    .info-content {
        padding: 0.5rem 0.875rem 0.875rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .contact-label {
        min-width: auto;
        margin-right: 0;
    }
}

/* 載入動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card {
    animation: fadeInUp 0.6s ease-out;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }

.action-buttons {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}