/* 保留特定的Bootstrap 5樣式但避免覆蓋全局字體和基本樣式 */
.rounded-4 {
    border-radius: 1rem;
}
.btn-danger {
    background-color: #C13584;
    border-color: #C13584;
}
.btn-danger:hover {
    background-color: #a62e70;
    border-color: #a62e70;
}
.btn-danger:focus {
    background-color: #a62e70;
    border-color: #a62e70;
}
.text-danger {
    color: #fd1d1d !important;
}
.badge {
    font-weight: 500;
}
.instagram-hero-image {
    max-width: 100%;
    height: auto;
}
/* 修復可能的衝突，但保留原有字體 */
.card {
    border: none;
}
.card-body {
    padding: 1.5rem;
}
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.mb-4 {
    margin-bottom: 1.5rem !important;
}
.mb-3 {
    margin-bottom: 1rem !important;
}
.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.text-center {
    text-align: center !important;
}
.bg-success {
    background-color: #198754 !important;
}
.bg-light {
    background-color: #f8f9fa !important;
}
.text-dark {
    color: #212529 !important;
}
.text-muted {
    color: #6c757d !important;
}
.text-primary {
    color: #0d6efd !important;
}
.text-success {
    color: #198754 !important;
}

/* Instagram page specific styles */
body.instagram-page {
    background-color: #fafafa; /* Instagram背景色 */
}

.instagram-content .main-title {
    color: #C13584; /* Instagram主题色 */
}

/* 合作夥伴數字樣式 */
.partner-number {
    color: #6f42c1; /* 改为紫色 */
    padding: 10px;
    border-radius: 5px;
}

/* 立即體驗按鈕懸停效果 */
.btn-primary {
    background-color: #6f42c1; /* 紫色 - 从PHP文件同步 */
    border-color: #6f42c1; /* 紫色 - 从PHP文件同步 */
    font-weight: 400; /* 确保按钮文字不加粗 */
}

.btn-primary:hover {
    background-color: transparent !important;
    color: #6f42c1 !important; /* 紫色 - 从PHP文件同步 */
    border-color: #6f42c1 !important; /* 紫色 - 从PHP文件同步 */
}

/* 評分樣式 */
.rating-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.rating-item {
    width: 110px; /* 更新为PHP文件中的宽度 */
    margin: 0 15px; /* 更新为PHP文件中的边距 */
}
.logo-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px; /* 更新为PHP文件中的边距 */
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
}
.rating-logo {
    max-height: 56px;
    max-width: 110px;
}
.rating-stars {
    font-size: 16px; /* 更新为PHP文件中的字体大小 */
    line-height: 1;
    margin-bottom: 6px; /* 更新为PHP文件中的边距 */
    letter-spacing: 2px; /* 从PHP文件添加 */
}
.rating-score {
    font-size: 17px; /* 更新为PHP文件中的字体大小 */
    line-height: 1.2;
    margin-bottom: 6px; /* 更新为PHP文件中的边距 */
    font-weight: 500;
}
.rating-count {
    font-size: 13px; /* 更新为PHP文件中的字体大小 */
    line-height: 1;
    color: #6c757d;
    margin-bottom: 0;
}

/* 移動端樣式 */
@media (max-width: 768px) {
    .rating-logos {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px 0;
        -webkit-overflow-scrolling: touch; /* 增加iOS流畅滚动 */
        scrollbar-width: none; /* 隐藏Firefox滚动条 */
        white-space: nowrap; /* 确保内容不换行 */
        scroll-behavior: smooth; /* 平滑滚动 */
        width: 100%;
        margin: 0 -15px; /* 抵消容器内边距 */
        padding: 0 15px; /* 添加内边距确保两侧有空间 */
    }
    
    .rating-logos::-webkit-scrollbar {
        display: none; /* 隐藏Chrome滚动条 */
    }
    
    .rating-item {
        flex: 0 0 auto;
        width: 90px; /* 减小移动端宽度 */
        margin: 0 10px; /* 减小间距 */
        display: inline-block;
    }
    
    .logo-box {
        width: 70px; /* 减小logo盒子大小 */
        height: 70px;
    }
    
    .rating-stars {
        font-size: 14px; /* 减小字体大小 */
        margin-bottom: 4px;
    }
    
    .rating-score {
        font-size: 15px; /* 减小字体大小 */
        margin-bottom: 4px;
    }
    
    .rating-count {
        font-size: 12px; /* 减小字体大小 */
    }
}

/* 確保使用網站原有字體 */
.instagram-content h1,
.instagram-content h2,
.instagram-content h3,
.instagram-content h4,
.instagram-content h5,
.instagram-content p,
.instagram-content a,
.instagram-content span,
.instagram-content div {
    font-family: inherit;
}

/* 自定義圖標背景 */
.custom-icon-bg {
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e6eb 100%);
    border-color: #e4e6eb;
}

/* 按钮样式确保不加粗 */
.instagram-content .btn {
    font-weight: 400;
}

/* 图标颜色 */
.instagram-content .icon-blue {
    color: #C13584;
}

/* Instagram渐变背景 */
.instagram-gradient {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* 从PHP文件转移的样式 */
/* Hero section 背景 */
.hero-section {
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e6eb 100%);
}

/* 底部大按钮样式 - 与Facebook页面保持一致 */
.instagram-content .btn-primary.btn-lg {
    position: relative;
    border: 2px solid #6f42c1;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-size: 1.25rem;
}

.instagram-content .btn-primary.btn-lg:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: transparent;
    transition: all 0.3s ease;
    z-index: -1;
}

.instagram-content .btn-primary.btn-lg:hover {
    color: #6f42c1 !important;
    background-color: transparent !important;
    border-color: #6f42c1 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.4);
}

.instagram-content .btn-primary.btn-lg:hover:before {
    width: 100%;
}

.instagram-content .btn-primary.btn-lg:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
} 